diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..a081f80 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +inspector.vecha.in diff --git a/css/app.740126cc.css b/css/app.740126cc.css new file mode 100644 index 0000000..729654d --- /dev/null +++ b/css/app.740126cc.css @@ -0,0 +1 @@ +@-webkit-keyframes spinAround{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}/*! bulma.io v0.7.5 | MIT License | github.com/jgthms/bulma */@keyframes spinAround{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.b-checkbox.checkbox,.b-radio.radio,.breadcrumb,.button,.carousel,.carousel-list,.delete,.file,.is-unselectable,.modal-close,.pagination-ellipsis,.pagination-link,.pagination-next,.pagination-previous,.switch,.tabs{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.navbar-link:not(.is-arrowless):after,.select:not(.is-multiple):not(.is-loading):after{border:3px solid transparent;border-radius:2px;border-right:0;border-top:0;content:" ";display:block;height:.625em;margin-top:-.4375em;pointer-events:none;position:absolute;top:50%;-webkit-transform:rotate(-45deg);transform:rotate(-45deg);-webkit-transform-origin:center;transform-origin:center;width:.625em}.block:not(:last-child),.box:not(:last-child),.breadcrumb:not(:last-child),.content:not(:last-child),.highlight:not(:last-child),.level:not(:last-child),.list:not(:last-child),.message:not(:last-child),.notification:not(:last-child),.progress:not(:last-child),.subtitle:not(:last-child),.table-container:not(:last-child),.table:not(:last-child),.tabs:not(:last-child),.title:not(:last-child){margin-bottom:1.5rem}.delete,.modal-close{-moz-appearance:none;-webkit-appearance:none;background-color:hsla(0,0%,4%,.2);border:none;border-radius:290486px;cursor:pointer;pointer-events:auto;display:inline-block;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;font-size:0;height:20px;max-height:20px;max-width:20px;min-height:20px;min-width:20px;outline:none;position:relative;vertical-align:top;width:20px}.delete:after,.delete:before,.modal-close:after,.modal-close:before{background-color:#fff;content:"";display:block;left:50%;position:absolute;top:50%;-webkit-transform:translateX(-50%) translateY(-50%) rotate(45deg);transform:translateX(-50%) translateY(-50%) rotate(45deg);-webkit-transform-origin:center center;transform-origin:center center}.delete:before,.modal-close:before{height:2px;width:50%}.delete:after,.modal-close:after{height:50%;width:2px}.delete:focus,.delete:hover,.modal-close:focus,.modal-close:hover{background-color:hsla(0,0%,4%,.3)}.delete:active,.modal-close:active{background-color:hsla(0,0%,4%,.4)}.is-small.delete,.is-small.modal-close{height:16px;max-height:16px;max-width:16px;min-height:16px;min-width:16px;width:16px}.is-medium.delete,.is-medium.modal-close{height:24px;max-height:24px;max-width:24px;min-height:24px;min-width:24px;width:24px}.is-large.delete,.is-large.modal-close{height:32px;max-height:32px;max-width:32px;min-height:32px;min-width:32px;width:32px}.button.is-loading:after,.control.is-loading:after,.loader,.select.is-loading:after{-webkit-animation:spinAround .5s linear infinite;animation:spinAround .5s linear infinite;border:2px solid #dbdbdb;border-radius:290486px;border-right-color:transparent;border-top-color:transparent;content:"";display:block;height:1em;position:relative;width:1em}.hero-video,.image.is-16by9 .has-ratio,.image.is-16by9 img,.image.is-1by1 .has-ratio,.image.is-1by1 img,.image.is-1by2 .has-ratio,.image.is-1by2 img,.image.is-1by3 .has-ratio,.image.is-1by3 img,.image.is-2by1 .has-ratio,.image.is-2by1 img,.image.is-2by3 .has-ratio,.image.is-2by3 img,.image.is-3by1 .has-ratio,.image.is-3by1 img,.image.is-3by2 .has-ratio,.image.is-3by2 img,.image.is-3by4 .has-ratio,.image.is-3by4 img,.image.is-3by5 .has-ratio,.image.is-3by5 img,.image.is-4by3 .has-ratio,.image.is-4by3 img,.image.is-4by5 .has-ratio,.image.is-4by5 img,.image.is-5by3 .has-ratio,.image.is-5by3 img,.image.is-5by4 .has-ratio,.image.is-5by4 img,.image.is-9by16 .has-ratio,.image.is-9by16 img,.image.is-square .has-ratio,.image.is-square img,.is-overlay,.modal,.modal-background{bottom:0;left:0;position:absolute;right:0;top:0}.button,.file-cta,.file-name,.input,.pagination-ellipsis,.pagination-link,.pagination-next,.pagination-previous,.select select,.taginput .taginput-container.is-focusable,.textarea{-moz-appearance:none;-webkit-appearance:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:none;box-shadow:none;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:1rem;height:2.25em;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;line-height:1.5;padding-bottom:calc(.375em - 1px);padding-left:calc(.625em - 1px);padding-right:calc(.625em - 1px);padding-top:calc(.375em - 1px);position:relative;vertical-align:top}.button:active,.button:focus,.file-cta:active,.file-cta:focus,.file-name:active,.file-name:focus,.input:active,.input:focus,.is-active.button,.is-active.file-cta,.is-active.file-name,.is-active.input,.is-active.pagination-ellipsis,.is-active.pagination-link,.is-active.pagination-next,.is-active.pagination-previous,.is-active.textarea,.is-focused.button,.is-focused.file-cta,.is-focused.file-name,.is-focused.input,.is-focused.pagination-ellipsis,.is-focused.pagination-link,.is-focused.pagination-next,.is-focused.pagination-previous,.is-focused.textarea,.pagination-ellipsis:active,.pagination-ellipsis:focus,.pagination-link:active,.pagination-link:focus,.pagination-next:active,.pagination-next:focus,.pagination-previous:active,.pagination-previous:focus,.select select.is-active,.select select.is-focused,.select select:active,.select select:focus,.taginput .is-active.taginput-container.is-focusable,.taginput .is-focused.taginput-container.is-focusable,.taginput .taginput-container.is-focusable:active,.taginput .taginput-container.is-focusable:focus,.textarea:active,.textarea:focus{outline:none}.select fieldset[disabled] select,.select select[disabled],.taginput [disabled].taginput-container.is-focusable,.taginput fieldset[disabled] .taginput-container.is-focusable,[disabled].button,[disabled].file-cta,[disabled].file-name,[disabled].input,[disabled].pagination-ellipsis,[disabled].pagination-link,[disabled].pagination-next,[disabled].pagination-previous,[disabled].textarea,fieldset[disabled] .button,fieldset[disabled] .file-cta,fieldset[disabled] .file-name,fieldset[disabled] .input,fieldset[disabled] .pagination-ellipsis,fieldset[disabled] .pagination-link,fieldset[disabled] .pagination-next,fieldset[disabled] .pagination-previous,fieldset[disabled] .select select,fieldset[disabled] .taginput .taginput-container.is-focusable,fieldset[disabled] .textarea{cursor:not-allowed}/*! minireset.css v0.0.4 | MIT License | github.com/jgthms/minireset.css */blockquote,body,dd,dl,dt,fieldset,figure,h1,h2,h3,h4,h5,h6,hr,html,iframe,legend,li,ol,p,pre,textarea,ul{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}ul{list-style:none}button,input,select,textarea{margin:0}html{-webkit-box-sizing:border-box;box-sizing:border-box}*,:after,:before{-webkit-box-sizing:inherit;box-sizing:inherit}embed,iframe,img,object,video{height:auto;max-width:100%}audio{max-width:100%}iframe{border:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}td:not([align]),th:not([align]){text-align:left}html{background-color:#fff;font-size:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;min-width:300px;overflow-x:hidden;overflow-y:scroll;text-rendering:optimizeLegibility;-webkit-text-size-adjust:100%;-moz-text-size-adjust:100%;-ms-text-size-adjust:100%;text-size-adjust:100%}article,aside,figure,footer,header,hgroup,section{display:block}body,button,input,select,textarea{font-family:BlinkMacSystemFont,-apple-system,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Helvetica,Arial,sans-serif}code,pre{-moz-osx-font-smoothing:auto;-webkit-font-smoothing:auto;font-family:monospace}body{color:#4a4a4a;font-size:1em;font-weight:400;line-height:1.5}a{color:#26a69a;cursor:pointer;text-decoration:none}a strong{color:currentColor}a:hover{color:#363636}code{color:#ff3860;font-size:.875em;font-weight:400;padding:.25em .5em .25em}code,hr{background-color:#f5f5f5}hr{border:none;display:block;height:2px;margin:1.5rem 0}img{height:auto;max-width:100%}input[type=checkbox],input[type=radio]{vertical-align:baseline}small{font-size:.875em}span{font-style:inherit;font-weight:inherit}strong{color:#363636;font-weight:700}fieldset{border:none}pre{-webkit-overflow-scrolling:touch;background-color:#f5f5f5;color:#4a4a4a;font-size:.875em;overflow-x:auto;padding:1.25rem 1.5rem;white-space:pre;word-wrap:normal}pre code{background-color:transparent;color:currentColor;font-size:1em;padding:0}table td,table th{vertical-align:top}table td:not([align]),table th:not([align]){text-align:left}table th{color:#363636}.is-clearfix:after{clear:both;content:" ";display:table}.is-pulled-left{float:left!important}.is-pulled-right{float:right!important}.is-clipped{overflow:hidden!important}.is-size-1{font-size:3rem!important}.is-size-2{font-size:2.5rem!important}.is-size-3{font-size:2rem!important}.is-size-4{font-size:1.5rem!important}.is-size-5{font-size:1.25rem!important}.is-size-6{font-size:1rem!important}.is-size-7{font-size:.75rem!important}@media screen and (max-width:768px){.is-size-1-mobile{font-size:3rem!important}.is-size-2-mobile{font-size:2.5rem!important}.is-size-3-mobile{font-size:2rem!important}.is-size-4-mobile{font-size:1.5rem!important}.is-size-5-mobile{font-size:1.25rem!important}.is-size-6-mobile{font-size:1rem!important}.is-size-7-mobile{font-size:.75rem!important}}@media print,screen and (min-width:769px){.is-size-1-tablet{font-size:3rem!important}.is-size-2-tablet{font-size:2.5rem!important}.is-size-3-tablet{font-size:2rem!important}.is-size-4-tablet{font-size:1.5rem!important}.is-size-5-tablet{font-size:1.25rem!important}.is-size-6-tablet{font-size:1rem!important}.is-size-7-tablet{font-size:.75rem!important}}@media screen and (max-width:1023px){.is-size-1-touch{font-size:3rem!important}.is-size-2-touch{font-size:2.5rem!important}.is-size-3-touch{font-size:2rem!important}.is-size-4-touch{font-size:1.5rem!important}.is-size-5-touch{font-size:1.25rem!important}.is-size-6-touch{font-size:1rem!important}.is-size-7-touch{font-size:.75rem!important}}@media screen and (min-width:1024px){.is-size-1-desktop{font-size:3rem!important}.is-size-2-desktop{font-size:2.5rem!important}.is-size-3-desktop{font-size:2rem!important}.is-size-4-desktop{font-size:1.5rem!important}.is-size-5-desktop{font-size:1.25rem!important}.is-size-6-desktop{font-size:1rem!important}.is-size-7-desktop{font-size:.75rem!important}}@media screen and (min-width:1216px){.is-size-1-widescreen{font-size:3rem!important}.is-size-2-widescreen{font-size:2.5rem!important}.is-size-3-widescreen{font-size:2rem!important}.is-size-4-widescreen{font-size:1.5rem!important}.is-size-5-widescreen{font-size:1.25rem!important}.is-size-6-widescreen{font-size:1rem!important}.is-size-7-widescreen{font-size:.75rem!important}}@media screen and (min-width:1408px){.is-size-1-fullhd{font-size:3rem!important}.is-size-2-fullhd{font-size:2.5rem!important}.is-size-3-fullhd{font-size:2rem!important}.is-size-4-fullhd{font-size:1.5rem!important}.is-size-5-fullhd{font-size:1.25rem!important}.is-size-6-fullhd{font-size:1rem!important}.is-size-7-fullhd{font-size:.75rem!important}}.has-text-centered{text-align:center!important}.has-text-justified{text-align:justify!important}.has-text-left{text-align:left!important}.has-text-right{text-align:right!important}@media screen and (max-width:768px){.has-text-centered-mobile{text-align:center!important}}@media print,screen and (min-width:769px){.has-text-centered-tablet{text-align:center!important}}@media screen and (min-width:769px)and (max-width:1023px){.has-text-centered-tablet-only{text-align:center!important}}@media screen and (max-width:1023px){.has-text-centered-touch{text-align:center!important}}@media screen and (min-width:1024px){.has-text-centered-desktop{text-align:center!important}}@media screen and (min-width:1024px)and (max-width:1215px){.has-text-centered-desktop-only{text-align:center!important}}@media screen and (min-width:1216px){.has-text-centered-widescreen{text-align:center!important}}@media screen and (min-width:1216px)and (max-width:1407px){.has-text-centered-widescreen-only{text-align:center!important}}@media screen and (min-width:1408px){.has-text-centered-fullhd{text-align:center!important}}@media screen and (max-width:768px){.has-text-justified-mobile{text-align:justify!important}}@media print,screen and (min-width:769px){.has-text-justified-tablet{text-align:justify!important}}@media screen and (min-width:769px)and (max-width:1023px){.has-text-justified-tablet-only{text-align:justify!important}}@media screen and (max-width:1023px){.has-text-justified-touch{text-align:justify!important}}@media screen and (min-width:1024px){.has-text-justified-desktop{text-align:justify!important}}@media screen and (min-width:1024px)and (max-width:1215px){.has-text-justified-desktop-only{text-align:justify!important}}@media screen and (min-width:1216px){.has-text-justified-widescreen{text-align:justify!important}}@media screen and (min-width:1216px)and (max-width:1407px){.has-text-justified-widescreen-only{text-align:justify!important}}@media screen and (min-width:1408px){.has-text-justified-fullhd{text-align:justify!important}}@media screen and (max-width:768px){.has-text-left-mobile{text-align:left!important}}@media print,screen and (min-width:769px){.has-text-left-tablet{text-align:left!important}}@media screen and (min-width:769px)and (max-width:1023px){.has-text-left-tablet-only{text-align:left!important}}@media screen and (max-width:1023px){.has-text-left-touch{text-align:left!important}}@media screen and (min-width:1024px){.has-text-left-desktop{text-align:left!important}}@media screen and (min-width:1024px)and (max-width:1215px){.has-text-left-desktop-only{text-align:left!important}}@media screen and (min-width:1216px){.has-text-left-widescreen{text-align:left!important}}@media screen and (min-width:1216px)and (max-width:1407px){.has-text-left-widescreen-only{text-align:left!important}}@media screen and (min-width:1408px){.has-text-left-fullhd{text-align:left!important}}@media screen and (max-width:768px){.has-text-right-mobile{text-align:right!important}}@media print,screen and (min-width:769px){.has-text-right-tablet{text-align:right!important}}@media screen and (min-width:769px)and (max-width:1023px){.has-text-right-tablet-only{text-align:right!important}}@media screen and (max-width:1023px){.has-text-right-touch{text-align:right!important}}@media screen and (min-width:1024px){.has-text-right-desktop{text-align:right!important}}@media screen and (min-width:1024px)and (max-width:1215px){.has-text-right-desktop-only{text-align:right!important}}@media screen and (min-width:1216px){.has-text-right-widescreen{text-align:right!important}}@media screen and (min-width:1216px)and (max-width:1407px){.has-text-right-widescreen-only{text-align:right!important}}@media screen and (min-width:1408px){.has-text-right-fullhd{text-align:right!important}}.is-capitalized{text-transform:capitalize!important}.is-lowercase{text-transform:lowercase!important}.is-uppercase{text-transform:uppercase!important}.is-italic{font-style:italic!important}.has-text-white{color:#fff!important}a.has-text-white:focus,a.has-text-white:hover{color:#e6e6e6!important}.has-background-white{background-color:#fff!important}.has-text-black{color:#0a0a0a!important}a.has-text-black:focus,a.has-text-black:hover{color:#000!important}.has-background-black{background-color:#0a0a0a!important}.has-text-light{color:#f5f5f5!important}a.has-text-light:focus,a.has-text-light:hover{color:#dbdbdb!important}.has-background-light{background-color:#f5f5f5!important}.has-text-dark{color:#363636!important}a.has-text-dark:focus,a.has-text-dark:hover{color:#1c1c1c!important}.has-background-dark{background-color:#363636!important}.has-text-primary{color:#26a69a!important}a.has-text-primary:focus,a.has-text-primary:hover{color:#1d7d74!important}.has-background-primary{background-color:#26a69a!important}.has-text-info{color:#209cee!important}a.has-text-info:focus,a.has-text-info:hover{color:#0f81cc!important}.has-background-info{background-color:#209cee!important}.has-text-success{color:#23d160!important}a.has-text-success:focus,a.has-text-success:hover{color:#1ca64c!important}.has-background-success{background-color:#23d160!important}.has-text-warning{color:#ffdd57!important}a.has-text-warning:focus,a.has-text-warning:hover{color:#ffd324!important}.has-background-warning{background-color:#ffdd57!important}.has-text-danger{color:#f44336!important}a.has-text-danger:focus,a.has-text-danger:hover{color:#ea1c0d!important}.has-background-danger{background-color:#f44336!important}.has-text-twitter{color:#4099ff!important}a.has-text-twitter:focus,a.has-text-twitter:hover{color:#0d7eff!important}.has-background-twitter{background-color:#4099ff!important}.has-text-black-bis{color:#121212!important}.has-background-black-bis{background-color:#121212!important}.has-text-black-ter{color:#242424!important}.has-background-black-ter{background-color:#242424!important}.has-text-grey-darker{color:#363636!important}.has-background-grey-darker{background-color:#363636!important}.has-text-grey-dark{color:#4a4a4a!important}.has-background-grey-dark{background-color:#4a4a4a!important}.has-text-grey{color:#7a7a7a!important}.has-background-grey{background-color:#7a7a7a!important}.has-text-grey-light{color:#b5b5b5!important}.has-background-grey-light{background-color:#b5b5b5!important}.has-text-grey-lighter{color:#dbdbdb!important}.has-background-grey-lighter{background-color:#dbdbdb!important}.has-text-white-ter{color:#f5f5f5!important}.has-background-white-ter{background-color:#f5f5f5!important}.has-text-white-bis{color:#fafafa!important}.has-background-white-bis{background-color:#fafafa!important}.has-text-weight-light{font-weight:300!important}.has-text-weight-normal{font-weight:400!important}.has-text-weight-medium{font-weight:500!important}.has-text-weight-semibold{font-weight:600!important}.has-text-weight-bold{font-weight:700!important}.is-family-primary,.is-family-sans-serif,.is-family-secondary{font-family:BlinkMacSystemFont,-apple-system,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,Helvetica,Arial,sans-serif!important}.is-family-code,.is-family-monospace{font-family:monospace!important}.is-block{display:block!important}@media screen and (max-width:768px){.is-block-mobile{display:block!important}}@media print,screen and (min-width:769px){.is-block-tablet{display:block!important}}@media screen and (min-width:769px)and (max-width:1023px){.is-block-tablet-only{display:block!important}}@media screen and (max-width:1023px){.is-block-touch{display:block!important}}@media screen and (min-width:1024px){.is-block-desktop{display:block!important}}@media screen and (min-width:1024px)and (max-width:1215px){.is-block-desktop-only{display:block!important}}@media screen and (min-width:1216px){.is-block-widescreen{display:block!important}}@media screen and (min-width:1216px)and (max-width:1407px){.is-block-widescreen-only{display:block!important}}@media screen and (min-width:1408px){.is-block-fullhd{display:block!important}}.is-flex{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}@media screen and (max-width:768px){.is-flex-mobile{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media print,screen and (min-width:769px){.is-flex-tablet{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (min-width:769px)and (max-width:1023px){.is-flex-tablet-only{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (max-width:1023px){.is-flex-touch{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (min-width:1024px){.is-flex-desktop{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (min-width:1024px)and (max-width:1215px){.is-flex-desktop-only{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (min-width:1216px){.is-flex-widescreen{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (min-width:1216px)and (max-width:1407px){.is-flex-widescreen-only{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}@media screen and (min-width:1408px){.is-flex-fullhd{display:-webkit-box!important;display:-ms-flexbox!important;display:flex!important}}.is-inline{display:inline!important}@media screen and (max-width:768px){.is-inline-mobile{display:inline!important}}@media print,screen and (min-width:769px){.is-inline-tablet{display:inline!important}}@media screen and (min-width:769px)and (max-width:1023px){.is-inline-tablet-only{display:inline!important}}@media screen and (max-width:1023px){.is-inline-touch{display:inline!important}}@media screen and (min-width:1024px){.is-inline-desktop{display:inline!important}}@media screen and (min-width:1024px)and (max-width:1215px){.is-inline-desktop-only{display:inline!important}}@media screen and (min-width:1216px){.is-inline-widescreen{display:inline!important}}@media screen and (min-width:1216px)and (max-width:1407px){.is-inline-widescreen-only{display:inline!important}}@media screen and (min-width:1408px){.is-inline-fullhd{display:inline!important}}.is-inline-block{display:inline-block!important}@media screen and (max-width:768px){.is-inline-block-mobile{display:inline-block!important}}@media print,screen and (min-width:769px){.is-inline-block-tablet{display:inline-block!important}}@media screen and (min-width:769px)and (max-width:1023px){.is-inline-block-tablet-only{display:inline-block!important}}@media screen and (max-width:1023px){.is-inline-block-touch{display:inline-block!important}}@media screen and (min-width:1024px){.is-inline-block-desktop{display:inline-block!important}}@media screen and (min-width:1024px)and (max-width:1215px){.is-inline-block-desktop-only{display:inline-block!important}}@media screen and (min-width:1216px){.is-inline-block-widescreen{display:inline-block!important}}@media screen and (min-width:1216px)and (max-width:1407px){.is-inline-block-widescreen-only{display:inline-block!important}}@media screen and (min-width:1408px){.is-inline-block-fullhd{display:inline-block!important}}.is-inline-flex{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}@media screen and (max-width:768px){.is-inline-flex-mobile{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media print,screen and (min-width:769px){.is-inline-flex-tablet{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (min-width:769px)and (max-width:1023px){.is-inline-flex-tablet-only{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (max-width:1023px){.is-inline-flex-touch{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (min-width:1024px){.is-inline-flex-desktop{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (min-width:1024px)and (max-width:1215px){.is-inline-flex-desktop-only{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (min-width:1216px){.is-inline-flex-widescreen{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (min-width:1216px)and (max-width:1407px){.is-inline-flex-widescreen-only{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}@media screen and (min-width:1408px){.is-inline-flex-fullhd{display:-webkit-inline-box!important;display:-ms-inline-flexbox!important;display:inline-flex!important}}.is-hidden{display:none!important}.is-sr-only{border:none!important;clip:rect(0,0,0,0)!important;height:.01em!important;overflow:hidden!important;padding:0!important;position:absolute!important;white-space:nowrap!important;width:.01em!important}@media screen and (max-width:768px){.is-hidden-mobile{display:none!important}}@media print,screen and (min-width:769px){.is-hidden-tablet{display:none!important}}@media screen and (min-width:769px)and (max-width:1023px){.is-hidden-tablet-only{display:none!important}}@media screen and (max-width:1023px){.is-hidden-touch{display:none!important}}@media screen and (min-width:1024px){.is-hidden-desktop{display:none!important}}@media screen and (min-width:1024px)and (max-width:1215px){.is-hidden-desktop-only{display:none!important}}@media screen and (min-width:1216px){.is-hidden-widescreen{display:none!important}}@media screen and (min-width:1216px)and (max-width:1407px){.is-hidden-widescreen-only{display:none!important}}@media screen and (min-width:1408px){.is-hidden-fullhd{display:none!important}}.is-invisible{visibility:hidden!important}@media screen and (max-width:768px){.is-invisible-mobile{visibility:hidden!important}}@media print,screen and (min-width:769px){.is-invisible-tablet{visibility:hidden!important}}@media screen and (min-width:769px)and (max-width:1023px){.is-invisible-tablet-only{visibility:hidden!important}}@media screen and (max-width:1023px){.is-invisible-touch{visibility:hidden!important}}@media screen and (min-width:1024px){.is-invisible-desktop{visibility:hidden!important}}@media screen and (min-width:1024px)and (max-width:1215px){.is-invisible-desktop-only{visibility:hidden!important}}@media screen and (min-width:1216px){.is-invisible-widescreen{visibility:hidden!important}}@media screen and (min-width:1216px)and (max-width:1407px){.is-invisible-widescreen-only{visibility:hidden!important}}@media screen and (min-width:1408px){.is-invisible-fullhd{visibility:hidden!important}}.is-marginless{margin:0!important}.is-paddingless{padding:0!important}.is-radiusless{border-radius:0!important}.is-shadowless{-webkit-box-shadow:none!important;box-shadow:none!important}.is-relative{position:relative!important}.box{background-color:#fff;border-radius:6px;-webkit-box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);color:#4a4a4a;display:block;padding:1.1rem}a.box:focus,a.box:hover{-webkit-box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px #26a69a;box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px #26a69a}a.box:active{-webkit-box-shadow:inset 0 1px 2px hsla(0,0%,4%,.2),0 0 0 1px #26a69a;box-shadow:inset 0 1px 2px hsla(0,0%,4%,.2),0 0 0 1px #26a69a}.button{background-color:#fff;border-color:#dbdbdb;border-width:1px;color:#363636;cursor:pointer;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding-bottom:calc(.375em - 1px);padding-left:.75em;padding-right:.75em;padding-top:calc(.375em - 1px);text-align:center;white-space:nowrap}.button strong{color:inherit}.button .icon,.button .icon.is-large,.button .icon.is-medium,.button .icon.is-small{height:1.5em;width:1.5em}.button .icon:first-child:not(:last-child){margin-left:calc(-.375em - 1px);margin-right:.1875em}.button .icon:last-child:not(:first-child){margin-left:.1875em;margin-right:calc(-.375em - 1px)}.button .icon:first-child:last-child{margin-left:calc(-.375em - 1px);margin-right:calc(-.375em - 1px)}.button.is-hovered,.button:hover{border-color:#b5b5b5;color:#363636}.button.is-focused,.button:focus{border-color:#26a69a;color:#363636}.button.is-focused:not(:active),.button:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(38,166,154,.25);box-shadow:0 0 0 .125em rgba(38,166,154,.25)}.button.is-active,.button:active{border-color:#4a4a4a;color:#363636}.button.is-text{background-color:transparent;border-color:transparent;color:#4a4a4a;text-decoration:underline}.button.is-text.is-focused,.button.is-text.is-hovered,.button.is-text:focus,.button.is-text:hover{background-color:#f5f5f5;color:#363636}.button.is-text.is-active,.button.is-text:active{background-color:#e8e8e8;color:#363636}.button.is-text[disabled],fieldset[disabled] .button.is-text{background-color:transparent;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-white{background-color:#fff;border-color:transparent;color:#0a0a0a}.button.is-white.is-hovered,.button.is-white:hover{background-color:#f9f9f9;border-color:transparent;color:#0a0a0a}.button.is-white.is-focused,.button.is-white:focus{border-color:transparent;color:#0a0a0a}.button.is-white.is-focused:not(:active),.button.is-white:focus:not(:active){-webkit-box-shadow:0 0 0 .125em hsla(0,0%,100%,.25);box-shadow:0 0 0 .125em hsla(0,0%,100%,.25)}.button.is-white.is-active,.button.is-white:active{background-color:#f2f2f2;border-color:transparent;color:#0a0a0a}.button.is-white[disabled],fieldset[disabled] .button.is-white{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-white.is-inverted{background-color:#0a0a0a;color:#fff}.button.is-white.is-inverted.is-hovered,.button.is-white.is-inverted:hover{background-color:#000}.button.is-white.is-inverted[disabled],fieldset[disabled] .button.is-white.is-inverted{background-color:#0a0a0a;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-white.is-loading:after{border-color:transparent transparent #0a0a0a #0a0a0a!important}.button.is-white.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-white.is-outlined.is-focused,.button.is-white.is-outlined.is-hovered,.button.is-white.is-outlined:focus,.button.is-white.is-outlined:hover{background-color:#fff;border-color:#fff;color:#0a0a0a}.button.is-white.is-outlined.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-white.is-outlined.is-loading.is-focused:after,.button.is-white.is-outlined.is-loading.is-hovered:after,.button.is-white.is-outlined.is-loading:focus:after,.button.is-white.is-outlined.is-loading:hover:after{border-color:transparent transparent #0a0a0a #0a0a0a!important}.button.is-white.is-outlined[disabled],fieldset[disabled] .button.is-white.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-white.is-inverted.is-outlined{background-color:transparent;border-color:#0a0a0a;color:#0a0a0a}.button.is-white.is-inverted.is-outlined.is-focused,.button.is-white.is-inverted.is-outlined.is-hovered,.button.is-white.is-inverted.is-outlined:focus,.button.is-white.is-inverted.is-outlined:hover{background-color:#0a0a0a;color:#fff}.button.is-white.is-inverted.is-outlined.is-loading.is-focused:after,.button.is-white.is-inverted.is-outlined.is-loading.is-hovered:after,.button.is-white.is-inverted.is-outlined.is-loading:focus:after,.button.is-white.is-inverted.is-outlined.is-loading:hover:after{border-color:transparent transparent #fff #fff!important}.button.is-white.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-white.is-inverted.is-outlined{background-color:transparent;border-color:#0a0a0a;-webkit-box-shadow:none;box-shadow:none;color:#0a0a0a}.button.is-black{background-color:#0a0a0a;border-color:transparent;color:#fff}.button.is-black.is-hovered,.button.is-black:hover{background-color:#040404;border-color:transparent;color:#fff}.button.is-black.is-focused,.button.is-black:focus{border-color:transparent;color:#fff}.button.is-black.is-focused:not(:active),.button.is-black:focus:not(:active){-webkit-box-shadow:0 0 0 .125em hsla(0,0%,4%,.25);box-shadow:0 0 0 .125em hsla(0,0%,4%,.25)}.button.is-black.is-active,.button.is-black:active{background-color:#000;border-color:transparent;color:#fff}.button.is-black[disabled],fieldset[disabled] .button.is-black{background-color:#0a0a0a;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-black.is-inverted{background-color:#fff;color:#0a0a0a}.button.is-black.is-inverted.is-hovered,.button.is-black.is-inverted:hover{background-color:#f2f2f2}.button.is-black.is-inverted[disabled],fieldset[disabled] .button.is-black.is-inverted{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#0a0a0a}.button.is-black.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-black.is-outlined{background-color:transparent;border-color:#0a0a0a;color:#0a0a0a}.button.is-black.is-outlined.is-focused,.button.is-black.is-outlined.is-hovered,.button.is-black.is-outlined:focus,.button.is-black.is-outlined:hover{background-color:#0a0a0a;border-color:#0a0a0a;color:#fff}.button.is-black.is-outlined.is-loading:after{border-color:transparent transparent #0a0a0a #0a0a0a!important}.button.is-black.is-outlined.is-loading.is-focused:after,.button.is-black.is-outlined.is-loading.is-hovered:after,.button.is-black.is-outlined.is-loading:focus:after,.button.is-black.is-outlined.is-loading:hover:after{border-color:transparent transparent #fff #fff!important}.button.is-black.is-outlined[disabled],fieldset[disabled] .button.is-black.is-outlined{background-color:transparent;border-color:#0a0a0a;-webkit-box-shadow:none;box-shadow:none;color:#0a0a0a}.button.is-black.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-black.is-inverted.is-outlined.is-focused,.button.is-black.is-inverted.is-outlined.is-hovered,.button.is-black.is-inverted.is-outlined:focus,.button.is-black.is-inverted.is-outlined:hover{background-color:#fff;color:#0a0a0a}.button.is-black.is-inverted.is-outlined.is-loading.is-focused:after,.button.is-black.is-inverted.is-outlined.is-loading.is-hovered:after,.button.is-black.is-inverted.is-outlined.is-loading:focus:after,.button.is-black.is-inverted.is-outlined.is-loading:hover:after{border-color:transparent transparent #0a0a0a #0a0a0a!important}.button.is-black.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-black.is-inverted.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-light{background-color:#f5f5f5;border-color:transparent;color:#363636}.button.is-light.is-hovered,.button.is-light:hover{background-color:#eee;border-color:transparent;color:#363636}.button.is-light.is-focused,.button.is-light:focus{border-color:transparent;color:#363636}.button.is-light.is-focused:not(:active),.button.is-light:focus:not(:active){-webkit-box-shadow:0 0 0 .125em hsla(0,0%,96%,.25);box-shadow:0 0 0 .125em hsla(0,0%,96%,.25)}.button.is-light.is-active,.button.is-light:active{background-color:#e8e8e8;border-color:transparent;color:#363636}.button.is-light[disabled],fieldset[disabled] .button.is-light{background-color:#f5f5f5;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-light.is-inverted{background-color:#363636;color:#f5f5f5}.button.is-light.is-inverted.is-hovered,.button.is-light.is-inverted:hover{background-color:#292929}.button.is-light.is-inverted[disabled],fieldset[disabled] .button.is-light.is-inverted{background-color:#363636;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#f5f5f5}.button.is-light.is-loading:after{border-color:transparent transparent #363636 #363636!important}.button.is-light.is-outlined{background-color:transparent;border-color:#f5f5f5;color:#f5f5f5}.button.is-light.is-outlined.is-focused,.button.is-light.is-outlined.is-hovered,.button.is-light.is-outlined:focus,.button.is-light.is-outlined:hover{background-color:#f5f5f5;border-color:#f5f5f5;color:#363636}.button.is-light.is-outlined.is-loading:after{border-color:transparent transparent #f5f5f5 #f5f5f5!important}.button.is-light.is-outlined.is-loading.is-focused:after,.button.is-light.is-outlined.is-loading.is-hovered:after,.button.is-light.is-outlined.is-loading:focus:after,.button.is-light.is-outlined.is-loading:hover:after{border-color:transparent transparent #363636 #363636!important}.button.is-light.is-outlined[disabled],fieldset[disabled] .button.is-light.is-outlined{background-color:transparent;border-color:#f5f5f5;-webkit-box-shadow:none;box-shadow:none;color:#f5f5f5}.button.is-light.is-inverted.is-outlined{background-color:transparent;border-color:#363636;color:#363636}.button.is-light.is-inverted.is-outlined.is-focused,.button.is-light.is-inverted.is-outlined.is-hovered,.button.is-light.is-inverted.is-outlined:focus,.button.is-light.is-inverted.is-outlined:hover{background-color:#363636;color:#f5f5f5}.button.is-light.is-inverted.is-outlined.is-loading.is-focused:after,.button.is-light.is-inverted.is-outlined.is-loading.is-hovered:after,.button.is-light.is-inverted.is-outlined.is-loading:focus:after,.button.is-light.is-inverted.is-outlined.is-loading:hover:after{border-color:transparent transparent #f5f5f5 #f5f5f5!important}.button.is-light.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-light.is-inverted.is-outlined{background-color:transparent;border-color:#363636;-webkit-box-shadow:none;box-shadow:none;color:#363636}.button.is-dark{background-color:#363636;border-color:transparent;color:#f5f5f5}.button.is-dark.is-hovered,.button.is-dark:hover{background-color:#2f2f2f;border-color:transparent;color:#f5f5f5}.button.is-dark.is-focused,.button.is-dark:focus{border-color:transparent;color:#f5f5f5}.button.is-dark.is-focused:not(:active),.button.is-dark:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(54,54,54,.25);box-shadow:0 0 0 .125em rgba(54,54,54,.25)}.button.is-dark.is-active,.button.is-dark:active{background-color:#292929;border-color:transparent;color:#f5f5f5}.button.is-dark[disabled],fieldset[disabled] .button.is-dark{background-color:#363636;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-dark.is-inverted{background-color:#f5f5f5;color:#363636}.button.is-dark.is-inverted.is-hovered,.button.is-dark.is-inverted:hover{background-color:#e8e8e8}.button.is-dark.is-inverted[disabled],fieldset[disabled] .button.is-dark.is-inverted{background-color:#f5f5f5;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#363636}.button.is-dark.is-loading:after{border-color:transparent transparent #f5f5f5 #f5f5f5!important}.button.is-dark.is-outlined{background-color:transparent;border-color:#363636;color:#363636}.button.is-dark.is-outlined.is-focused,.button.is-dark.is-outlined.is-hovered,.button.is-dark.is-outlined:focus,.button.is-dark.is-outlined:hover{background-color:#363636;border-color:#363636;color:#f5f5f5}.button.is-dark.is-outlined.is-loading:after{border-color:transparent transparent #363636 #363636!important}.button.is-dark.is-outlined.is-loading.is-focused:after,.button.is-dark.is-outlined.is-loading.is-hovered:after,.button.is-dark.is-outlined.is-loading:focus:after,.button.is-dark.is-outlined.is-loading:hover:after{border-color:transparent transparent #f5f5f5 #f5f5f5!important}.button.is-dark.is-outlined[disabled],fieldset[disabled] .button.is-dark.is-outlined{background-color:transparent;border-color:#363636;-webkit-box-shadow:none;box-shadow:none;color:#363636}.button.is-dark.is-inverted.is-outlined{background-color:transparent;border-color:#f5f5f5;color:#f5f5f5}.button.is-dark.is-inverted.is-outlined.is-focused,.button.is-dark.is-inverted.is-outlined.is-hovered,.button.is-dark.is-inverted.is-outlined:focus,.button.is-dark.is-inverted.is-outlined:hover{background-color:#f5f5f5;color:#363636}.button.is-dark.is-inverted.is-outlined.is-loading.is-focused:after,.button.is-dark.is-inverted.is-outlined.is-loading.is-hovered:after,.button.is-dark.is-inverted.is-outlined.is-loading:focus:after,.button.is-dark.is-inverted.is-outlined.is-loading:hover:after{border-color:transparent transparent #363636 #363636!important}.button.is-dark.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-dark.is-inverted.is-outlined{background-color:transparent;border-color:#f5f5f5;-webkit-box-shadow:none;box-shadow:none;color:#f5f5f5}.button.is-primary{background-color:#26a69a;border-color:transparent;color:#fff}.button.is-primary.is-hovered,.button.is-primary:hover{background-color:#249c90;border-color:transparent;color:#fff}.button.is-primary.is-focused,.button.is-primary:focus{border-color:transparent;color:#fff}.button.is-primary.is-focused:not(:active),.button.is-primary:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(38,166,154,.25);box-shadow:0 0 0 .125em rgba(38,166,154,.25)}.button.is-primary.is-active,.button.is-primary:active{background-color:#219187;border-color:transparent;color:#fff}.button.is-primary[disabled],fieldset[disabled] .button.is-primary{background-color:#26a69a;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-primary.is-inverted{background-color:#fff;color:#26a69a}.button.is-primary.is-inverted.is-hovered,.button.is-primary.is-inverted:hover{background-color:#f2f2f2}.button.is-primary.is-inverted[disabled],fieldset[disabled] .button.is-primary.is-inverted{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#26a69a}.button.is-primary.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-primary.is-outlined{background-color:transparent;border-color:#26a69a;color:#26a69a}.button.is-primary.is-outlined.is-focused,.button.is-primary.is-outlined.is-hovered,.button.is-primary.is-outlined:focus,.button.is-primary.is-outlined:hover{background-color:#26a69a;border-color:#26a69a;color:#fff}.button.is-primary.is-outlined.is-loading:after{border-color:transparent transparent #26a69a #26a69a!important}.button.is-primary.is-outlined.is-loading.is-focused:after,.button.is-primary.is-outlined.is-loading.is-hovered:after,.button.is-primary.is-outlined.is-loading:focus:after,.button.is-primary.is-outlined.is-loading:hover:after{border-color:transparent transparent #fff #fff!important}.button.is-primary.is-outlined[disabled],fieldset[disabled] .button.is-primary.is-outlined{background-color:transparent;border-color:#26a69a;-webkit-box-shadow:none;box-shadow:none;color:#26a69a}.button.is-primary.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-primary.is-inverted.is-outlined.is-focused,.button.is-primary.is-inverted.is-outlined.is-hovered,.button.is-primary.is-inverted.is-outlined:focus,.button.is-primary.is-inverted.is-outlined:hover{background-color:#fff;color:#26a69a}.button.is-primary.is-inverted.is-outlined.is-loading.is-focused:after,.button.is-primary.is-inverted.is-outlined.is-loading.is-hovered:after,.button.is-primary.is-inverted.is-outlined.is-loading:focus:after,.button.is-primary.is-inverted.is-outlined.is-loading:hover:after{border-color:transparent transparent #26a69a #26a69a!important}.button.is-primary.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-primary.is-inverted.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-info{background-color:#209cee;border-color:transparent;color:#fff}.button.is-info.is-hovered,.button.is-info:hover{background-color:#1496ed;border-color:transparent;color:#fff}.button.is-info.is-focused,.button.is-info:focus{border-color:transparent;color:#fff}.button.is-info.is-focused:not(:active),.button.is-info:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(32,156,238,.25);box-shadow:0 0 0 .125em rgba(32,156,238,.25)}.button.is-info.is-active,.button.is-info:active{background-color:#118fe4;border-color:transparent;color:#fff}.button.is-info[disabled],fieldset[disabled] .button.is-info{background-color:#209cee;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-info.is-inverted{background-color:#fff;color:#209cee}.button.is-info.is-inverted.is-hovered,.button.is-info.is-inverted:hover{background-color:#f2f2f2}.button.is-info.is-inverted[disabled],fieldset[disabled] .button.is-info.is-inverted{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#209cee}.button.is-info.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-info.is-outlined{background-color:transparent;border-color:#209cee;color:#209cee}.button.is-info.is-outlined.is-focused,.button.is-info.is-outlined.is-hovered,.button.is-info.is-outlined:focus,.button.is-info.is-outlined:hover{background-color:#209cee;border-color:#209cee;color:#fff}.button.is-info.is-outlined.is-loading:after{border-color:transparent transparent #209cee #209cee!important}.button.is-info.is-outlined.is-loading.is-focused:after,.button.is-info.is-outlined.is-loading.is-hovered:after,.button.is-info.is-outlined.is-loading:focus:after,.button.is-info.is-outlined.is-loading:hover:after{border-color:transparent transparent #fff #fff!important}.button.is-info.is-outlined[disabled],fieldset[disabled] .button.is-info.is-outlined{background-color:transparent;border-color:#209cee;-webkit-box-shadow:none;box-shadow:none;color:#209cee}.button.is-info.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-info.is-inverted.is-outlined.is-focused,.button.is-info.is-inverted.is-outlined.is-hovered,.button.is-info.is-inverted.is-outlined:focus,.button.is-info.is-inverted.is-outlined:hover{background-color:#fff;color:#209cee}.button.is-info.is-inverted.is-outlined.is-loading.is-focused:after,.button.is-info.is-inverted.is-outlined.is-loading.is-hovered:after,.button.is-info.is-inverted.is-outlined.is-loading:focus:after,.button.is-info.is-inverted.is-outlined.is-loading:hover:after{border-color:transparent transparent #209cee #209cee!important}.button.is-info.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-info.is-inverted.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-success{background-color:#23d160;border-color:transparent;color:#fff}.button.is-success.is-hovered,.button.is-success:hover{background-color:#22c65b;border-color:transparent;color:#fff}.button.is-success.is-focused,.button.is-success:focus{border-color:transparent;color:#fff}.button.is-success.is-focused:not(:active),.button.is-success:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(35,209,96,.25);box-shadow:0 0 0 .125em rgba(35,209,96,.25)}.button.is-success.is-active,.button.is-success:active{background-color:#20bc56;border-color:transparent;color:#fff}.button.is-success[disabled],fieldset[disabled] .button.is-success{background-color:#23d160;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-success.is-inverted{background-color:#fff;color:#23d160}.button.is-success.is-inverted.is-hovered,.button.is-success.is-inverted:hover{background-color:#f2f2f2}.button.is-success.is-inverted[disabled],fieldset[disabled] .button.is-success.is-inverted{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#23d160}.button.is-success.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-success.is-outlined{background-color:transparent;border-color:#23d160;color:#23d160}.button.is-success.is-outlined.is-focused,.button.is-success.is-outlined.is-hovered,.button.is-success.is-outlined:focus,.button.is-success.is-outlined:hover{background-color:#23d160;border-color:#23d160;color:#fff}.button.is-success.is-outlined.is-loading:after{border-color:transparent transparent #23d160 #23d160!important}.button.is-success.is-outlined.is-loading.is-focused:after,.button.is-success.is-outlined.is-loading.is-hovered:after,.button.is-success.is-outlined.is-loading:focus:after,.button.is-success.is-outlined.is-loading:hover:after{border-color:transparent transparent #fff #fff!important}.button.is-success.is-outlined[disabled],fieldset[disabled] .button.is-success.is-outlined{background-color:transparent;border-color:#23d160;-webkit-box-shadow:none;box-shadow:none;color:#23d160}.button.is-success.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-success.is-inverted.is-outlined.is-focused,.button.is-success.is-inverted.is-outlined.is-hovered,.button.is-success.is-inverted.is-outlined:focus,.button.is-success.is-inverted.is-outlined:hover{background-color:#fff;color:#23d160}.button.is-success.is-inverted.is-outlined.is-loading.is-focused:after,.button.is-success.is-inverted.is-outlined.is-loading.is-hovered:after,.button.is-success.is-inverted.is-outlined.is-loading:focus:after,.button.is-success.is-inverted.is-outlined.is-loading:hover:after{border-color:transparent transparent #23d160 #23d160!important}.button.is-success.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-success.is-inverted.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-warning{background-color:#ffdd57;border-color:transparent;color:rgba(0,0,0,.7)}.button.is-warning.is-hovered,.button.is-warning:hover{background-color:#ffdb4a;border-color:transparent;color:rgba(0,0,0,.7)}.button.is-warning.is-focused,.button.is-warning:focus{border-color:transparent;color:rgba(0,0,0,.7)}.button.is-warning.is-focused:not(:active),.button.is-warning:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(255,221,87,.25);box-shadow:0 0 0 .125em rgba(255,221,87,.25)}.button.is-warning.is-active,.button.is-warning:active{background-color:#ffd83d;border-color:transparent;color:rgba(0,0,0,.7)}.button.is-warning[disabled],fieldset[disabled] .button.is-warning{background-color:#ffdd57;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-warning.is-inverted{color:#ffdd57}.button.is-warning.is-inverted,.button.is-warning.is-inverted.is-hovered,.button.is-warning.is-inverted:hover{background-color:rgba(0,0,0,.7)}.button.is-warning.is-inverted[disabled],fieldset[disabled] .button.is-warning.is-inverted{background-color:rgba(0,0,0,.7);border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#ffdd57}.button.is-warning.is-loading:after{border-color:transparent transparent rgba(0,0,0,.7) rgba(0,0,0,.7)!important}.button.is-warning.is-outlined{background-color:transparent;border-color:#ffdd57;color:#ffdd57}.button.is-warning.is-outlined.is-focused,.button.is-warning.is-outlined.is-hovered,.button.is-warning.is-outlined:focus,.button.is-warning.is-outlined:hover{background-color:#ffdd57;border-color:#ffdd57;color:rgba(0,0,0,.7)}.button.is-warning.is-outlined.is-loading:after{border-color:transparent transparent #ffdd57 #ffdd57!important}.button.is-warning.is-outlined.is-loading.is-focused:after,.button.is-warning.is-outlined.is-loading.is-hovered:after,.button.is-warning.is-outlined.is-loading:focus:after,.button.is-warning.is-outlined.is-loading:hover:after{border-color:transparent transparent rgba(0,0,0,.7) rgba(0,0,0,.7)!important}.button.is-warning.is-outlined[disabled],fieldset[disabled] .button.is-warning.is-outlined{background-color:transparent;border-color:#ffdd57;-webkit-box-shadow:none;box-shadow:none;color:#ffdd57}.button.is-warning.is-inverted.is-outlined{background-color:transparent;border-color:rgba(0,0,0,.7);color:rgba(0,0,0,.7)}.button.is-warning.is-inverted.is-outlined.is-focused,.button.is-warning.is-inverted.is-outlined.is-hovered,.button.is-warning.is-inverted.is-outlined:focus,.button.is-warning.is-inverted.is-outlined:hover{background-color:rgba(0,0,0,.7);color:#ffdd57}.button.is-warning.is-inverted.is-outlined.is-loading.is-focused:after,.button.is-warning.is-inverted.is-outlined.is-loading.is-hovered:after,.button.is-warning.is-inverted.is-outlined.is-loading:focus:after,.button.is-warning.is-inverted.is-outlined.is-loading:hover:after{border-color:transparent transparent #ffdd57 #ffdd57!important}.button.is-warning.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-warning.is-inverted.is-outlined{background-color:transparent;border-color:rgba(0,0,0,.7);-webkit-box-shadow:none;box-shadow:none;color:rgba(0,0,0,.7)}.button.is-danger{background-color:#f44336;border-color:transparent;color:#fff}.button.is-danger.is-hovered,.button.is-danger:hover{background-color:#f3382a;border-color:transparent;color:#fff}.button.is-danger.is-focused,.button.is-danger:focus{border-color:transparent;color:#fff}.button.is-danger.is-focused:not(:active),.button.is-danger:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(244,67,54,.25);box-shadow:0 0 0 .125em rgba(244,67,54,.25)}.button.is-danger.is-active,.button.is-danger:active{background-color:#f32c1e;border-color:transparent;color:#fff}.button.is-danger[disabled],fieldset[disabled] .button.is-danger{background-color:#f44336;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-danger.is-inverted{background-color:#fff;color:#f44336}.button.is-danger.is-inverted.is-hovered,.button.is-danger.is-inverted:hover{background-color:#f2f2f2}.button.is-danger.is-inverted[disabled],fieldset[disabled] .button.is-danger.is-inverted{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#f44336}.button.is-danger.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-danger.is-outlined{background-color:transparent;border-color:#f44336;color:#f44336}.button.is-danger.is-outlined.is-focused,.button.is-danger.is-outlined.is-hovered,.button.is-danger.is-outlined:focus,.button.is-danger.is-outlined:hover{background-color:#f44336;border-color:#f44336;color:#fff}.button.is-danger.is-outlined.is-loading:after{border-color:transparent transparent #f44336 #f44336!important}.button.is-danger.is-outlined.is-loading.is-focused:after,.button.is-danger.is-outlined.is-loading.is-hovered:after,.button.is-danger.is-outlined.is-loading:focus:after,.button.is-danger.is-outlined.is-loading:hover:after{border-color:transparent transparent #fff #fff!important}.button.is-danger.is-outlined[disabled],fieldset[disabled] .button.is-danger.is-outlined{background-color:transparent;border-color:#f44336;-webkit-box-shadow:none;box-shadow:none;color:#f44336}.button.is-danger.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-danger.is-inverted.is-outlined.is-focused,.button.is-danger.is-inverted.is-outlined.is-hovered,.button.is-danger.is-inverted.is-outlined:focus,.button.is-danger.is-inverted.is-outlined:hover{background-color:#fff;color:#f44336}.button.is-danger.is-inverted.is-outlined.is-loading.is-focused:after,.button.is-danger.is-inverted.is-outlined.is-loading.is-hovered:after,.button.is-danger.is-inverted.is-outlined.is-loading:focus:after,.button.is-danger.is-inverted.is-outlined.is-loading:hover:after{border-color:transparent transparent #f44336 #f44336!important}.button.is-danger.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-danger.is-inverted.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-twitter{background-color:#4099ff;border-color:transparent;color:#fff}.button.is-twitter.is-hovered,.button.is-twitter:hover{background-color:#3392ff;border-color:transparent;color:#fff}.button.is-twitter.is-focused,.button.is-twitter:focus{border-color:transparent;color:#fff}.button.is-twitter.is-focused:not(:active),.button.is-twitter:focus:not(:active){-webkit-box-shadow:0 0 0 .125em rgba(64,153,255,.25);box-shadow:0 0 0 .125em rgba(64,153,255,.25)}.button.is-twitter.is-active,.button.is-twitter:active{background-color:#278bff;border-color:transparent;color:#fff}.button.is-twitter[disabled],fieldset[disabled] .button.is-twitter{background-color:#4099ff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none}.button.is-twitter.is-inverted{background-color:#fff;color:#4099ff}.button.is-twitter.is-inverted.is-hovered,.button.is-twitter.is-inverted:hover{background-color:#f2f2f2}.button.is-twitter.is-inverted[disabled],fieldset[disabled] .button.is-twitter.is-inverted{background-color:#fff;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;color:#4099ff}.button.is-twitter.is-loading:after{border-color:transparent transparent #fff #fff!important}.button.is-twitter.is-outlined{background-color:transparent;border-color:#4099ff;color:#4099ff}.button.is-twitter.is-outlined.is-focused,.button.is-twitter.is-outlined.is-hovered,.button.is-twitter.is-outlined:focus,.button.is-twitter.is-outlined:hover{background-color:#4099ff;border-color:#4099ff;color:#fff}.button.is-twitter.is-outlined.is-loading:after{border-color:transparent transparent #4099ff #4099ff!important}.button.is-twitter.is-outlined.is-loading.is-focused:after,.button.is-twitter.is-outlined.is-loading.is-hovered:after,.button.is-twitter.is-outlined.is-loading:focus:after,.button.is-twitter.is-outlined.is-loading:hover:after{border-color:transparent transparent #fff #fff!important}.button.is-twitter.is-outlined[disabled],fieldset[disabled] .button.is-twitter.is-outlined{background-color:transparent;border-color:#4099ff;-webkit-box-shadow:none;box-shadow:none;color:#4099ff}.button.is-twitter.is-inverted.is-outlined{background-color:transparent;border-color:#fff;color:#fff}.button.is-twitter.is-inverted.is-outlined.is-focused,.button.is-twitter.is-inverted.is-outlined.is-hovered,.button.is-twitter.is-inverted.is-outlined:focus,.button.is-twitter.is-inverted.is-outlined:hover{background-color:#fff;color:#4099ff}.button.is-twitter.is-inverted.is-outlined.is-loading.is-focused:after,.button.is-twitter.is-inverted.is-outlined.is-loading.is-hovered:after,.button.is-twitter.is-inverted.is-outlined.is-loading:focus:after,.button.is-twitter.is-inverted.is-outlined.is-loading:hover:after{border-color:transparent transparent #4099ff #4099ff!important}.button.is-twitter.is-inverted.is-outlined[disabled],fieldset[disabled] .button.is-twitter.is-inverted.is-outlined{background-color:transparent;border-color:#fff;-webkit-box-shadow:none;box-shadow:none;color:#fff}.button.is-small{border-radius:2px;font-size:.75rem}.button.is-normal{font-size:1rem}.button.is-medium{font-size:1.25rem}.button.is-large{font-size:1.5rem}.button[disabled],fieldset[disabled] .button{background-color:#fff;border-color:#dbdbdb;-webkit-box-shadow:none;box-shadow:none;opacity:.5}.button.is-fullwidth{display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.button.is-loading{color:transparent!important;pointer-events:none}.button.is-loading:after{position:absolute;left:calc(50% - .5em);top:calc(50% - .5em);position:absolute!important}.button.is-static{background-color:#f5f5f5;border-color:#dbdbdb;color:#7a7a7a;-webkit-box-shadow:none;box-shadow:none;pointer-events:none}.button.is-rounded{border-radius:290486px;padding-left:1em;padding-right:1em}.buttons{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.buttons .button{margin-bottom:.5rem}.buttons .button:not(:last-child):not(.is-fullwidth){margin-right:.5rem}.buttons:last-child{margin-bottom:-.5rem}.buttons:not(:last-child){margin-bottom:1rem}.buttons.are-small .button:not(.is-normal):not(.is-medium):not(.is-large){border-radius:2px;font-size:.75rem}.buttons.are-medium .button:not(.is-small):not(.is-normal):not(.is-large){font-size:1.25rem}.buttons.are-large .button:not(.is-small):not(.is-normal):not(.is-medium){font-size:1.5rem}.buttons.has-addons .button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0}.buttons.has-addons .button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.buttons.has-addons .button:last-child{margin-right:0}.buttons.has-addons .button.is-hovered,.buttons.has-addons .button:hover{z-index:2}.buttons.has-addons .button.is-active,.buttons.has-addons .button.is-focused,.buttons.has-addons .button.is-selected,.buttons.has-addons .button:active,.buttons.has-addons .button:focus{z-index:3}.buttons.has-addons .button.is-active:hover,.buttons.has-addons .button.is-focused:hover,.buttons.has-addons .button.is-selected:hover,.buttons.has-addons .button:active:hover,.buttons.has-addons .button:focus:hover{z-index:4}.buttons.has-addons .button.is-expanded{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.buttons.is-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.buttons.is-centered:not(.has-addons) .button:not(.is-fullwidth){margin-left:.25rem;margin-right:.25rem}.buttons.is-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.buttons.is-right:not(.has-addons) .button:not(.is-fullwidth){margin-left:.25rem;margin-right:.25rem}.container{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;margin:0 auto;position:relative;width:auto}@media screen and (min-width:1024px){.container{max-width:960px}.container.is-fluid{margin-left:32px;margin-right:32px;max-width:none}}@media screen and (max-width:1215px){.container.is-widescreen{max-width:1152px}}@media screen and (max-width:1407px){.container.is-fullhd{max-width:1344px}}@media screen and (min-width:1216px){.container{max-width:1152px}}@media screen and (min-width:1408px){.container{max-width:1344px}}.content li+li{margin-top:.25em}.content blockquote:not(:last-child),.content dl:not(:last-child),.content ol:not(:last-child),.content p:not(:last-child),.content pre:not(:last-child),.content table:not(:last-child),.content ul:not(:last-child){margin-bottom:1em}.content h1,.content h2,.content h3,.content h4,.content h5,.content h6{color:#363636;font-weight:600;line-height:1.125}.content h1{font-size:2em;margin-bottom:.5em}.content h1:not(:first-child){margin-top:1em}.content h2{font-size:1.75em;margin-bottom:.5714em}.content h2:not(:first-child){margin-top:1.1428em}.content h3{font-size:1.5em;margin-bottom:.6666em}.content h3:not(:first-child){margin-top:1.3333em}.content h4{font-size:1.25em;margin-bottom:.8em}.content h5{font-size:1.125em;margin-bottom:.8888em}.content h6{font-size:1em;margin-bottom:1em}.content blockquote{background-color:#f5f5f5;border-left:5px solid #dbdbdb;padding:1.25em 1.5em}.content ol{list-style-position:outside;margin-left:2em;margin-top:1em}.content ol:not([type]){list-style-type:decimal}.content ol:not([type]).is-lower-alpha{list-style-type:lower-alpha}.content ol:not([type]).is-lower-roman{list-style-type:lower-roman}.content ol:not([type]).is-upper-alpha{list-style-type:upper-alpha}.content ol:not([type]).is-upper-roman{list-style-type:upper-roman}.content ul{list-style:disc outside;margin-left:2em;margin-top:1em}.content ul ul{list-style-type:circle;margin-top:.5em}.content ul ul ul{list-style-type:square}.content dd{margin-left:2em}.content figure{margin-left:2em;margin-right:2em;text-align:center}.content figure:not(:first-child){margin-top:2em}.content figure:not(:last-child){margin-bottom:2em}.content figure img{display:inline-block}.content figure figcaption{font-style:italic}.content pre{-webkit-overflow-scrolling:touch;overflow-x:auto;padding:1.25em 1.5em;white-space:pre;word-wrap:normal}.content sub,.content sup{font-size:75%}.content table{width:100%}.content table td,.content table th{border:1px solid #dbdbdb;border-width:0 0 1px;padding:.5em .75em;vertical-align:top}.content table th{color:#363636}.content table th:not([align]){text-align:left}.content table thead td,.content table thead th{border-width:0 0 2px;color:#363636}.content table tfoot td,.content table tfoot th{border-width:2px 0 0;color:#363636}.content table tbody tr:last-child td,.content table tbody tr:last-child th{border-bottom-width:0}.content .tabs li+li{margin-top:0}.content.is-small{font-size:.75rem}.content.is-medium{font-size:1.25rem}.content.is-large{font-size:1.5rem}.icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:1.5rem;width:1.5rem}.icon.is-small{height:1rem;width:1rem}.icon.is-medium{height:2rem;width:2rem}.icon.is-large{height:3rem;width:3rem}.image{display:block;position:relative}.image img{display:block;height:auto;width:100%}.image img.is-rounded{border-radius:290486px}.image.is-16by9 .has-ratio,.image.is-16by9 img,.image.is-1by1 .has-ratio,.image.is-1by1 img,.image.is-1by2 .has-ratio,.image.is-1by2 img,.image.is-1by3 .has-ratio,.image.is-1by3 img,.image.is-2by1 .has-ratio,.image.is-2by1 img,.image.is-2by3 .has-ratio,.image.is-2by3 img,.image.is-3by1 .has-ratio,.image.is-3by1 img,.image.is-3by2 .has-ratio,.image.is-3by2 img,.image.is-3by4 .has-ratio,.image.is-3by4 img,.image.is-3by5 .has-ratio,.image.is-3by5 img,.image.is-4by3 .has-ratio,.image.is-4by3 img,.image.is-4by5 .has-ratio,.image.is-4by5 img,.image.is-5by3 .has-ratio,.image.is-5by3 img,.image.is-5by4 .has-ratio,.image.is-5by4 img,.image.is-9by16 .has-ratio,.image.is-9by16 img,.image.is-square .has-ratio,.image.is-square img{height:100%;width:100%}.image.is-1by1,.image.is-square{padding-top:100%}.image.is-5by4{padding-top:80%}.image.is-4by3{padding-top:75%}.image.is-3by2{padding-top:66.6666%}.image.is-5by3{padding-top:60%}.image.is-16by9{padding-top:56.25%}.image.is-2by1{padding-top:50%}.image.is-3by1{padding-top:33.3333%}.image.is-4by5{padding-top:125%}.image.is-3by4{padding-top:133.3333%}.image.is-2by3{padding-top:150%}.image.is-3by5{padding-top:166.6666%}.image.is-9by16{padding-top:177.7777%}.image.is-1by2{padding-top:200%}.image.is-1by3{padding-top:300%}.image.is-16x16{height:16px;width:16px}.image.is-24x24{height:24px;width:24px}.image.is-32x32{height:32px;width:32px}.image.is-48x48{height:48px;width:48px}.image.is-64x64{height:64px;width:64px}.image.is-96x96{height:96px;width:96px}.image.is-128x128{height:128px;width:128px}.notification{background-color:#f5f5f5;border-radius:4px;padding:1.25rem 2.5rem 1.25rem 1.5rem;position:relative}.notification a:not(.button):not(.dropdown-item){color:currentColor;text-decoration:underline}.notification strong{color:currentColor}.notification code,.notification pre{background:#fff}.notification pre code{background:transparent}.notification>.delete{position:absolute;right:.5rem;top:.5rem}.notification .content,.notification .subtitle,.notification .title{color:currentColor}.notification.is-white{background-color:#fff;color:#0a0a0a}.notification.is-black{background-color:#0a0a0a;color:#fff}.notification.is-light{background-color:#f5f5f5;color:#363636}.notification.is-dark{background-color:#363636;color:#f5f5f5}.notification.is-primary{background-color:#26a69a;color:#fff}.notification.is-info{background-color:#209cee;color:#fff}.notification.is-success{background-color:#23d160;color:#fff}.notification.is-warning{background-color:#ffdd57;color:rgba(0,0,0,.7)}.notification.is-danger{background-color:#f44336;color:#fff}.notification.is-twitter{background-color:#4099ff;color:#fff}.progress{-moz-appearance:none;-webkit-appearance:none;border:none;border-radius:290486px;display:block;height:1rem;overflow:hidden;padding:0;width:100%}.progress::-webkit-progress-bar{background-color:#dbdbdb}.progress::-webkit-progress-value{background-color:#4a4a4a}.progress::-moz-progress-bar{background-color:#4a4a4a}.progress::-ms-fill{background-color:#4a4a4a;border:none}.progress.is-white::-webkit-progress-value{background-color:#fff}.progress.is-white::-moz-progress-bar{background-color:#fff}.progress.is-white::-ms-fill{background-color:#fff}.progress.is-white:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#fff),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#fff 30%,#dbdbdb 0)}.progress.is-black::-webkit-progress-value{background-color:#0a0a0a}.progress.is-black::-moz-progress-bar{background-color:#0a0a0a}.progress.is-black::-ms-fill{background-color:#0a0a0a}.progress.is-black:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#0a0a0a),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#0a0a0a 30%,#dbdbdb 0)}.progress.is-light::-webkit-progress-value{background-color:#f5f5f5}.progress.is-light::-moz-progress-bar{background-color:#f5f5f5}.progress.is-light::-ms-fill{background-color:#f5f5f5}.progress.is-light:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#f5f5f5),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#f5f5f5 30%,#dbdbdb 0)}.progress.is-dark::-webkit-progress-value{background-color:#363636}.progress.is-dark::-moz-progress-bar{background-color:#363636}.progress.is-dark::-ms-fill{background-color:#363636}.progress.is-dark:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#363636),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#363636 30%,#dbdbdb 0)}.progress.is-primary::-webkit-progress-value{background-color:#26a69a}.progress.is-primary::-moz-progress-bar{background-color:#26a69a}.progress.is-primary::-ms-fill{background-color:#26a69a}.progress.is-primary:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#26a69a),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#26a69a 30%,#dbdbdb 0)}.progress.is-info::-webkit-progress-value{background-color:#209cee}.progress.is-info::-moz-progress-bar{background-color:#209cee}.progress.is-info::-ms-fill{background-color:#209cee}.progress.is-info:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#209cee),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#209cee 30%,#dbdbdb 0)}.progress.is-success::-webkit-progress-value{background-color:#23d160}.progress.is-success::-moz-progress-bar{background-color:#23d160}.progress.is-success::-ms-fill{background-color:#23d160}.progress.is-success:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#23d160),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#23d160 30%,#dbdbdb 0)}.progress.is-warning::-webkit-progress-value{background-color:#ffdd57}.progress.is-warning::-moz-progress-bar{background-color:#ffdd57}.progress.is-warning::-ms-fill{background-color:#ffdd57}.progress.is-warning:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#ffdd57),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#ffdd57 30%,#dbdbdb 0)}.progress.is-danger::-webkit-progress-value{background-color:#f44336}.progress.is-danger::-moz-progress-bar{background-color:#f44336}.progress.is-danger::-ms-fill{background-color:#f44336}.progress.is-danger:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#f44336),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#f44336 30%,#dbdbdb 0)}.progress.is-twitter::-webkit-progress-value{background-color:#4099ff}.progress.is-twitter::-moz-progress-bar{background-color:#4099ff}.progress.is-twitter::-ms-fill{background-color:#4099ff}.progress.is-twitter:indeterminate{background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#4099ff),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#4099ff 30%,#dbdbdb 0)}.progress:indeterminate{-webkit-animation-duration:1.5s;animation-duration:1.5s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:moveIndeterminate;animation-name:moveIndeterminate;-webkit-animation-timing-function:linear;animation-timing-function:linear;background-color:#dbdbdb;background-image:-webkit-gradient(linear,left top,right top,color-stop(30%,#4a4a4a),color-stop(30%,#dbdbdb));background-image:linear-gradient(90deg,#4a4a4a 30%,#dbdbdb 0);background-position:0 0;background-repeat:no-repeat;background-size:150% 150%}.progress:indeterminate::-webkit-progress-bar{background-color:transparent}.progress:indeterminate::-moz-progress-bar{background-color:transparent}.progress.is-small{height:.75rem}.progress.is-medium{height:1.25rem}.progress.is-large{height:1.5rem}@-webkit-keyframes moveIndeterminate{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes moveIndeterminate{0%{background-position:200% 0}to{background-position:-200% 0}}.table{background-color:#fff;color:#363636}.table td,.table th{border:1px solid #dbdbdb;border-width:0 0 1px;padding:.5em .75em;vertical-align:top}.table td.is-white,.table th.is-white{background-color:#fff;border-color:#fff;color:#0a0a0a}.table td.is-black,.table th.is-black{background-color:#0a0a0a;border-color:#0a0a0a;color:#fff}.table td.is-light,.table th.is-light{background-color:#f5f5f5;border-color:#f5f5f5;color:#363636}.table td.is-dark,.table th.is-dark{background-color:#363636;border-color:#363636;color:#f5f5f5}.table td.is-primary,.table th.is-primary{background-color:#26a69a;border-color:#26a69a;color:#fff}.table td.is-info,.table th.is-info{background-color:#209cee;border-color:#209cee;color:#fff}.table td.is-success,.table th.is-success{background-color:#23d160;border-color:#23d160;color:#fff}.table td.is-warning,.table th.is-warning{background-color:#ffdd57;border-color:#ffdd57;color:rgba(0,0,0,.7)}.table td.is-danger,.table th.is-danger{background-color:#f44336;border-color:#f44336;color:#fff}.table td.is-twitter,.table th.is-twitter{background-color:#4099ff;border-color:#4099ff;color:#fff}.table td.is-narrow,.table th.is-narrow{white-space:nowrap;width:1%}.table td.is-selected,.table th.is-selected{background-color:#26a69a;color:#fff}.table td.is-selected a,.table td.is-selected strong,.table th.is-selected a,.table th.is-selected strong{color:currentColor}.table th{color:#363636}.table th:not([align]){text-align:left}.table tr.is-selected{background-color:#26a69a;color:#fff}.table tr.is-selected a,.table tr.is-selected strong{color:currentColor}.table tr.is-selected td,.table tr.is-selected th{border-color:#fff;color:currentColor}.table thead{background-color:transparent}.table thead td,.table thead th{border-width:0 0 2px;color:#363636}.table tfoot{background-color:transparent}.table tfoot td,.table tfoot th{border-width:2px 0 0;color:#363636}.table tbody{background-color:transparent}.table tbody tr:last-child td,.table tbody tr:last-child th{border-bottom-width:0}.table.is-bordered td,.table.is-bordered th{border-width:1px}.table.is-bordered tr:last-child td,.table.is-bordered tr:last-child th{border-bottom-width:1px}.table.is-fullwidth{width:100%}.table.is-hoverable tbody tr:not(.is-selected):hover,.table.is-hoverable.is-striped tbody tr:not(.is-selected):hover{background-color:#fafafa}.table.is-hoverable.is-striped tbody tr:not(.is-selected):hover:nth-child(2n){background-color:#f5f5f5}.table.is-narrow td,.table.is-narrow th{padding:.25em .5em}.table.is-striped tbody tr:not(.is-selected):nth-child(2n){background-color:#fafafa}.table-container{-webkit-overflow-scrolling:touch;overflow:auto;overflow-y:hidden;max-width:100%}.tags{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.tags .tag{margin-bottom:.5rem}.tags .tag:not(:last-child){margin-right:.5rem}.tags:last-child{margin-bottom:-.5rem}.tags:not(:last-child){margin-bottom:1rem}.tags.are-medium .tag:not(.is-normal):not(.is-large){font-size:1rem}.tags.are-large .tag:not(.is-normal):not(.is-medium){font-size:1.25rem}.tags.is-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.tags.is-centered .tag{margin-right:.25rem;margin-left:.25rem}.tags.is-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.tags.is-right .tag:not(:first-child){margin-left:.5rem}.tags.has-addons .tag,.tags.is-right .tag:not(:last-child){margin-right:0}.tags.has-addons .tag:not(:first-child){margin-left:0;border-bottom-left-radius:0;border-top-left-radius:0}.tags.has-addons .tag:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.tag:not(body){-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f5f5f5;border-radius:4px;color:#4a4a4a;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:.75rem;height:2em;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;line-height:1.5;padding-left:.75em;padding-right:.75em;white-space:nowrap}.tag:not(body) .delete{margin-left:.25rem;margin-right:-.375rem}.tag:not(body).is-white{background-color:#fff;color:#0a0a0a}.tag:not(body).is-black{background-color:#0a0a0a;color:#fff}.tag:not(body).is-light{background-color:#f5f5f5;color:#363636}.tag:not(body).is-dark{background-color:#363636;color:#f5f5f5}.tag:not(body).is-primary{background-color:#26a69a;color:#fff}.tag:not(body).is-info{background-color:#209cee;color:#fff}.tag:not(body).is-success{background-color:#23d160;color:#fff}.tag:not(body).is-warning{background-color:#ffdd57;color:rgba(0,0,0,.7)}.tag:not(body).is-danger{background-color:#f44336;color:#fff}.tag:not(body).is-twitter{background-color:#4099ff;color:#fff}.tag:not(body).is-normal{font-size:.75rem}.tag:not(body).is-medium{font-size:1rem}.tag:not(body).is-large{font-size:1.25rem}.tag:not(body) .icon:first-child:not(:last-child){margin-left:-.375em;margin-right:.1875em}.tag:not(body) .icon:last-child:not(:first-child){margin-left:.1875em;margin-right:-.375em}.tag:not(body) .icon:first-child:last-child{margin-left:-.375em;margin-right:-.375em}.tag:not(body).is-delete{margin-left:1px;padding:0;position:relative;width:2em}.tag:not(body).is-delete:after,.tag:not(body).is-delete:before{background-color:currentColor;content:"";display:block;left:50%;position:absolute;top:50%;-webkit-transform:translateX(-50%) translateY(-50%) rotate(45deg);transform:translateX(-50%) translateY(-50%) rotate(45deg);-webkit-transform-origin:center center;transform-origin:center center}.tag:not(body).is-delete:before{height:1px;width:50%}.tag:not(body).is-delete:after{height:50%;width:1px}.tag:not(body).is-delete:focus,.tag:not(body).is-delete:hover{background-color:#e8e8e8}.tag:not(body).is-delete:active{background-color:#dbdbdb}.tag:not(body).is-rounded{border-radius:290486px}a.tag:hover{text-decoration:underline}.subtitle,.title{word-break:break-word}.subtitle em,.subtitle span,.title em,.title span{font-weight:inherit}.subtitle sub,.subtitle sup,.title sub,.title sup{font-size:.75em}.subtitle .tag,.title .tag{vertical-align:middle}.title{color:#363636;font-size:2rem;font-weight:600;line-height:1.125}.title strong{color:inherit;font-weight:inherit}.title+.highlight{margin-top:-.75rem}.title:not(.is-spaced)+.subtitle{margin-top:-1.25rem}.title.is-1{font-size:3rem}.title.is-2{font-size:2.5rem}.title.is-3{font-size:2rem}.title.is-4{font-size:1.5rem}.title.is-5{font-size:1.25rem}.title.is-6{font-size:1rem}.title.is-7{font-size:.75rem}.subtitle{color:#4a4a4a;font-size:1.25rem;font-weight:400;line-height:1.25}.subtitle strong{color:#363636;font-weight:600}.subtitle:not(.is-spaced)+.title{margin-top:-1.25rem}.subtitle.is-1{font-size:3rem}.subtitle.is-2{font-size:2.5rem}.subtitle.is-3{font-size:2rem}.subtitle.is-4{font-size:1.5rem}.subtitle.is-5{font-size:1.25rem}.subtitle.is-6{font-size:1rem}.subtitle.is-7{font-size:.75rem}.heading{display:block;font-size:11px;letter-spacing:1px;margin-bottom:5px;text-transform:uppercase}.highlight{font-weight:400;max-width:100%;overflow:hidden;padding:0}.highlight pre{overflow:auto;max-width:100%}.number{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f5f5f5;border-radius:290486px;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-size:1.25rem;height:2em;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:1.5rem;min-width:2.5em;padding:.25rem .5rem;text-align:center;vertical-align:top}.input,.select select,.taginput .taginput-container.is-focusable,.textarea{background-color:#fff;border-color:#dbdbdb;border-radius:4px;color:#363636}.input::-moz-placeholder,.select select::-moz-placeholder,.taginput .taginput-container.is-focusable::-moz-placeholder,.textarea::-moz-placeholder{color:rgba(54,54,54,.3)}.input::-webkit-input-placeholder,.select select::-webkit-input-placeholder,.taginput .taginput-container.is-focusable::-webkit-input-placeholder,.textarea::-webkit-input-placeholder{color:rgba(54,54,54,.3)}.input:-moz-placeholder,.select select:-moz-placeholder,.taginput .taginput-container.is-focusable:-moz-placeholder,.textarea:-moz-placeholder{color:rgba(54,54,54,.3)}.input:-ms-input-placeholder,.select select:-ms-input-placeholder,.taginput .taginput-container.is-focusable:-ms-input-placeholder,.textarea:-ms-input-placeholder{color:rgba(54,54,54,.3)}.input:hover,.is-hovered.input,.is-hovered.textarea,.select select.is-hovered,.select select:hover,.taginput .is-hovered.taginput-container.is-focusable,.taginput .taginput-container.is-focusable:hover,.textarea:hover{border-color:#b5b5b5}.input:active,.input:focus,.is-active.input,.is-active.textarea,.is-focused.input,.is-focused.textarea,.select select.is-active,.select select.is-focused,.select select:active,.select select:focus,.taginput .is-active.taginput-container.is-focusable,.taginput .is-focused.taginput-container.is-focusable,.taginput .taginput-container.is-focusable:active,.taginput .taginput-container.is-focusable:focus,.textarea:active,.textarea:focus{border-color:#26a69a;-webkit-box-shadow:0 0 0 .125em rgba(38,166,154,.25);box-shadow:0 0 0 .125em rgba(38,166,154,.25)}.select fieldset[disabled] select,.select select[disabled],.taginput [disabled].taginput-container.is-focusable,.taginput fieldset[disabled] .taginput-container.is-focusable,[disabled].input,[disabled].textarea,fieldset[disabled] .input,fieldset[disabled] .select select,fieldset[disabled] .taginput .taginput-container.is-focusable,fieldset[disabled] .textarea{background-color:#f5f5f5;border-color:#f5f5f5;-webkit-box-shadow:none;box-shadow:none;color:#7a7a7a}.select fieldset[disabled] select::-moz-placeholder,.select select[disabled]::-moz-placeholder,.taginput [disabled].taginput-container.is-focusable::-moz-placeholder,.taginput fieldset[disabled] .taginput-container.is-focusable::-moz-placeholder,[disabled].input::-moz-placeholder,[disabled].textarea::-moz-placeholder,fieldset[disabled] .input::-moz-placeholder,fieldset[disabled] .select select::-moz-placeholder,fieldset[disabled] .taginput .taginput-container.is-focusable::-moz-placeholder,fieldset[disabled] .textarea::-moz-placeholder{color:hsla(0,0%,48%,.3)}.select fieldset[disabled] select::-webkit-input-placeholder,.select select[disabled]::-webkit-input-placeholder,.taginput [disabled].taginput-container.is-focusable::-webkit-input-placeholder,.taginput fieldset[disabled] .taginput-container.is-focusable::-webkit-input-placeholder,[disabled].input::-webkit-input-placeholder,[disabled].textarea::-webkit-input-placeholder,fieldset[disabled] .input::-webkit-input-placeholder,fieldset[disabled] .select select::-webkit-input-placeholder,fieldset[disabled] .taginput .taginput-container.is-focusable::-webkit-input-placeholder,fieldset[disabled] .textarea::-webkit-input-placeholder{color:hsla(0,0%,48%,.3)}.select fieldset[disabled] select:-moz-placeholder,.select select[disabled]:-moz-placeholder,.taginput [disabled].taginput-container.is-focusable:-moz-placeholder,.taginput fieldset[disabled] .taginput-container.is-focusable:-moz-placeholder,[disabled].input:-moz-placeholder,[disabled].textarea:-moz-placeholder,fieldset[disabled] .input:-moz-placeholder,fieldset[disabled] .select select:-moz-placeholder,fieldset[disabled] .taginput .taginput-container.is-focusable:-moz-placeholder,fieldset[disabled] .textarea:-moz-placeholder{color:hsla(0,0%,48%,.3)}.select fieldset[disabled] select:-ms-input-placeholder,.select select[disabled]:-ms-input-placeholder,.taginput [disabled].taginput-container.is-focusable:-ms-input-placeholder,.taginput fieldset[disabled] .taginput-container.is-focusable:-ms-input-placeholder,[disabled].input:-ms-input-placeholder,[disabled].textarea:-ms-input-placeholder,fieldset[disabled] .input:-ms-input-placeholder,fieldset[disabled] .select select:-ms-input-placeholder,fieldset[disabled] .taginput .taginput-container.is-focusable:-ms-input-placeholder,fieldset[disabled] .textarea:-ms-input-placeholder{color:hsla(0,0%,48%,.3)}.input,.taginput .taginput-container.is-focusable,.textarea{-webkit-box-shadow:inset 0 1px 2px hsla(0,0%,4%,.1);box-shadow:inset 0 1px 2px hsla(0,0%,4%,.1);max-width:100%;width:100%}.taginput [readonly].taginput-container.is-focusable,[readonly].input,[readonly].textarea{-webkit-box-shadow:none;box-shadow:none}.is-white.input,.is-white.textarea,.taginput .is-white.taginput-container.is-focusable{border-color:#fff}.is-white.input:active,.is-white.input:focus,.is-white.is-active.input,.is-white.is-active.textarea,.is-white.is-focused.input,.is-white.is-focused.textarea,.is-white.textarea:active,.is-white.textarea:focus,.taginput .is-white.is-active.taginput-container.is-focusable,.taginput .is-white.is-focused.taginput-container.is-focusable,.taginput .is-white.taginput-container.is-focusable:active,.taginput .is-white.taginput-container.is-focusable:focus{-webkit-box-shadow:0 0 0 .125em hsla(0,0%,100%,.25);box-shadow:0 0 0 .125em hsla(0,0%,100%,.25)}.is-black.input,.is-black.textarea,.taginput .is-black.taginput-container.is-focusable{border-color:#0a0a0a}.is-black.input:active,.is-black.input:focus,.is-black.is-active.input,.is-black.is-active.textarea,.is-black.is-focused.input,.is-black.is-focused.textarea,.is-black.textarea:active,.is-black.textarea:focus,.taginput .is-black.is-active.taginput-container.is-focusable,.taginput .is-black.is-focused.taginput-container.is-focusable,.taginput .is-black.taginput-container.is-focusable:active,.taginput .is-black.taginput-container.is-focusable:focus{-webkit-box-shadow:0 0 0 .125em hsla(0,0%,4%,.25);box-shadow:0 0 0 .125em hsla(0,0%,4%,.25)}.is-light.input,.is-light.textarea,.taginput .is-light.taginput-container.is-focusable{border-color:#f5f5f5}.is-light.input:active,.is-light.input:focus,.is-light.is-active.input,.is-light.is-active.textarea,.is-light.is-focused.input,.is-light.is-focused.textarea,.is-light.textarea:active,.is-light.textarea:focus,.taginput .is-light.is-active.taginput-container.is-focusable,.taginput .is-light.is-focused.taginput-container.is-focusable,.taginput .is-light.taginput-container.is-focusable:active,.taginput .is-light.taginput-container.is-focusable:focus{-webkit-box-shadow:0 0 0 .125em hsla(0,0%,96%,.25);box-shadow:0 0 0 .125em hsla(0,0%,96%,.25)}.is-dark.input,.is-dark.textarea,.taginput .is-dark.taginput-container.is-focusable{border-color:#363636}.is-dark.input:active,.is-dark.input:focus,.is-dark.is-active.input,.is-dark.is-active.textarea,.is-dark.is-focused.input,.is-dark.is-focused.textarea,.is-dark.textarea:active,.is-dark.textarea:focus,.taginput .is-dark.is-active.taginput-container.is-focusable,.taginput .is-dark.is-focused.taginput-container.is-focusable,.taginput .is-dark.taginput-container.is-focusable:active,.taginput .is-dark.taginput-container.is-focusable:focus{-webkit-box-shadow:0 0 0 .125em rgba(54,54,54,.25);box-shadow:0 0 0 .125em rgba(54,54,54,.25)}.is-primary.input,.is-primary.textarea,.taginput .is-primary.taginput-container.is-focusable{border-color:#26a69a}.is-primary.input:active,.is-primary.input:focus,.is-primary.is-active.input,.is-primary.is-active.textarea,.is-primary.is-focused.input,.is-primary.is-focused.textarea,.is-primary.textarea:active,.is-primary.textarea:focus,.taginput .is-primary.is-active.taginput-container.is-focusable,.taginput .is-primary.is-focused.taginput-container.is-focusable,.taginput .is-primary.taginput-container.is-focusable:active,.taginput .is-primary.taginput-container.is-focusable:focus{-webkit-box-shadow:0 0 0 .125em rgba(38,166,154,.25);box-shadow:0 0 0 .125em rgba(38,166,154,.25)}.is-info.input,.is-info.textarea,.taginput .is-info.taginput-container.is-focusable{border-color:#209cee}.is-info.input:active,.is-info.input:focus,.is-info.is-active.input,.is-info.is-active.textarea,.is-info.is-focused.input,.is-info.is-focused.textarea,.is-info.textarea:active,.is-info.textarea:focus,.taginput .is-info.is-active.taginput-container.is-focusable,.taginput .is-info.is-focused.taginput-container.is-focusable,.taginput .is-info.taginput-container.is-focusable:active,.taginput .is-info.taginput-container.is-focusable:focus{-webkit-box-shadow:0 0 0 .125em rgba(32,156,238,.25);box-shadow:0 0 0 .125em rgba(32,156,238,.25)}.is-success.input,.is-success.textarea,.taginput .is-success.taginput-container.is-focusable{border-color:#23d160}.is-success.input:active,.is-success.input:focus,.is-success.is-active.input,.is-success.is-active.textarea,.is-success.is-focused.input,.is-success.is-focused.textarea,.is-success.textarea:active,.is-success.textarea:focus,.taginput .is-success.is-active.taginput-container.is-focusable,.taginput .is-success.is-focused.taginput-container.is-focusable,.taginput .is-success.taginput-container.is-focusable:active,.taginput .is-success.taginput-container.is-focusable:focus{-webkit-box-shadow:0 0 0 .125em rgba(35,209,96,.25);box-shadow:0 0 0 .125em rgba(35,209,96,.25)}.is-warning.input,.is-warning.textarea,.taginput .is-warning.taginput-container.is-focusable{border-color:#ffdd57}.is-warning.input:active,.is-warning.input:focus,.is-warning.is-active.input,.is-warning.is-active.textarea,.is-warning.is-focused.input,.is-warning.is-focused.textarea,.is-warning.textarea:active,.is-warning.textarea:focus,.taginput .is-warning.is-active.taginput-container.is-focusable,.taginput .is-warning.is-focused.taginput-container.is-focusable,.taginput .is-warning.taginput-container.is-focusable:active,.taginput .is-warning.taginput-container.is-focusable:focus{-webkit-box-shadow:0 0 0 .125em rgba(255,221,87,.25);box-shadow:0 0 0 .125em rgba(255,221,87,.25)}.is-danger.input,.is-danger.textarea,.taginput .is-danger.taginput-container.is-focusable{border-color:#f44336}.is-danger.input:active,.is-danger.input:focus,.is-danger.is-active.input,.is-danger.is-active.textarea,.is-danger.is-focused.input,.is-danger.is-focused.textarea,.is-danger.textarea:active,.is-danger.textarea:focus,.taginput .is-danger.is-active.taginput-container.is-focusable,.taginput .is-danger.is-focused.taginput-container.is-focusable,.taginput .is-danger.taginput-container.is-focusable:active,.taginput .is-danger.taginput-container.is-focusable:focus{-webkit-box-shadow:0 0 0 .125em rgba(244,67,54,.25);box-shadow:0 0 0 .125em rgba(244,67,54,.25)}.is-twitter.input,.is-twitter.textarea,.taginput .is-twitter.taginput-container.is-focusable{border-color:#4099ff}.is-twitter.input:active,.is-twitter.input:focus,.is-twitter.is-active.input,.is-twitter.is-active.textarea,.is-twitter.is-focused.input,.is-twitter.is-focused.textarea,.is-twitter.textarea:active,.is-twitter.textarea:focus,.taginput .is-twitter.is-active.taginput-container.is-focusable,.taginput .is-twitter.is-focused.taginput-container.is-focusable,.taginput .is-twitter.taginput-container.is-focusable:active,.taginput .is-twitter.taginput-container.is-focusable:focus{-webkit-box-shadow:0 0 0 .125em rgba(64,153,255,.25);box-shadow:0 0 0 .125em rgba(64,153,255,.25)}.is-small.input,.is-small.textarea,.taginput .is-small.taginput-container.is-focusable{border-radius:2px;font-size:.75rem}.is-medium.input,.is-medium.textarea,.taginput .is-medium.taginput-container.is-focusable{font-size:1.25rem}.is-large.input,.is-large.textarea,.taginput .is-large.taginput-container.is-focusable{font-size:1.5rem}.is-fullwidth.input,.is-fullwidth.textarea,.taginput .is-fullwidth.taginput-container.is-focusable{display:block;width:100%}.is-inline.input,.is-inline.textarea,.taginput .is-inline.taginput-container.is-focusable{display:inline;width:auto}.input.is-rounded,.taginput .is-rounded.taginput-container.is-focusable{border-radius:290486px;padding-left:1em;padding-right:1em}.input.is-static,.taginput .is-static.taginput-container.is-focusable{background-color:transparent;border-color:transparent;-webkit-box-shadow:none;box-shadow:none;padding-left:0;padding-right:0}.textarea{display:block;max-width:100%;min-width:100%;padding:.625em;resize:vertical}.textarea:not([rows]){max-height:600px;min-height:120px}.textarea[rows]{height:auto}.textarea.has-fixed-size{resize:none}.checkbox,.radio{cursor:pointer;display:inline-block;line-height:1.25;position:relative}.checkbox input,.radio input{cursor:pointer}.checkbox:hover,.radio:hover{color:#363636}[disabled].checkbox,[disabled].radio,fieldset[disabled] .checkbox,fieldset[disabled] .radio{color:#7a7a7a;cursor:not-allowed}.radio+.radio{margin-left:.5em}.select{display:inline-block;max-width:100%;position:relative;vertical-align:top}.select:not(.is-multiple){height:2.25em}.select:not(.is-multiple):not(.is-loading):after{border-color:#26a69a;right:1.125em;z-index:4}.select.is-rounded select{border-radius:290486px;padding-left:1em}.select select{cursor:pointer;display:block;font-size:1em;max-width:100%;outline:none}.select select::-ms-expand{display:none}.select select[disabled]:hover,fieldset[disabled] .select select:hover{border-color:#f5f5f5}.select select:not([multiple]){padding-right:2.5em}.select select[multiple]{height:auto;padding:0}.select select[multiple] option{padding:.5em 1em}.select:not(.is-multiple):not(.is-loading):hover:after{border-color:#363636}.select.is-white select,.select.is-white:not(:hover):after{border-color:#fff}.select.is-white select.is-hovered,.select.is-white select:hover{border-color:#f2f2f2}.select.is-white select.is-active,.select.is-white select.is-focused,.select.is-white select:active,.select.is-white select:focus{-webkit-box-shadow:0 0 0 .125em hsla(0,0%,100%,.25);box-shadow:0 0 0 .125em hsla(0,0%,100%,.25)}.select.is-black select,.select.is-black:not(:hover):after{border-color:#0a0a0a}.select.is-black select.is-hovered,.select.is-black select:hover{border-color:#000}.select.is-black select.is-active,.select.is-black select.is-focused,.select.is-black select:active,.select.is-black select:focus{-webkit-box-shadow:0 0 0 .125em hsla(0,0%,4%,.25);box-shadow:0 0 0 .125em hsla(0,0%,4%,.25)}.select.is-light select,.select.is-light:not(:hover):after{border-color:#f5f5f5}.select.is-light select.is-hovered,.select.is-light select:hover{border-color:#e8e8e8}.select.is-light select.is-active,.select.is-light select.is-focused,.select.is-light select:active,.select.is-light select:focus{-webkit-box-shadow:0 0 0 .125em hsla(0,0%,96%,.25);box-shadow:0 0 0 .125em hsla(0,0%,96%,.25)}.select.is-dark select,.select.is-dark:not(:hover):after{border-color:#363636}.select.is-dark select.is-hovered,.select.is-dark select:hover{border-color:#292929}.select.is-dark select.is-active,.select.is-dark select.is-focused,.select.is-dark select:active,.select.is-dark select:focus{-webkit-box-shadow:0 0 0 .125em rgba(54,54,54,.25);box-shadow:0 0 0 .125em rgba(54,54,54,.25)}.select.is-primary select,.select.is-primary:not(:hover):after{border-color:#26a69a}.select.is-primary select.is-hovered,.select.is-primary select:hover{border-color:#219187}.select.is-primary select.is-active,.select.is-primary select.is-focused,.select.is-primary select:active,.select.is-primary select:focus{-webkit-box-shadow:0 0 0 .125em rgba(38,166,154,.25);box-shadow:0 0 0 .125em rgba(38,166,154,.25)}.select.is-info select,.select.is-info:not(:hover):after{border-color:#209cee}.select.is-info select.is-hovered,.select.is-info select:hover{border-color:#118fe4}.select.is-info select.is-active,.select.is-info select.is-focused,.select.is-info select:active,.select.is-info select:focus{-webkit-box-shadow:0 0 0 .125em rgba(32,156,238,.25);box-shadow:0 0 0 .125em rgba(32,156,238,.25)}.select.is-success select,.select.is-success:not(:hover):after{border-color:#23d160}.select.is-success select.is-hovered,.select.is-success select:hover{border-color:#20bc56}.select.is-success select.is-active,.select.is-success select.is-focused,.select.is-success select:active,.select.is-success select:focus{-webkit-box-shadow:0 0 0 .125em rgba(35,209,96,.25);box-shadow:0 0 0 .125em rgba(35,209,96,.25)}.select.is-warning select,.select.is-warning:not(:hover):after{border-color:#ffdd57}.select.is-warning select.is-hovered,.select.is-warning select:hover{border-color:#ffd83d}.select.is-warning select.is-active,.select.is-warning select.is-focused,.select.is-warning select:active,.select.is-warning select:focus{-webkit-box-shadow:0 0 0 .125em rgba(255,221,87,.25);box-shadow:0 0 0 .125em rgba(255,221,87,.25)}.select.is-danger select,.select.is-danger:not(:hover):after{border-color:#f44336}.select.is-danger select.is-hovered,.select.is-danger select:hover{border-color:#f32c1e}.select.is-danger select.is-active,.select.is-danger select.is-focused,.select.is-danger select:active,.select.is-danger select:focus{-webkit-box-shadow:0 0 0 .125em rgba(244,67,54,.25);box-shadow:0 0 0 .125em rgba(244,67,54,.25)}.select.is-twitter select,.select.is-twitter:not(:hover):after{border-color:#4099ff}.select.is-twitter select.is-hovered,.select.is-twitter select:hover{border-color:#278bff}.select.is-twitter select.is-active,.select.is-twitter select.is-focused,.select.is-twitter select:active,.select.is-twitter select:focus{-webkit-box-shadow:0 0 0 .125em rgba(64,153,255,.25);box-shadow:0 0 0 .125em rgba(64,153,255,.25)}.select.is-small{border-radius:2px;font-size:.75rem}.select.is-medium{font-size:1.25rem}.select.is-large{font-size:1.5rem}.select.is-disabled:after{border-color:#7a7a7a}.select.is-fullwidth,.select.is-fullwidth select{width:100%}.select.is-loading:after{margin-top:0;position:absolute;right:.625em;top:.625em;-webkit-transform:none;transform:none}.select.is-loading.is-small:after{font-size:.75rem}.select.is-loading.is-medium:after{font-size:1.25rem}.select.is-loading.is-large:after{font-size:1.5rem}.file{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;position:relative}.file.is-white .file-cta{background-color:#fff;border-color:transparent;color:#0a0a0a}.file.is-white.is-hovered .file-cta,.file.is-white:hover .file-cta{background-color:#f9f9f9;border-color:transparent;color:#0a0a0a}.file.is-white.is-focused .file-cta,.file.is-white:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em hsla(0,0%,100%,.25);box-shadow:0 0 .5em hsla(0,0%,100%,.25);color:#0a0a0a}.file.is-white.is-active .file-cta,.file.is-white:active .file-cta{background-color:#f2f2f2;border-color:transparent;color:#0a0a0a}.file.is-black .file-cta{background-color:#0a0a0a;border-color:transparent;color:#fff}.file.is-black.is-hovered .file-cta,.file.is-black:hover .file-cta{background-color:#040404;border-color:transparent;color:#fff}.file.is-black.is-focused .file-cta,.file.is-black:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em hsla(0,0%,4%,.25);box-shadow:0 0 .5em hsla(0,0%,4%,.25);color:#fff}.file.is-black.is-active .file-cta,.file.is-black:active .file-cta{background-color:#000;border-color:transparent;color:#fff}.file.is-light .file-cta{background-color:#f5f5f5;border-color:transparent;color:#363636}.file.is-light.is-hovered .file-cta,.file.is-light:hover .file-cta{background-color:#eee;border-color:transparent;color:#363636}.file.is-light.is-focused .file-cta,.file.is-light:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em hsla(0,0%,96%,.25);box-shadow:0 0 .5em hsla(0,0%,96%,.25);color:#363636}.file.is-light.is-active .file-cta,.file.is-light:active .file-cta{background-color:#e8e8e8;border-color:transparent;color:#363636}.file.is-dark .file-cta{background-color:#363636;border-color:transparent;color:#f5f5f5}.file.is-dark.is-hovered .file-cta,.file.is-dark:hover .file-cta{background-color:#2f2f2f;border-color:transparent;color:#f5f5f5}.file.is-dark.is-focused .file-cta,.file.is-dark:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(54,54,54,.25);box-shadow:0 0 .5em rgba(54,54,54,.25);color:#f5f5f5}.file.is-dark.is-active .file-cta,.file.is-dark:active .file-cta{background-color:#292929;border-color:transparent;color:#f5f5f5}.file.is-primary .file-cta{background-color:#26a69a;border-color:transparent;color:#fff}.file.is-primary.is-hovered .file-cta,.file.is-primary:hover .file-cta{background-color:#249c90;border-color:transparent;color:#fff}.file.is-primary.is-focused .file-cta,.file.is-primary:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(38,166,154,.25);box-shadow:0 0 .5em rgba(38,166,154,.25);color:#fff}.file.is-primary.is-active .file-cta,.file.is-primary:active .file-cta{background-color:#219187;border-color:transparent;color:#fff}.file.is-info .file-cta{background-color:#209cee;border-color:transparent;color:#fff}.file.is-info.is-hovered .file-cta,.file.is-info:hover .file-cta{background-color:#1496ed;border-color:transparent;color:#fff}.file.is-info.is-focused .file-cta,.file.is-info:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(32,156,238,.25);box-shadow:0 0 .5em rgba(32,156,238,.25);color:#fff}.file.is-info.is-active .file-cta,.file.is-info:active .file-cta{background-color:#118fe4;border-color:transparent;color:#fff}.file.is-success .file-cta{background-color:#23d160;border-color:transparent;color:#fff}.file.is-success.is-hovered .file-cta,.file.is-success:hover .file-cta{background-color:#22c65b;border-color:transparent;color:#fff}.file.is-success.is-focused .file-cta,.file.is-success:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(35,209,96,.25);box-shadow:0 0 .5em rgba(35,209,96,.25);color:#fff}.file.is-success.is-active .file-cta,.file.is-success:active .file-cta{background-color:#20bc56;border-color:transparent;color:#fff}.file.is-warning .file-cta{background-color:#ffdd57;border-color:transparent;color:rgba(0,0,0,.7)}.file.is-warning.is-hovered .file-cta,.file.is-warning:hover .file-cta{background-color:#ffdb4a;border-color:transparent;color:rgba(0,0,0,.7)}.file.is-warning.is-focused .file-cta,.file.is-warning:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(255,221,87,.25);box-shadow:0 0 .5em rgba(255,221,87,.25);color:rgba(0,0,0,.7)}.file.is-warning.is-active .file-cta,.file.is-warning:active .file-cta{background-color:#ffd83d;border-color:transparent;color:rgba(0,0,0,.7)}.file.is-danger .file-cta{background-color:#f44336;border-color:transparent;color:#fff}.file.is-danger.is-hovered .file-cta,.file.is-danger:hover .file-cta{background-color:#f3382a;border-color:transparent;color:#fff}.file.is-danger.is-focused .file-cta,.file.is-danger:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(244,67,54,.25);box-shadow:0 0 .5em rgba(244,67,54,.25);color:#fff}.file.is-danger.is-active .file-cta,.file.is-danger:active .file-cta{background-color:#f32c1e;border-color:transparent;color:#fff}.file.is-twitter .file-cta{background-color:#4099ff;border-color:transparent;color:#fff}.file.is-twitter.is-hovered .file-cta,.file.is-twitter:hover .file-cta{background-color:#3392ff;border-color:transparent;color:#fff}.file.is-twitter.is-focused .file-cta,.file.is-twitter:focus .file-cta{border-color:transparent;-webkit-box-shadow:0 0 .5em rgba(64,153,255,.25);box-shadow:0 0 .5em rgba(64,153,255,.25);color:#fff}.file.is-twitter.is-active .file-cta,.file.is-twitter:active .file-cta{background-color:#278bff;border-color:transparent;color:#fff}.file.is-small{font-size:.75rem}.file.is-medium{font-size:1.25rem}.file.is-medium .file-icon .fa{font-size:21px}.file.is-large{font-size:1.5rem}.file.is-large .file-icon .fa{font-size:28px}.file.has-name .file-cta{border-bottom-right-radius:0;border-top-right-radius:0}.file.has-name .file-name{border-bottom-left-radius:0;border-top-left-radius:0}.file.has-name.is-empty .file-cta{border-radius:4px}.file.has-name.is-empty .file-name{display:none}.file.is-boxed .file-cta,.file.is-boxed .file-label{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.file.is-boxed .file-cta{height:auto;padding:1em 3em}.file.is-boxed .file-name{border-width:0 1px 1px}.file.is-boxed .file-icon{height:1.5em;width:1.5em}.file.is-boxed .file-icon .fa{font-size:21px}.file.is-boxed.is-small .file-icon .fa{font-size:14px}.file.is-boxed.is-medium .file-icon .fa{font-size:28px}.file.is-boxed.is-large .file-icon .fa{font-size:35px}.file.is-boxed.has-name .file-cta{border-radius:4px 4px 0 0}.file.is-boxed.has-name .file-name{border-radius:0 0 4px 4px;border-width:0 1px 1px}.file.is-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.file.is-fullwidth .file-label{width:100%}.file.is-fullwidth .file-name{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;max-width:none}.file.is-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.file.is-right .file-cta{border-radius:0 4px 4px 0}.file.is-right .file-name{border-radius:4px 0 0 4px;border-width:1px 0 1px 1px;-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1}.file-label{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;cursor:pointer;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;overflow:hidden;position:relative}.file-label:hover .file-cta{background-color:#eee;color:#363636}.file-label:hover .file-name{border-color:#d5d5d5}.file-label:active .file-cta{background-color:#e8e8e8;color:#363636}.file-label:active .file-name{border-color:#cfcfcf}.file-input{height:100%;left:0;opacity:0;outline:none;position:absolute;top:0;width:100%}.file-cta,.file-name{border-color:#dbdbdb;border-radius:4px;font-size:1em;padding-left:1em;padding-right:1em;white-space:nowrap}.file-cta{background-color:#f5f5f5;color:#4a4a4a}.file-name{border-color:#dbdbdb;border-style:solid;border-width:1px 1px 1px 0;display:block;max-width:16em;overflow:hidden;text-align:left;text-overflow:ellipsis}.file-icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;height:1em;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-right:.5em;width:1em}.file-icon .fa{font-size:14px}.label{color:#363636;display:block;font-size:1rem;font-weight:700}.label:not(:last-child){margin-bottom:.5em}.label.is-small{font-size:.75rem}.label.is-medium{font-size:1.25rem}.label.is-large{font-size:1.5rem}.help{display:block;font-size:.75rem;margin-top:.25rem}.help.is-white{color:#fff}.help.is-black{color:#0a0a0a}.help.is-light{color:#f5f5f5}.help.is-dark{color:#363636}.help.is-primary{color:#26a69a}.help.is-info{color:#209cee}.help.is-success{color:#23d160}.help.is-warning{color:#ffdd57}.help.is-danger{color:#f44336}.help.is-twitter{color:#4099ff}.field:not(:last-child){margin-bottom:.75rem}.field.has-addons{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.field.has-addons .control:not(:last-child){margin-right:-1px}.field.has-addons .control:not(:first-child):not(:last-child) .button,.field.has-addons .control:not(:first-child):not(:last-child) .input,.field.has-addons .control:not(:first-child):not(:last-child) .select select,.field.has-addons .control:not(:first-child):not(:last-child) .taginput .taginput-container.is-focusable,.taginput .field.has-addons .control:not(:first-child):not(:last-child) .taginput-container.is-focusable{border-radius:0}.field.has-addons .control:first-child:not(:only-child) .button,.field.has-addons .control:first-child:not(:only-child) .input,.field.has-addons .control:first-child:not(:only-child) .select select,.field.has-addons .control:first-child:not(:only-child) .taginput .taginput-container.is-focusable,.taginput .field.has-addons .control:first-child:not(:only-child) .taginput-container.is-focusable{border-bottom-right-radius:0;border-top-right-radius:0}.field.has-addons .control:last-child:not(:only-child) .button,.field.has-addons .control:last-child:not(:only-child) .input,.field.has-addons .control:last-child:not(:only-child) .select select,.field.has-addons .control:last-child:not(:only-child) .taginput .taginput-container.is-focusable,.taginput .field.has-addons .control:last-child:not(:only-child) .taginput-container.is-focusable{border-bottom-left-radius:0;border-top-left-radius:0}.field.has-addons .control .button:not([disabled]).is-hovered,.field.has-addons .control .button:not([disabled]):hover,.field.has-addons .control .input:not([disabled]).is-hovered,.field.has-addons .control .input:not([disabled]):hover,.field.has-addons .control .select select:not([disabled]).is-hovered,.field.has-addons .control .select select:not([disabled]):hover,.field.has-addons .control .taginput .taginput-container.is-focusable:not([disabled]).is-hovered,.field.has-addons .control .taginput .taginput-container.is-focusable:not([disabled]):hover,.taginput .field.has-addons .control .taginput-container.is-focusable:not([disabled]).is-hovered,.taginput .field.has-addons .control .taginput-container.is-focusable:not([disabled]):hover{z-index:2}.field.has-addons .control .button:not([disabled]).is-active,.field.has-addons .control .button:not([disabled]).is-focused,.field.has-addons .control .button:not([disabled]):active,.field.has-addons .control .button:not([disabled]):focus,.field.has-addons .control .input:not([disabled]).is-active,.field.has-addons .control .input:not([disabled]).is-focused,.field.has-addons .control .input:not([disabled]):active,.field.has-addons .control .input:not([disabled]):focus,.field.has-addons .control .select select:not([disabled]).is-active,.field.has-addons .control .select select:not([disabled]).is-focused,.field.has-addons .control .select select:not([disabled]):active,.field.has-addons .control .select select:not([disabled]):focus,.field.has-addons .control .taginput .taginput-container.is-focusable:not([disabled]).is-active,.field.has-addons .control .taginput .taginput-container.is-focusable:not([disabled]).is-focused,.field.has-addons .control .taginput .taginput-container.is-focusable:not([disabled]):active,.field.has-addons .control .taginput .taginput-container.is-focusable:not([disabled]):focus,.taginput .field.has-addons .control .taginput-container.is-focusable:not([disabled]).is-active,.taginput .field.has-addons .control .taginput-container.is-focusable:not([disabled]).is-focused,.taginput .field.has-addons .control .taginput-container.is-focusable:not([disabled]):active,.taginput .field.has-addons .control .taginput-container.is-focusable:not([disabled]):focus{z-index:3}.field.has-addons .control .button:not([disabled]).is-active:hover,.field.has-addons .control .button:not([disabled]).is-focused:hover,.field.has-addons .control .button:not([disabled]):active:hover,.field.has-addons .control .button:not([disabled]):focus:hover,.field.has-addons .control .input:not([disabled]).is-active:hover,.field.has-addons .control .input:not([disabled]).is-focused:hover,.field.has-addons .control .input:not([disabled]):active:hover,.field.has-addons .control .input:not([disabled]):focus:hover,.field.has-addons .control .select select:not([disabled]).is-active:hover,.field.has-addons .control .select select:not([disabled]).is-focused:hover,.field.has-addons .control .select select:not([disabled]):active:hover,.field.has-addons .control .select select:not([disabled]):focus:hover,.field.has-addons .control .taginput .taginput-container.is-focusable:not([disabled]).is-active:hover,.field.has-addons .control .taginput .taginput-container.is-focusable:not([disabled]).is-focused:hover,.field.has-addons .control .taginput .taginput-container.is-focusable:not([disabled]):active:hover,.field.has-addons .control .taginput .taginput-container.is-focusable:not([disabled]):focus:hover,.taginput .field.has-addons .control .taginput-container.is-focusable:not([disabled]).is-active:hover,.taginput .field.has-addons .control .taginput-container.is-focusable:not([disabled]).is-focused:hover,.taginput .field.has-addons .control .taginput-container.is-focusable:not([disabled]):active:hover,.taginput .field.has-addons .control .taginput-container.is-focusable:not([disabled]):focus:hover{z-index:4}.field.has-addons .control.is-expanded{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.field.has-addons.has-addons-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.field.has-addons.has-addons-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.field.has-addons.has-addons-fullwidth .control{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0}.field.is-grouped{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.field.is-grouped>.control{-ms-flex-negative:0;flex-shrink:0}.field.is-grouped>.control:not(:last-child){margin-bottom:0;margin-right:.75rem}.field.is-grouped>.control.is-expanded{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.field.is-grouped.is-grouped-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.field.is-grouped.is-grouped-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.field.is-grouped.is-grouped-multiline{-ms-flex-wrap:wrap;flex-wrap:wrap}.field.is-grouped.is-grouped-multiline>.control:last-child,.field.is-grouped.is-grouped-multiline>.control:not(:last-child){margin-bottom:.75rem}.field.is-grouped.is-grouped-multiline:last-child{margin-bottom:-.75rem}.field.is-grouped.is-grouped-multiline:not(:last-child){margin-bottom:0}@media print,screen and (min-width:769px){.field.is-horizontal{display:-webkit-box;display:-ms-flexbox;display:flex}}.field-label .label{font-size:inherit}@media screen and (max-width:768px){.field-label{margin-bottom:.5rem}}@media print,screen and (min-width:769px){.field-label{-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;margin-right:1.5rem;text-align:right}.field-label.is-small{font-size:.75rem;padding-top:.375em}.field-label.is-normal{padding-top:.375em}.field-label.is-medium{font-size:1.25rem;padding-top:.375em}.field-label.is-large{font-size:1.5rem;padding-top:.375em}}.field-body .field .field{margin-bottom:0}@media print,screen and (min-width:769px){.field-body{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:5;-ms-flex-positive:5;flex-grow:5;-ms-flex-negative:1;flex-shrink:1}.field-body .field{margin-bottom:0}.field-body>.field{-ms-flex-negative:1;flex-shrink:1}.field-body>.field:not(.is-narrow){-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.field-body>.field:not(:last-child){margin-right:.75rem}}.control{-webkit-box-sizing:border-box;box-sizing:border-box;clear:both;font-size:1rem;position:relative;text-align:left}.control.has-icons-left .input:focus~.icon,.control.has-icons-left .select:focus~.icon,.control.has-icons-left .taginput .taginput-container.is-focusable:focus~.icon,.control.has-icons-right .input:focus~.icon,.control.has-icons-right .select:focus~.icon,.control.has-icons-right .taginput .taginput-container.is-focusable:focus~.icon,.taginput .control.has-icons-left .taginput-container.is-focusable:focus~.icon,.taginput .control.has-icons-right .taginput-container.is-focusable:focus~.icon{color:#7a7a7a}.control.has-icons-left .input.is-small~.icon,.control.has-icons-left .select.is-small~.icon,.control.has-icons-left .taginput .is-small.taginput-container.is-focusable~.icon,.control.has-icons-right .input.is-small~.icon,.control.has-icons-right .select.is-small~.icon,.control.has-icons-right .taginput .is-small.taginput-container.is-focusable~.icon,.taginput .control.has-icons-left .is-small.taginput-container.is-focusable~.icon,.taginput .control.has-icons-right .is-small.taginput-container.is-focusable~.icon{font-size:.75rem}.control.has-icons-left .input.is-medium~.icon,.control.has-icons-left .select.is-medium~.icon,.control.has-icons-left .taginput .is-medium.taginput-container.is-focusable~.icon,.control.has-icons-right .input.is-medium~.icon,.control.has-icons-right .select.is-medium~.icon,.control.has-icons-right .taginput .is-medium.taginput-container.is-focusable~.icon,.taginput .control.has-icons-left .is-medium.taginput-container.is-focusable~.icon,.taginput .control.has-icons-right .is-medium.taginput-container.is-focusable~.icon{font-size:1.25rem}.control.has-icons-left .input.is-large~.icon,.control.has-icons-left .select.is-large~.icon,.control.has-icons-left .taginput .is-large.taginput-container.is-focusable~.icon,.control.has-icons-right .input.is-large~.icon,.control.has-icons-right .select.is-large~.icon,.control.has-icons-right .taginput .is-large.taginput-container.is-focusable~.icon,.taginput .control.has-icons-left .is-large.taginput-container.is-focusable~.icon,.taginput .control.has-icons-right .is-large.taginput-container.is-focusable~.icon{font-size:1.5rem}.control.has-icons-left .icon,.control.has-icons-right .icon{color:#dbdbdb;height:2.25em;pointer-events:none;position:absolute;top:0;width:2.25em;z-index:4}.control.has-icons-left .input,.control.has-icons-left .select select,.control.has-icons-left .taginput .taginput-container.is-focusable,.taginput .control.has-icons-left .taginput-container.is-focusable{padding-left:2.25em}.control.has-icons-left .icon.is-left{left:0}.control.has-icons-right .input,.control.has-icons-right .select select,.control.has-icons-right .taginput .taginput-container.is-focusable,.taginput .control.has-icons-right .taginput-container.is-focusable{padding-right:2.25em}.control.has-icons-right .icon.is-right{right:0}.control.is-loading:after{position:absolute!important;right:.625em;top:.625em;z-index:4}.control.is-loading.is-small:after{font-size:.75rem}.control.is-loading.is-medium:after{font-size:1.25rem}.control.is-loading.is-large:after{font-size:1.5rem}.breadcrumb{font-size:1rem;white-space:nowrap}.breadcrumb a{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#26a69a;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:0 .75em}.breadcrumb a:hover{color:#363636}.breadcrumb li{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.breadcrumb li:first-child a{padding-left:0}.breadcrumb li.is-active a{color:#363636;cursor:default;pointer-events:none}.breadcrumb li+li:before{color:#b5b5b5;content:"/"}.breadcrumb ol,.breadcrumb ul{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.breadcrumb .icon:first-child{margin-right:.5em}.breadcrumb .icon:last-child{margin-left:.5em}.breadcrumb.is-centered ol,.breadcrumb.is-centered ul{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.breadcrumb.is-right ol,.breadcrumb.is-right ul{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.breadcrumb.is-small{font-size:.75rem}.breadcrumb.is-medium{font-size:1.25rem}.breadcrumb.is-large{font-size:1.5rem}.breadcrumb.has-arrow-separator li+li:before{content:"→"}.breadcrumb.has-bullet-separator li+li:before{content:"•"}.breadcrumb.has-dot-separator li+li:before{content:"·"}.breadcrumb.has-succeeds-separator li+li:before{content:"≻"}.card{background-color:#fff;-webkit-box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);color:#4a4a4a;max-width:100%;position:relative}.card-header{background-color:transparent;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;-webkit-box-shadow:0 1px 2px hsla(0,0%,4%,.1);box-shadow:0 1px 2px hsla(0,0%,4%,.1)}.card-header,.card-header-title{display:-webkit-box;display:-ms-flexbox;display:flex}.card-header-title{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#363636;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;font-weight:700;padding:.75rem}.card-header-icon,.card-header-title.is-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.card-header-icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;padding:.75rem}.card-image{display:block;position:relative}.card-content{background-color:transparent;padding:1.5rem}.card-footer{background-color:transparent;border-top:1px solid #dbdbdb;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.card-footer,.card-footer-item{display:-webkit-box;display:-ms-flexbox;display:flex}.card-footer-item{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:.75rem}.card-footer-item:not(:last-child){border-right:1px solid #dbdbdb}.card .media:not(:last-child){margin-bottom:1.5rem}.dropdown{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;position:relative;vertical-align:top}.dropdown.is-active .dropdown-menu,.dropdown.is-hoverable:hover .dropdown-menu{display:block}.dropdown.is-right .dropdown-menu{left:auto;right:0}.dropdown.is-up .dropdown-menu{bottom:100%;padding-bottom:4px;padding-top:0;top:auto}.dropdown-menu{display:none;left:0;min-width:12rem;padding-top:4px;position:absolute;top:100%;z-index:20}.dropdown-content{background-color:#fff;border-radius:4px;-webkit-box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);padding-bottom:.5rem;padding-top:.5rem}.dropdown .dropdown-menu .has-link a,.dropdown-item{color:#4a4a4a;display:block;font-size:.875rem;line-height:1.5;padding:.375rem 1rem;position:relative}.dropdown .dropdown-menu .has-link a,a.dropdown-item,button.dropdown-item{padding-right:3rem;text-align:left;white-space:nowrap;width:100%}.dropdown .dropdown-menu .has-link a:hover,a.dropdown-item:hover,button.dropdown-item:hover{background-color:#f5f5f5;color:#0a0a0a}.dropdown .dropdown-menu .has-link a.is-active,a.dropdown-item.is-active,button.dropdown-item.is-active{background-color:#26a69a;color:#fff}.dropdown-divider{background-color:#dbdbdb;border:none;display:block;height:1px;margin:.5rem 0}.level{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.level code{border-radius:4px}.level img{display:inline-block;vertical-align:top}.level.is-mobile,.level.is-mobile .level-left,.level.is-mobile .level-right{display:-webkit-box;display:-ms-flexbox;display:flex}.level.is-mobile .level-left+.level-right{margin-top:0}.level.is-mobile .level-item:not(:last-child){margin-bottom:0;margin-right:.75rem}.level.is-mobile .level-item:not(.is-narrow){-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}@media print,screen and (min-width:769px){.level{display:-webkit-box;display:-ms-flexbox;display:flex}.level>.level-item:not(.is-narrow){-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}}.level-item{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-preferred-size:auto;flex-basis:auto;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.level-item .subtitle,.level-item .title{margin-bottom:0}@media screen and (max-width:768px){.level-item:not(:last-child){margin-bottom:.75rem}}.level-left,.level-right{-ms-flex-preferred-size:auto;flex-basis:auto;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0}.level-left .level-item.is-flexible,.level-right .level-item.is-flexible{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}@media print,screen and (min-width:769px){.level-left .level-item:not(:last-child),.level-right .level-item:not(:last-child){margin-right:.75rem}}.level-left{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}@media screen and (max-width:768px){.level-left+.level-right{margin-top:1.5rem}}@media print,screen and (min-width:769px){.level-left{display:-webkit-box;display:-ms-flexbox;display:flex}}.level-right{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}@media print,screen and (min-width:769px){.level-right{display:-webkit-box;display:-ms-flexbox;display:flex}}.list{background-color:#fff;border-radius:4px;-webkit-box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1)}.list-item{display:block;padding:.5em 1em}.list-item:not(a){color:#4a4a4a}.list-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-item:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px}.list-item:not(:last-child){border-bottom:1px solid #dbdbdb}.list-item.is-active{background-color:#26a69a;color:#fff}a.list-item{background-color:#f5f5f5;cursor:pointer}.media{-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;text-align:left}.media .content:not(:last-child){margin-bottom:.75rem}.media .media{border-top:1px solid hsla(0,0%,86%,.5);display:-webkit-box;display:-ms-flexbox;display:flex;padding-top:.75rem}.media .media .content:not(:last-child),.media .media .control:not(:last-child){margin-bottom:.5rem}.media .media .media{padding-top:.5rem}.media .media .media+.media{margin-top:.5rem}.media+.media{border-top:1px solid hsla(0,0%,86%,.5);margin-top:1rem;padding-top:1rem}.media.is-large+.media{margin-top:1.5rem;padding-top:1.5rem}.media-left,.media-right{-ms-flex-preferred-size:auto;flex-basis:auto;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0}.media-left{margin-right:1rem}.media-right{margin-left:1rem}.media-content{-ms-flex-preferred-size:auto;flex-basis:auto;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;text-align:left}@media screen and (max-width:768px){.media-content{overflow-x:auto}}.menu{font-size:1rem}.menu.is-small{font-size:.75rem}.menu.is-medium{font-size:1.25rem}.menu.is-large{font-size:1.5rem}.menu-list{line-height:1.25}.menu-list a{border-radius:2px;color:#4a4a4a;display:block;padding:.5em .75em}.menu-list a:hover{background-color:#f5f5f5;color:#363636}.menu-list a.is-active{background-color:#26a69a;color:#fff}.menu-list li ul{border-left:1px solid #dbdbdb;margin:.75em;padding-left:.75em}.menu-label{color:#7a7a7a;font-size:.75em;letter-spacing:.1em;text-transform:uppercase}.menu-label:not(:first-child){margin-top:1em}.menu-label:not(:last-child){margin-bottom:1em}.message{background-color:#f5f5f5;border-radius:4px;font-size:1rem}.message strong{color:currentColor}.message a:not(.button):not(.tag):not(.dropdown-item){color:currentColor;text-decoration:underline}.message.is-small{font-size:.75rem}.message.is-medium{font-size:1.25rem}.message.is-large{font-size:1.5rem}.message.is-white{background-color:#fff}.message.is-white .message-header{background-color:#fff;color:#0a0a0a}.message.is-white .message-body{border-color:#fff;color:#4d4d4d}.message.is-black{background-color:#fafafa}.message.is-black .message-header{background-color:#0a0a0a;color:#fff}.message.is-black .message-body{border-color:#0a0a0a;color:#0a0a0a}.message.is-light{background-color:#fafafa}.message.is-light .message-header{background-color:#f5f5f5;color:#363636}.message.is-light .message-body{border-color:#f5f5f5;color:#4f4f4f}.message.is-dark{background-color:#fafafa}.message.is-dark .message-header{background-color:#363636;color:#f5f5f5}.message.is-dark .message-body{border-color:#363636;color:#2a2a2a}.message.is-primary{background-color:#f7fdfd}.message.is-primary .message-header{background-color:#26a69a;color:#fff}.message.is-primary .message-body{border-color:#26a69a;color:#123a37}.message.is-info{background-color:#f6fbfe}.message.is-info .message-header{background-color:#209cee;color:#fff}.message.is-info .message-body{border-color:#209cee;color:#12537e}.message.is-success{background-color:#f6fef9}.message.is-success .message-header{background-color:#23d160;color:#fff}.message.is-success .message-body{border-color:#23d160;color:#0e311a}.message.is-warning{background-color:#fffdf5}.message.is-warning .message-header{background-color:#ffdd57;color:rgba(0,0,0,.7)}.message.is-warning .message-body{border-color:#ffdd57;color:#3c3108}.message.is-danger{background-color:#fef6f5}.message.is-danger .message-header{background-color:#f44336;color:#fff}.message.is-danger .message-body{border-color:#f44336;color:#b91e13}.message.is-twitter{background-color:#f5faff}.message.is-twitter .message-header{background-color:#4099ff;color:#fff}.message.is-twitter .message-body{border-color:#4099ff;color:#0a59b2}.message-header{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#4a4a4a;border-radius:4px 4px 0 0;color:#fff;display:-webkit-box;display:-ms-flexbox;display:flex;font-weight:700;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;line-height:1.25;padding:.75em 1em;position:relative}.message-header .delete{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0;margin-left:.75em}.message-header+.message-body{border-width:0;border-top-left-radius:0;border-top-right-radius:0}.message-body{border-color:#dbdbdb;border-radius:4px;border-style:solid;border-width:0 0 0 4px;color:#4a4a4a;padding:1.25em 1.5em}.message-body code,.message-body pre{background-color:#fff}.message-body pre code{background-color:transparent}.modal{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:none;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;overflow:hidden;position:fixed;z-index:40}.modal.is-active{display:-webkit-box;display:-ms-flexbox;display:flex}.modal-background{background-color:hsla(0,0%,4%,.86)}.modal-card,.modal-content{margin:0 20px;max-height:calc(100vh - 160px);overflow:auto;position:relative;width:100%}@media print,screen and (min-width:769px){.modal-card,.modal-content{margin:0 auto;max-height:calc(100vh - 40px);width:640px}}.modal-close{background:none;height:40px;position:fixed;right:20px;top:20px;width:40px}.modal-card{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;max-height:calc(100vh - 40px);overflow:hidden;-ms-overflow-y:visible}.modal-card,.modal-card-foot,.modal-card-head{display:-webkit-box;display:-ms-flexbox;display:flex}.modal-card-foot,.modal-card-head{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:#f5f5f5;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;padding:20px;position:relative}.modal-card-head{border-bottom:1px solid #dbdbdb;border-top-left-radius:6px;border-top-right-radius:6px}.modal-card-title{color:#363636;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;font-size:1.5rem;line-height:1}.modal-card-foot{border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top:1px solid #dbdbdb}.modal-card-foot .button:not(:last-child){margin-right:.5em}.modal-card-body{-webkit-overflow-scrolling:touch;background-color:#fff;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;overflow:auto;padding:20px}.navbar{background-color:#fff;min-height:3.25rem;position:relative;z-index:30}.navbar.is-white{background-color:#fff;color:#0a0a0a}.navbar.is-white .navbar-brand .navbar-link,.navbar.is-white .navbar-brand>.navbar-item{color:#0a0a0a}.navbar.is-white .navbar-brand .navbar-link.is-active,.navbar.is-white .navbar-brand .navbar-link:focus,.navbar.is-white .navbar-brand .navbar-link:hover,.navbar.is-white .navbar-brand>a.navbar-item.is-active,.navbar.is-white .navbar-brand>a.navbar-item:focus,.navbar.is-white .navbar-brand>a.navbar-item:hover{background-color:#f2f2f2;color:#0a0a0a}.navbar.is-white .navbar-brand .navbar-link:after{border-color:#0a0a0a}.navbar.is-white .navbar-burger{color:#0a0a0a}@media screen and (min-width:800px){.navbar.is-white .navbar-end .navbar-link,.navbar.is-white .navbar-end>.navbar-item,.navbar.is-white .navbar-start .navbar-link,.navbar.is-white .navbar-start>.navbar-item{color:#0a0a0a}.navbar.is-white .navbar-end .navbar-link.is-active,.navbar.is-white .navbar-end .navbar-link:focus,.navbar.is-white .navbar-end .navbar-link:hover,.navbar.is-white .navbar-end>a.navbar-item.is-active,.navbar.is-white .navbar-end>a.navbar-item:focus,.navbar.is-white .navbar-end>a.navbar-item:hover,.navbar.is-white .navbar-start .navbar-link.is-active,.navbar.is-white .navbar-start .navbar-link:focus,.navbar.is-white .navbar-start .navbar-link:hover,.navbar.is-white .navbar-start>a.navbar-item.is-active,.navbar.is-white .navbar-start>a.navbar-item:focus,.navbar.is-white .navbar-start>a.navbar-item:hover{background-color:#f2f2f2;color:#0a0a0a}.navbar.is-white .navbar-end .navbar-link:after,.navbar.is-white .navbar-start .navbar-link:after{border-color:#0a0a0a}.navbar.is-white .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-white .navbar-item.has-dropdown:focus .navbar-link,.navbar.is-white .navbar-item.has-dropdown:hover .navbar-link{background-color:#f2f2f2;color:#0a0a0a}.navbar.is-white .navbar-dropdown a.navbar-item.is-active{background-color:#fff;color:#0a0a0a}}.navbar.is-black{background-color:#0a0a0a;color:#fff}.navbar.is-black .navbar-brand .navbar-link,.navbar.is-black .navbar-brand>.navbar-item{color:#fff}.navbar.is-black .navbar-brand .navbar-link.is-active,.navbar.is-black .navbar-brand .navbar-link:focus,.navbar.is-black .navbar-brand .navbar-link:hover,.navbar.is-black .navbar-brand>a.navbar-item.is-active,.navbar.is-black .navbar-brand>a.navbar-item:focus,.navbar.is-black .navbar-brand>a.navbar-item:hover{background-color:#000;color:#fff}.navbar.is-black .navbar-brand .navbar-link:after{border-color:#fff}.navbar.is-black .navbar-burger{color:#fff}@media screen and (min-width:800px){.navbar.is-black .navbar-end .navbar-link,.navbar.is-black .navbar-end>.navbar-item,.navbar.is-black .navbar-start .navbar-link,.navbar.is-black .navbar-start>.navbar-item{color:#fff}.navbar.is-black .navbar-end .navbar-link.is-active,.navbar.is-black .navbar-end .navbar-link:focus,.navbar.is-black .navbar-end .navbar-link:hover,.navbar.is-black .navbar-end>a.navbar-item.is-active,.navbar.is-black .navbar-end>a.navbar-item:focus,.navbar.is-black .navbar-end>a.navbar-item:hover,.navbar.is-black .navbar-start .navbar-link.is-active,.navbar.is-black .navbar-start .navbar-link:focus,.navbar.is-black .navbar-start .navbar-link:hover,.navbar.is-black .navbar-start>a.navbar-item.is-active,.navbar.is-black .navbar-start>a.navbar-item:focus,.navbar.is-black .navbar-start>a.navbar-item:hover{background-color:#000;color:#fff}.navbar.is-black .navbar-end .navbar-link:after,.navbar.is-black .navbar-start .navbar-link:after{border-color:#fff}.navbar.is-black .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-black .navbar-item.has-dropdown:focus .navbar-link,.navbar.is-black .navbar-item.has-dropdown:hover .navbar-link{background-color:#000;color:#fff}.navbar.is-black .navbar-dropdown a.navbar-item.is-active{background-color:#0a0a0a;color:#fff}}.navbar.is-light{background-color:#f5f5f5;color:#363636}.navbar.is-light .navbar-brand .navbar-link,.navbar.is-light .navbar-brand>.navbar-item{color:#363636}.navbar.is-light .navbar-brand .navbar-link.is-active,.navbar.is-light .navbar-brand .navbar-link:focus,.navbar.is-light .navbar-brand .navbar-link:hover,.navbar.is-light .navbar-brand>a.navbar-item.is-active,.navbar.is-light .navbar-brand>a.navbar-item:focus,.navbar.is-light .navbar-brand>a.navbar-item:hover{background-color:#e8e8e8;color:#363636}.navbar.is-light .navbar-brand .navbar-link:after{border-color:#363636}.navbar.is-light .navbar-burger{color:#363636}@media screen and (min-width:800px){.navbar.is-light .navbar-end .navbar-link,.navbar.is-light .navbar-end>.navbar-item,.navbar.is-light .navbar-start .navbar-link,.navbar.is-light .navbar-start>.navbar-item{color:#363636}.navbar.is-light .navbar-end .navbar-link.is-active,.navbar.is-light .navbar-end .navbar-link:focus,.navbar.is-light .navbar-end .navbar-link:hover,.navbar.is-light .navbar-end>a.navbar-item.is-active,.navbar.is-light .navbar-end>a.navbar-item:focus,.navbar.is-light .navbar-end>a.navbar-item:hover,.navbar.is-light .navbar-start .navbar-link.is-active,.navbar.is-light .navbar-start .navbar-link:focus,.navbar.is-light .navbar-start .navbar-link:hover,.navbar.is-light .navbar-start>a.navbar-item.is-active,.navbar.is-light .navbar-start>a.navbar-item:focus,.navbar.is-light .navbar-start>a.navbar-item:hover{background-color:#e8e8e8;color:#363636}.navbar.is-light .navbar-end .navbar-link:after,.navbar.is-light .navbar-start .navbar-link:after{border-color:#363636}.navbar.is-light .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-light .navbar-item.has-dropdown:focus .navbar-link,.navbar.is-light .navbar-item.has-dropdown:hover .navbar-link{background-color:#e8e8e8;color:#363636}.navbar.is-light .navbar-dropdown a.navbar-item.is-active{background-color:#f5f5f5;color:#363636}}.navbar.is-dark{background-color:#363636;color:#f5f5f5}.navbar.is-dark .navbar-brand .navbar-link,.navbar.is-dark .navbar-brand>.navbar-item{color:#f5f5f5}.navbar.is-dark .navbar-brand .navbar-link.is-active,.navbar.is-dark .navbar-brand .navbar-link:focus,.navbar.is-dark .navbar-brand .navbar-link:hover,.navbar.is-dark .navbar-brand>a.navbar-item.is-active,.navbar.is-dark .navbar-brand>a.navbar-item:focus,.navbar.is-dark .navbar-brand>a.navbar-item:hover{background-color:#292929;color:#f5f5f5}.navbar.is-dark .navbar-brand .navbar-link:after{border-color:#f5f5f5}.navbar.is-dark .navbar-burger{color:#f5f5f5}@media screen and (min-width:800px){.navbar.is-dark .navbar-end .navbar-link,.navbar.is-dark .navbar-end>.navbar-item,.navbar.is-dark .navbar-start .navbar-link,.navbar.is-dark .navbar-start>.navbar-item{color:#f5f5f5}.navbar.is-dark .navbar-end .navbar-link.is-active,.navbar.is-dark .navbar-end .navbar-link:focus,.navbar.is-dark .navbar-end .navbar-link:hover,.navbar.is-dark .navbar-end>a.navbar-item.is-active,.navbar.is-dark .navbar-end>a.navbar-item:focus,.navbar.is-dark .navbar-end>a.navbar-item:hover,.navbar.is-dark .navbar-start .navbar-link.is-active,.navbar.is-dark .navbar-start .navbar-link:focus,.navbar.is-dark .navbar-start .navbar-link:hover,.navbar.is-dark .navbar-start>a.navbar-item.is-active,.navbar.is-dark .navbar-start>a.navbar-item:focus,.navbar.is-dark .navbar-start>a.navbar-item:hover{background-color:#292929;color:#f5f5f5}.navbar.is-dark .navbar-end .navbar-link:after,.navbar.is-dark .navbar-start .navbar-link:after{border-color:#f5f5f5}.navbar.is-dark .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-dark .navbar-item.has-dropdown:focus .navbar-link,.navbar.is-dark .navbar-item.has-dropdown:hover .navbar-link{background-color:#292929;color:#f5f5f5}.navbar.is-dark .navbar-dropdown a.navbar-item.is-active{background-color:#363636;color:#f5f5f5}}.navbar.is-primary{background-color:#26a69a;color:#fff}.navbar.is-primary .navbar-brand .navbar-link,.navbar.is-primary .navbar-brand>.navbar-item{color:#fff}.navbar.is-primary .navbar-brand .navbar-link.is-active,.navbar.is-primary .navbar-brand .navbar-link:focus,.navbar.is-primary .navbar-brand .navbar-link:hover,.navbar.is-primary .navbar-brand>a.navbar-item.is-active,.navbar.is-primary .navbar-brand>a.navbar-item:focus,.navbar.is-primary .navbar-brand>a.navbar-item:hover{background-color:#219187;color:#fff}.navbar.is-primary .navbar-brand .navbar-link:after{border-color:#fff}.navbar.is-primary .navbar-burger{color:#fff}@media screen and (min-width:800px){.navbar.is-primary .navbar-end .navbar-link,.navbar.is-primary .navbar-end>.navbar-item,.navbar.is-primary .navbar-start .navbar-link,.navbar.is-primary .navbar-start>.navbar-item{color:#fff}.navbar.is-primary .navbar-end .navbar-link.is-active,.navbar.is-primary .navbar-end .navbar-link:focus,.navbar.is-primary .navbar-end .navbar-link:hover,.navbar.is-primary .navbar-end>a.navbar-item.is-active,.navbar.is-primary .navbar-end>a.navbar-item:focus,.navbar.is-primary .navbar-end>a.navbar-item:hover,.navbar.is-primary .navbar-start .navbar-link.is-active,.navbar.is-primary .navbar-start .navbar-link:focus,.navbar.is-primary .navbar-start .navbar-link:hover,.navbar.is-primary .navbar-start>a.navbar-item.is-active,.navbar.is-primary .navbar-start>a.navbar-item:focus,.navbar.is-primary .navbar-start>a.navbar-item:hover{background-color:#219187;color:#fff}.navbar.is-primary .navbar-end .navbar-link:after,.navbar.is-primary .navbar-start .navbar-link:after{border-color:#fff}.navbar.is-primary .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-primary .navbar-item.has-dropdown:focus .navbar-link,.navbar.is-primary .navbar-item.has-dropdown:hover .navbar-link{background-color:#219187;color:#fff}.navbar.is-primary .navbar-dropdown a.navbar-item.is-active{background-color:#26a69a;color:#fff}}.navbar.is-info{background-color:#209cee;color:#fff}.navbar.is-info .navbar-brand .navbar-link,.navbar.is-info .navbar-brand>.navbar-item{color:#fff}.navbar.is-info .navbar-brand .navbar-link.is-active,.navbar.is-info .navbar-brand .navbar-link:focus,.navbar.is-info .navbar-brand .navbar-link:hover,.navbar.is-info .navbar-brand>a.navbar-item.is-active,.navbar.is-info .navbar-brand>a.navbar-item:focus,.navbar.is-info .navbar-brand>a.navbar-item:hover{background-color:#118fe4;color:#fff}.navbar.is-info .navbar-brand .navbar-link:after{border-color:#fff}.navbar.is-info .navbar-burger{color:#fff}@media screen and (min-width:800px){.navbar.is-info .navbar-end .navbar-link,.navbar.is-info .navbar-end>.navbar-item,.navbar.is-info .navbar-start .navbar-link,.navbar.is-info .navbar-start>.navbar-item{color:#fff}.navbar.is-info .navbar-end .navbar-link.is-active,.navbar.is-info .navbar-end .navbar-link:focus,.navbar.is-info .navbar-end .navbar-link:hover,.navbar.is-info .navbar-end>a.navbar-item.is-active,.navbar.is-info .navbar-end>a.navbar-item:focus,.navbar.is-info .navbar-end>a.navbar-item:hover,.navbar.is-info .navbar-start .navbar-link.is-active,.navbar.is-info .navbar-start .navbar-link:focus,.navbar.is-info .navbar-start .navbar-link:hover,.navbar.is-info .navbar-start>a.navbar-item.is-active,.navbar.is-info .navbar-start>a.navbar-item:focus,.navbar.is-info .navbar-start>a.navbar-item:hover{background-color:#118fe4;color:#fff}.navbar.is-info .navbar-end .navbar-link:after,.navbar.is-info .navbar-start .navbar-link:after{border-color:#fff}.navbar.is-info .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-info .navbar-item.has-dropdown:focus .navbar-link,.navbar.is-info .navbar-item.has-dropdown:hover .navbar-link{background-color:#118fe4;color:#fff}.navbar.is-info .navbar-dropdown a.navbar-item.is-active{background-color:#209cee;color:#fff}}.navbar.is-success{background-color:#23d160;color:#fff}.navbar.is-success .navbar-brand .navbar-link,.navbar.is-success .navbar-brand>.navbar-item{color:#fff}.navbar.is-success .navbar-brand .navbar-link.is-active,.navbar.is-success .navbar-brand .navbar-link:focus,.navbar.is-success .navbar-brand .navbar-link:hover,.navbar.is-success .navbar-brand>a.navbar-item.is-active,.navbar.is-success .navbar-brand>a.navbar-item:focus,.navbar.is-success .navbar-brand>a.navbar-item:hover{background-color:#20bc56;color:#fff}.navbar.is-success .navbar-brand .navbar-link:after{border-color:#fff}.navbar.is-success .navbar-burger{color:#fff}@media screen and (min-width:800px){.navbar.is-success .navbar-end .navbar-link,.navbar.is-success .navbar-end>.navbar-item,.navbar.is-success .navbar-start .navbar-link,.navbar.is-success .navbar-start>.navbar-item{color:#fff}.navbar.is-success .navbar-end .navbar-link.is-active,.navbar.is-success .navbar-end .navbar-link:focus,.navbar.is-success .navbar-end .navbar-link:hover,.navbar.is-success .navbar-end>a.navbar-item.is-active,.navbar.is-success .navbar-end>a.navbar-item:focus,.navbar.is-success .navbar-end>a.navbar-item:hover,.navbar.is-success .navbar-start .navbar-link.is-active,.navbar.is-success .navbar-start .navbar-link:focus,.navbar.is-success .navbar-start .navbar-link:hover,.navbar.is-success .navbar-start>a.navbar-item.is-active,.navbar.is-success .navbar-start>a.navbar-item:focus,.navbar.is-success .navbar-start>a.navbar-item:hover{background-color:#20bc56;color:#fff}.navbar.is-success .navbar-end .navbar-link:after,.navbar.is-success .navbar-start .navbar-link:after{border-color:#fff}.navbar.is-success .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-success .navbar-item.has-dropdown:focus .navbar-link,.navbar.is-success .navbar-item.has-dropdown:hover .navbar-link{background-color:#20bc56;color:#fff}.navbar.is-success .navbar-dropdown a.navbar-item.is-active{background-color:#23d160;color:#fff}}.navbar.is-warning{background-color:#ffdd57}.navbar.is-warning,.navbar.is-warning .navbar-brand .navbar-link,.navbar.is-warning .navbar-brand>.navbar-item{color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-brand .navbar-link.is-active,.navbar.is-warning .navbar-brand .navbar-link:focus,.navbar.is-warning .navbar-brand .navbar-link:hover,.navbar.is-warning .navbar-brand>a.navbar-item.is-active,.navbar.is-warning .navbar-brand>a.navbar-item:focus,.navbar.is-warning .navbar-brand>a.navbar-item:hover{background-color:#ffd83d;color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-brand .navbar-link:after{border-color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-burger{color:rgba(0,0,0,.7)}@media screen and (min-width:800px){.navbar.is-warning .navbar-end .navbar-link,.navbar.is-warning .navbar-end>.navbar-item,.navbar.is-warning .navbar-start .navbar-link,.navbar.is-warning .navbar-start>.navbar-item{color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-end .navbar-link.is-active,.navbar.is-warning .navbar-end .navbar-link:focus,.navbar.is-warning .navbar-end .navbar-link:hover,.navbar.is-warning .navbar-end>a.navbar-item.is-active,.navbar.is-warning .navbar-end>a.navbar-item:focus,.navbar.is-warning .navbar-end>a.navbar-item:hover,.navbar.is-warning .navbar-start .navbar-link.is-active,.navbar.is-warning .navbar-start .navbar-link:focus,.navbar.is-warning .navbar-start .navbar-link:hover,.navbar.is-warning .navbar-start>a.navbar-item.is-active,.navbar.is-warning .navbar-start>a.navbar-item:focus,.navbar.is-warning .navbar-start>a.navbar-item:hover{background-color:#ffd83d;color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-end .navbar-link:after,.navbar.is-warning .navbar-start .navbar-link:after{border-color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-warning .navbar-item.has-dropdown:focus .navbar-link,.navbar.is-warning .navbar-item.has-dropdown:hover .navbar-link{background-color:#ffd83d;color:rgba(0,0,0,.7)}.navbar.is-warning .navbar-dropdown a.navbar-item.is-active{background-color:#ffdd57;color:rgba(0,0,0,.7)}}.navbar.is-danger{background-color:#f44336;color:#fff}.navbar.is-danger .navbar-brand .navbar-link,.navbar.is-danger .navbar-brand>.navbar-item{color:#fff}.navbar.is-danger .navbar-brand .navbar-link.is-active,.navbar.is-danger .navbar-brand .navbar-link:focus,.navbar.is-danger .navbar-brand .navbar-link:hover,.navbar.is-danger .navbar-brand>a.navbar-item.is-active,.navbar.is-danger .navbar-brand>a.navbar-item:focus,.navbar.is-danger .navbar-brand>a.navbar-item:hover{background-color:#f32c1e;color:#fff}.navbar.is-danger .navbar-brand .navbar-link:after{border-color:#fff}.navbar.is-danger .navbar-burger{color:#fff}@media screen and (min-width:800px){.navbar.is-danger .navbar-end .navbar-link,.navbar.is-danger .navbar-end>.navbar-item,.navbar.is-danger .navbar-start .navbar-link,.navbar.is-danger .navbar-start>.navbar-item{color:#fff}.navbar.is-danger .navbar-end .navbar-link.is-active,.navbar.is-danger .navbar-end .navbar-link:focus,.navbar.is-danger .navbar-end .navbar-link:hover,.navbar.is-danger .navbar-end>a.navbar-item.is-active,.navbar.is-danger .navbar-end>a.navbar-item:focus,.navbar.is-danger .navbar-end>a.navbar-item:hover,.navbar.is-danger .navbar-start .navbar-link.is-active,.navbar.is-danger .navbar-start .navbar-link:focus,.navbar.is-danger .navbar-start .navbar-link:hover,.navbar.is-danger .navbar-start>a.navbar-item.is-active,.navbar.is-danger .navbar-start>a.navbar-item:focus,.navbar.is-danger .navbar-start>a.navbar-item:hover{background-color:#f32c1e;color:#fff}.navbar.is-danger .navbar-end .navbar-link:after,.navbar.is-danger .navbar-start .navbar-link:after{border-color:#fff}.navbar.is-danger .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-danger .navbar-item.has-dropdown:focus .navbar-link,.navbar.is-danger .navbar-item.has-dropdown:hover .navbar-link{background-color:#f32c1e;color:#fff}.navbar.is-danger .navbar-dropdown a.navbar-item.is-active{background-color:#f44336;color:#fff}}.navbar.is-twitter{background-color:#4099ff;color:#fff}.navbar.is-twitter .navbar-brand .navbar-link,.navbar.is-twitter .navbar-brand>.navbar-item{color:#fff}.navbar.is-twitter .navbar-brand .navbar-link.is-active,.navbar.is-twitter .navbar-brand .navbar-link:focus,.navbar.is-twitter .navbar-brand .navbar-link:hover,.navbar.is-twitter .navbar-brand>a.navbar-item.is-active,.navbar.is-twitter .navbar-brand>a.navbar-item:focus,.navbar.is-twitter .navbar-brand>a.navbar-item:hover{background-color:#278bff;color:#fff}.navbar.is-twitter .navbar-brand .navbar-link:after{border-color:#fff}.navbar.is-twitter .navbar-burger{color:#fff}@media screen and (min-width:800px){.navbar.is-twitter .navbar-end .navbar-link,.navbar.is-twitter .navbar-end>.navbar-item,.navbar.is-twitter .navbar-start .navbar-link,.navbar.is-twitter .navbar-start>.navbar-item{color:#fff}.navbar.is-twitter .navbar-end .navbar-link.is-active,.navbar.is-twitter .navbar-end .navbar-link:focus,.navbar.is-twitter .navbar-end .navbar-link:hover,.navbar.is-twitter .navbar-end>a.navbar-item.is-active,.navbar.is-twitter .navbar-end>a.navbar-item:focus,.navbar.is-twitter .navbar-end>a.navbar-item:hover,.navbar.is-twitter .navbar-start .navbar-link.is-active,.navbar.is-twitter .navbar-start .navbar-link:focus,.navbar.is-twitter .navbar-start .navbar-link:hover,.navbar.is-twitter .navbar-start>a.navbar-item.is-active,.navbar.is-twitter .navbar-start>a.navbar-item:focus,.navbar.is-twitter .navbar-start>a.navbar-item:hover{background-color:#278bff;color:#fff}.navbar.is-twitter .navbar-end .navbar-link:after,.navbar.is-twitter .navbar-start .navbar-link:after{border-color:#fff}.navbar.is-twitter .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-twitter .navbar-item.has-dropdown:focus .navbar-link,.navbar.is-twitter .navbar-item.has-dropdown:hover .navbar-link{background-color:#278bff;color:#fff}.navbar.is-twitter .navbar-dropdown a.navbar-item.is-active{background-color:#4099ff;color:#fff}}.navbar>.container{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;min-height:3.25rem;width:100%}.navbar.has-shadow{-webkit-box-shadow:0 2px 0 0 #f5f5f5;box-shadow:0 2px 0 0 #f5f5f5}.navbar.is-fixed-bottom,.navbar.is-fixed-top{left:0;position:fixed;right:0;z-index:30}.navbar.is-fixed-bottom{bottom:0}.navbar.is-fixed-bottom.has-shadow{-webkit-box-shadow:0 -2px 0 0 #f5f5f5;box-shadow:0 -2px 0 0 #f5f5f5}.navbar.is-fixed-top{top:0}body.has-navbar-fixed-top,html.has-navbar-fixed-top{padding-top:3.25rem}body.has-navbar-fixed-bottom,html.has-navbar-fixed-bottom{padding-bottom:3.25rem}.navbar-brand,.navbar-tabs{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;min-height:3.25rem}.navbar-brand a.navbar-item:focus,.navbar-brand a.navbar-item:hover{background-color:transparent}.navbar-tabs{-webkit-overflow-scrolling:touch;max-width:100vw;overflow-x:auto;overflow-y:hidden}.navbar-burger{color:#4a4a4a;cursor:pointer;display:block;height:3.25rem;position:relative;width:3.25rem;margin-left:auto}.navbar-burger span{background-color:currentColor;display:block;height:1px;left:calc(50% - 8px);position:absolute;-webkit-transform-origin:center;transform-origin:center;-webkit-transition-duration:86ms;transition-duration:86ms;-webkit-transition-property:background-color,opacity,-webkit-transform;transition-property:background-color,opacity,-webkit-transform;transition-property:background-color,opacity,transform;transition-property:background-color,opacity,transform,-webkit-transform;-webkit-transition-timing-function:ease-out;transition-timing-function:ease-out;width:16px}.navbar-burger span:first-child{top:calc(50% - 6px)}.navbar-burger span:nth-child(2){top:calc(50% - 1px)}.navbar-burger span:nth-child(3){top:calc(50% + 4px)}.navbar-burger:hover{background-color:rgba(0,0,0,.05)}.navbar-burger.is-active span:first-child{-webkit-transform:translateY(5px) rotate(45deg);transform:translateY(5px) rotate(45deg)}.navbar-burger.is-active span:nth-child(2){opacity:0}.navbar-burger.is-active span:nth-child(3){-webkit-transform:translateY(-5px) rotate(-45deg);transform:translateY(-5px) rotate(-45deg)}.navbar-menu{display:none}.navbar-item,.navbar-link{color:#4a4a4a;display:block;line-height:1.5;padding:.5rem .75rem;position:relative}.navbar-item .icon:only-child,.navbar-link .icon:only-child{margin-left:-.25rem;margin-right:-.25rem}.navbar-link,a.navbar-item{cursor:pointer}.navbar-link.is-active,.navbar-link:focus,.navbar-link:focus-within,.navbar-link:hover,a.navbar-item.is-active,a.navbar-item:focus,a.navbar-item:focus-within,a.navbar-item:hover{background-color:#fafafa;color:#26a69a}.navbar-item{display:block;-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0}.navbar-item img{max-height:1.75rem}.navbar-item.has-dropdown{padding:0}.navbar-item.is-expanded{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.navbar-item.is-tab{border-bottom:1px solid transparent;min-height:3.25rem;padding-bottom:calc(.5rem - 1px)}.navbar-item.is-tab.is-active,.navbar-item.is-tab:focus,.navbar-item.is-tab:hover{background-color:transparent;border-bottom-color:#26a69a}.navbar-item.is-tab.is-active{border-bottom-style:solid;border-bottom-width:3px;color:#26a69a;padding-bottom:calc(.5rem - 3px)}.navbar-content{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.navbar-link:not(.is-arrowless){padding-right:2.5em}.navbar-link:not(.is-arrowless):after{border-color:#26a69a;margin-top:-.375em;right:1.125em}.navbar-dropdown{font-size:.875rem;padding-bottom:.5rem;padding-top:.5rem}.navbar-dropdown .navbar-item{padding-left:1.5rem;padding-right:1.5rem}.navbar-divider{background-color:#f5f5f5;border:none;display:none;height:2px;margin:.5rem 0}@media screen and (max-width:799px){.navbar>.container{display:block}.navbar-brand .navbar-item,.navbar-tabs .navbar-item{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.navbar-link:after{display:none}.navbar-menu{background-color:#fff;-webkit-box-shadow:0 8px 16px hsla(0,0%,4%,.1);box-shadow:0 8px 16px hsla(0,0%,4%,.1);padding:.5rem 0}.navbar-menu.is-active{display:block}.navbar.is-fixed-bottom-touch,.navbar.is-fixed-top-touch{left:0;position:fixed;right:0;z-index:30}.navbar.is-fixed-bottom-touch{bottom:0}.navbar.is-fixed-bottom-touch.has-shadow{-webkit-box-shadow:0 -2px 3px hsla(0,0%,4%,.1);box-shadow:0 -2px 3px hsla(0,0%,4%,.1)}.navbar.is-fixed-top-touch{top:0}.navbar.is-fixed-top .navbar-menu,.navbar.is-fixed-top-touch .navbar-menu{-webkit-overflow-scrolling:touch;max-height:calc(100vh - 3.25rem);overflow:auto}body.has-navbar-fixed-top-touch,html.has-navbar-fixed-top-touch{padding-top:3.25rem}body.has-navbar-fixed-bottom-touch,html.has-navbar-fixed-bottom-touch{padding-bottom:3.25rem}}@media screen and (min-width:800px){.navbar,.navbar-end,.navbar-menu,.navbar-start{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex}.navbar{min-height:3.25rem}.navbar.is-spaced{padding:1rem 2rem}.navbar.is-spaced .navbar-end,.navbar.is-spaced .navbar-start{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.navbar.is-spaced .navbar-link,.navbar.is-spaced a.navbar-item{border-radius:4px}.navbar.is-transparent .navbar-link.is-active,.navbar.is-transparent .navbar-link:focus,.navbar.is-transparent .navbar-link:hover,.navbar.is-transparent a.navbar-item.is-active,.navbar.is-transparent a.navbar-item:focus,.navbar.is-transparent a.navbar-item:hover{background-color:transparent!important}.navbar.is-transparent .navbar-item.has-dropdown.is-active .navbar-link,.navbar.is-transparent .navbar-item.has-dropdown.is-hoverable:focus .navbar-link,.navbar.is-transparent .navbar-item.has-dropdown.is-hoverable:focus-within .navbar-link,.navbar.is-transparent .navbar-item.has-dropdown.is-hoverable:hover .navbar-link{background-color:transparent!important}.navbar.is-transparent .navbar-dropdown a.navbar-item:focus,.navbar.is-transparent .navbar-dropdown a.navbar-item:hover{background-color:#f5f5f5;color:#0a0a0a}.navbar.is-transparent .navbar-dropdown a.navbar-item.is-active{background-color:#f5f5f5;color:#26a69a}.navbar-burger{display:none}.navbar-item,.navbar-link{-webkit-box-align:center;-ms-flex-align:center;align-items:center}.navbar-item,.navbar-link{display:-webkit-box;display:-ms-flexbox;display:flex}.navbar-item.has-dropdown{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch}.navbar-item.has-dropdown-up .navbar-link:after{-webkit-transform:rotate(135deg) translate(.25em,-.25em);transform:rotate(135deg) translate(.25em,-.25em)}.navbar-item.has-dropdown-up .navbar-dropdown{border-bottom:2px solid #dbdbdb;border-radius:6px 6px 0 0;border-top:none;bottom:100%;-webkit-box-shadow:0 -8px 8px hsla(0,0%,4%,.1);box-shadow:0 -8px 8px hsla(0,0%,4%,.1);top:auto}.navbar-item.is-active .navbar-dropdown,.navbar-item.is-hoverable:focus .navbar-dropdown,.navbar-item.is-hoverable:focus-within .navbar-dropdown,.navbar-item.is-hoverable:hover .navbar-dropdown{display:block}.navbar-item.is-active .navbar-dropdown.is-boxed,.navbar-item.is-hoverable:focus .navbar-dropdown.is-boxed,.navbar-item.is-hoverable:focus-within .navbar-dropdown.is-boxed,.navbar-item.is-hoverable:hover .navbar-dropdown.is-boxed,.navbar.is-spaced .navbar-item.is-active .navbar-dropdown,.navbar.is-spaced .navbar-item.is-hoverable:focus .navbar-dropdown,.navbar.is-spaced .navbar-item.is-hoverable:focus-within .navbar-dropdown,.navbar.is-spaced .navbar-item.is-hoverable:hover .navbar-dropdown{opacity:1;pointer-events:auto;-webkit-transform:translateY(0);transform:translateY(0)}.navbar-menu{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0}.navbar-start{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;margin-right:auto}.navbar-end{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;margin-left:auto}.navbar-dropdown{background-color:#fff;border-bottom-left-radius:6px;border-bottom-right-radius:6px;border-top:2px solid #dbdbdb;-webkit-box-shadow:0 8px 8px hsla(0,0%,4%,.1);box-shadow:0 8px 8px hsla(0,0%,4%,.1);display:none;font-size:.875rem;left:0;min-width:100%;position:absolute;top:100%;z-index:20}.navbar-dropdown .navbar-item{padding:.375rem 1rem;white-space:nowrap}.navbar-dropdown a.navbar-item{padding-right:3rem}.navbar-dropdown a.navbar-item:focus,.navbar-dropdown a.navbar-item:hover{background-color:#f5f5f5;color:#0a0a0a}.navbar-dropdown a.navbar-item.is-active{background-color:#f5f5f5;color:#26a69a}.navbar-dropdown.is-boxed,.navbar.is-spaced .navbar-dropdown{border-radius:6px;border-top:none;-webkit-box-shadow:0 8px 8px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);box-shadow:0 8px 8px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);display:block;opacity:0;pointer-events:none;top:calc(100% - 4px);-webkit-transform:translateY(-5px);transform:translateY(-5px);-webkit-transition-duration:86ms;transition-duration:86ms;-webkit-transition-property:opacity,-webkit-transform;transition-property:opacity,-webkit-transform;transition-property:opacity,transform;transition-property:opacity,transform,-webkit-transform}.navbar-dropdown.is-right{left:auto;right:0}.navbar-divider{display:block}.container>.navbar .navbar-brand,.navbar>.container .navbar-brand{margin-left:-.75rem}.container>.navbar .navbar-menu,.navbar>.container .navbar-menu{margin-right:-.75rem}.navbar.is-fixed-bottom-desktop,.navbar.is-fixed-top-desktop{left:0;position:fixed;right:0;z-index:30}.navbar.is-fixed-bottom-desktop{bottom:0}.navbar.is-fixed-bottom-desktop.has-shadow{-webkit-box-shadow:0 -2px 3px hsla(0,0%,4%,.1);box-shadow:0 -2px 3px hsla(0,0%,4%,.1)}.navbar.is-fixed-top-desktop{top:0}body.has-navbar-fixed-top-desktop,html.has-navbar-fixed-top-desktop{padding-top:3.25rem}body.has-navbar-fixed-bottom-desktop,html.has-navbar-fixed-bottom-desktop{padding-bottom:3.25rem}body.has-spaced-navbar-fixed-top,html.has-spaced-navbar-fixed-top{padding-top:5.25rem}body.has-spaced-navbar-fixed-bottom,html.has-spaced-navbar-fixed-bottom{padding-bottom:5.25rem}.navbar-link.is-active,a.navbar-item.is-active{color:#0a0a0a}.navbar-link.is-active:not(:focus):not(:hover),a.navbar-item.is-active:not(:focus):not(:hover){background-color:transparent}.navbar-item.has-dropdown.is-active .navbar-link,.navbar-item.has-dropdown:focus .navbar-link,.navbar-item.has-dropdown:hover .navbar-link{background-color:#fafafa}}.hero.is-fullheight-with-navbar{min-height:calc(100vh - 3.25rem)}.pagination{font-size:1rem;margin:-.25rem}.pagination.is-small{font-size:.75rem}.pagination.is-medium{font-size:1.25rem}.pagination.is-large{font-size:1.5rem}.pagination.is-rounded .pagination-next,.pagination.is-rounded .pagination-previous{padding-left:1em;padding-right:1em;border-radius:290486px}.pagination.is-rounded .pagination-link{border-radius:290486px}.pagination,.pagination-list{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;text-align:center}.pagination-ellipsis,.pagination-link,.pagination-next,.pagination-previous{font-size:1em;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:.25rem;padding-left:.5em;padding-right:.5em;text-align:center}.pagination-link,.pagination-next,.pagination-previous{border-color:#dbdbdb;color:#363636;min-width:2.25em}.pagination-link:hover,.pagination-next:hover,.pagination-previous:hover{border-color:#b5b5b5;color:#363636}.pagination-link:focus,.pagination-next:focus,.pagination-previous:focus{border-color:#26a69a}.pagination-link:active,.pagination-next:active,.pagination-previous:active{-webkit-box-shadow:inset 0 1px 2px hsla(0,0%,4%,.2);box-shadow:inset 0 1px 2px hsla(0,0%,4%,.2)}.pagination-link[disabled],.pagination-next[disabled],.pagination-previous[disabled]{background-color:#dbdbdb;border-color:#dbdbdb;-webkit-box-shadow:none;box-shadow:none;color:#7a7a7a;opacity:.5}.pagination-next,.pagination-previous{padding-left:.75em;padding-right:.75em;white-space:nowrap}.pagination-link.is-current{background-color:#26a69a;border-color:#26a69a;color:#fff}.pagination-ellipsis{color:#b5b5b5;pointer-events:none}.pagination-list{-ms-flex-wrap:wrap;flex-wrap:wrap}@media screen and (max-width:768px){.pagination{-ms-flex-wrap:wrap;flex-wrap:wrap}.pagination-list li,.pagination-next,.pagination-previous{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}}@media print,screen and (min-width:769px){.pagination-list{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.pagination-previous{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.pagination-next{-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3}.pagination{-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.pagination.is-centered .pagination-previous{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.pagination.is-centered .pagination-list{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.pagination.is-centered .pagination-next{-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3}.pagination.is-right .pagination-previous{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.pagination.is-right .pagination-next{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.pagination.is-right .pagination-list{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3}}.panel{font-size:1rem}.panel:not(:last-child){margin-bottom:1.5rem}.panel-block,.panel-heading,.panel-tabs{border-bottom:1px solid #dbdbdb;border-left:1px solid #dbdbdb;border-right:1px solid #dbdbdb}.panel-block:first-child,.panel-heading:first-child,.panel-tabs:first-child{border-top:1px solid #dbdbdb}.panel-heading{background-color:#f5f5f5;border-radius:4px 4px 0 0;color:#363636;font-size:1.25em;font-weight:300;line-height:1.25;padding:.5em .75em}.panel-tabs{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:.875em;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.panel-tabs a{border-bottom:1px solid #dbdbdb;margin-bottom:-1px;padding:.5em}.panel-tabs a.is-active{border-bottom-color:#4a4a4a;color:#363636}.panel-list a{color:#4a4a4a}.panel-list a:hover{color:#26a69a}.panel-block{-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:#363636;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;padding:.5em .75em}.panel-block input[type=checkbox]{margin-right:.75em}.panel-block>.control{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;width:100%}.panel-block.is-wrapped{-ms-flex-wrap:wrap;flex-wrap:wrap}.panel-block.is-active{border-left-color:#26a69a;color:#363636}.panel-block.is-active .panel-icon{color:#26a69a}a.panel-block,label.panel-block{cursor:pointer}a.panel-block:hover,label.panel-block:hover{background-color:#f5f5f5}.panel-icon{display:inline-block;font-size:14px;height:1em;line-height:1em;text-align:center;vertical-align:top;width:1em;color:#7a7a7a;margin-right:.75em}.panel-icon .fa{font-size:inherit;line-height:inherit}.tabs{-webkit-overflow-scrolling:touch;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;font-size:1rem;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;overflow:hidden;overflow-x:auto;white-space:nowrap}.tabs,.tabs a{display:-webkit-box;display:-ms-flexbox;display:flex}.tabs a{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-bottom-color:#dbdbdb;border-bottom-style:solid;border-bottom-width:1px;color:#4a4a4a;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-bottom:-1px;padding:.5em 1em;vertical-align:top}.tabs a:hover{border-bottom-color:#363636;color:#363636}.tabs li{display:block}.tabs li.is-active a{border-bottom-color:#26a69a;color:#26a69a}.tabs ul{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-bottom-color:#dbdbdb;border-bottom-style:solid;border-bottom-width:1px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.tabs ul.is-center,.tabs ul.is-left{padding-right:.75em}.tabs ul.is-center{-webkit-box-flex:0;-ms-flex:none;flex:none;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding-left:.75em}.tabs ul.is-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;padding-left:.75em}.tabs .icon:first-child{margin-right:.5em}.tabs .icon:last-child{margin-left:.5em}.tabs.is-centered ul{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.tabs.is-right ul{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.tabs.is-boxed a{border:1px solid transparent;border-radius:4px 4px 0 0}.tabs.is-boxed a:hover{background-color:#f5f5f5;border-bottom-color:#dbdbdb}.tabs.is-boxed li.is-active a{background-color:#fff;border-color:#dbdbdb;border-bottom-color:transparent!important}.tabs.is-fullwidth li{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0}.tabs.is-toggle a{border-color:#dbdbdb;border-style:solid;border-width:1px;margin-bottom:0;position:relative}.tabs.is-toggle a:hover{background-color:#f5f5f5;border-color:#b5b5b5;z-index:2}.tabs.is-toggle li+li{margin-left:-1px}.tabs.is-toggle li:first-child a{border-radius:4px 0 0 4px}.tabs.is-toggle li:last-child a{border-radius:0 4px 4px 0}.tabs.is-toggle li.is-active a{background-color:#26a69a;border-color:#26a69a;color:#fff;z-index:1}.tabs.is-toggle ul{border-bottom:none}.tabs.is-toggle.is-toggle-rounded li:first-child a{border-bottom-left-radius:290486px;border-top-left-radius:290486px;padding-left:1.25em}.tabs.is-toggle.is-toggle-rounded li:last-child a{border-bottom-right-radius:290486px;border-top-right-radius:290486px;padding-right:1.25em}.tabs.is-small{font-size:.75rem}.tabs.is-medium{font-size:1.25rem}.tabs.is-large{font-size:1.5rem}.column{display:block;-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;padding:.75rem}.columns.is-mobile>.column.is-full,.columns.is-mobile>.column.is-narrow{-webkit-box-flex:0;-ms-flex:none;flex:none}.columns.is-mobile>.column.is-full{width:100%}.columns.is-mobile>.column.is-three-quarters{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.columns.is-mobile>.column.is-two-thirds{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.columns.is-mobile>.column.is-half{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.columns.is-mobile>.column.is-one-third{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.columns.is-mobile>.column.is-one-quarter{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.columns.is-mobile>.column.is-one-fifth{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.columns.is-mobile>.column.is-two-fifths{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.columns.is-mobile>.column.is-three-fifths{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.columns.is-mobile>.column.is-four-fifths{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.columns.is-mobile>.column.is-offset-three-quarters{margin-left:75%}.columns.is-mobile>.column.is-offset-two-thirds{margin-left:66.6666%}.columns.is-mobile>.column.is-offset-half{margin-left:50%}.columns.is-mobile>.column.is-offset-one-third{margin-left:33.3333%}.columns.is-mobile>.column.is-offset-one-quarter{margin-left:25%}.columns.is-mobile>.column.is-offset-one-fifth{margin-left:20%}.columns.is-mobile>.column.is-offset-two-fifths{margin-left:40%}.columns.is-mobile>.column.is-offset-three-fifths{margin-left:60%}.columns.is-mobile>.column.is-offset-four-fifths{margin-left:80%}.columns.is-mobile>.column.is-0{-webkit-box-flex:0;-ms-flex:none;flex:none;width:0}.columns.is-mobile>.column.is-offset-0{margin-left:0}.columns.is-mobile>.column.is-1{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.3333333333%}.columns.is-mobile>.column.is-offset-1{margin-left:8.3333333333%}.columns.is-mobile>.column.is-2{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.6666666667%}.columns.is-mobile>.column.is-offset-2{margin-left:16.6666666667%}.columns.is-mobile>.column.is-3{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.columns.is-mobile>.column.is-offset-3{margin-left:25%}.columns.is-mobile>.column.is-4{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333333333%}.columns.is-mobile>.column.is-offset-4{margin-left:33.3333333333%}.columns.is-mobile>.column.is-5{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.6666666667%}.columns.is-mobile>.column.is-offset-5{margin-left:41.6666666667%}.columns.is-mobile>.column.is-6{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.columns.is-mobile>.column.is-offset-6{margin-left:50%}.columns.is-mobile>.column.is-7{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.3333333333%}.columns.is-mobile>.column.is-offset-7{margin-left:58.3333333333%}.columns.is-mobile>.column.is-8{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666666667%}.columns.is-mobile>.column.is-offset-8{margin-left:66.6666666667%}.columns.is-mobile>.column.is-9{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.columns.is-mobile>.column.is-offset-9{margin-left:75%}.columns.is-mobile>.column.is-10{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.3333333333%}.columns.is-mobile>.column.is-offset-10{margin-left:83.3333333333%}.columns.is-mobile>.column.is-11{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.6666666667%}.columns.is-mobile>.column.is-offset-11{margin-left:91.6666666667%}.columns.is-mobile>.column.is-12{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.columns.is-mobile>.column.is-offset-12{margin-left:100%}@media screen and (max-width:768px){.column.is-full-mobile,.column.is-narrow-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none}.column.is-full-mobile{width:100%}.column.is-three-quarters-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-two-thirds-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.column.is-half-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-one-third-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.column.is-one-quarter-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-one-fifth-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.column.is-two-fifths-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.column.is-three-fifths-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.column.is-four-fifths-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.column.is-offset-three-quarters-mobile{margin-left:75%}.column.is-offset-two-thirds-mobile{margin-left:66.6666%}.column.is-offset-half-mobile{margin-left:50%}.column.is-offset-one-third-mobile{margin-left:33.3333%}.column.is-offset-one-quarter-mobile{margin-left:25%}.column.is-offset-one-fifth-mobile{margin-left:20%}.column.is-offset-two-fifths-mobile{margin-left:40%}.column.is-offset-three-fifths-mobile{margin-left:60%}.column.is-offset-four-fifths-mobile{margin-left:80%}.column.is-0-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:0}.column.is-offset-0-mobile{margin-left:0}.column.is-1-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.3333333333%}.column.is-offset-1-mobile{margin-left:8.3333333333%}.column.is-2-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.6666666667%}.column.is-offset-2-mobile{margin-left:16.6666666667%}.column.is-3-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-offset-3-mobile{margin-left:25%}.column.is-4-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333333333%}.column.is-offset-4-mobile{margin-left:33.3333333333%}.column.is-5-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.6666666667%}.column.is-offset-5-mobile{margin-left:41.6666666667%}.column.is-6-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-offset-6-mobile{margin-left:50%}.column.is-7-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.3333333333%}.column.is-offset-7-mobile{margin-left:58.3333333333%}.column.is-8-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666666667%}.column.is-offset-8-mobile{margin-left:66.6666666667%}.column.is-9-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-offset-9-mobile{margin-left:75%}.column.is-10-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.3333333333%}.column.is-offset-10-mobile{margin-left:83.3333333333%}.column.is-11-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.6666666667%}.column.is-offset-11-mobile{margin-left:91.6666666667%}.column.is-12-mobile{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.column.is-offset-12-mobile{margin-left:100%}}@media print,screen and (min-width:769px){.column.is-full,.column.is-full-tablet,.column.is-narrow,.column.is-narrow-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none}.column.is-full,.column.is-full-tablet{width:100%}.column.is-three-quarters,.column.is-three-quarters-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-two-thirds,.column.is-two-thirds-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.column.is-half,.column.is-half-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-one-third,.column.is-one-third-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.column.is-one-quarter,.column.is-one-quarter-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-one-fifth,.column.is-one-fifth-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.column.is-two-fifths,.column.is-two-fifths-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.column.is-three-fifths,.column.is-three-fifths-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.column.is-four-fifths,.column.is-four-fifths-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.column.is-offset-three-quarters,.column.is-offset-three-quarters-tablet{margin-left:75%}.column.is-offset-two-thirds,.column.is-offset-two-thirds-tablet{margin-left:66.6666%}.column.is-offset-half,.column.is-offset-half-tablet{margin-left:50%}.column.is-offset-one-third,.column.is-offset-one-third-tablet{margin-left:33.3333%}.column.is-offset-one-quarter,.column.is-offset-one-quarter-tablet{margin-left:25%}.column.is-offset-one-fifth,.column.is-offset-one-fifth-tablet{margin-left:20%}.column.is-offset-two-fifths,.column.is-offset-two-fifths-tablet{margin-left:40%}.column.is-offset-three-fifths,.column.is-offset-three-fifths-tablet{margin-left:60%}.column.is-offset-four-fifths,.column.is-offset-four-fifths-tablet{margin-left:80%}.column.is-0,.column.is-0-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:0}.column.is-offset-0,.column.is-offset-0-tablet{margin-left:0}.column.is-1,.column.is-1-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.3333333333%}.column.is-offset-1,.column.is-offset-1-tablet{margin-left:8.3333333333%}.column.is-2,.column.is-2-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.6666666667%}.column.is-offset-2,.column.is-offset-2-tablet{margin-left:16.6666666667%}.column.is-3,.column.is-3-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-offset-3,.column.is-offset-3-tablet{margin-left:25%}.column.is-4,.column.is-4-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333333333%}.column.is-offset-4,.column.is-offset-4-tablet{margin-left:33.3333333333%}.column.is-5,.column.is-5-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.6666666667%}.column.is-offset-5,.column.is-offset-5-tablet{margin-left:41.6666666667%}.column.is-6,.column.is-6-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-offset-6,.column.is-offset-6-tablet{margin-left:50%}.column.is-7,.column.is-7-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.3333333333%}.column.is-offset-7,.column.is-offset-7-tablet{margin-left:58.3333333333%}.column.is-8,.column.is-8-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666666667%}.column.is-offset-8,.column.is-offset-8-tablet{margin-left:66.6666666667%}.column.is-9,.column.is-9-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-offset-9,.column.is-offset-9-tablet{margin-left:75%}.column.is-10,.column.is-10-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.3333333333%}.column.is-offset-10,.column.is-offset-10-tablet{margin-left:83.3333333333%}.column.is-11,.column.is-11-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.6666666667%}.column.is-offset-11,.column.is-offset-11-tablet{margin-left:91.6666666667%}.column.is-12,.column.is-12-tablet{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.column.is-offset-12,.column.is-offset-12-tablet{margin-left:100%}}@media screen and (max-width:1023px){.column.is-full-touch,.column.is-narrow-touch{-webkit-box-flex:0;-ms-flex:none;flex:none}.column.is-full-touch{width:100%}.column.is-three-quarters-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-two-thirds-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.column.is-half-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-one-third-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.column.is-one-quarter-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-one-fifth-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.column.is-two-fifths-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.column.is-three-fifths-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.column.is-four-fifths-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.column.is-offset-three-quarters-touch{margin-left:75%}.column.is-offset-two-thirds-touch{margin-left:66.6666%}.column.is-offset-half-touch{margin-left:50%}.column.is-offset-one-third-touch{margin-left:33.3333%}.column.is-offset-one-quarter-touch{margin-left:25%}.column.is-offset-one-fifth-touch{margin-left:20%}.column.is-offset-two-fifths-touch{margin-left:40%}.column.is-offset-three-fifths-touch{margin-left:60%}.column.is-offset-four-fifths-touch{margin-left:80%}.column.is-0-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:0}.column.is-offset-0-touch{margin-left:0}.column.is-1-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.3333333333%}.column.is-offset-1-touch{margin-left:8.3333333333%}.column.is-2-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.6666666667%}.column.is-offset-2-touch{margin-left:16.6666666667%}.column.is-3-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-offset-3-touch{margin-left:25%}.column.is-4-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333333333%}.column.is-offset-4-touch{margin-left:33.3333333333%}.column.is-5-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.6666666667%}.column.is-offset-5-touch{margin-left:41.6666666667%}.column.is-6-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-offset-6-touch{margin-left:50%}.column.is-7-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.3333333333%}.column.is-offset-7-touch{margin-left:58.3333333333%}.column.is-8-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666666667%}.column.is-offset-8-touch{margin-left:66.6666666667%}.column.is-9-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-offset-9-touch{margin-left:75%}.column.is-10-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.3333333333%}.column.is-offset-10-touch{margin-left:83.3333333333%}.column.is-11-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.6666666667%}.column.is-offset-11-touch{margin-left:91.6666666667%}.column.is-12-touch{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.column.is-offset-12-touch{margin-left:100%}}@media screen and (min-width:1024px){.column.is-full-desktop,.column.is-narrow-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none}.column.is-full-desktop{width:100%}.column.is-three-quarters-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-two-thirds-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.column.is-half-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-one-third-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.column.is-one-quarter-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-one-fifth-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.column.is-two-fifths-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.column.is-three-fifths-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.column.is-four-fifths-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.column.is-offset-three-quarters-desktop{margin-left:75%}.column.is-offset-two-thirds-desktop{margin-left:66.6666%}.column.is-offset-half-desktop{margin-left:50%}.column.is-offset-one-third-desktop{margin-left:33.3333%}.column.is-offset-one-quarter-desktop{margin-left:25%}.column.is-offset-one-fifth-desktop{margin-left:20%}.column.is-offset-two-fifths-desktop{margin-left:40%}.column.is-offset-three-fifths-desktop{margin-left:60%}.column.is-offset-four-fifths-desktop{margin-left:80%}.column.is-0-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:0}.column.is-offset-0-desktop{margin-left:0}.column.is-1-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.3333333333%}.column.is-offset-1-desktop{margin-left:8.3333333333%}.column.is-2-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.6666666667%}.column.is-offset-2-desktop{margin-left:16.6666666667%}.column.is-3-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-offset-3-desktop{margin-left:25%}.column.is-4-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333333333%}.column.is-offset-4-desktop{margin-left:33.3333333333%}.column.is-5-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.6666666667%}.column.is-offset-5-desktop{margin-left:41.6666666667%}.column.is-6-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-offset-6-desktop{margin-left:50%}.column.is-7-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.3333333333%}.column.is-offset-7-desktop{margin-left:58.3333333333%}.column.is-8-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666666667%}.column.is-offset-8-desktop{margin-left:66.6666666667%}.column.is-9-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-offset-9-desktop{margin-left:75%}.column.is-10-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.3333333333%}.column.is-offset-10-desktop{margin-left:83.3333333333%}.column.is-11-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.6666666667%}.column.is-offset-11-desktop{margin-left:91.6666666667%}.column.is-12-desktop{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.column.is-offset-12-desktop{margin-left:100%}}@media screen and (min-width:1216px){.column.is-full-widescreen,.column.is-narrow-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none}.column.is-full-widescreen{width:100%}.column.is-three-quarters-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-two-thirds-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.column.is-half-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-one-third-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.column.is-one-quarter-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-one-fifth-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.column.is-two-fifths-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.column.is-three-fifths-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.column.is-four-fifths-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.column.is-offset-three-quarters-widescreen{margin-left:75%}.column.is-offset-two-thirds-widescreen{margin-left:66.6666%}.column.is-offset-half-widescreen{margin-left:50%}.column.is-offset-one-third-widescreen{margin-left:33.3333%}.column.is-offset-one-quarter-widescreen{margin-left:25%}.column.is-offset-one-fifth-widescreen{margin-left:20%}.column.is-offset-two-fifths-widescreen{margin-left:40%}.column.is-offset-three-fifths-widescreen{margin-left:60%}.column.is-offset-four-fifths-widescreen{margin-left:80%}.column.is-0-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:0}.column.is-offset-0-widescreen{margin-left:0}.column.is-1-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.3333333333%}.column.is-offset-1-widescreen{margin-left:8.3333333333%}.column.is-2-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.6666666667%}.column.is-offset-2-widescreen{margin-left:16.6666666667%}.column.is-3-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-offset-3-widescreen{margin-left:25%}.column.is-4-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333333333%}.column.is-offset-4-widescreen{margin-left:33.3333333333%}.column.is-5-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.6666666667%}.column.is-offset-5-widescreen{margin-left:41.6666666667%}.column.is-6-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-offset-6-widescreen{margin-left:50%}.column.is-7-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.3333333333%}.column.is-offset-7-widescreen{margin-left:58.3333333333%}.column.is-8-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666666667%}.column.is-offset-8-widescreen{margin-left:66.6666666667%}.column.is-9-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-offset-9-widescreen{margin-left:75%}.column.is-10-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.3333333333%}.column.is-offset-10-widescreen{margin-left:83.3333333333%}.column.is-11-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.6666666667%}.column.is-offset-11-widescreen{margin-left:91.6666666667%}.column.is-12-widescreen{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.column.is-offset-12-widescreen{margin-left:100%}}@media screen and (min-width:1408px){.column.is-full-fullhd,.column.is-narrow-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none}.column.is-full-fullhd{width:100%}.column.is-three-quarters-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-two-thirds-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666%}.column.is-half-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-one-third-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333%}.column.is-one-quarter-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-one-fifth-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:20%}.column.is-two-fifths-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:40%}.column.is-three-fifths-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:60%}.column.is-four-fifths-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:80%}.column.is-offset-three-quarters-fullhd{margin-left:75%}.column.is-offset-two-thirds-fullhd{margin-left:66.6666%}.column.is-offset-half-fullhd{margin-left:50%}.column.is-offset-one-third-fullhd{margin-left:33.3333%}.column.is-offset-one-quarter-fullhd{margin-left:25%}.column.is-offset-one-fifth-fullhd{margin-left:20%}.column.is-offset-two-fifths-fullhd{margin-left:40%}.column.is-offset-three-fifths-fullhd{margin-left:60%}.column.is-offset-four-fifths-fullhd{margin-left:80%}.column.is-0-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:0}.column.is-offset-0-fullhd{margin-left:0}.column.is-1-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:8.3333333333%}.column.is-offset-1-fullhd{margin-left:8.3333333333%}.column.is-2-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:16.6666666667%}.column.is-offset-2-fullhd{margin-left:16.6666666667%}.column.is-3-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:25%}.column.is-offset-3-fullhd{margin-left:25%}.column.is-4-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:33.3333333333%}.column.is-offset-4-fullhd{margin-left:33.3333333333%}.column.is-5-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:41.6666666667%}.column.is-offset-5-fullhd{margin-left:41.6666666667%}.column.is-6-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:50%}.column.is-offset-6-fullhd{margin-left:50%}.column.is-7-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:58.3333333333%}.column.is-offset-7-fullhd{margin-left:58.3333333333%}.column.is-8-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:66.6666666667%}.column.is-offset-8-fullhd{margin-left:66.6666666667%}.column.is-9-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:75%}.column.is-offset-9-fullhd{margin-left:75%}.column.is-10-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:83.3333333333%}.column.is-offset-10-fullhd{margin-left:83.3333333333%}.column.is-11-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:91.6666666667%}.column.is-offset-11-fullhd{margin-left:91.6666666667%}.column.is-12-fullhd{-webkit-box-flex:0;-ms-flex:none;flex:none;width:100%}.column.is-offset-12-fullhd{margin-left:100%}}.columns{margin-left:-.75rem;margin-right:-.75rem;margin-top:-.75rem}.columns:last-child{margin-bottom:-.75rem}.columns:not(:last-child){margin-bottom:.75rem}.columns.is-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.columns.is-gapless{margin-left:0;margin-right:0;margin-top:0}.columns.is-gapless>.column{margin:0;padding:0!important}.columns.is-gapless:not(:last-child){margin-bottom:1.5rem}.columns.is-gapless:last-child{margin-bottom:0}.columns.is-mobile{display:-webkit-box;display:-ms-flexbox;display:flex}.columns.is-multiline{-ms-flex-wrap:wrap;flex-wrap:wrap}.columns.is-vcentered{-webkit-box-align:center;-ms-flex-align:center;align-items:center}@media print,screen and (min-width:769px){.columns:not(.is-desktop){display:-webkit-box;display:-ms-flexbox;display:flex}}@media screen and (min-width:1024px){.columns.is-desktop{display:-webkit-box;display:-ms-flexbox;display:flex}}.columns.is-variable{--columnGap:0.75rem;margin-left:calc(var(--columnGap)*-1);margin-right:calc(var(--columnGap)*-1)}.columns.is-variable .column{padding-left:var(--columnGap);padding-right:var(--columnGap)}.columns.is-variable.is-0{--columnGap:0rem}@media screen and (max-width:768px){.columns.is-variable.is-0-mobile{--columnGap:0rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-0-tablet{--columnGap:0rem}}@media screen and (min-width:769px)and (max-width:1023px){.columns.is-variable.is-0-tablet-only{--columnGap:0rem}}@media screen and (max-width:1023px){.columns.is-variable.is-0-touch{--columnGap:0rem}}@media screen and (min-width:1024px){.columns.is-variable.is-0-desktop{--columnGap:0rem}}@media screen and (min-width:1024px)and (max-width:1215px){.columns.is-variable.is-0-desktop-only{--columnGap:0rem}}@media screen and (min-width:1216px){.columns.is-variable.is-0-widescreen{--columnGap:0rem}}@media screen and (min-width:1216px)and (max-width:1407px){.columns.is-variable.is-0-widescreen-only{--columnGap:0rem}}@media screen and (min-width:1408px){.columns.is-variable.is-0-fullhd{--columnGap:0rem}}.columns.is-variable.is-1{--columnGap:0.25rem}@media screen and (max-width:768px){.columns.is-variable.is-1-mobile{--columnGap:0.25rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-1-tablet{--columnGap:0.25rem}}@media screen and (min-width:769px)and (max-width:1023px){.columns.is-variable.is-1-tablet-only{--columnGap:0.25rem}}@media screen and (max-width:1023px){.columns.is-variable.is-1-touch{--columnGap:0.25rem}}@media screen and (min-width:1024px){.columns.is-variable.is-1-desktop{--columnGap:0.25rem}}@media screen and (min-width:1024px)and (max-width:1215px){.columns.is-variable.is-1-desktop-only{--columnGap:0.25rem}}@media screen and (min-width:1216px){.columns.is-variable.is-1-widescreen{--columnGap:0.25rem}}@media screen and (min-width:1216px)and (max-width:1407px){.columns.is-variable.is-1-widescreen-only{--columnGap:0.25rem}}@media screen and (min-width:1408px){.columns.is-variable.is-1-fullhd{--columnGap:0.25rem}}.columns.is-variable.is-2{--columnGap:0.5rem}@media screen and (max-width:768px){.columns.is-variable.is-2-mobile{--columnGap:0.5rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-2-tablet{--columnGap:0.5rem}}@media screen and (min-width:769px)and (max-width:1023px){.columns.is-variable.is-2-tablet-only{--columnGap:0.5rem}}@media screen and (max-width:1023px){.columns.is-variable.is-2-touch{--columnGap:0.5rem}}@media screen and (min-width:1024px){.columns.is-variable.is-2-desktop{--columnGap:0.5rem}}@media screen and (min-width:1024px)and (max-width:1215px){.columns.is-variable.is-2-desktop-only{--columnGap:0.5rem}}@media screen and (min-width:1216px){.columns.is-variable.is-2-widescreen{--columnGap:0.5rem}}@media screen and (min-width:1216px)and (max-width:1407px){.columns.is-variable.is-2-widescreen-only{--columnGap:0.5rem}}@media screen and (min-width:1408px){.columns.is-variable.is-2-fullhd{--columnGap:0.5rem}}.columns.is-variable.is-3{--columnGap:0.75rem}@media screen and (max-width:768px){.columns.is-variable.is-3-mobile{--columnGap:0.75rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-3-tablet{--columnGap:0.75rem}}@media screen and (min-width:769px)and (max-width:1023px){.columns.is-variable.is-3-tablet-only{--columnGap:0.75rem}}@media screen and (max-width:1023px){.columns.is-variable.is-3-touch{--columnGap:0.75rem}}@media screen and (min-width:1024px){.columns.is-variable.is-3-desktop{--columnGap:0.75rem}}@media screen and (min-width:1024px)and (max-width:1215px){.columns.is-variable.is-3-desktop-only{--columnGap:0.75rem}}@media screen and (min-width:1216px){.columns.is-variable.is-3-widescreen{--columnGap:0.75rem}}@media screen and (min-width:1216px)and (max-width:1407px){.columns.is-variable.is-3-widescreen-only{--columnGap:0.75rem}}@media screen and (min-width:1408px){.columns.is-variable.is-3-fullhd{--columnGap:0.75rem}}.columns.is-variable.is-4{--columnGap:1rem}@media screen and (max-width:768px){.columns.is-variable.is-4-mobile{--columnGap:1rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-4-tablet{--columnGap:1rem}}@media screen and (min-width:769px)and (max-width:1023px){.columns.is-variable.is-4-tablet-only{--columnGap:1rem}}@media screen and (max-width:1023px){.columns.is-variable.is-4-touch{--columnGap:1rem}}@media screen and (min-width:1024px){.columns.is-variable.is-4-desktop{--columnGap:1rem}}@media screen and (min-width:1024px)and (max-width:1215px){.columns.is-variable.is-4-desktop-only{--columnGap:1rem}}@media screen and (min-width:1216px){.columns.is-variable.is-4-widescreen{--columnGap:1rem}}@media screen and (min-width:1216px)and (max-width:1407px){.columns.is-variable.is-4-widescreen-only{--columnGap:1rem}}@media screen and (min-width:1408px){.columns.is-variable.is-4-fullhd{--columnGap:1rem}}.columns.is-variable.is-5{--columnGap:1.25rem}@media screen and (max-width:768px){.columns.is-variable.is-5-mobile{--columnGap:1.25rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-5-tablet{--columnGap:1.25rem}}@media screen and (min-width:769px)and (max-width:1023px){.columns.is-variable.is-5-tablet-only{--columnGap:1.25rem}}@media screen and (max-width:1023px){.columns.is-variable.is-5-touch{--columnGap:1.25rem}}@media screen and (min-width:1024px){.columns.is-variable.is-5-desktop{--columnGap:1.25rem}}@media screen and (min-width:1024px)and (max-width:1215px){.columns.is-variable.is-5-desktop-only{--columnGap:1.25rem}}@media screen and (min-width:1216px){.columns.is-variable.is-5-widescreen{--columnGap:1.25rem}}@media screen and (min-width:1216px)and (max-width:1407px){.columns.is-variable.is-5-widescreen-only{--columnGap:1.25rem}}@media screen and (min-width:1408px){.columns.is-variable.is-5-fullhd{--columnGap:1.25rem}}.columns.is-variable.is-6{--columnGap:1.5rem}@media screen and (max-width:768px){.columns.is-variable.is-6-mobile{--columnGap:1.5rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-6-tablet{--columnGap:1.5rem}}@media screen and (min-width:769px)and (max-width:1023px){.columns.is-variable.is-6-tablet-only{--columnGap:1.5rem}}@media screen and (max-width:1023px){.columns.is-variable.is-6-touch{--columnGap:1.5rem}}@media screen and (min-width:1024px){.columns.is-variable.is-6-desktop{--columnGap:1.5rem}}@media screen and (min-width:1024px)and (max-width:1215px){.columns.is-variable.is-6-desktop-only{--columnGap:1.5rem}}@media screen and (min-width:1216px){.columns.is-variable.is-6-widescreen{--columnGap:1.5rem}}@media screen and (min-width:1216px)and (max-width:1407px){.columns.is-variable.is-6-widescreen-only{--columnGap:1.5rem}}@media screen and (min-width:1408px){.columns.is-variable.is-6-fullhd{--columnGap:1.5rem}}.columns.is-variable.is-7{--columnGap:1.75rem}@media screen and (max-width:768px){.columns.is-variable.is-7-mobile{--columnGap:1.75rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-7-tablet{--columnGap:1.75rem}}@media screen and (min-width:769px)and (max-width:1023px){.columns.is-variable.is-7-tablet-only{--columnGap:1.75rem}}@media screen and (max-width:1023px){.columns.is-variable.is-7-touch{--columnGap:1.75rem}}@media screen and (min-width:1024px){.columns.is-variable.is-7-desktop{--columnGap:1.75rem}}@media screen and (min-width:1024px)and (max-width:1215px){.columns.is-variable.is-7-desktop-only{--columnGap:1.75rem}}@media screen and (min-width:1216px){.columns.is-variable.is-7-widescreen{--columnGap:1.75rem}}@media screen and (min-width:1216px)and (max-width:1407px){.columns.is-variable.is-7-widescreen-only{--columnGap:1.75rem}}@media screen and (min-width:1408px){.columns.is-variable.is-7-fullhd{--columnGap:1.75rem}}.columns.is-variable.is-8{--columnGap:2rem}@media screen and (max-width:768px){.columns.is-variable.is-8-mobile{--columnGap:2rem}}@media print,screen and (min-width:769px){.columns.is-variable.is-8-tablet{--columnGap:2rem}}@media screen and (min-width:769px)and (max-width:1023px){.columns.is-variable.is-8-tablet-only{--columnGap:2rem}}@media screen and (max-width:1023px){.columns.is-variable.is-8-touch{--columnGap:2rem}}@media screen and (min-width:1024px){.columns.is-variable.is-8-desktop{--columnGap:2rem}}@media screen and (min-width:1024px)and (max-width:1215px){.columns.is-variable.is-8-desktop-only{--columnGap:2rem}}@media screen and (min-width:1216px){.columns.is-variable.is-8-widescreen{--columnGap:2rem}}@media screen and (min-width:1216px)and (max-width:1407px){.columns.is-variable.is-8-widescreen-only{--columnGap:2rem}}@media screen and (min-width:1408px){.columns.is-variable.is-8-fullhd{--columnGap:2rem}}.tile{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:block;-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1;min-height:-webkit-min-content;min-height:-moz-min-content;min-height:min-content}.tile.is-ancestor{margin-left:-.75rem;margin-right:-.75rem;margin-top:-.75rem}.tile.is-ancestor:last-child{margin-bottom:-.75rem}.tile.is-ancestor:not(:last-child){margin-bottom:.75rem}.tile.is-child{margin:0!important}.tile.is-parent{padding:.75rem}.tile.is-vertical{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.tile.is-vertical>.tile.is-child:not(:last-child){margin-bottom:1.5rem!important}@media print,screen and (min-width:769px){.tile:not(.is-child){display:-webkit-box;display:-ms-flexbox;display:flex}.tile.is-1{width:8.3333333333%}.tile.is-1,.tile.is-2{-webkit-box-flex:0;-ms-flex:none;flex:none}.tile.is-2{width:16.6666666667%}.tile.is-3{width:25%}.tile.is-3,.tile.is-4{-webkit-box-flex:0;-ms-flex:none;flex:none}.tile.is-4{width:33.3333333333%}.tile.is-5{width:41.6666666667%}.tile.is-5,.tile.is-6{-webkit-box-flex:0;-ms-flex:none;flex:none}.tile.is-6{width:50%}.tile.is-7{width:58.3333333333%}.tile.is-7,.tile.is-8{-webkit-box-flex:0;-ms-flex:none;flex:none}.tile.is-8{width:66.6666666667%}.tile.is-9{width:75%}.tile.is-10,.tile.is-9{-webkit-box-flex:0;-ms-flex:none;flex:none}.tile.is-10{width:83.3333333333%}.tile.is-11{width:91.6666666667%}.tile.is-11,.tile.is-12{-webkit-box-flex:0;-ms-flex:none;flex:none}.tile.is-12{width:100%}}.hero{-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.hero .navbar{background:none}.hero .tabs ul{border-bottom:none}.hero.is-white{background-color:#fff;color:#0a0a0a}.hero.is-white a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current),.hero.is-white strong{color:inherit}.hero.is-white .title{color:#0a0a0a}.hero.is-white .subtitle{color:hsla(0,0%,4%,.9)}.hero.is-white .subtitle a:not(.button),.hero.is-white .subtitle strong{color:#0a0a0a}@media screen and (max-width:1023px){.hero.is-white .navbar-menu{background-color:#fff}}.hero.is-white .navbar-item,.hero.is-white .navbar-link{color:hsla(0,0%,4%,.7)}.hero.is-white .navbar-link.is-active,.hero.is-white .navbar-link:hover,.hero.is-white a.navbar-item.is-active,.hero.is-white a.navbar-item:hover{background-color:#f2f2f2;color:#0a0a0a}.hero.is-white .tabs a{color:#0a0a0a;opacity:.9}.hero.is-white .tabs a:hover,.hero.is-white .tabs li.is-active a{opacity:1}.hero.is-white .tabs.is-boxed a,.hero.is-white .tabs.is-toggle a{color:#0a0a0a}.hero.is-white .tabs.is-boxed a:hover,.hero.is-white .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-white .tabs.is-boxed li.is-active a,.hero.is-white .tabs.is-boxed li.is-active a:hover,.hero.is-white .tabs.is-toggle li.is-active a,.hero.is-white .tabs.is-toggle li.is-active a:hover{background-color:#0a0a0a;border-color:#0a0a0a;color:#fff}.hero.is-white.is-bold{background-image:linear-gradient(141deg,#e8e3e4,#fff 71%,#fff)}@media screen and (max-width:768px){.hero.is-white.is-bold .navbar-menu{background-image:linear-gradient(141deg,#e8e3e4,#fff 71%,#fff)}}.hero.is-black{background-color:#0a0a0a;color:#fff}.hero.is-black a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current),.hero.is-black strong{color:inherit}.hero.is-black .title{color:#fff}.hero.is-black .subtitle{color:hsla(0,0%,100%,.9)}.hero.is-black .subtitle a:not(.button),.hero.is-black .subtitle strong{color:#fff}@media screen and (max-width:1023px){.hero.is-black .navbar-menu{background-color:#0a0a0a}}.hero.is-black .navbar-item,.hero.is-black .navbar-link{color:hsla(0,0%,100%,.7)}.hero.is-black .navbar-link.is-active,.hero.is-black .navbar-link:hover,.hero.is-black a.navbar-item.is-active,.hero.is-black a.navbar-item:hover{background-color:#000;color:#fff}.hero.is-black .tabs a{color:#fff;opacity:.9}.hero.is-black .tabs a:hover,.hero.is-black .tabs li.is-active a{opacity:1}.hero.is-black .tabs.is-boxed a,.hero.is-black .tabs.is-toggle a{color:#fff}.hero.is-black .tabs.is-boxed a:hover,.hero.is-black .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-black .tabs.is-boxed li.is-active a,.hero.is-black .tabs.is-boxed li.is-active a:hover,.hero.is-black .tabs.is-toggle li.is-active a,.hero.is-black .tabs.is-toggle li.is-active a:hover{background-color:#fff;border-color:#fff;color:#0a0a0a}.hero.is-black.is-bold{background-image:linear-gradient(141deg,#000,#0a0a0a 71%,#181616)}@media screen and (max-width:768px){.hero.is-black.is-bold .navbar-menu{background-image:linear-gradient(141deg,#000,#0a0a0a 71%,#181616)}}.hero.is-light{background-color:#f5f5f5;color:#363636}.hero.is-light a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current),.hero.is-light strong{color:inherit}.hero.is-light .title{color:#363636}.hero.is-light .subtitle{color:rgba(54,54,54,.9)}.hero.is-light .subtitle a:not(.button),.hero.is-light .subtitle strong{color:#363636}@media screen and (max-width:1023px){.hero.is-light .navbar-menu{background-color:#f5f5f5}}.hero.is-light .navbar-item,.hero.is-light .navbar-link{color:rgba(54,54,54,.7)}.hero.is-light .navbar-link.is-active,.hero.is-light .navbar-link:hover,.hero.is-light a.navbar-item.is-active,.hero.is-light a.navbar-item:hover{background-color:#e8e8e8;color:#363636}.hero.is-light .tabs a{color:#363636;opacity:.9}.hero.is-light .tabs a:hover,.hero.is-light .tabs li.is-active a{opacity:1}.hero.is-light .tabs.is-boxed a,.hero.is-light .tabs.is-toggle a{color:#363636}.hero.is-light .tabs.is-boxed a:hover,.hero.is-light .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-light .tabs.is-boxed li.is-active a,.hero.is-light .tabs.is-boxed li.is-active a:hover,.hero.is-light .tabs.is-toggle li.is-active a,.hero.is-light .tabs.is-toggle li.is-active a:hover{background-color:#363636;border-color:#363636;color:#f5f5f5}.hero.is-light.is-bold{background-image:linear-gradient(141deg,#dfd8d9,#f5f5f5 71%,#fff)}@media screen and (max-width:768px){.hero.is-light.is-bold .navbar-menu{background-image:linear-gradient(141deg,#dfd8d9,#f5f5f5 71%,#fff)}}.hero.is-dark{background-color:#363636;color:#f5f5f5}.hero.is-dark a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current),.hero.is-dark strong{color:inherit}.hero.is-dark .title{color:#f5f5f5}.hero.is-dark .subtitle{color:hsla(0,0%,96%,.9)}.hero.is-dark .subtitle a:not(.button),.hero.is-dark .subtitle strong{color:#f5f5f5}@media screen and (max-width:1023px){.hero.is-dark .navbar-menu{background-color:#363636}}.hero.is-dark .navbar-item,.hero.is-dark .navbar-link{color:hsla(0,0%,96%,.7)}.hero.is-dark .navbar-link.is-active,.hero.is-dark .navbar-link:hover,.hero.is-dark a.navbar-item.is-active,.hero.is-dark a.navbar-item:hover{background-color:#292929;color:#f5f5f5}.hero.is-dark .tabs a{color:#f5f5f5;opacity:.9}.hero.is-dark .tabs a:hover,.hero.is-dark .tabs li.is-active a{opacity:1}.hero.is-dark .tabs.is-boxed a,.hero.is-dark .tabs.is-toggle a{color:#f5f5f5}.hero.is-dark .tabs.is-boxed a:hover,.hero.is-dark .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-dark .tabs.is-boxed li.is-active a,.hero.is-dark .tabs.is-boxed li.is-active a:hover,.hero.is-dark .tabs.is-toggle li.is-active a,.hero.is-dark .tabs.is-toggle li.is-active a:hover{background-color:#f5f5f5;border-color:#f5f5f5;color:#363636}.hero.is-dark.is-bold{background-image:linear-gradient(141deg,#1f191a,#363636 71%,#46403f)}@media screen and (max-width:768px){.hero.is-dark.is-bold .navbar-menu{background-image:linear-gradient(141deg,#1f191a,#363636 71%,#46403f)}}.hero.is-primary{background-color:#26a69a;color:#fff}.hero.is-primary a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current),.hero.is-primary strong{color:inherit}.hero.is-primary .title{color:#fff}.hero.is-primary .subtitle{color:hsla(0,0%,100%,.9)}.hero.is-primary .subtitle a:not(.button),.hero.is-primary .subtitle strong{color:#fff}@media screen and (max-width:1023px){.hero.is-primary .navbar-menu{background-color:#26a69a}}.hero.is-primary .navbar-item,.hero.is-primary .navbar-link{color:hsla(0,0%,100%,.7)}.hero.is-primary .navbar-link.is-active,.hero.is-primary .navbar-link:hover,.hero.is-primary a.navbar-item.is-active,.hero.is-primary a.navbar-item:hover{background-color:#219187;color:#fff}.hero.is-primary .tabs a{color:#fff;opacity:.9}.hero.is-primary .tabs a:hover,.hero.is-primary .tabs li.is-active a{opacity:1}.hero.is-primary .tabs.is-boxed a,.hero.is-primary .tabs.is-toggle a{color:#fff}.hero.is-primary .tabs.is-boxed a:hover,.hero.is-primary .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-primary .tabs.is-boxed li.is-active a,.hero.is-primary .tabs.is-boxed li.is-active a:hover,.hero.is-primary .tabs.is-toggle li.is-active a,.hero.is-primary .tabs.is-toggle li.is-active a:hover{background-color:#fff;border-color:#fff;color:#26a69a}.hero.is-primary.is-bold{background-image:linear-gradient(141deg,#158467,#26a69a 71%,#25b5c0)}@media screen and (max-width:768px){.hero.is-primary.is-bold .navbar-menu{background-image:linear-gradient(141deg,#158467,#26a69a 71%,#25b5c0)}}.hero.is-info{background-color:#209cee;color:#fff}.hero.is-info a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current),.hero.is-info strong{color:inherit}.hero.is-info .title{color:#fff}.hero.is-info .subtitle{color:hsla(0,0%,100%,.9)}.hero.is-info .subtitle a:not(.button),.hero.is-info .subtitle strong{color:#fff}@media screen and (max-width:1023px){.hero.is-info .navbar-menu{background-color:#209cee}}.hero.is-info .navbar-item,.hero.is-info .navbar-link{color:hsla(0,0%,100%,.7)}.hero.is-info .navbar-link.is-active,.hero.is-info .navbar-link:hover,.hero.is-info a.navbar-item.is-active,.hero.is-info a.navbar-item:hover{background-color:#118fe4;color:#fff}.hero.is-info .tabs a{color:#fff;opacity:.9}.hero.is-info .tabs a:hover,.hero.is-info .tabs li.is-active a{opacity:1}.hero.is-info .tabs.is-boxed a,.hero.is-info .tabs.is-toggle a{color:#fff}.hero.is-info .tabs.is-boxed a:hover,.hero.is-info .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-info .tabs.is-boxed li.is-active a,.hero.is-info .tabs.is-boxed li.is-active a:hover,.hero.is-info .tabs.is-toggle li.is-active a,.hero.is-info .tabs.is-toggle li.is-active a:hover{background-color:#fff;border-color:#fff;color:#209cee}.hero.is-info.is-bold{background-image:linear-gradient(141deg,#04a6d7,#209cee 71%,#3287f5)}@media screen and (max-width:768px){.hero.is-info.is-bold .navbar-menu{background-image:linear-gradient(141deg,#04a6d7,#209cee 71%,#3287f5)}}.hero.is-success{background-color:#23d160;color:#fff}.hero.is-success a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current),.hero.is-success strong{color:inherit}.hero.is-success .title{color:#fff}.hero.is-success .subtitle{color:hsla(0,0%,100%,.9)}.hero.is-success .subtitle a:not(.button),.hero.is-success .subtitle strong{color:#fff}@media screen and (max-width:1023px){.hero.is-success .navbar-menu{background-color:#23d160}}.hero.is-success .navbar-item,.hero.is-success .navbar-link{color:hsla(0,0%,100%,.7)}.hero.is-success .navbar-link.is-active,.hero.is-success .navbar-link:hover,.hero.is-success a.navbar-item.is-active,.hero.is-success a.navbar-item:hover{background-color:#20bc56;color:#fff}.hero.is-success .tabs a{color:#fff;opacity:.9}.hero.is-success .tabs a:hover,.hero.is-success .tabs li.is-active a{opacity:1}.hero.is-success .tabs.is-boxed a,.hero.is-success .tabs.is-toggle a{color:#fff}.hero.is-success .tabs.is-boxed a:hover,.hero.is-success .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-success .tabs.is-boxed li.is-active a,.hero.is-success .tabs.is-boxed li.is-active a:hover,.hero.is-success .tabs.is-toggle li.is-active a,.hero.is-success .tabs.is-toggle li.is-active a:hover{background-color:#fff;border-color:#fff;color:#23d160}.hero.is-success.is-bold{background-image:linear-gradient(141deg,#12af2f,#23d160 71%,#2ce28a)}@media screen and (max-width:768px){.hero.is-success.is-bold .navbar-menu{background-image:linear-gradient(141deg,#12af2f,#23d160 71%,#2ce28a)}}.hero.is-warning{background-color:#ffdd57;color:rgba(0,0,0,.7)}.hero.is-warning a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current),.hero.is-warning strong{color:inherit}.hero.is-warning .title{color:rgba(0,0,0,.7)}.hero.is-warning .subtitle{color:rgba(0,0,0,.9)}.hero.is-warning .subtitle a:not(.button),.hero.is-warning .subtitle strong{color:rgba(0,0,0,.7)}@media screen and (max-width:1023px){.hero.is-warning .navbar-menu{background-color:#ffdd57}}.hero.is-warning .navbar-item,.hero.is-warning .navbar-link{color:rgba(0,0,0,.7)}.hero.is-warning .navbar-link.is-active,.hero.is-warning .navbar-link:hover,.hero.is-warning a.navbar-item.is-active,.hero.is-warning a.navbar-item:hover{background-color:#ffd83d;color:rgba(0,0,0,.7)}.hero.is-warning .tabs a{color:rgba(0,0,0,.7);opacity:.9}.hero.is-warning .tabs a:hover,.hero.is-warning .tabs li.is-active a{opacity:1}.hero.is-warning .tabs.is-boxed a,.hero.is-warning .tabs.is-toggle a{color:rgba(0,0,0,.7)}.hero.is-warning .tabs.is-boxed a:hover,.hero.is-warning .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-warning .tabs.is-boxed li.is-active a,.hero.is-warning .tabs.is-boxed li.is-active a:hover,.hero.is-warning .tabs.is-toggle li.is-active a,.hero.is-warning .tabs.is-toggle li.is-active a:hover{background-color:rgba(0,0,0,.7);border-color:rgba(0,0,0,.7);color:#ffdd57}.hero.is-warning.is-bold{background-image:linear-gradient(141deg,#ffaf24,#ffdd57 71%,#fffa70)}@media screen and (max-width:768px){.hero.is-warning.is-bold .navbar-menu{background-image:linear-gradient(141deg,#ffaf24,#ffdd57 71%,#fffa70)}}.hero.is-danger{background-color:#f44336;color:#fff}.hero.is-danger a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current),.hero.is-danger strong{color:inherit}.hero.is-danger .title{color:#fff}.hero.is-danger .subtitle{color:hsla(0,0%,100%,.9)}.hero.is-danger .subtitle a:not(.button),.hero.is-danger .subtitle strong{color:#fff}@media screen and (max-width:1023px){.hero.is-danger .navbar-menu{background-color:#f44336}}.hero.is-danger .navbar-item,.hero.is-danger .navbar-link{color:hsla(0,0%,100%,.7)}.hero.is-danger .navbar-link.is-active,.hero.is-danger .navbar-link:hover,.hero.is-danger a.navbar-item.is-active,.hero.is-danger a.navbar-item:hover{background-color:#f32c1e;color:#fff}.hero.is-danger .tabs a{color:#fff;opacity:.9}.hero.is-danger .tabs a:hover,.hero.is-danger .tabs li.is-active a{opacity:1}.hero.is-danger .tabs.is-boxed a,.hero.is-danger .tabs.is-toggle a{color:#fff}.hero.is-danger .tabs.is-boxed a:hover,.hero.is-danger .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-danger .tabs.is-boxed li.is-active a,.hero.is-danger .tabs.is-boxed li.is-active a:hover,.hero.is-danger .tabs.is-toggle li.is-active a,.hero.is-danger .tabs.is-toggle li.is-active a:hover{background-color:#fff;border-color:#fff;color:#f44336}.hero.is-danger.is-bold{background-image:linear-gradient(141deg,#f70019,#f44336 71%,#fa734a)}@media screen and (max-width:768px){.hero.is-danger.is-bold .navbar-menu{background-image:linear-gradient(141deg,#f70019,#f44336 71%,#fa734a)}}.hero.is-twitter{background-color:#4099ff;color:#fff}.hero.is-twitter a:not(.button):not(.dropdown-item):not(.tag):not(.pagination-link.is-current),.hero.is-twitter strong{color:inherit}.hero.is-twitter .title{color:#fff}.hero.is-twitter .subtitle{color:hsla(0,0%,100%,.9)}.hero.is-twitter .subtitle a:not(.button),.hero.is-twitter .subtitle strong{color:#fff}@media screen and (max-width:1023px){.hero.is-twitter .navbar-menu{background-color:#4099ff}}.hero.is-twitter .navbar-item,.hero.is-twitter .navbar-link{color:hsla(0,0%,100%,.7)}.hero.is-twitter .navbar-link.is-active,.hero.is-twitter .navbar-link:hover,.hero.is-twitter a.navbar-item.is-active,.hero.is-twitter a.navbar-item:hover{background-color:#278bff;color:#fff}.hero.is-twitter .tabs a{color:#fff;opacity:.9}.hero.is-twitter .tabs a:hover,.hero.is-twitter .tabs li.is-active a{opacity:1}.hero.is-twitter .tabs.is-boxed a,.hero.is-twitter .tabs.is-toggle a{color:#fff}.hero.is-twitter .tabs.is-boxed a:hover,.hero.is-twitter .tabs.is-toggle a:hover{background-color:hsla(0,0%,4%,.1)}.hero.is-twitter .tabs.is-boxed li.is-active a,.hero.is-twitter .tabs.is-boxed li.is-active a:hover,.hero.is-twitter .tabs.is-toggle li.is-active a,.hero.is-twitter .tabs.is-toggle li.is-active a:hover{background-color:#fff;border-color:#fff;color:#4099ff}.hero.is-twitter.is-bold{background-image:linear-gradient(141deg,#0da6ff,#4099ff 71%,#5a8bff)}@media screen and (max-width:768px){.hero.is-twitter.is-bold .navbar-menu{background-image:linear-gradient(141deg,#0da6ff,#4099ff 71%,#5a8bff)}}.hero.is-small .hero-body{padding-bottom:1.5rem;padding-top:1.5rem}@media print,screen and (min-width:769px){.hero.is-medium .hero-body{padding-bottom:9rem;padding-top:9rem}.hero.is-large .hero-body{padding-bottom:18rem;padding-top:18rem}}.hero.is-fullheight .hero-body,.hero.is-fullheight-with-navbar .hero-body,.hero.is-halfheight .hero-body{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.hero.is-fullheight .hero-body>.container,.hero.is-fullheight-with-navbar .hero-body>.container,.hero.is-halfheight .hero-body>.container{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.hero.is-halfheight{min-height:50vh}.hero.is-fullheight{min-height:100vh}.hero-video{overflow:hidden}.hero-video video{left:50%;min-height:100%;min-width:100%;position:absolute;top:50%;-webkit-transform:translate3d(-50%,-50%,0);transform:translate3d(-50%,-50%,0)}.hero-video.is-transparent{opacity:.3}@media screen and (max-width:768px){.hero-video{display:none}}.hero-buttons{margin-top:1.5rem}@media screen and (max-width:768px){.hero-buttons .button{display:-webkit-box;display:-ms-flexbox;display:flex}.hero-buttons .button:not(:last-child){margin-bottom:.75rem}}@media print,screen and (min-width:769px){.hero-buttons{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.hero-buttons .button:not(:last-child){margin-right:1.5rem}}.hero-foot,.hero-head{-webkit-box-flex:0;-ms-flex-positive:0;flex-grow:0}.hero-body,.hero-foot,.hero-head{-ms-flex-negative:0;flex-shrink:0}.hero-body{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.hero-body,.section{padding:3rem 1.5rem}@media screen and (min-width:1024px){.section.is-medium{padding:9rem 1.5rem}.section.is-large{padding:18rem 1.5rem}}.footer{background-color:#fafafa;padding:3rem 1.5rem 6rem}.is-noscroll{position:fixed;overflow-y:hidden;width:100%;bottom:0}@-webkit-keyframes fadeOut{0%{opacity:1}to{opacity:0}}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.fadeOut{-webkit-animation-name:fadeOut;animation-name:fadeOut}@-webkit-keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}@keyframes fadeOutDown{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}}.fadeOutDown{-webkit-animation-name:fadeOutDown;animation-name:fadeOutDown}@-webkit-keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}@keyframes fadeOutUp{0%{opacity:1}to{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}}.fadeOutUp{-webkit-animation-name:fadeOutUp;animation-name:fadeOutUp}@-webkit-keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}@-webkit-keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInDown{0%{opacity:0;-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInDown{-webkit-animation-name:fadeInDown;animation-name:fadeInDown}@-webkit-keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}@keyframes fadeInUp{0%{opacity:0;-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0)}to{opacity:1;-webkit-transform:none;transform:none}}.fadeInUp{-webkit-animation-name:fadeInUp;animation-name:fadeInUp}.fade-enter-active,.fade-leave-active{-webkit-transition:opacity .15s ease-out;transition:opacity .15s ease-out}.fade-enter,.fade-leave-to{opacity:0}.zoom-in-enter-active,.zoom-in-leave-active{-webkit-transition:opacity .15s ease-out;transition:opacity .15s ease-out}.zoom-in-enter-active .animation-content,.zoom-in-leave-active .animation-content{-webkit-transition:-webkit-transform .15s ease-out;transition:-webkit-transform .15s ease-out;transition:transform .15s ease-out;transition:transform .15s ease-out,-webkit-transform .15s ease-out}.zoom-in-enter,.zoom-in-leave-active{opacity:0}.zoom-in-enter .animation-content,.zoom-in-leave-active .animation-content{-webkit-transform:scale(.95);transform:scale(.95)}.zoom-out-enter-active,.zoom-out-leave-active{-webkit-transition:opacity .15s ease-out;transition:opacity .15s ease-out}.zoom-out-enter-active .animation-content,.zoom-out-leave-active .animation-content{-webkit-transition:-webkit-transform .15s ease-out;transition:-webkit-transform .15s ease-out;transition:transform .15s ease-out;transition:transform .15s ease-out,-webkit-transform .15s ease-out}.zoom-out-enter,.zoom-out-leave-active{opacity:0}.zoom-out-enter .animation-content,.zoom-out-leave-active .animation-content{-webkit-transform:scale(1.05);transform:scale(1.05)}.slide-next-enter-active,.slide-next-leave-active,.slide-prev-enter-active,.slide-prev-leave-active{-webkit-transition:-webkit-transform .25s cubic-bezier(.785,.135,.15,.86);transition:-webkit-transform .25s cubic-bezier(.785,.135,.15,.86);transition:transform .25s cubic-bezier(.785,.135,.15,.86);transition:transform .25s cubic-bezier(.785,.135,.15,.86),-webkit-transform .25s cubic-bezier(.785,.135,.15,.86)}.slide-next-enter,.slide-prev-leave-to{-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0);position:absolute;width:100%}.slide-next-leave-to,.slide-prev-enter{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0);position:absolute;width:100%}.slide-down-enter-active,.slide-down-leave-active,.slide-up-enter-active,.slide-up-leave-active{-webkit-transition:-webkit-transform .25s cubic-bezier(.785,.135,.15,.86);transition:-webkit-transform .25s cubic-bezier(.785,.135,.15,.86);transition:transform .25s cubic-bezier(.785,.135,.15,.86);transition:transform .25s cubic-bezier(.785,.135,.15,.86),-webkit-transform .25s cubic-bezier(.785,.135,.15,.86)}.slide-down-enter,.slide-up-leave-to{-webkit-transform:translate3d(0,-100%,0);transform:translate3d(0,-100%,0);position:absolute;height:100%}.slide-down-leave-to,.slide-up-enter{-webkit-transform:translate3d(0,100%,0);transform:translate3d(0,100%,0);position:absolute;height:100%}.slide-enter-active,.slide-leave-active{-webkit-transition:.15s ease-out;transition:.15s ease-out}.slide-leave-active{-webkit-transition-timing-function:cubic-bezier(0,1,.5,1);transition-timing-function:cubic-bezier(0,1,.5,1)}.slide-enter-to,.slide-leave{max-height:100px;overflow:hidden}.slide-enter,.slide-leave-to{overflow:hidden;max-height:0}.autocomplete{position:relative}.autocomplete .dropdown-menu{display:block;min-width:100%;max-width:100%}.autocomplete .dropdown-menu.is-opened-top{top:auto;bottom:100%}.autocomplete .dropdown-content{overflow:auto;max-height:200px}.autocomplete .dropdown .dropdown-menu .has-link a,.autocomplete .dropdown-item,.dropdown .dropdown-menu .has-link .autocomplete a{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.autocomplete .dropdown .dropdown-menu .has-link a.is-hovered,.autocomplete .dropdown-item.is-hovered,.dropdown .dropdown-menu .has-link .autocomplete a.is-hovered{background:#f5f5f5;color:#0a0a0a}.autocomplete .dropdown .dropdown-menu .has-link a.is-disabled,.autocomplete .dropdown-item.is-disabled,.dropdown .dropdown-menu .has-link .autocomplete a.is-disabled{opacity:.5;cursor:not-allowed}.autocomplete.is-small{border-radius:2px;font-size:.75rem}.autocomplete.is-medium{font-size:1.25rem}.autocomplete.is-large{font-size:1.5rem}.carousel{min-height:120px;position:relative}.carousel.is-overlay{background-color:hsla(0,0%,4%,.86);-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;display:-webkit-box;display:-ms-flexbox;display:flex;max-height:100vh;position:fixed;z-index:40}.carousel.is-overlay .carousel-item img{cursor:default}.carousel.is-overlay .carousel-indicator.has-background{background:transparent}.carousel .progress{border-radius:2px;height:.25rem;margin-bottom:0}.carousel .carousel-items{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;overflow:hidden;width:100%}@media print,screen and (min-width:769px){.carousel .carousel-items:hover .carousel-arrow.is-hovered{opacity:1}}.carousel .carousel-items .carousel-item{-ms-flex-negative:0;flex-shrink:0;width:100%}.carousel .carousel-pause{pointer-events:none;position:absolute;top:0;right:.15rem;z-index:1}.carousel .carousel-indicator{width:100%;padding:.5rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.carousel .carousel-indicator.has-background{background:hsla(0,0%,4%,.5)}.carousel .carousel-indicator.has-custom{-ms-flex-wrap:nowrap;flex-wrap:nowrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;-webkit-overflow-scrolling:touch;overflow:hidden;overflow-x:auto}.carousel .carousel-indicator.has-custom.is-small .indicator-item{-webkit-box-flex:1;-ms-flex:1 0 10%;flex:1 0 10%}.carousel .carousel-indicator.has-custom.is-medium .indicator-item{-webkit-box-flex:1;-ms-flex:1 0 16.66667%;flex:1 0 16.66667%}.carousel .carousel-indicator.is-inside{position:absolute}.carousel .carousel-indicator.is-inside.is-bottom{bottom:0}.carousel .carousel-indicator.is-inside.is-top{top:0}.carousel .carousel-indicator .indicator-item:not(:last-child){margin-right:.5rem}.carousel .carousel-indicator .indicator-item .indicator-style:hover,.carousel .carousel-indicator .indicator-item.is-active .indicator-style{background:#26a69a;border:1px solid #fff}.carousel .carousel-indicator .indicator-item .indicator-style{display:block;border:1px solid #26a69a;background:#fff;outline:none;-webkit-transition:.15s ease-out;transition:.15s ease-out}.carousel .carousel-indicator .indicator-item .indicator-style.is-boxes{height:10px;width:10px}.carousel .carousel-indicator .indicator-item .indicator-style.is-dots{border-radius:10px;height:10px;width:10px}.carousel .carousel-indicator .indicator-item .indicator-style.is-lines{height:5px;width:25px}.carousel-list{position:relative;overflow:hidden;width:100%}.carousel-list.has-shadow{-webkit-box-shadow:0 0 10px rgba(0,0,0,.25);box-shadow:0 0 10px rgba(0,0,0,.25)}@media print,screen and (min-width:769px){.carousel-list:hover .carousel-arrow.is-hovered{opacity:1}}.carousel-list .carousel-slides{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;width:100%}.carousel-list .carousel-slides:not(.is-dragging){-webkit-transition:all .25s ease-out 0s;transition:all .25s ease-out 0s}.carousel-list .carousel-slides.has-grayscale .carousel-slide img{-webkit-filter:grayscale(100%);filter:grayscale(100%)}.carousel-list .carousel-slides.has-grayscale .carousel-slide.is-active img{-webkit-filter:grayscale(0);filter:grayscale(0)}.carousel-list .carousel-slides.has-opacity .carousel-slide img{opacity:.25}.carousel-list .carousel-slides.has-opacity .carousel-slide.is-active img{opacity:1}.carousel-list .carousel-slides .carousel-slide{border:2px solid transparent;-ms-flex-negative:0;flex-shrink:0}.carousel-arrow{-webkit-transition:.15s ease-out;transition:.15s ease-out}.carousel-arrow.is-hovered{opacity:0}.carousel-arrow .icon{background:#fff;color:#26a69a;cursor:pointer;border:1px solid #fff;border-radius:290486px;outline:0}.carousel-arrow .icon:hover{border:1px solid #26a69a;opacity:1}.carousel-arrow .icon.has-icons-left,.carousel-arrow .icon.has-icons-right{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);z-index:1}.carousel-arrow .icon.has-icons-left{left:1.5rem}.carousel-arrow .icon.has-icons-right{right:1.5rem}.b-checkbox.checkbox{outline:none;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.b-checkbox.checkbox:not(.button){margin-right:.5em}.b-checkbox.checkbox:not(.button)+.checkbox:last-child{margin-right:0}.b-checkbox.checkbox input[type=checkbox]{position:absolute;left:0;opacity:0;outline:none;z-index:-1}.b-checkbox.checkbox input[type=checkbox]+.check{width:1.25em;height:1.25em;-ms-flex-negative:0;flex-shrink:0;border-radius:4px;border:2px solid #7a7a7a;-webkit-transition:background .15s ease-out;transition:background .15s ease-out;background:transparent}.b-checkbox.checkbox input[type=checkbox]:checked+.check{background:#26a69a url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%23fff' d='M.04.627.146.52.43.804.323.91zm.177.177L.854.167.96.273.323.91z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#26a69a}.b-checkbox.checkbox input[type=checkbox]:checked+.check.is-white{background:#fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%230a0a0a' d='M.04.627.146.52.43.804.323.91zm.177.177L.854.167.96.273.323.91z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#fff}.b-checkbox.checkbox input[type=checkbox]:checked+.check.is-black{background:#0a0a0a url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%23fff' d='M.04.627.146.52.43.804.323.91zm.177.177L.854.167.96.273.323.91z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#0a0a0a}.b-checkbox.checkbox input[type=checkbox]:checked+.check.is-light{background:#f5f5f5 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%23363636' d='M.04.627.146.52.43.804.323.91zm.177.177L.854.167.96.273.323.91z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#f5f5f5}.b-checkbox.checkbox input[type=checkbox]:checked+.check.is-dark{background:#363636 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%23f5f5f5' d='M.04.627.146.52.43.804.323.91zm.177.177L.854.167.96.273.323.91z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#363636}.b-checkbox.checkbox input[type=checkbox]:checked+.check.is-primary{background:#26a69a url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%23fff' d='M.04.627.146.52.43.804.323.91zm.177.177L.854.167.96.273.323.91z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#26a69a}.b-checkbox.checkbox input[type=checkbox]:checked+.check.is-info{background:#209cee url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%23fff' d='M.04.627.146.52.43.804.323.91zm.177.177L.854.167.96.273.323.91z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#209cee}.b-checkbox.checkbox input[type=checkbox]:checked+.check.is-success{background:#23d160 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%23fff' d='M.04.627.146.52.43.804.323.91zm.177.177L.854.167.96.273.323.91z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#23d160}.b-checkbox.checkbox input[type=checkbox]:checked+.check.is-warning{background:#ffdd57 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:rgba(0,0,0,.7)' d='M.04.627.146.52.43.804.323.91zm.177.177L.854.167.96.273.323.91z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#ffdd57}.b-checkbox.checkbox input[type=checkbox]:checked+.check.is-danger{background:#f44336 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%23fff' d='M.04.627.146.52.43.804.323.91zm.177.177L.854.167.96.273.323.91z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#f44336}.b-checkbox.checkbox input[type=checkbox]:checked+.check.is-twitter{background:#4099ff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%23fff' d='M.04.627.146.52.43.804.323.91zm.177.177L.854.167.96.273.323.91z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#4099ff}.b-checkbox.checkbox input[type=checkbox]:indeterminate+.check{background:#26a69a url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%23fff' d='M.15.4h.7v.2h-.7z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#26a69a}.b-checkbox.checkbox input[type=checkbox]:indeterminate+.check.is-white{background:#fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%230a0a0a' d='M.15.4h.7v.2h-.7z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#fff}.b-checkbox.checkbox input[type=checkbox]:indeterminate+.check.is-black{background:#0a0a0a url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%23fff' d='M.15.4h.7v.2h-.7z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#0a0a0a}.b-checkbox.checkbox input[type=checkbox]:indeterminate+.check.is-light{background:#f5f5f5 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%23363636' d='M.15.4h.7v.2h-.7z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#f5f5f5}.b-checkbox.checkbox input[type=checkbox]:indeterminate+.check.is-dark{background:#363636 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%23f5f5f5' d='M.15.4h.7v.2h-.7z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#363636}.b-checkbox.checkbox input[type=checkbox]:indeterminate+.check.is-primary{background:#26a69a url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%23fff' d='M.15.4h.7v.2h-.7z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#26a69a}.b-checkbox.checkbox input[type=checkbox]:indeterminate+.check.is-info{background:#209cee url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%23fff' d='M.15.4h.7v.2h-.7z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#209cee}.b-checkbox.checkbox input[type=checkbox]:indeterminate+.check.is-success{background:#23d160 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%23fff' d='M.15.4h.7v.2h-.7z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#23d160}.b-checkbox.checkbox input[type=checkbox]:indeterminate+.check.is-warning{background:#ffdd57 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:rgba(0,0,0,.7)' d='M.15.4h.7v.2h-.7z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#ffdd57}.b-checkbox.checkbox input[type=checkbox]:indeterminate+.check.is-danger{background:#f44336 url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%23fff' d='M.15.4h.7v.2h-.7z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#f44336}.b-checkbox.checkbox input[type=checkbox]:indeterminate+.check.is-twitter{background:#4099ff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%23fff' d='M.15.4h.7v.2h-.7z'/%3E%3C/svg%3E") no-repeat 50%;border-color:#4099ff}.b-checkbox.checkbox input[type=checkbox]:focus+.check{-webkit-box-shadow:0 0 .5em hsla(0,0%,48%,.8);box-shadow:0 0 .5em hsla(0,0%,48%,.8)}.b-checkbox.checkbox input[type=checkbox]:focus:checked+.check{-webkit-box-shadow:0 0 .5em rgba(38,166,154,.8);box-shadow:0 0 .5em rgba(38,166,154,.8)}.b-checkbox.checkbox input[type=checkbox]:focus:checked+.check.is-white{-webkit-box-shadow:0 0 .5em hsla(0,0%,100%,.8);box-shadow:0 0 .5em hsla(0,0%,100%,.8)}.b-checkbox.checkbox input[type=checkbox]:focus:checked+.check.is-black{-webkit-box-shadow:0 0 .5em hsla(0,0%,4%,.8);box-shadow:0 0 .5em hsla(0,0%,4%,.8)}.b-checkbox.checkbox input[type=checkbox]:focus:checked+.check.is-light{-webkit-box-shadow:0 0 .5em hsla(0,0%,96%,.8);box-shadow:0 0 .5em hsla(0,0%,96%,.8)}.b-checkbox.checkbox input[type=checkbox]:focus:checked+.check.is-dark{-webkit-box-shadow:0 0 .5em rgba(54,54,54,.8);box-shadow:0 0 .5em rgba(54,54,54,.8)}.b-checkbox.checkbox input[type=checkbox]:focus:checked+.check.is-primary{-webkit-box-shadow:0 0 .5em rgba(38,166,154,.8);box-shadow:0 0 .5em rgba(38,166,154,.8)}.b-checkbox.checkbox input[type=checkbox]:focus:checked+.check.is-info{-webkit-box-shadow:0 0 .5em rgba(32,156,238,.8);box-shadow:0 0 .5em rgba(32,156,238,.8)}.b-checkbox.checkbox input[type=checkbox]:focus:checked+.check.is-success{-webkit-box-shadow:0 0 .5em rgba(35,209,96,.8);box-shadow:0 0 .5em rgba(35,209,96,.8)}.b-checkbox.checkbox input[type=checkbox]:focus:checked+.check.is-warning{-webkit-box-shadow:0 0 .5em rgba(255,221,87,.8);box-shadow:0 0 .5em rgba(255,221,87,.8)}.b-checkbox.checkbox input[type=checkbox]:focus:checked+.check.is-danger{-webkit-box-shadow:0 0 .5em rgba(244,67,54,.8);box-shadow:0 0 .5em rgba(244,67,54,.8)}.b-checkbox.checkbox input[type=checkbox]:focus:checked+.check.is-twitter{-webkit-box-shadow:0 0 .5em rgba(64,153,255,.8);box-shadow:0 0 .5em rgba(64,153,255,.8)}.b-checkbox.checkbox .control-label{padding-left:.5em}.b-checkbox.checkbox.button{display:-webkit-box;display:-ms-flexbox;display:flex}.b-checkbox.checkbox[disabled]{opacity:.5}.b-checkbox.checkbox:hover input[type=checkbox]:not(:disabled)+.check{border-color:#26a69a}.b-checkbox.checkbox:hover input[type=checkbox]:not(:disabled)+.check.is-white{border-color:#fff}.b-checkbox.checkbox:hover input[type=checkbox]:not(:disabled)+.check.is-black{border-color:#0a0a0a}.b-checkbox.checkbox:hover input[type=checkbox]:not(:disabled)+.check.is-light{border-color:#f5f5f5}.b-checkbox.checkbox:hover input[type=checkbox]:not(:disabled)+.check.is-dark{border-color:#363636}.b-checkbox.checkbox:hover input[type=checkbox]:not(:disabled)+.check.is-primary{border-color:#26a69a}.b-checkbox.checkbox:hover input[type=checkbox]:not(:disabled)+.check.is-info{border-color:#209cee}.b-checkbox.checkbox:hover input[type=checkbox]:not(:disabled)+.check.is-success{border-color:#23d160}.b-checkbox.checkbox:hover input[type=checkbox]:not(:disabled)+.check.is-warning{border-color:#ffdd57}.b-checkbox.checkbox:hover input[type=checkbox]:not(:disabled)+.check.is-danger{border-color:#f44336}.b-checkbox.checkbox:hover input[type=checkbox]:not(:disabled)+.check.is-twitter{border-color:#4099ff}.b-checkbox.checkbox.is-small{border-radius:2px;font-size:.75rem}.b-checkbox.checkbox.is-medium{font-size:1.25rem}.b-checkbox.checkbox.is-large{font-size:1.5rem}.b-clockpicker .card-header{background-color:#26a69a;color:#fff}.b-clockpicker .b-clockpicker-face:after{background-color:#26a69a}.b-clockpicker .b-clockpicker-face-hand{background-color:#26a69a;border-color:#26a69a}.b-clockpicker .b-clockpicker-face-number.active{background-color:#26a69a;color:#fff}.b-clockpicker.is-white .card-header{background-color:#fff;color:#0a0a0a}.b-clockpicker.is-white .b-clockpicker-face:after{background-color:#fff}.b-clockpicker.is-white .b-clockpicker-face-hand{background-color:#fff;border-color:#fff}.b-clockpicker.is-white .b-clockpicker-face-number.active{background-color:#fff;color:#0a0a0a}.b-clockpicker.is-black .card-header{background-color:#0a0a0a;color:#fff}.b-clockpicker.is-black .b-clockpicker-face:after{background-color:#0a0a0a}.b-clockpicker.is-black .b-clockpicker-face-hand{background-color:#0a0a0a;border-color:#0a0a0a}.b-clockpicker.is-black .b-clockpicker-face-number.active{background-color:#0a0a0a;color:#fff}.b-clockpicker.is-light .card-header{background-color:#f5f5f5;color:#363636}.b-clockpicker.is-light .b-clockpicker-face:after{background-color:#f5f5f5}.b-clockpicker.is-light .b-clockpicker-face-hand{background-color:#f5f5f5;border-color:#f5f5f5}.b-clockpicker.is-light .b-clockpicker-face-number.active{background-color:#f5f5f5;color:#363636}.b-clockpicker.is-dark .card-header{background-color:#363636;color:#f5f5f5}.b-clockpicker.is-dark .b-clockpicker-face:after{background-color:#363636}.b-clockpicker.is-dark .b-clockpicker-face-hand{background-color:#363636;border-color:#363636}.b-clockpicker.is-dark .b-clockpicker-face-number.active{background-color:#363636;color:#f5f5f5}.b-clockpicker.is-primary .card-header{background-color:#26a69a;color:#fff}.b-clockpicker.is-primary .b-clockpicker-face:after{background-color:#26a69a}.b-clockpicker.is-primary .b-clockpicker-face-hand{background-color:#26a69a;border-color:#26a69a}.b-clockpicker.is-primary .b-clockpicker-face-number.active{background-color:#26a69a;color:#fff}.b-clockpicker.is-info .card-header{background-color:#209cee;color:#fff}.b-clockpicker.is-info .b-clockpicker-face:after{background-color:#209cee}.b-clockpicker.is-info .b-clockpicker-face-hand{background-color:#209cee;border-color:#209cee}.b-clockpicker.is-info .b-clockpicker-face-number.active{background-color:#209cee;color:#fff}.b-clockpicker.is-success .card-header{background-color:#23d160;color:#fff}.b-clockpicker.is-success .b-clockpicker-face:after{background-color:#23d160}.b-clockpicker.is-success .b-clockpicker-face-hand{background-color:#23d160;border-color:#23d160}.b-clockpicker.is-success .b-clockpicker-face-number.active{background-color:#23d160;color:#fff}.b-clockpicker.is-warning .card-header{background-color:#ffdd57;color:rgba(0,0,0,.7)}.b-clockpicker.is-warning .b-clockpicker-face:after{background-color:#ffdd57}.b-clockpicker.is-warning .b-clockpicker-face-hand{background-color:#ffdd57;border-color:#ffdd57}.b-clockpicker.is-warning .b-clockpicker-face-number.active{background-color:#ffdd57;color:rgba(0,0,0,.7)}.b-clockpicker.is-danger .card-header{background-color:#f44336;color:#fff}.b-clockpicker.is-danger .b-clockpicker-face:after{background-color:#f44336}.b-clockpicker.is-danger .b-clockpicker-face-hand{background-color:#f44336;border-color:#f44336}.b-clockpicker.is-danger .b-clockpicker-face-number.active{background-color:#f44336;color:#fff}.b-clockpicker.is-twitter .card-header{background-color:#4099ff;color:#fff}.b-clockpicker.is-twitter .b-clockpicker-face:after{background-color:#4099ff}.b-clockpicker.is-twitter .b-clockpicker-face-hand{background-color:#4099ff;border-color:#4099ff}.b-clockpicker.is-twitter .b-clockpicker-face-number.active{background-color:#4099ff;color:#fff}.b-clockpicker .dropdown-menu{min-width:0}.b-clockpicker .dropdown,.b-clockpicker .dropdown-trigger{width:100%}.b-clockpicker .dropdown .input[readonly],.b-clockpicker .dropdown .taginput [readonly].taginput-container.is-focusable,.b-clockpicker .dropdown-trigger .input[readonly],.b-clockpicker .dropdown-trigger .taginput [readonly].taginput-container.is-focusable,.taginput .b-clockpicker .dropdown [readonly].taginput-container.is-focusable,.taginput .b-clockpicker .dropdown-trigger [readonly].taginput-container.is-focusable{cursor:pointer;-webkit-box-shadow:inset 0 1px 2px hsla(0,0%,4%,.1);box-shadow:inset 0 1px 2px hsla(0,0%,4%,.1)}.b-clockpicker .dropdown .input[readonly].is-active,.b-clockpicker .dropdown .input[readonly].is-focused,.b-clockpicker .dropdown .input[readonly]:active,.b-clockpicker .dropdown .input[readonly]:focus,.b-clockpicker .dropdown .taginput [readonly].is-active.taginput-container.is-focusable,.b-clockpicker .dropdown .taginput [readonly].is-focused.taginput-container.is-focusable,.b-clockpicker .dropdown .taginput [readonly].taginput-container.is-focusable:active,.b-clockpicker .dropdown .taginput [readonly].taginput-container.is-focusable:focus,.b-clockpicker .dropdown-trigger .input[readonly].is-active,.b-clockpicker .dropdown-trigger .input[readonly].is-focused,.b-clockpicker .dropdown-trigger .input[readonly]:active,.b-clockpicker .dropdown-trigger .input[readonly]:focus,.b-clockpicker .dropdown-trigger .taginput [readonly].is-active.taginput-container.is-focusable,.b-clockpicker .dropdown-trigger .taginput [readonly].is-focused.taginput-container.is-focusable,.b-clockpicker .dropdown-trigger .taginput [readonly].taginput-container.is-focusable:active,.b-clockpicker .dropdown-trigger .taginput [readonly].taginput-container.is-focusable:focus,.taginput .b-clockpicker .dropdown [readonly].is-active.taginput-container.is-focusable,.taginput .b-clockpicker .dropdown [readonly].is-focused.taginput-container.is-focusable,.taginput .b-clockpicker .dropdown [readonly].taginput-container.is-focusable:active,.taginput .b-clockpicker .dropdown [readonly].taginput-container.is-focusable:focus,.taginput .b-clockpicker .dropdown-trigger [readonly].is-active.taginput-container.is-focusable,.taginput .b-clockpicker .dropdown-trigger [readonly].is-focused.taginput-container.is-focusable,.taginput .b-clockpicker .dropdown-trigger [readonly].taginput-container.is-focusable:active,.taginput .b-clockpicker .dropdown-trigger [readonly].taginput-container.is-focusable:focus{-webkit-box-shadow:0 0 0 .125em rgba(38,166,154,.25);box-shadow:0 0 0 .125em rgba(38,166,154,.25)}.b-clockpicker .dropdown .dropdown-menu .has-link a,.b-clockpicker .dropdown-item,.dropdown .dropdown-menu .has-link .b-clockpicker a{font-size:inherit;padding:0}.b-clockpicker .dropdown-content{padding-top:0;padding-bottom:0}.b-clockpicker .card{border-radius:4px}.b-clockpicker .card-header{border-top-left-radius:4px;border-top-right-radius:4px}.b-clockpicker .card-content{padding:12px}.b-clockpicker-btn{cursor:pointer;opacity:.6}.b-clockpicker-btn.active,.b-clockpicker-btn:hover{opacity:1}.b-clockpicker-period .b-clockpicker-btn{font-size:16px;text-transform:uppercase}.b-clockpicker-time span{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.b-clockpicker-header{display:-webkit-box;display:-ms-flexbox;display:flex;line-height:1;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;color:inherit}.b-clockpicker-header .b-clockpicker-time{white-space:nowrap}.b-clockpicker-header .b-clockpicker-time span{height:60px;font-size:60px}.b-clockpicker-header .b-clockpicker-period{-ms-flex-item-align:end;align-self:flex-end;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;margin:8px 0 6px 8px}.b-clockpicker-body{-webkit-transition:.9s cubic-bezier(.25,.8,.5,1);transition:.9s cubic-bezier(.25,.8,.5,1)}.b-clockpicker-body .b-clockpicker-btn{padding:0 8px;border-radius:290486px;margin-bottom:2px}.b-clockpicker-body .b-clockpicker-btn.active,.b-clockpicker-body .b-clockpicker-btn:hover{background-color:#26a69a;color:#fff}.b-clockpicker-body .b-clockpicker-period{position:absolute;top:5px;right:5px}.b-clockpicker-body .b-clockpicker-time{position:absolute;top:5px;left:5px;font-size:16px}.b-clockpicker-body .b-clockpicker-face{border-radius:50%;position:relative;background-color:#dbdbdb;width:100%;height:100%;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.b-clockpicker-body .b-clockpicker-face:after{border-radius:50%;content:"";position:absolute;left:50%;top:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:12px;height:12px;z-index:10}.b-clockpicker-body .b-clockpicker-face-outer-ring{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;height:calc(100% - 50px);width:calc(100% - 50px);position:relative;border-radius:50%}.b-clockpicker-body .b-clockpicker-face-number{-webkit-box-align:center;-ms-flex-align:center;align-items:center;border-radius:100%;cursor:default;display:-webkit-box;display:-ms-flexbox;display:flex;font-size:18px;text-align:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;width:40px;height:40px;left:calc(50% - 20px);top:calc(50% - 20px);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.b-clockpicker-body .b-clockpicker-face-number>span{z-index:1}.b-clockpicker-body .b-clockpicker-face-number:after,.b-clockpicker-body .b-clockpicker-face-number:before{content:"";height:40px;width:40px;border-radius:100%;position:absolute;top:50%;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.b-clockpicker-body .b-clockpicker-face-number.active{cursor:default;z-index:2}.b-clockpicker-body .b-clockpicker-face-number.disabled{pointer-events:none;opacity:.25}.b-clockpicker-body .b-clockpicker-face-hand{height:calc(50% - 6px);width:2px;bottom:50%;left:calc(50% - 1px);-webkit-transform-origin:center bottom;transform-origin:center bottom;position:absolute;will-change:transform;z-index:1}.b-clockpicker-body .b-clockpicker-face-hand:before{background:transparent;border-width:2px;border-style:solid;border-color:inherit;border-radius:100%;width:12px;height:12px;content:"";position:absolute;top:-6px;left:50%;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.b-clockpicker-footer{display:block;padding:12px}.b-clockpicker.is-small{border-radius:2px;font-size:.75rem}.b-clockpicker.is-medium{font-size:1.25rem}.b-clockpicker.is-large{font-size:1.5rem}.collapse .collapse-trigger{display:inline;cursor:pointer}.collapse .collapse-content{display:inherit}.datepicker{font-size:.875rem}.datepicker .dropdown,.datepicker .dropdown-trigger{width:100%}.datepicker .dropdown .input[readonly],.datepicker .dropdown .taginput [readonly].taginput-container.is-focusable,.datepicker .dropdown-trigger .input[readonly],.datepicker .dropdown-trigger .taginput [readonly].taginput-container.is-focusable,.taginput .datepicker .dropdown [readonly].taginput-container.is-focusable,.taginput .datepicker .dropdown-trigger [readonly].taginput-container.is-focusable{cursor:pointer;-webkit-box-shadow:inset 0 1px 2px hsla(0,0%,4%,.1);box-shadow:inset 0 1px 2px hsla(0,0%,4%,.1)}.datepicker .dropdown .input[readonly].is-active,.datepicker .dropdown .input[readonly].is-focused,.datepicker .dropdown .input[readonly]:active,.datepicker .dropdown .input[readonly]:focus,.datepicker .dropdown .taginput [readonly].is-active.taginput-container.is-focusable,.datepicker .dropdown .taginput [readonly].is-focused.taginput-container.is-focusable,.datepicker .dropdown .taginput [readonly].taginput-container.is-focusable:active,.datepicker .dropdown .taginput [readonly].taginput-container.is-focusable:focus,.datepicker .dropdown-trigger .input[readonly].is-active,.datepicker .dropdown-trigger .input[readonly].is-focused,.datepicker .dropdown-trigger .input[readonly]:active,.datepicker .dropdown-trigger .input[readonly]:focus,.datepicker .dropdown-trigger .taginput [readonly].is-active.taginput-container.is-focusable,.datepicker .dropdown-trigger .taginput [readonly].is-focused.taginput-container.is-focusable,.datepicker .dropdown-trigger .taginput [readonly].taginput-container.is-focusable:active,.datepicker .dropdown-trigger .taginput [readonly].taginput-container.is-focusable:focus,.taginput .datepicker .dropdown [readonly].is-active.taginput-container.is-focusable,.taginput .datepicker .dropdown [readonly].is-focused.taginput-container.is-focusable,.taginput .datepicker .dropdown [readonly].taginput-container.is-focusable:active,.taginput .datepicker .dropdown [readonly].taginput-container.is-focusable:focus,.taginput .datepicker .dropdown-trigger [readonly].is-active.taginput-container.is-focusable,.taginput .datepicker .dropdown-trigger [readonly].is-focused.taginput-container.is-focusable,.taginput .datepicker .dropdown-trigger [readonly].taginput-container.is-focusable:active,.taginput .datepicker .dropdown-trigger [readonly].taginput-container.is-focusable:focus{-webkit-box-shadow:0 0 0 .125em rgba(38,166,154,.25);box-shadow:0 0 0 .125em rgba(38,166,154,.25)}.datepicker .dropdown.is-disabled{opacity:1}.datepicker .dropdown-content{background-color:#fff;border-radius:4px;-webkit-box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1)}.datepicker .dropdown .dropdown-menu .has-link a,.datepicker .dropdown-item,.dropdown .dropdown-menu .has-link .datepicker a{font-size:inherit}.datepicker .datepicker-header{padding-bottom:.875rem;margin-bottom:.875rem;border-bottom:1px solid #dbdbdb}.datepicker .datepicker-footer{margin-top:.875rem;padding-top:.875rem;border-top:1px solid #dbdbdb}.datepicker .datepicker-table{display:table;margin:0 auto 0 auto}.datepicker .datepicker-table .datepicker-cell{text-align:center;vertical-align:middle;display:table-cell;border-radius:4px;padding:.5rem .75rem}.datepicker .datepicker-table .datepicker-header{display:table-header-group}.datepicker .datepicker-table .datepicker-header .datepicker-cell{color:#7a7a7a;font-weight:600}.datepicker .datepicker-table .datepicker-body{display:table-row-group}.datepicker .datepicker-table .datepicker-body .datepicker-row{display:table-row}.datepicker .datepicker-table .datepicker-body .datepicker-months{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;width:17rem}.datepicker .datepicker-table .datepicker-body .datepicker-months .datepicker-cell{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:33.33%;height:2.5rem}.datepicker .datepicker-table .datepicker-body .datepicker-cell.is-unselectable{color:#b5b5b5}.datepicker .datepicker-table .datepicker-body .datepicker-cell.is-today{border:1px solid rgba(38,166,154,.5)}.datepicker .datepicker-table .datepicker-body .datepicker-cell.is-selectable{color:#4a4a4a}.datepicker .datepicker-table .datepicker-body .datepicker-cell.is-selectable:focus:not(.is-selected),.datepicker .datepicker-table .datepicker-body .datepicker-cell.is-selectable:hover:not(.is-selected){background-color:#f5f5f5;color:#0a0a0a;cursor:pointer}.datepicker .datepicker-table .datepicker-body .datepicker-cell.is-selectable.is-within-hovered-range.is-first-hovered{background-color:#7a7a7a;color:#dbdbdb;border-bottom-right-radius:0;border-top-right-radius:0}.datepicker .datepicker-table .datepicker-body .datepicker-cell.is-selectable.is-within-hovered-range.is-within-hovered{background-color:#f5f5f5;color:#0a0a0a;border-radius:0}.datepicker .datepicker-table .datepicker-body .datepicker-cell.is-selectable.is-within-hovered-range.is-last-hovered{background-color:#7a7a7a;color:#dbdbdb;border-bottom-left-radius:0;border-top-left-radius:0}.datepicker .datepicker-table .datepicker-body .datepicker-cell.is-selected{background-color:#26a69a;color:#fff}.datepicker .datepicker-table .datepicker-body .datepicker-cell.is-selected.is-first-selected{background-color:#26a69a;color:#fff;border-bottom-right-radius:0;border-top-right-radius:0}.datepicker .datepicker-table .datepicker-body .datepicker-cell.is-selected.is-within-selected{background-color:rgba(38,166,154,.5);border-radius:0}.datepicker .datepicker-table .datepicker-body .datepicker-cell.is-selected.is-last-selected{background-color:#26a69a;color:#fff;border-bottom-left-radius:0;border-top-left-radius:0}.datepicker .datepicker-table .datepicker-body .datepicker-cell.is-nearby:not(.is-selected){color:#b5b5b5}.datepicker .datepicker-table .datepicker-body .datepicker-cell.is-week-number{cursor:default}.datepicker .datepicker-table .datepicker-body.has-events .datepicker-cell{padding:.3rem .75rem .75rem}.datepicker .datepicker-table .datepicker-body.has-events .datepicker-cell.has-event{position:relative}.datepicker .datepicker-table .datepicker-body.has-events .datepicker-cell.has-event .events{bottom:.425rem;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;left:0;padding:0 .35rem;position:absolute;width:100%}.datepicker .datepicker-table .datepicker-body.has-events .datepicker-cell.has-event .events .event.is-white{background-color:#fff}.datepicker .datepicker-table .datepicker-body.has-events .datepicker-cell.has-event .events .event.is-black{background-color:#0a0a0a}.datepicker .datepicker-table .datepicker-body.has-events .datepicker-cell.has-event .events .event.is-light{background-color:#f5f5f5}.datepicker .datepicker-table .datepicker-body.has-events .datepicker-cell.has-event .events .event.is-dark{background-color:#363636}.datepicker .datepicker-table .datepicker-body.has-events .datepicker-cell.has-event .events .event.is-primary{background-color:#26a69a}.datepicker .datepicker-table .datepicker-body.has-events .datepicker-cell.has-event .events .event.is-info{background-color:#209cee}.datepicker .datepicker-table .datepicker-body.has-events .datepicker-cell.has-event .events .event.is-success{background-color:#23d160}.datepicker .datepicker-table .datepicker-body.has-events .datepicker-cell.has-event .events .event.is-warning{background-color:#ffdd57}.datepicker .datepicker-table .datepicker-body.has-events .datepicker-cell.has-event .events .event.is-danger{background-color:#f44336}.datepicker .datepicker-table .datepicker-body.has-events .datepicker-cell.has-event .events .event.is-twitter{background-color:#4099ff}.datepicker .datepicker-table .datepicker-body.has-events .datepicker-cell.has-event.dots .event{border-radius:50%;height:.35em;margin:0 .1em;width:.35em}.datepicker .datepicker-table .datepicker-body.has-events .datepicker-cell.has-event.bars .event{height:.25em;width:100%}.datepicker .datepicker-table .datepicker-body.has-events .datepicker-cell.is-selected{overflow:hidden}.datepicker .datepicker-table .datepicker-body.has-events .datepicker-cell.is-selected .events .event.is-primary{background-color:#44d4c7}.datepicker.is-small{border-radius:2px;font-size:.75rem}.datepicker.is-medium{font-size:1.25rem}.datepicker.is-large{font-size:1.5rem}@media screen and (min-width:1024px){.datepicker .footer-horizontal-timepicker{border:none;padding-left:10px;margin-left:5px}.datepicker .dropdown-horizonal-timepicker,.datepicker .footer-horizontal-timepicker{display:-webkit-box;display:-ms-flexbox;display:flex}.datepicker .content-horizonal-timepicker{border-right:1px solid #dbdbdb}}.dialog .modal-card{max-width:460px;width:auto}.dialog .modal-card .modal-card-head{font-size:1.25rem;font-weight:600}.dialog .modal-card .modal-card-body .field{margin-top:16px}.dialog .modal-card .modal-card-body.is-titleless{border-top-left-radius:6px;border-top-right-radius:6px}.dialog .modal-card .modal-card-foot{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.dialog .modal-card .modal-card-foot .button{display:inline;min-width:5em;font-weight:600}@media print,screen and (min-width:769px){.dialog .modal-card{min-width:320px}}.dialog.is-small .button,.dialog.is-small .input,.dialog.is-small .modal-card,.dialog.is-small .taginput .taginput-container.is-focusable,.taginput .dialog.is-small .taginput-container.is-focusable{border-radius:2px;font-size:.75rem}.dialog.is-medium .button,.dialog.is-medium .input,.dialog.is-medium .modal-card,.dialog.is-medium .taginput .taginput-container.is-focusable,.taginput .dialog.is-medium .taginput-container.is-focusable{font-size:1.25rem}.dialog.is-large .button,.dialog.is-large .input,.dialog.is-large .modal-card,.dialog.is-large .taginput .taginput-container.is-focusable,.taginput .dialog.is-large .taginput-container.is-focusable{font-size:1.5rem}.dialog.has-custom-container{position:absolute}.dropdown+.dropdown{margin-left:.5em}.dropdown .background{bottom:0;left:0;position:absolute;right:0;top:0;position:fixed;background-color:hsla(0,0%,4%,.86);z-index:40;cursor:pointer}@media screen and (min-width:1024px){.dropdown .background{display:none}}.dropdown.dropdown-menu-animation .dropdown-menu{display:block}.dropdown .dropdown-menu .dropdown-item.is-disabled,.dropdown .dropdown-menu .has-link a.is-disabled{cursor:not-allowed}.dropdown .dropdown-menu .dropdown-item.is-disabled:hover,.dropdown .dropdown-menu .has-link a.is-disabled:hover{background:inherit;color:inherit}.dropdown .dropdown-menu .has-link a{padding-right:3rem;white-space:nowrap}.dropdown.is-hoverable:not(.is-active) .dropdown-menu{display:none}.dropdown.is-hoverable:hover .dropdown-menu{display:inherit}.dropdown.is-expanded,.dropdown.is-expanded .dropdown-menu,.dropdown.is-expanded .dropdown-trigger{width:100%}.dropdown.is-expanded.is-mobile-modal .dropdown-menu{max-width:100%}.dropdown:not(.is-disabled) .dropdown-menu .dropdown-item.is-disabled,.dropdown:not(.is-disabled) .dropdown-menu .has-link a.is-disabled{opacity:.5}.dropdown .navbar-item{height:100%}.dropdown.is-disabled{opacity:.5;cursor:not-allowed}.dropdown.is-disabled .dropdown-trigger{pointer-events:none}.dropdown.is-inline .dropdown-menu{position:static;display:inline-block;padding:0}.dropdown.is-top-right .dropdown-menu{top:auto;bottom:100%}.dropdown.is-top-left .dropdown-menu{top:auto;bottom:100%;right:0;left:auto}.dropdown.is-bottom-left .dropdown-menu{right:0;left:auto}@media screen and (max-width:1023px){.dropdown.is-mobile-modal>.dropdown-menu{position:fixed!important;width:calc(100vw - 40px);max-width:460px;max-height:calc(100vh - 120px);top:25%!important;left:50%!important;bottom:auto!important;right:auto!important;-webkit-transform:translate3d(-50%,-25%,0);transform:translate3d(-50%,-25%,0);white-space:normal;overflow-y:auto;z-index:50!important}.dropdown .dropdown-menu .has-link .dropdown.is-mobile-modal>.dropdown-menu>.dropdown-content>a,.dropdown.is-mobile-modal>.dropdown-menu>.dropdown-content>.dropdown-item,.dropdown.is-mobile-modal>.dropdown-menu>.dropdown-content>.has-link a{padding:1rem 1.5rem}}.field.is-grouped .field{-ms-flex-negative:0;flex-shrink:0}.field.is-grouped .field:not(:last-child){margin-right:.75rem}.field.is-grouped .field.is-expanded{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.field.has-addons .control:first-child .control .button,.field.has-addons .control:first-child .control .input,.field.has-addons .control:first-child .control .select select,.field.has-addons .control:first-child .control .taginput .taginput-container.is-focusable,.taginput .field.has-addons .control:first-child .control .taginput-container.is-focusable{border-bottom-left-radius:4px;border-top-left-radius:4px}.field.has-addons .control:last-child .control .button,.field.has-addons .control:last-child .control .input,.field.has-addons .control:last-child .control .select select,.field.has-addons .control:last-child .control .taginput .taginput-container.is-focusable,.taginput .field.has-addons .control:last-child .control .taginput-container.is-focusable{border-bottom-right-radius:4px;border-top-right-radius:4px}.field.has-addons .control .control .button,.field.has-addons .control .control .input,.field.has-addons .control .control .select select,.field.has-addons .control .control .taginput .taginput-container.is-focusable,.taginput .field.has-addons .control .control .taginput-container.is-focusable{border-radius:0}.field.has-addons .b-numberinput:not(:first-child) .control:first-child .button,.field.has-addons .b-numberinput:not(:first-child) .control:first-child .input,.field.has-addons .b-numberinput:not(:first-child) .control:first-child .select select,.field.has-addons .b-numberinput:not(:first-child) .control:first-child .taginput .taginput-container.is-focusable,.taginput .field.has-addons .b-numberinput:not(:first-child) .control:first-child .taginput-container.is-focusable{border-bottom-left-radius:0;border-top-left-radius:0}.field.has-addons .b-numberinput:not(:last-child) .control:last-child .button,.field.has-addons .b-numberinput:not(:last-child) .control:last-child .input,.field.has-addons .b-numberinput:not(:last-child) .control:last-child .select select,.field.has-addons .b-numberinput:not(:last-child) .control:last-child .taginput .taginput-container.is-focusable,.taginput .field.has-addons .b-numberinput:not(:last-child) .control:last-child .taginput-container.is-focusable{border-bottom-right-radius:0;border-top-right-radius:0}.field.is-floating-in-label,.field.is-floating-label{position:relative}.field.is-floating-in-label .label,.field.is-floating-label .label{position:absolute;left:1em;font-size:.75rem;background-color:transparent;z-index:5}.field.is-floating-in-label .label.is-small,.field.is-floating-label .label.is-small{font-size:.5625rem}.field.is-floating-in-label .label.is-medium,.field.is-floating-label .label.is-medium{font-size:.9375rem}.field.is-floating-in-label .label.is-large,.field.is-floating-label .label.is-large{font-size:1.125rem}.field.is-floating-in-label .taginput .counter,.field.is-floating-label .taginput .counter{float:none;text-align:right}.field.is-floating-in-label.has-addons>.label+.control .button,.field.is-floating-in-label.has-addons>.label+.control .input,.field.is-floating-in-label.has-addons>.label+.control .select select,.field.is-floating-in-label.has-addons>.label+.control .taginput .taginput-container.is-focusable,.field.is-floating-label.has-addons>.label+.control .button,.field.is-floating-label.has-addons>.label+.control .input,.field.is-floating-label.has-addons>.label+.control .select select,.field.is-floating-label.has-addons>.label+.control .taginput .taginput-container.is-focusable,.taginput .field.is-floating-in-label.has-addons>.label+.control .taginput-container.is-focusable,.taginput .field.is-floating-label.has-addons>.label+.control .taginput-container.is-focusable{border-bottom-left-radius:4px;border-top-left-radius:4px}.field.is-floating-label .label{top:-.775em;padding-left:.125em;padding-right:.125em}.field.is-floating-label .label:before{content:"";display:block;position:absolute;top:.775em;left:0;right:0;height:.375em;background-color:#fff;z-index:-1}.field.is-floating-label .input:focus,.field.is-floating-label .select select:focus,.field.is-floating-label .taginput .taginput-container.is-focusable:focus,.field.is-floating-label .textarea:focus,.taginput .field.is-floating-label .taginput-container.is-focusable:focus{-webkit-box-shadow:none;box-shadow:none}.field.is-floating-label .taginput .taginput-container{padding-top:.475em}.field.is-floating-label .taginput .taginput-container.is-focused{-webkit-box-shadow:none;box-shadow:none}.field.is-floating-in-label .label{top:.25em}.field.is-floating-in-label>.datepicker .input,.field.is-floating-in-label>.datepicker .taginput .taginput-container.is-focusable,.field.is-floating-in-label>.timepicker .input,.field.is-floating-in-label>.timepicker .taginput .taginput-container.is-focusable,.field.is-floating-in-label>:not(.datepicker):not(.timepicker):not(.taginput) .input,.field.is-floating-in-label>:not(.datepicker):not(.timepicker):not(.taginput) .taginput .taginput-container.is-focusable,.field.is-floating-in-label>:not(.datepicker):not(.timepicker):not(.taginput) .textarea,.field.is-floating-in-label>:not(.datepicker):not(.timepicker):not(.taginput) select,.taginput .field.is-floating-in-label>.datepicker .taginput-container.is-focusable,.taginput .field.is-floating-in-label>.timepicker .taginput-container.is-focusable,.taginput .field.is-floating-in-label>:not(.datepicker):not(.timepicker):not(.taginput) .taginput-container.is-focusable{padding-top:calc(1.625em - .5625rem);padding-bottom:1px;height:3.25em}.field.is-floating-in-label>:not(.datepicker):not(.timepicker):not(.taginput) .select:not(multiple){height:3.25em}.field.is-floating-in-label>:not(.datepicker):not(.timepicker):not(.taginput) .select:not(multiple).is-loading:after{margin-top:calc(1.625em - .5625rem)}.field.is-floating-in-label>:not(.datepicker):not(.timepicker):not(.taginput) .select:not(multiple):after{margin-top:1px}.field.is-floating-in-label>:not(.taginput) .is-left.icon,.field.is-floating-in-label>:not(.taginput) .is-right.icon{height:3.25em}.field.is-floating-in-label>:not(.taginput) .is-left.icon{padding-top:calc(1.625em - .5625rem)}.field.is-floating-in-label .control.is-loading:after{margin-top:calc(1.625em - .5625rem)}.field.is-floating-in-label .taginput .taginput-container{padding-top:calc(1.9em - .5625rem - 1px)}.field.is-floating-in-label.has-addons .control .button,.field.is-floating-in-label.has-addons .control .input,.field.is-floating-in-label.has-addons .control .select select,.field.is-floating-in-label.has-addons .control .taginput .taginput-container.is-focusable,.field.is-floating-in-label.has-numberinput .b-numberinput .control .button,.field.is-floating-in-label.is-grouped .control .button,.field.is-floating-in-label.is-grouped .control .input,.field.is-floating-in-label.is-grouped .control .select select,.field.is-floating-in-label.is-grouped .control .taginput .taginput-container.is-focusable,.taginput .field.is-floating-in-label.has-addons .control .taginput-container.is-focusable,.taginput .field.is-floating-in-label.is-grouped .control .taginput-container.is-focusable{height:3.25em}.field.is-floating-in-label.has-numberinput .label,.field.is-floating-label.has-numberinput .label{margin-left:3rem}.field.is-floating-in-label.has-numberinput.has-numberinput-is-small .label,.field.is-floating-label.has-numberinput.has-numberinput-is-small .label{margin-left:2.25rem}.field.is-floating-in-label.has-numberinput.has-numberinput-is-medium .label,.field.is-floating-label.has-numberinput.has-numberinput-is-medium .label{margin-left:3.75rem}.field.is-floating-in-label.has-numberinput.has-numberinput-is-large .label,.field.is-floating-label.has-numberinput.has-numberinput-is-large .label{margin-left:4.5rem}.field.is-floating-in-label.has-numberinput-compact .label,.field.is-floating-label.has-numberinput-compact .label{margin-left:2.25rem}.field.is-floating-in-label.has-numberinput-compact.has-numberinput-is-small .label,.field.is-floating-label.has-numberinput-compact.has-numberinput-is-small .label{margin-left:1.6875rem}.field.is-floating-in-label.has-numberinput-compact.has-numberinput-is-medium .label,.field.is-floating-label.has-numberinput-compact.has-numberinput-is-medium .label{margin-left:2.8125rem}.field.is-floating-in-label.has-numberinput-compact.has-numberinput-is-large .label,.field.is-floating-label.has-numberinput-compact.has-numberinput-is-large .label{margin-left:3.375rem}.field.has-addons-right.is-floating-in-label .label,.field.has-addons-right.is-floating-label .label,.field.is-grouped-right.is-floating-in-label .label,.field.is-grouped-right.is-floating-label .label{position:relative;left:5.25em}.control .help.counter{float:right;margin-left:.5em}.control .icon.is-clickable{pointer-events:auto;cursor:pointer}.icon{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit}.icon svg{background-color:transparent;fill:currentColor;stroke-width:0;stroke:currentColor;pointer-events:none;width:1.5rem;height:1.5rem}.loading-overlay{bottom:0;left:0;position:absolute;right:0;top:0;-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:none;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;overflow:hidden;z-index:999}.loading-overlay.is-active{display:-webkit-box;display:-ms-flexbox;display:flex}.loading-overlay.is-full-page{position:fixed}.loading-overlay.is-full-page .loading-icon:after{top:calc(50% - 2.5em);left:calc(50% - 2.5em);width:5em;height:5em}.loading-overlay .loading-background{bottom:0;left:0;position:absolute;right:0;top:0;background:#7f7f7f;background:hsla(0,0%,100%,.5)}.loading-overlay .loading-icon{position:relative}.loading-overlay .loading-icon:after{-webkit-animation:spinAround .5s linear infinite;animation:spinAround .5s linear infinite;border:2px solid #dbdbdb;border-radius:290486px;border-right-color:transparent;border-top-color:transparent;content:"";display:block;height:1em;position:relative;width:1em;position:absolute;top:calc(50% - 1.5em);left:calc(50% - 1.5em);width:3em;height:3em;border-width:.25em}.menu .menu-list li>a.is-disabled{pointer-events:none;cursor:not-allowed;opacity:.5}.message .media,.notification .media{padding-top:0;border:0}.modal.is-full-screen>.animation-content,.modal.is-full-screen>.animation-content>.modal-card{width:100%;height:100%;max-height:100vh;margin:0;background-color:#f5f5f5}.modal .animation-content{margin:0 20px}.modal .animation-content .modal-card{margin:0}@media screen and (max-width:768px){.modal .animation-content{width:100%}}.modal .modal-content{width:100%}.notices{position:fixed;display:-webkit-box;display:-ms-flexbox;display:flex;top:0;bottom:0;left:0;right:0;padding:2em;overflow:hidden;z-index:1000;pointer-events:none}.notices .toast{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-animation-duration:.15s;animation-duration:.15s;margin:.5em 0;text-align:center;-webkit-box-shadow:0 1px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);box-shadow:0 1px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);border-radius:2em;padding:.75em 1.5em;pointer-events:auto;opacity:.92}.notices .toast.is-white{color:#0a0a0a;background:#fff}.notices .toast.is-black{color:#fff;background:#0a0a0a}.notices .toast.is-light{color:#363636;background:#f5f5f5}.notices .toast.is-dark{color:#f5f5f5;background:#363636}.notices .toast.is-primary{color:#fff;background:#26a69a}.notices .toast.is-info{color:#fff;background:#209cee}.notices .toast.is-success{color:#fff;background:#23d160}.notices .toast.is-warning{color:rgba(0,0,0,.7);background:#ffdd57}.notices .toast.is-danger{color:#fff;background:#f44336}.notices .toast.is-twitter{color:#fff;background:#4099ff}.notices .snackbar{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-pack:distribute;justify-content:space-around;-webkit-animation-duration:.15s;animation-duration:.15s;margin:.5em 0;-webkit-box-shadow:0 1px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);box-shadow:0 1px 4px rgba(0,0,0,.12),0 0 6px rgba(0,0,0,.04);border-radius:4px;pointer-events:auto;background:#363636;color:#f5f5f5;min-height:3em}.notices .snackbar .text{padding:.5em 1em}.notices .snackbar .action{margin-left:auto;padding:.5em;padding-left:0}.notices .snackbar .action .button{font-weight:600;text-transform:uppercase;background:#363636;border:transparent}.notices .snackbar .action .button:active,.notices .snackbar .action .button:hover{background:#292929}.notices .snackbar .action.is-white .button{color:#fff}.notices .snackbar .action.is-black .button{color:#0a0a0a}.notices .snackbar .action.is-light .button{color:#f5f5f5}.notices .snackbar .action.is-dark .button{color:#363636}.notices .snackbar .action.is-primary .button{color:#26a69a}.notices .snackbar .action.is-info .button{color:#209cee}.notices .snackbar .action.is-success .button{color:#23d160}.notices .snackbar .action.is-warning .button{color:#ffdd57}.notices .snackbar .action.is-danger .button{color:#f44336}.notices .snackbar .action.is-twitter .button{color:#4099ff}@media screen and (max-width:768px){.notices .snackbar{width:100%;margin:0;border-radius:0}}@media print,screen and (min-width:769px){.notices .snackbar{min-width:350px;max-width:600px;overflow:hidden}}.notices .notification{max-width:600px}.notices .notification.is-bottom,.notices .notification.is-top,.notices .snackbar.is-bottom,.notices .snackbar.is-top,.notices .toast.is-bottom,.notices .toast.is-top{-ms-flex-item-align:center;align-self:center}.notices .notification.is-bottom-right,.notices .notification.is-top-right,.notices .snackbar.is-bottom-right,.notices .snackbar.is-top-right,.notices .toast.is-bottom-right,.notices .toast.is-top-right{-ms-flex-item-align:end;align-self:flex-end}.notices .notification.is-bottom-left,.notices .notification.is-top-left,.notices .snackbar.is-bottom-left,.notices .snackbar.is-top-left,.notices .toast.is-bottom-left,.notices .toast.is-top-left{-ms-flex-item-align:start;align-self:flex-start}.notices .notification.is-toast,.notices .snackbar.is-toast,.notices .toast.is-toast{opacity:.92}.notices.is-top{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.notices.is-bottom{-webkit-box-orient:vertical;-webkit-box-direction:reverse;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.notices.is-bottom .notification{margin-bottom:0}.notices.is-bottom .notification:not(:first-child){margin-bottom:1.5rem}.notices.has-custom-container{position:absolute}@media screen and (max-width:768px){.notices{padding:0;position:fixed!important}}.b-numberinput.field{margin-bottom:0}.b-numberinput.field.has-addons.is-expanded,.b-numberinput.field.is-grouped div.control{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:1;flex-shrink:1}.b-numberinput input[type=number]::-webkit-inner-spin-button,.b-numberinput input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}.b-numberinput input[type=number]{-moz-appearance:textfield;text-align:center}.b-numberinput .button.is-rounded{padding-left:.75em;padding-right:.75em}.pagination .pagination-next,.pagination .pagination-previous{padding-left:.25em;padding-right:.25em}.pagination .pagination-next.is-disabled,.pagination .pagination-previous.is-disabled{pointer-events:none;cursor:not-allowed;opacity:.5}.pagination.is-simple{-webkit-box-pack:normal;-ms-flex-pack:normal;justify-content:normal}.pagination.is-simple.is-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.pagination.is-simple.is-right{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.pagination .is-current{pointer-events:none;cursor:not-allowed}.progress-wrapper{position:relative;overflow:hidden}.progress-wrapper:not(:last-child){margin-bottom:1.5rem}.progress-wrapper .progress-value{position:absolute;top:0;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);font-size:.66667rem;line-height:1rem;font-weight:700;color:#fff;white-space:nowrap}.progress-wrapper .progress{margin-bottom:0}.progress-wrapper .progress.is-small+.progress-value{font-size:.5rem;line-height:.75rem}.progress-wrapper .progress.is-medium+.progress-value{font-size:.83333rem;line-height:1.25rem}.progress-wrapper .progress.is-large+.progress-value{font-size:1rem;line-height:1.5rem}.progress-wrapper .progress:indeterminate::-ms-fill{animation-name:none}.progress-wrapper .progress::-webkit-progress-value{-webkit-transition:width .5s ease;transition:width .5s ease}.b-radio.radio{outline:none;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.b-radio.radio:not(.button){margin-right:.5em}.b-radio.radio:not(.button)+.radio:last-child{margin-right:0}.b-radio.radio+.radio{margin-left:0}.b-radio.radio input[type=radio]{position:absolute;left:0;opacity:0;outline:none;z-index:-1}.b-radio.radio input[type=radio]+.check{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-negative:0;flex-shrink:0;position:relative;cursor:pointer;width:1.25em;height:1.25em;-webkit-transition:background .15s ease-out;transition:background .15s ease-out;border-radius:50%;border:2px solid #7a7a7a}.b-radio.radio input[type=radio]+.check:before{content:"";display:-webkit-box;display:-ms-flexbox;display:flex;position:absolute;left:50%;margin-left:-.625em;bottom:50%;margin-bottom:-.625em;width:1.25em;height:1.25em;-webkit-transition:-webkit-transform .15s ease-out;transition:-webkit-transform .15s ease-out;transition:transform .15s ease-out;transition:transform .15s ease-out,-webkit-transform .15s ease-out;border-radius:50%;-webkit-transform:scale(0);transform:scale(0);background-color:#26a69a}.b-radio.radio input[type=radio]+.check.is-white:before{background:#fff}.b-radio.radio input[type=radio]+.check.is-black:before{background:#0a0a0a}.b-radio.radio input[type=radio]+.check.is-light:before{background:#f5f5f5}.b-radio.radio input[type=radio]+.check.is-dark:before{background:#363636}.b-radio.radio input[type=radio]+.check.is-primary:before{background:#26a69a}.b-radio.radio input[type=radio]+.check.is-info:before{background:#209cee}.b-radio.radio input[type=radio]+.check.is-success:before{background:#23d160}.b-radio.radio input[type=radio]+.check.is-warning:before{background:#ffdd57}.b-radio.radio input[type=radio]+.check.is-danger:before{background:#f44336}.b-radio.radio input[type=radio]+.check.is-twitter:before{background:#4099ff}.b-radio.radio input[type=radio]:checked+.check{border-color:#26a69a}.b-radio.radio input[type=radio]:checked+.check.is-white{border-color:#fff}.b-radio.radio input[type=radio]:checked+.check.is-black{border-color:#0a0a0a}.b-radio.radio input[type=radio]:checked+.check.is-light{border-color:#f5f5f5}.b-radio.radio input[type=radio]:checked+.check.is-dark{border-color:#363636}.b-radio.radio input[type=radio]:checked+.check.is-primary{border-color:#26a69a}.b-radio.radio input[type=radio]:checked+.check.is-info{border-color:#209cee}.b-radio.radio input[type=radio]:checked+.check.is-success{border-color:#23d160}.b-radio.radio input[type=radio]:checked+.check.is-warning{border-color:#ffdd57}.b-radio.radio input[type=radio]:checked+.check.is-danger{border-color:#f44336}.b-radio.radio input[type=radio]:checked+.check.is-twitter{border-color:#4099ff}.b-radio.radio input[type=radio]:checked+.check:before{-webkit-transform:scale(.5);transform:scale(.5)}.b-radio.radio input[type=radio]:focus+.check{-webkit-box-shadow:0 0 .5em hsla(0,0%,48%,.8);box-shadow:0 0 .5em hsla(0,0%,48%,.8)}.b-radio.radio input[type=radio]:focus:checked+.check{-webkit-box-shadow:0 0 .5em rgba(38,166,154,.8);box-shadow:0 0 .5em rgba(38,166,154,.8)}.b-radio.radio input[type=radio]:focus:checked+.check.is-white{-webkit-box-shadow:0 0 .5em hsla(0,0%,100%,.8);box-shadow:0 0 .5em hsla(0,0%,100%,.8)}.b-radio.radio input[type=radio]:focus:checked+.check.is-black{-webkit-box-shadow:0 0 .5em hsla(0,0%,4%,.8);box-shadow:0 0 .5em hsla(0,0%,4%,.8)}.b-radio.radio input[type=radio]:focus:checked+.check.is-light{-webkit-box-shadow:0 0 .5em hsla(0,0%,96%,.8);box-shadow:0 0 .5em hsla(0,0%,96%,.8)}.b-radio.radio input[type=radio]:focus:checked+.check.is-dark{-webkit-box-shadow:0 0 .5em rgba(54,54,54,.8);box-shadow:0 0 .5em rgba(54,54,54,.8)}.b-radio.radio input[type=radio]:focus:checked+.check.is-primary{-webkit-box-shadow:0 0 .5em rgba(38,166,154,.8);box-shadow:0 0 .5em rgba(38,166,154,.8)}.b-radio.radio input[type=radio]:focus:checked+.check.is-info{-webkit-box-shadow:0 0 .5em rgba(32,156,238,.8);box-shadow:0 0 .5em rgba(32,156,238,.8)}.b-radio.radio input[type=radio]:focus:checked+.check.is-success{-webkit-box-shadow:0 0 .5em rgba(35,209,96,.8);box-shadow:0 0 .5em rgba(35,209,96,.8)}.b-radio.radio input[type=radio]:focus:checked+.check.is-warning{-webkit-box-shadow:0 0 .5em rgba(255,221,87,.8);box-shadow:0 0 .5em rgba(255,221,87,.8)}.b-radio.radio input[type=radio]:focus:checked+.check.is-danger{-webkit-box-shadow:0 0 .5em rgba(244,67,54,.8);box-shadow:0 0 .5em rgba(244,67,54,.8)}.b-radio.radio input[type=radio]:focus:checked+.check.is-twitter{-webkit-box-shadow:0 0 .5em rgba(64,153,255,.8);box-shadow:0 0 .5em rgba(64,153,255,.8)}.b-radio.radio .control-label{padding-left:.5em}.b-radio.radio.button{display:-webkit-box;display:-ms-flexbox;display:flex}.b-radio.radio[disabled]{opacity:.5}.b-radio.radio:hover input[type=radio]:not(:disabled)+.check{border-color:#26a69a}.b-radio.radio:hover input[type=radio]:not(:disabled)+.check.is-white{border-color:#fff}.b-radio.radio:hover input[type=radio]:not(:disabled)+.check.is-black{border-color:#0a0a0a}.b-radio.radio:hover input[type=radio]:not(:disabled)+.check.is-light{border-color:#f5f5f5}.b-radio.radio:hover input[type=radio]:not(:disabled)+.check.is-dark{border-color:#363636}.b-radio.radio:hover input[type=radio]:not(:disabled)+.check.is-primary{border-color:#26a69a}.b-radio.radio:hover input[type=radio]:not(:disabled)+.check.is-info{border-color:#209cee}.b-radio.radio:hover input[type=radio]:not(:disabled)+.check.is-success{border-color:#23d160}.b-radio.radio:hover input[type=radio]:not(:disabled)+.check.is-warning{border-color:#ffdd57}.b-radio.radio:hover input[type=radio]:not(:disabled)+.check.is-danger{border-color:#f44336}.b-radio.radio:hover input[type=radio]:not(:disabled)+.check.is-twitter{border-color:#4099ff}.b-radio.radio.is-small{border-radius:2px;font-size:.75rem}.b-radio.radio.is-medium{font-size:1.25rem}.b-radio.radio.is-large{font-size:1.5rem}.rate{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.rate:not(:last-child){margin-bottom:.75rem}.rate.is-spaced .rate-item:not(:last-child){margin-right:.25rem}.rate.is-disabled .rate-item{cursor:auto}.rate.is-disabled .rate-item:hover{-webkit-transform:none;transform:none}.rate.is-rtl .rate-item{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.rate.is-rtl .rate-text{margin-left:0;margin-right:.35rem}.rate .rate-item{cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;position:relative;-webkit-transition:all .3s;transition:all .3s}.rate .rate-item:hover{-webkit-transform:scale(1.1);transform:scale(1.1)}.rate .rate-item.set-half .is-half,.rate .rate-item.set-on .icon{color:#ffd83d}.rate .rate-item.set-half .is-half{position:absolute;left:0;top:0;overflow:hidden}.rate .icon{color:#dbdbdb;line-height:1;pointer-events:none;width:inherit}.rate .is-half>i{position:absolute;left:0}.rate .rate-text{font-size:.8rem;margin-left:.35rem}.rate .rate-text.is-small{font-size:.6rem}.rate .rate-text.is-medium{font-size:1rem}.rate .rate-text.is-large{font-size:1.2rem}.select select{text-rendering:auto!important;padding-right:2.5em}.select select option{color:#4a4a4a;padding:.25em .5em}.select select option:disabled{cursor:not-allowed;opacity:.5}.select select optgroup{color:#b5b5b5;font-weight:400;font-style:normal;padding:.25em 0}.select.is-empty select{color:hsla(0,0%,48%,.7)}.b-skeleton{width:100%}.b-skeleton>.b-skeleton-item{background:-webkit-gradient(linear,left top,right top,color-stop(25%,#dbdbdb),color-stop(50%,hsla(0,0%,86%,.5)),color-stop(75%,#dbdbdb));background:linear-gradient(90deg,#dbdbdb 25%,hsla(0,0%,86%,.5) 50%,#dbdbdb 75%);background-size:400% 100%;width:100%}.b-skeleton>.b-skeleton-item.is-rounded{border-radius:4px}.b-skeleton>.b-skeleton-item:after{content:" "}.b-skeleton>.b-skeleton-item+.b-skeleton-item{margin-top:.5rem}.b-skeleton.is-animated>.b-skeleton-item{-webkit-animation:skeleton-loading 1.5s infinite;animation:skeleton-loading 1.5s infinite}.b-skeleton+.b-skeleton{margin-top:.5rem}.b-skeleton>.b-skeleton-item{line-height:1rem}.b-skeleton.is-small>.b-skeleton-item{line-height:.75rem}.b-skeleton.is-medium>.b-skeleton-item{line-height:1.25rem}.b-skeleton.is-large>.b-skeleton-item{line-height:1.5rem}@-webkit-keyframes skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}@keyframes skeleton-loading{0%{background-position:100% 50%}to{background-position:0 50%}}.b-sidebar .sidebar-content{background-color:#f5f5f5;-webkit-box-shadow:5px 0 13px 3px hsla(0,0%,4%,.1);box-shadow:5px 0 13px 3px hsla(0,0%,4%,.1);width:260px;z-index:41}.b-sidebar .sidebar-content.is-white{background-color:#fff}.b-sidebar .sidebar-content.is-black{background-color:#0a0a0a}.b-sidebar .sidebar-content.is-light{background-color:#f5f5f5}.b-sidebar .sidebar-content.is-dark{background-color:#363636}.b-sidebar .sidebar-content.is-primary{background-color:#26a69a}.b-sidebar .sidebar-content.is-info{background-color:#209cee}.b-sidebar .sidebar-content.is-success{background-color:#23d160}.b-sidebar .sidebar-content.is-warning{background-color:#ffdd57}.b-sidebar .sidebar-content.is-danger{background-color:#f44336}.b-sidebar .sidebar-content.is-twitter{background-color:#4099ff}.b-sidebar .sidebar-content.is-fixed{position:fixed;left:0;top:0}.b-sidebar .sidebar-content.is-fixed.is-right{left:auto;right:0}.b-sidebar .sidebar-content.is-absolute{position:absolute;left:0;top:0}.b-sidebar .sidebar-content.is-absolute.is-right{left:auto;right:0}.b-sidebar .sidebar-content.is-mini{width:80px}.b-sidebar .sidebar-content.is-mini.is-mini-expand:hover{-webkit-transition:width .15s ease-out;transition:width .15s ease-out}.b-sidebar .sidebar-content.is-mini.is-mini-expand:hover:not(.is-fullwidth){width:260px}.b-sidebar .sidebar-content.is-mini.is-mini-expand:hover:not(.is-fullwidth).is-mini-expand-fixed{position:fixed}.b-sidebar .sidebar-content.is-static{position:static}.b-sidebar .sidebar-content.is-absolute,.b-sidebar .sidebar-content.is-static{-webkit-transition:width .15s ease-out;transition:width .15s ease-out}.b-sidebar .sidebar-content.is-fullwidth{width:100%;max-width:100%}.b-sidebar .sidebar-content.is-fullheight{height:100%;max-height:100%;overflow:hidden;overflow-y:auto;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-line-pack:stretch;align-content:stretch}@media screen and (max-width:1023px){.b-sidebar .sidebar-content.is-mini-mobile{width:80px}.b-sidebar .sidebar-content.is-mini-mobile.is-mini-expand:hover:not(.is-fullwidth-mobile){width:260px}.b-sidebar .sidebar-content.is-mini-mobile.is-mini-expand:hover:not(.is-fullwidth-mobile).is-mini-expand-fixed{position:fixed}.b-sidebar .sidebar-content.is-hidden-mobile{width:0;height:0;overflow:hidden}.b-sidebar .sidebar-content.is-fullwidth-mobile{width:100%;max-width:100%}}.b-sidebar .sidebar-background{bottom:0;left:0;position:absolute;right:0;top:0;background:hsla(0,0%,4%,.86);position:fixed;z-index:40}.b-slider{margin:1em 0;background:transparent;width:100%}.b-slider .b-slider-track{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;cursor:pointer;background:#dbdbdb;border-radius:4px}.b-slider .b-slider-fill{position:absolute;height:100%;-webkit-box-shadow:0 0 0 #7a7a7a;box-shadow:0 0 0 #7a7a7a;background:#dbdbdb;border-radius:4px;border:0 solid #7a7a7a;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.b-slider .b-slider-thumb-wrapper{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:absolute;cursor:-webkit-grab;cursor:grab;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);top:50%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.b-slider .b-slider-thumb-wrapper .b-slider-thumb{-webkit-box-shadow:none;box-shadow:none;border:1px solid #b5b5b5;border-radius:4px;background:#fff}.b-slider .b-slider-thumb-wrapper .b-slider-thumb:focus{-webkit-transform:scale(1.25);transform:scale(1.25)}.b-slider .b-slider-thumb-wrapper.is-dragging{cursor:-webkit-grabbing;cursor:grabbing}.b-slider .b-slider-thumb-wrapper.is-dragging .b-slider-thumb{-webkit-transform:scale(1.25);transform:scale(1.25)}.b-slider.slider-focus{padding-top:20px;padding-bottom:20px;margin-top:-20px;margin-bottom:-20px;cursor:pointer}.b-slider.is-rounded .b-slider-thumb{border-radius:290486px}.b-slider.is-disabled .b-slider-track{cursor:not-allowed;opacity:.5}.b-slider.is-disabled .b-slider-thumb-wrapper{cursor:not-allowed}.b-slider.is-disabled .b-slider-thumb-wrapper .b-slider-thumb{-webkit-transform:scale(1);transform:scale(1)}.b-slider .b-slider-track{height:.5rem}.b-slider .b-slider-thumb{height:1rem;width:1rem}.b-slider .b-slider-tick{height:.25rem}.b-slider .b-slider-tick-label{font-size:.75rem;position:absolute;top:calc(.25rem + 2px);left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.b-slider.is-small .b-slider-track{height:.375rem}.b-slider.is-small .b-slider-thumb{height:.75rem;width:.75rem}.b-slider.is-small .b-slider-tick{height:.1875rem}.b-slider.is-small .b-slider-tick-label{font-size:.75rem;position:absolute;top:calc(.1875rem + 2px);left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.b-slider.is-medium .b-slider-track{height:.625rem}.b-slider.is-medium .b-slider-thumb{height:1.25rem;width:1.25rem}.b-slider.is-medium .b-slider-tick{height:.3125rem}.b-slider.is-medium .b-slider-tick-label{font-size:.75rem;position:absolute;top:calc(.3125rem + 2px);left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.b-slider.is-large .b-slider-track{height:.75rem}.b-slider.is-large .b-slider-thumb{height:1.5rem;width:1.5rem}.b-slider.is-large .b-slider-tick{height:.375rem}.b-slider.is-large .b-slider-tick-label{font-size:.75rem;position:absolute;top:calc(.375rem + 2px);left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.b-slider.is-white .b-slider-fill{background:#fff!important}.b-slider.is-black .b-slider-fill{background:#0a0a0a!important}.b-slider.is-light .b-slider-fill{background:#f5f5f5!important}.b-slider.is-dark .b-slider-fill{background:#363636!important}.b-slider.is-primary .b-slider-fill{background:#26a69a!important}.b-slider.is-info .b-slider-fill{background:#209cee!important}.b-slider.is-success .b-slider-fill{background:#23d160!important}.b-slider.is-warning .b-slider-fill{background:#ffdd57!important}.b-slider.is-danger .b-slider-fill{background:#f44336!important}.b-slider.is-twitter .b-slider-fill{background:#4099ff!important}.b-slider .b-slider-tick{position:absolute;width:3px;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);top:50%;background:#b5b5b5;border-radius:4px}.b-slider .b-slider-tick.is-tick-hidden{background:transparent}.b-steps .steps .step-items{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.b-steps .steps .step-items .step-item{margin-top:0;position:relative;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-ms-flex-preferred-size:1em;flex-basis:1em}.b-steps .steps .step-items .step-item .step-link{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;color:#4a4a4a}.b-steps .steps .step-items .step-item .step-link:not(.is-clickable){cursor:not-allowed}.b-steps .steps .step-items .step-item .step-marker{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;border-radius:4px;font-weight:700;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background:#b5b5b5;border:.2em solid #fff;z-index:1;overflow:hidden}.b-steps .steps .step-items .step-item.is-white:after,.b-steps .steps .step-items .step-item.is-white:before{background:-webkit-gradient(linear,right top,left top,color-stop(50%,#dbdbdb),color-stop(50%,#fff));background:linear-gradient(270deg,#dbdbdb 50%,#fff 0);background-size:200% 100%;background-position:100% 100%}.b-steps .steps .step-items .step-item.is-white.is-active .step-marker{background-color:#fff;border-color:#fff;color:#fff}.b-steps .steps .step-items .step-item.is-white.is-active:after,.b-steps .steps .step-items .step-item.is-white.is-active:before{background-position:0 100%}.b-steps .steps .step-items .step-item.is-white.is-previous .step-marker{color:#0a0a0a;background-color:#fff}.b-steps .steps .step-items .step-item.is-white.is-previous:after,.b-steps .steps .step-items .step-item.is-white.is-previous:before{background-position:0 100%}.b-steps .steps .step-items .step-item.is-black:after,.b-steps .steps .step-items .step-item.is-black:before{background:-webkit-gradient(linear,right top,left top,color-stop(50%,#dbdbdb),color-stop(50%,#0a0a0a));background:linear-gradient(270deg,#dbdbdb 50%,#0a0a0a 0);background-size:200% 100%;background-position:100% 100%}.b-steps .steps .step-items .step-item.is-black.is-active .step-marker{background-color:#fff;border-color:#0a0a0a;color:#0a0a0a}.b-steps .steps .step-items .step-item.is-black.is-active:after,.b-steps .steps .step-items .step-item.is-black.is-active:before{background-position:0 100%}.b-steps .steps .step-items .step-item.is-black.is-previous .step-marker{color:#fff;background-color:#0a0a0a}.b-steps .steps .step-items .step-item.is-black.is-previous:after,.b-steps .steps .step-items .step-item.is-black.is-previous:before{background-position:0 100%}.b-steps .steps .step-items .step-item.is-light:after,.b-steps .steps .step-items .step-item.is-light:before{background:-webkit-gradient(linear,right top,left top,color-stop(50%,#dbdbdb),color-stop(50%,#f5f5f5));background:linear-gradient(270deg,#dbdbdb 50%,#f5f5f5 0);background-size:200% 100%;background-position:100% 100%}.b-steps .steps .step-items .step-item.is-light.is-active .step-marker{background-color:#fff;border-color:#f5f5f5;color:#f5f5f5}.b-steps .steps .step-items .step-item.is-light.is-active:after,.b-steps .steps .step-items .step-item.is-light.is-active:before{background-position:0 100%}.b-steps .steps .step-items .step-item.is-light.is-previous .step-marker{color:#363636;background-color:#f5f5f5}.b-steps .steps .step-items .step-item.is-light.is-previous:after,.b-steps .steps .step-items .step-item.is-light.is-previous:before{background-position:0 100%}.b-steps .steps .step-items .step-item.is-dark:after,.b-steps .steps .step-items .step-item.is-dark:before{background:-webkit-gradient(linear,right top,left top,color-stop(50%,#dbdbdb),color-stop(50%,#363636));background:linear-gradient(270deg,#dbdbdb 50%,#363636 0);background-size:200% 100%;background-position:100% 100%}.b-steps .steps .step-items .step-item.is-dark.is-active .step-marker{background-color:#fff;border-color:#363636;color:#363636}.b-steps .steps .step-items .step-item.is-dark.is-active:after,.b-steps .steps .step-items .step-item.is-dark.is-active:before{background-position:0 100%}.b-steps .steps .step-items .step-item.is-dark.is-previous .step-marker{color:#f5f5f5;background-color:#363636}.b-steps .steps .step-items .step-item.is-dark.is-previous:after,.b-steps .steps .step-items .step-item.is-dark.is-previous:before{background-position:0 100%}.b-steps .steps .step-items .step-item.is-primary:after,.b-steps .steps .step-items .step-item.is-primary:before{background:-webkit-gradient(linear,right top,left top,color-stop(50%,#dbdbdb),color-stop(50%,#26a69a));background:linear-gradient(270deg,#dbdbdb 50%,#26a69a 0);background-size:200% 100%;background-position:100% 100%}.b-steps .steps .step-items .step-item.is-primary.is-active .step-marker{background-color:#fff;border-color:#26a69a;color:#26a69a}.b-steps .steps .step-items .step-item.is-primary.is-active:after,.b-steps .steps .step-items .step-item.is-primary.is-active:before{background-position:0 100%}.b-steps .steps .step-items .step-item.is-primary.is-previous .step-marker{color:#fff;background-color:#26a69a}.b-steps .steps .step-items .step-item.is-primary.is-previous:after,.b-steps .steps .step-items .step-item.is-primary.is-previous:before{background-position:0 100%}.b-steps .steps .step-items .step-item.is-info:after,.b-steps .steps .step-items .step-item.is-info:before{background:-webkit-gradient(linear,right top,left top,color-stop(50%,#dbdbdb),color-stop(50%,#209cee));background:linear-gradient(270deg,#dbdbdb 50%,#209cee 0);background-size:200% 100%;background-position:100% 100%}.b-steps .steps .step-items .step-item.is-info.is-active .step-marker{background-color:#fff;border-color:#209cee;color:#209cee}.b-steps .steps .step-items .step-item.is-info.is-active:after,.b-steps .steps .step-items .step-item.is-info.is-active:before{background-position:0 100%}.b-steps .steps .step-items .step-item.is-info.is-previous .step-marker{color:#fff;background-color:#209cee}.b-steps .steps .step-items .step-item.is-info.is-previous:after,.b-steps .steps .step-items .step-item.is-info.is-previous:before{background-position:0 100%}.b-steps .steps .step-items .step-item.is-success:after,.b-steps .steps .step-items .step-item.is-success:before{background:-webkit-gradient(linear,right top,left top,color-stop(50%,#dbdbdb),color-stop(50%,#23d160));background:linear-gradient(270deg,#dbdbdb 50%,#23d160 0);background-size:200% 100%;background-position:100% 100%}.b-steps .steps .step-items .step-item.is-success.is-active .step-marker{background-color:#fff;border-color:#23d160;color:#23d160}.b-steps .steps .step-items .step-item.is-success.is-active:after,.b-steps .steps .step-items .step-item.is-success.is-active:before{background-position:0 100%}.b-steps .steps .step-items .step-item.is-success.is-previous .step-marker{color:#fff;background-color:#23d160}.b-steps .steps .step-items .step-item.is-success.is-previous:after,.b-steps .steps .step-items .step-item.is-success.is-previous:before{background-position:0 100%}.b-steps .steps .step-items .step-item.is-warning:after,.b-steps .steps .step-items .step-item.is-warning:before{background:-webkit-gradient(linear,right top,left top,color-stop(50%,#dbdbdb),color-stop(50%,#ffdd57));background:linear-gradient(270deg,#dbdbdb 50%,#ffdd57 0);background-size:200% 100%;background-position:100% 100%}.b-steps .steps .step-items .step-item.is-warning.is-active .step-marker{background-color:#fff;border-color:#ffdd57;color:#ffdd57}.b-steps .steps .step-items .step-item.is-warning.is-active:after,.b-steps .steps .step-items .step-item.is-warning.is-active:before{background-position:0 100%}.b-steps .steps .step-items .step-item.is-warning.is-previous .step-marker{color:rgba(0,0,0,.7);background-color:#ffdd57}.b-steps .steps .step-items .step-item.is-warning.is-previous:after,.b-steps .steps .step-items .step-item.is-warning.is-previous:before{background-position:0 100%}.b-steps .steps .step-items .step-item.is-danger:after,.b-steps .steps .step-items .step-item.is-danger:before{background:-webkit-gradient(linear,right top,left top,color-stop(50%,#dbdbdb),color-stop(50%,#f44336));background:linear-gradient(270deg,#dbdbdb 50%,#f44336 0);background-size:200% 100%;background-position:100% 100%}.b-steps .steps .step-items .step-item.is-danger.is-active .step-marker{background-color:#fff;border-color:#f44336;color:#f44336}.b-steps .steps .step-items .step-item.is-danger.is-active:after,.b-steps .steps .step-items .step-item.is-danger.is-active:before{background-position:0 100%}.b-steps .steps .step-items .step-item.is-danger.is-previous .step-marker{color:#fff;background-color:#f44336}.b-steps .steps .step-items .step-item.is-danger.is-previous:after,.b-steps .steps .step-items .step-item.is-danger.is-previous:before{background-position:0 100%}.b-steps .steps .step-items .step-item.is-twitter:after,.b-steps .steps .step-items .step-item.is-twitter:before{background:-webkit-gradient(linear,right top,left top,color-stop(50%,#dbdbdb),color-stop(50%,#4099ff));background:linear-gradient(270deg,#dbdbdb 50%,#4099ff 0);background-size:200% 100%;background-position:100% 100%}.b-steps .steps .step-items .step-item.is-twitter.is-active .step-marker{background-color:#fff;border-color:#4099ff;color:#4099ff}.b-steps .steps .step-items .step-item.is-twitter.is-active:after,.b-steps .steps .step-items .step-item.is-twitter.is-active:before{background-position:0 100%}.b-steps .steps .step-items .step-item.is-twitter.is-previous .step-marker{color:#fff;background-color:#4099ff}.b-steps .steps .step-items .step-item.is-twitter.is-previous:after,.b-steps .steps .step-items .step-item.is-twitter.is-previous:before{background-position:0 100%}.b-steps .steps .step-items .step-item .step-marker{color:#fff}.b-steps .steps .step-items .step-item .step-details{text-align:center;z-index:1}.b-steps .steps .step-items .step-item:not(:first-child),.b-steps .steps .step-items .step-item:only-child{-ms-flex-negative:1;flex-shrink:1}.b-steps .steps .step-items .step-item:not(:first-child):before,.b-steps .steps .step-items .step-item:only-child:before{content:" ";display:block;position:absolute;width:100%;bottom:0;left:-50%}.b-steps .steps .step-items .step-item:only-child:after{content:" ";display:block;position:absolute;height:.2em;bottom:0}.b-steps .steps .step-items .step-item:only-child:after,.b-steps .steps .step-items .step-item:only-child:before{width:25%;left:50%}.b-steps .steps .step-items .step-item:only-child:before{right:50%;left:auto}.b-steps .steps .step-items .step-item:after,.b-steps .steps .step-items .step-item:before{background:-webkit-gradient(linear,right top,left top,color-stop(50%,#dbdbdb),color-stop(50%,#26a69a));background:linear-gradient(270deg,#dbdbdb 50%,#26a69a 0);background-size:200% 100%;background-position:100% 100%}.b-steps .steps .step-items .step-item.is-active .step-link{cursor:default}.b-steps .steps .step-items .step-item.is-active .step-marker{background-color:#fff;border-color:#26a69a;color:#26a69a}.b-steps .steps .step-items .step-item.is-active:after,.b-steps .steps .step-items .step-item.is-active:before{background-position:0 100%}.b-steps .steps .step-items .step-item.is-previous .step-marker{color:#fff;background-color:#26a69a}.b-steps .steps .step-items .step-item.is-previous:after,.b-steps .steps .step-items .step-item.is-previous:before{background-position:0 100%}.b-steps .steps+.step-content{position:relative;overflow:visible;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:1rem}.b-steps .steps+.step-content .step-item{-ms-flex-negative:0;flex-shrink:0;-ms-flex-preferred-size:auto;flex-basis:auto}.b-steps .steps+.step-content.is-transitioning{overflow:hidden}.b-steps .steps.is-rounded .step-item .step-marker{border-radius:290486px}.b-steps .steps.is-animated .step-item:not(:first-child):before,.b-steps .steps.is-animated .step-item:only-child:before{-webkit-transition:background .15s ease-out;transition:background .15s ease-out}.b-steps .steps.has-label-left .step-items .step-item .step-link,.b-steps .steps.has-label-right .step-items .step-item .step-link{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.b-steps .steps.has-label-left .step-items .step-item .step-link>.step-details,.b-steps .steps.has-label-right .step-items .step-item .step-link>.step-details{background-color:#fff;padding:.2em}.b-steps .steps.has-label-left .step-items .step-item .step-link{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.b-steps .steps{font-size:1rem;min-height:2rem}.b-steps .steps .step-items .step-item .step-marker{height:2rem;width:2rem}.b-steps .steps .step-items .step-item .step-marker .icon *,.b-steps .steps .step-items .step-item .step-marker .icon :before{font-size:1rem}.b-steps .steps .step-items .step-item .step-details .step-title{font-size:1.2rem;font-weight:600;line-height:1rem}.b-steps .steps .step-items .step-item:not(:first-child):before,.b-steps .steps .step-items .step-item:only-child:before{height:.2em;top:1rem}.b-steps .steps .step-items .step-item:only-child:after{top:1rem}@media screen and (max-width:768px){.b-steps .steps .step-items .step-item:after,.b-steps .steps .step-items .step-item:before,.b-steps .steps .step-items .step-item:not(:first-child):before{top:1rem}}.b-steps.is-vertical>.steps.has-label-right .step-items .step-item:not(:first-child):after,.b-steps.is-vertical>.steps.has-label-right .step-items .step-item:not(:first-child):before,.b-steps.is-vertical>.steps.has-label-right .step-items .step-item:only-child:after,.b-steps.is-vertical>.steps.has-label-right .step-items .step-item:only-child:before{left:calc(1rem - .1em)}.b-steps.is-vertical>.steps.has-label-left .step-items .step-item:not(:first-child):after,.b-steps.is-vertical>.steps.has-label-left .step-items .step-item:not(:first-child):before,.b-steps.is-vertical>.steps.has-label-left .step-items .step-item:only-child:after,.b-steps.is-vertical>.steps.has-label-left .step-items .step-item:only-child:before{left:auto;right:calc(1rem - .1em)}.b-steps.is-vertical.is-right>.steps.has-label-right .step-items .step-item:not(:first-child):after,.b-steps.is-vertical.is-right>.steps.has-label-right .step-items .step-item:not(:first-child):before,.b-steps.is-vertical.is-right>.steps.has-label-right .step-items .step-item:only-child:after,.b-steps.is-vertical.is-right>.steps.has-label-right .step-items .step-item:only-child:before{left:calc(1rem - .1em)}.b-steps.is-vertical.is-right>.steps.has-label-left .step-items .step-item:not(:first-child):after,.b-steps.is-vertical.is-right>.steps.has-label-left .step-items .step-item:not(:first-child):before,.b-steps.is-vertical.is-right>.steps.has-label-left .step-items .step-item:only-child:after,.b-steps.is-vertical.is-right>.steps.has-label-left .step-items .step-item:only-child:before{left:auto;right:calc(1rem - .1em)}.b-steps.is-small .steps{font-size:.75rem;min-height:1.5rem}.b-steps.is-small .steps .step-items .step-item .step-marker{height:1.5rem;width:1.5rem}.b-steps.is-small .steps .step-items .step-item .step-marker .icon *,.b-steps.is-small .steps .step-items .step-item .step-marker .icon :before{font-size:.75rem}.b-steps.is-small .steps .step-items .step-item .step-details .step-title{font-size:.9rem;font-weight:600;line-height:.75rem}.b-steps.is-small .steps .step-items .step-item:not(:first-child):before,.b-steps.is-small .steps .step-items .step-item:only-child:before{height:.2em;top:.75rem}.b-steps.is-small .steps .step-items .step-item:only-child:after{top:.75rem}@media screen and (max-width:768px){.b-steps.is-small .steps .step-items .step-item:after,.b-steps.is-small .steps .step-items .step-item:before,.b-steps.is-small .steps .step-items .step-item:not(:first-child):before{top:.75rem}}.b-steps.is-small.is-vertical>.steps.has-label-right .step-items .step-item:not(:first-child):after,.b-steps.is-small.is-vertical>.steps.has-label-right .step-items .step-item:not(:first-child):before,.b-steps.is-small.is-vertical>.steps.has-label-right .step-items .step-item:only-child:after,.b-steps.is-small.is-vertical>.steps.has-label-right .step-items .step-item:only-child:before{left:calc(.75rem - .1em)}.b-steps.is-small.is-vertical>.steps.has-label-left .step-items .step-item:not(:first-child):after,.b-steps.is-small.is-vertical>.steps.has-label-left .step-items .step-item:not(:first-child):before,.b-steps.is-small.is-vertical>.steps.has-label-left .step-items .step-item:only-child:after,.b-steps.is-small.is-vertical>.steps.has-label-left .step-items .step-item:only-child:before{left:auto;right:calc(.75rem - .1em)}.b-steps.is-small.is-vertical.is-right>.steps.has-label-right .step-items .step-item:not(:first-child):after,.b-steps.is-small.is-vertical.is-right>.steps.has-label-right .step-items .step-item:not(:first-child):before,.b-steps.is-small.is-vertical.is-right>.steps.has-label-right .step-items .step-item:only-child:after,.b-steps.is-small.is-vertical.is-right>.steps.has-label-right .step-items .step-item:only-child:before{left:calc(.75rem - .1em)}.b-steps.is-small.is-vertical.is-right>.steps.has-label-left .step-items .step-item:not(:first-child):after,.b-steps.is-small.is-vertical.is-right>.steps.has-label-left .step-items .step-item:not(:first-child):before,.b-steps.is-small.is-vertical.is-right>.steps.has-label-left .step-items .step-item:only-child:after,.b-steps.is-small.is-vertical.is-right>.steps.has-label-left .step-items .step-item:only-child:before{left:auto;right:calc(.75rem - .1em)}.b-steps.is-medium .steps{font-size:1.25rem;min-height:2.5rem}.b-steps.is-medium .steps .step-items .step-item .step-marker{height:2.5rem;width:2.5rem}.b-steps.is-medium .steps .step-items .step-item .step-marker .icon *,.b-steps.is-medium .steps .step-items .step-item .step-marker .icon :before{font-size:1.25rem}.b-steps.is-medium .steps .step-items .step-item .step-details .step-title{font-size:1.5rem;font-weight:600;line-height:1.25rem}.b-steps.is-medium .steps .step-items .step-item:not(:first-child):before,.b-steps.is-medium .steps .step-items .step-item:only-child:before{height:.2em;top:1.25rem}.b-steps.is-medium .steps .step-items .step-item:only-child:after{top:1.25rem}@media screen and (max-width:768px){.b-steps.is-medium .steps .step-items .step-item:after,.b-steps.is-medium .steps .step-items .step-item:before,.b-steps.is-medium .steps .step-items .step-item:not(:first-child):before{top:1.25rem}}.b-steps.is-medium.is-vertical>.steps.has-label-right .step-items .step-item:not(:first-child):after,.b-steps.is-medium.is-vertical>.steps.has-label-right .step-items .step-item:not(:first-child):before,.b-steps.is-medium.is-vertical>.steps.has-label-right .step-items .step-item:only-child:after,.b-steps.is-medium.is-vertical>.steps.has-label-right .step-items .step-item:only-child:before{left:calc(1.25rem - .1em)}.b-steps.is-medium.is-vertical>.steps.has-label-left .step-items .step-item:not(:first-child):after,.b-steps.is-medium.is-vertical>.steps.has-label-left .step-items .step-item:not(:first-child):before,.b-steps.is-medium.is-vertical>.steps.has-label-left .step-items .step-item:only-child:after,.b-steps.is-medium.is-vertical>.steps.has-label-left .step-items .step-item:only-child:before{left:auto;right:calc(1.25rem - .1em)}.b-steps.is-medium.is-vertical.is-right>.steps.has-label-right .step-items .step-item:not(:first-child):after,.b-steps.is-medium.is-vertical.is-right>.steps.has-label-right .step-items .step-item:not(:first-child):before,.b-steps.is-medium.is-vertical.is-right>.steps.has-label-right .step-items .step-item:only-child:after,.b-steps.is-medium.is-vertical.is-right>.steps.has-label-right .step-items .step-item:only-child:before{left:calc(1.25rem - .1em)}.b-steps.is-medium.is-vertical.is-right>.steps.has-label-left .step-items .step-item:not(:first-child):after,.b-steps.is-medium.is-vertical.is-right>.steps.has-label-left .step-items .step-item:not(:first-child):before,.b-steps.is-medium.is-vertical.is-right>.steps.has-label-left .step-items .step-item:only-child:after,.b-steps.is-medium.is-vertical.is-right>.steps.has-label-left .step-items .step-item:only-child:before{left:auto;right:calc(1.25rem - .1em)}.b-steps.is-large .steps{font-size:1.5rem;min-height:3rem}.b-steps.is-large .steps .step-items .step-item .step-marker{height:3rem;width:3rem}.b-steps.is-large .steps .step-items .step-item .step-marker .icon *,.b-steps.is-large .steps .step-items .step-item .step-marker .icon :before{font-size:1.5rem}.b-steps.is-large .steps .step-items .step-item .step-details .step-title{font-size:1.8rem;font-weight:600;line-height:1.5rem}.b-steps.is-large .steps .step-items .step-item:not(:first-child):before,.b-steps.is-large .steps .step-items .step-item:only-child:before{height:.2em;top:1.5rem}.b-steps.is-large .steps .step-items .step-item:only-child:after{top:1.5rem}@media screen and (max-width:768px){.b-steps.is-large .steps .step-items .step-item:after,.b-steps.is-large .steps .step-items .step-item:before,.b-steps.is-large .steps .step-items .step-item:not(:first-child):before{top:1.5rem}}.b-steps.is-large.is-vertical>.steps.has-label-right .step-items .step-item:not(:first-child):after,.b-steps.is-large.is-vertical>.steps.has-label-right .step-items .step-item:not(:first-child):before,.b-steps.is-large.is-vertical>.steps.has-label-right .step-items .step-item:only-child:after,.b-steps.is-large.is-vertical>.steps.has-label-right .step-items .step-item:only-child:before{left:calc(1.5rem - .1em)}.b-steps.is-large.is-vertical>.steps.has-label-left .step-items .step-item:not(:first-child):after,.b-steps.is-large.is-vertical>.steps.has-label-left .step-items .step-item:not(:first-child):before,.b-steps.is-large.is-vertical>.steps.has-label-left .step-items .step-item:only-child:after,.b-steps.is-large.is-vertical>.steps.has-label-left .step-items .step-item:only-child:before{left:auto;right:calc(1.5rem - .1em)}.b-steps.is-large.is-vertical.is-right>.steps.has-label-right .step-items .step-item:not(:first-child):after,.b-steps.is-large.is-vertical.is-right>.steps.has-label-right .step-items .step-item:not(:first-child):before,.b-steps.is-large.is-vertical.is-right>.steps.has-label-right .step-items .step-item:only-child:after,.b-steps.is-large.is-vertical.is-right>.steps.has-label-right .step-items .step-item:only-child:before{left:calc(1.5rem - .1em)}.b-steps.is-large.is-vertical.is-right>.steps.has-label-left .step-items .step-item:not(:first-child):after,.b-steps.is-large.is-vertical.is-right>.steps.has-label-left .step-items .step-item:not(:first-child):before,.b-steps.is-large.is-vertical.is-right>.steps.has-label-left .step-items .step-item:only-child:after,.b-steps.is-large.is-vertical.is-right>.steps.has-label-left .step-items .step-item:only-child:before{left:auto;right:calc(1.5rem - .1em)}.b-steps.is-vertical{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap}.b-steps.is-vertical>.steps .step-items{height:100%;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;border-bottom-color:transparent}.b-steps.is-vertical>.steps .step-items .step-item{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding:1em 0}.b-steps.is-vertical>.steps .step-items .step-item:after,.b-steps.is-vertical>.steps .step-items .step-item:before{background:-webkit-gradient(linear,left bottom,left top,color-stop(50%,#dbdbdb),color-stop(50%,#26a69a));background:linear-gradient(0deg,#dbdbdb 50%,#26a69a 0);background-size:100% 200%;background-position:0 100%}.b-steps.is-vertical>.steps .step-items .step-item.is-white:after,.b-steps.is-vertical>.steps .step-items .step-item.is-white:before{background:-webkit-gradient(linear,left bottom,left top,color-stop(50%,#dbdbdb),color-stop(50%,#fff));background:linear-gradient(0deg,#dbdbdb 50%,#fff 0);background-size:100% 200%;background-position:0 100%}.b-steps.is-vertical>.steps .step-items .step-item.is-black:after,.b-steps.is-vertical>.steps .step-items .step-item.is-black:before{background:-webkit-gradient(linear,left bottom,left top,color-stop(50%,#dbdbdb),color-stop(50%,#0a0a0a));background:linear-gradient(0deg,#dbdbdb 50%,#0a0a0a 0);background-size:100% 200%;background-position:0 100%}.b-steps.is-vertical>.steps .step-items .step-item.is-light:after,.b-steps.is-vertical>.steps .step-items .step-item.is-light:before{background:-webkit-gradient(linear,left bottom,left top,color-stop(50%,#dbdbdb),color-stop(50%,#f5f5f5));background:linear-gradient(0deg,#dbdbdb 50%,#f5f5f5 0);background-size:100% 200%;background-position:0 100%}.b-steps.is-vertical>.steps .step-items .step-item.is-dark:after,.b-steps.is-vertical>.steps .step-items .step-item.is-dark:before{background:-webkit-gradient(linear,left bottom,left top,color-stop(50%,#dbdbdb),color-stop(50%,#363636));background:linear-gradient(0deg,#dbdbdb 50%,#363636 0);background-size:100% 200%;background-position:0 100%}.b-steps.is-vertical>.steps .step-items .step-item.is-primary:after,.b-steps.is-vertical>.steps .step-items .step-item.is-primary:before{background:-webkit-gradient(linear,left bottom,left top,color-stop(50%,#dbdbdb),color-stop(50%,#26a69a));background:linear-gradient(0deg,#dbdbdb 50%,#26a69a 0);background-size:100% 200%;background-position:0 100%}.b-steps.is-vertical>.steps .step-items .step-item.is-info:after,.b-steps.is-vertical>.steps .step-items .step-item.is-info:before{background:-webkit-gradient(linear,left bottom,left top,color-stop(50%,#dbdbdb),color-stop(50%,#209cee));background:linear-gradient(0deg,#dbdbdb 50%,#209cee 0);background-size:100% 200%;background-position:0 100%}.b-steps.is-vertical>.steps .step-items .step-item.is-success:after,.b-steps.is-vertical>.steps .step-items .step-item.is-success:before{background:-webkit-gradient(linear,left bottom,left top,color-stop(50%,#dbdbdb),color-stop(50%,#23d160));background:linear-gradient(0deg,#dbdbdb 50%,#23d160 0);background-size:100% 200%;background-position:0 100%}.b-steps.is-vertical>.steps .step-items .step-item.is-warning:after,.b-steps.is-vertical>.steps .step-items .step-item.is-warning:before{background:-webkit-gradient(linear,left bottom,left top,color-stop(50%,#dbdbdb),color-stop(50%,#ffdd57));background:linear-gradient(0deg,#dbdbdb 50%,#ffdd57 0);background-size:100% 200%;background-position:0 100%}.b-steps.is-vertical>.steps .step-items .step-item.is-danger:after,.b-steps.is-vertical>.steps .step-items .step-item.is-danger:before{background:-webkit-gradient(linear,left bottom,left top,color-stop(50%,#dbdbdb),color-stop(50%,#f44336));background:linear-gradient(0deg,#dbdbdb 50%,#f44336 0);background-size:100% 200%;background-position:0 100%}.b-steps.is-vertical>.steps .step-items .step-item.is-twitter:after,.b-steps.is-vertical>.steps .step-items .step-item.is-twitter:before{background:-webkit-gradient(linear,left bottom,left top,color-stop(50%,#dbdbdb),color-stop(50%,#4099ff));background:linear-gradient(0deg,#dbdbdb 50%,#4099ff 0);background-size:100% 200%;background-position:0 100%}.b-steps.is-vertical>.steps .step-items .step-item:not(:first-child):before,.b-steps.is-vertical>.steps .step-items .step-item:only-child:before{height:100%;width:.2em;top:-50%;left:calc(50% - .1em)}.b-steps.is-vertical>.steps .step-items .step-item.is-active:after,.b-steps.is-vertical>.steps .step-items .step-item.is-active:before,.b-steps.is-vertical>.steps .step-items .step-item.is-previous:after,.b-steps.is-vertical>.steps .step-items .step-item.is-previous:before{background-position:100% 0}.b-steps.is-vertical>.steps .step-items .step-item:only-child:before{top:50%}.b-steps.is-vertical>.steps .step-items .step-item:only-child:after{width:.2em;top:auto;bottom:50%}.b-steps.is-vertical>.steps .step-items .step-item:only-child:after,.b-steps.is-vertical>.steps .step-items .step-item:only-child:before{height:25%}.b-steps.is-vertical>.steps.has-label-right .step-items .step-item{-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.b-steps.is-vertical>.steps.has-label-left .step-items .step-item{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.b-steps.is-vertical>.steps:not(.has-label-right):not(.has-label-left) .step-items .step-item .step-link>.step-details{background-color:#fff}.b-steps.is-vertical>.step-content{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.b-steps.is-vertical>.step-navigation{-ms-flex-preferred-size:100%;flex-basis:100%}.b-steps.is-vertical.is-right{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}@media screen and (max-width:768px){.b-steps:not(.is-vertical) .steps.mobile-minimalist .step-items .step-item:not(.is-active){display:none}.b-steps:not(.is-vertical) .steps.mobile-minimalist .step-items .step-item:after,.b-steps:not(.is-vertical) .steps.mobile-minimalist .step-items .step-item:before,.b-steps:not(.is-vertical) .steps.mobile-minimalist .step-items .step-item:not(:first-child):before{content:" ";display:block;position:absolute;height:.2em;width:25%;bottom:0;left:50%}.b-steps:not(.is-vertical) .steps.mobile-minimalist .step-items .step-item:before,.b-steps:not(.is-vertical) .steps.mobile-minimalist .step-items .step-item:not(:first-child):before{right:50%;left:auto}.b-steps:not(.is-vertical) .steps.mobile-compact .step-items .step-item:not(.is-active) .step-details{display:none}}.switch{cursor:pointer;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;margin-right:.5em}.switch+.switch:last-child{margin-right:0}.switch input[type=checkbox]{position:absolute;left:0;opacity:0;outline:none;z-index:-1}.switch input[type=checkbox]+.check{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-negative:0;flex-shrink:0;width:2.75em;height:1.575em;padding:.2em;background:#b5b5b5;border-radius:4px;-webkit-transition:background .15s ease-out,-webkit-box-shadow .15s ease-out;transition:background .15s ease-out,-webkit-box-shadow .15s ease-out;transition:background .15s ease-out,box-shadow .15s ease-out;transition:background .15s ease-out,box-shadow .15s ease-out,-webkit-box-shadow .15s ease-out}.switch input[type=checkbox]+.check.is-white-passive,.switch input[type=checkbox]+.check:hover{background:#fff}.switch input[type=checkbox]+.check.is-black-passive,.switch input[type=checkbox]+.check:hover{background:#0a0a0a}.switch input[type=checkbox]+.check.is-light-passive,.switch input[type=checkbox]+.check:hover{background:#f5f5f5}.switch input[type=checkbox]+.check.is-dark-passive,.switch input[type=checkbox]+.check:hover{background:#363636}.switch input[type=checkbox]+.check.is-primary-passive,.switch input[type=checkbox]+.check:hover{background:#26a69a}.switch input[type=checkbox]+.check.is-info-passive,.switch input[type=checkbox]+.check:hover{background:#209cee}.switch input[type=checkbox]+.check.is-success-passive,.switch input[type=checkbox]+.check:hover{background:#23d160}.switch input[type=checkbox]+.check.is-warning-passive,.switch input[type=checkbox]+.check:hover{background:#ffdd57}.switch input[type=checkbox]+.check.is-danger-passive,.switch input[type=checkbox]+.check:hover{background:#f44336}.switch input[type=checkbox]+.check.is-twitter-passive,.switch input[type=checkbox]+.check:hover{background:#4099ff}.switch .taginput input[type=checkbox]+.check[type=checkbox].taginput-container.is-focusable+.switch input[type=checkbox]+.check.check,.switch input[type=checkbox]+.check.input[type=checkbox]+.switch input[type=checkbox]+.check.check,.taginput .switch input[type=checkbox]+.check[type=checkbox].taginput-container.is-focusable+.switch input[type=checkbox]+.check.check{background:"pink"}.switch input[type=checkbox]+.check:before{content:"";display:block;border-radius:4px;width:1.175em;height:1.175em;background:#f5f5f5;-webkit-box-shadow:0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05);box-shadow:0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05);-webkit-transition:-webkit-transform .15s ease-out;transition:-webkit-transform .15s ease-out;transition:transform .15s ease-out;transition:transform .15s ease-out,-webkit-transform .15s ease-out;will-change:transform;-webkit-transform-origin:left;transform-origin:left}.switch input[type=checkbox]+.check.is-elastic:before{-webkit-transform:scaleX(1.5);transform:scaleX(1.5);border-radius:4px}.switch input[type=checkbox]:checked+.check{background:#26a69a}.switch input[type=checkbox]:checked+.check.is-white{background:#fff}.switch input[type=checkbox]:checked+.check.is-black{background:#0a0a0a}.switch input[type=checkbox]:checked+.check.is-light{background:#f5f5f5}.switch input[type=checkbox]:checked+.check.is-dark{background:#363636}.switch input[type=checkbox]:checked+.check.is-primary{background:#26a69a}.switch input[type=checkbox]:checked+.check.is-info{background:#209cee}.switch input[type=checkbox]:checked+.check.is-success{background:#23d160}.switch input[type=checkbox]:checked+.check.is-warning{background:#ffdd57}.switch input[type=checkbox]:checked+.check.is-danger{background:#f44336}.switch input[type=checkbox]:checked+.check.is-twitter{background:#4099ff}.switch input[type=checkbox]:checked+.check:before{-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.switch input[type=checkbox]:checked+.check.is-elastic:before{-webkit-transform:translate3d(50%,0,0) scaleX(1.5);transform:translate3d(50%,0,0) scaleX(1.5)}.switch input[type=checkbox]:active,.switch input[type=checkbox]:focus{outline:none}.switch input[type=checkbox]:active+.check,.switch input[type=checkbox]:focus+.check{-webkit-box-shadow:0 0 .5em hsla(0,0%,48%,.6);box-shadow:0 0 .5em hsla(0,0%,48%,.6)}.switch input[type=checkbox]:active+.check.is-white-passive,.switch input[type=checkbox]:focus+.check.is-white-passive{-webkit-box-shadow:0 0 .5em hsla(0,0%,100%,.8);box-shadow:0 0 .5em hsla(0,0%,100%,.8)}.switch input[type=checkbox]:active+.check.is-black-passive,.switch input[type=checkbox]:focus+.check.is-black-passive{-webkit-box-shadow:0 0 .5em hsla(0,0%,4%,.8);box-shadow:0 0 .5em hsla(0,0%,4%,.8)}.switch input[type=checkbox]:active+.check.is-light-passive,.switch input[type=checkbox]:focus+.check.is-light-passive{-webkit-box-shadow:0 0 .5em hsla(0,0%,96%,.8);box-shadow:0 0 .5em hsla(0,0%,96%,.8)}.switch input[type=checkbox]:active+.check.is-dark-passive,.switch input[type=checkbox]:focus+.check.is-dark-passive{-webkit-box-shadow:0 0 .5em rgba(54,54,54,.8);box-shadow:0 0 .5em rgba(54,54,54,.8)}.switch input[type=checkbox]:active+.check.is-primary-passive,.switch input[type=checkbox]:focus+.check.is-primary-passive{-webkit-box-shadow:0 0 .5em rgba(38,166,154,.8);box-shadow:0 0 .5em rgba(38,166,154,.8)}.switch input[type=checkbox]:active+.check.is-info-passive,.switch input[type=checkbox]:focus+.check.is-info-passive{-webkit-box-shadow:0 0 .5em rgba(32,156,238,.8);box-shadow:0 0 .5em rgba(32,156,238,.8)}.switch input[type=checkbox]:active+.check.is-success-passive,.switch input[type=checkbox]:focus+.check.is-success-passive{-webkit-box-shadow:0 0 .5em rgba(35,209,96,.8);box-shadow:0 0 .5em rgba(35,209,96,.8)}.switch input[type=checkbox]:active+.check.is-warning-passive,.switch input[type=checkbox]:focus+.check.is-warning-passive{-webkit-box-shadow:0 0 .5em rgba(255,221,87,.8);box-shadow:0 0 .5em rgba(255,221,87,.8)}.switch input[type=checkbox]:active+.check.is-danger-passive,.switch input[type=checkbox]:focus+.check.is-danger-passive{-webkit-box-shadow:0 0 .5em rgba(244,67,54,.8);box-shadow:0 0 .5em rgba(244,67,54,.8)}.switch input[type=checkbox]:active+.check.is-twitter-passive,.switch input[type=checkbox]:focus+.check.is-twitter-passive{-webkit-box-shadow:0 0 .5em rgba(64,153,255,.8);box-shadow:0 0 .5em rgba(64,153,255,.8)}.switch input[type=checkbox]:active:checked+.check,.switch input[type=checkbox]:focus:checked+.check{-webkit-box-shadow:0 0 .5em rgba(38,166,154,.8);box-shadow:0 0 .5em rgba(38,166,154,.8)}.switch input[type=checkbox]:active:checked+.check.is-white,.switch input[type=checkbox]:focus:checked+.check.is-white{-webkit-box-shadow:0 0 .5em hsla(0,0%,100%,.8);box-shadow:0 0 .5em hsla(0,0%,100%,.8)}.switch input[type=checkbox]:active:checked+.check.is-black,.switch input[type=checkbox]:focus:checked+.check.is-black{-webkit-box-shadow:0 0 .5em hsla(0,0%,4%,.8);box-shadow:0 0 .5em hsla(0,0%,4%,.8)}.switch input[type=checkbox]:active:checked+.check.is-light,.switch input[type=checkbox]:focus:checked+.check.is-light{-webkit-box-shadow:0 0 .5em hsla(0,0%,96%,.8);box-shadow:0 0 .5em hsla(0,0%,96%,.8)}.switch input[type=checkbox]:active:checked+.check.is-dark,.switch input[type=checkbox]:focus:checked+.check.is-dark{-webkit-box-shadow:0 0 .5em rgba(54,54,54,.8);box-shadow:0 0 .5em rgba(54,54,54,.8)}.switch input[type=checkbox]:active:checked+.check.is-primary,.switch input[type=checkbox]:focus:checked+.check.is-primary{-webkit-box-shadow:0 0 .5em rgba(38,166,154,.8);box-shadow:0 0 .5em rgba(38,166,154,.8)}.switch input[type=checkbox]:active:checked+.check.is-info,.switch input[type=checkbox]:focus:checked+.check.is-info{-webkit-box-shadow:0 0 .5em rgba(32,156,238,.8);box-shadow:0 0 .5em rgba(32,156,238,.8)}.switch input[type=checkbox]:active:checked+.check.is-success,.switch input[type=checkbox]:focus:checked+.check.is-success{-webkit-box-shadow:0 0 .5em rgba(35,209,96,.8);box-shadow:0 0 .5em rgba(35,209,96,.8)}.switch input[type=checkbox]:active:checked+.check.is-warning,.switch input[type=checkbox]:focus:checked+.check.is-warning{-webkit-box-shadow:0 0 .5em rgba(255,221,87,.8);box-shadow:0 0 .5em rgba(255,221,87,.8)}.switch input[type=checkbox]:active:checked+.check.is-danger,.switch input[type=checkbox]:focus:checked+.check.is-danger{-webkit-box-shadow:0 0 .5em rgba(244,67,54,.8);box-shadow:0 0 .5em rgba(244,67,54,.8)}.switch input[type=checkbox]:active:checked+.check.is-twitter,.switch input[type=checkbox]:focus:checked+.check.is-twitter{-webkit-box-shadow:0 0 .5em rgba(64,153,255,.8);box-shadow:0 0 .5em rgba(64,153,255,.8)}.switch .control-label{padding-left:.5em}.switch:hover input[type=checkbox]+.check{background:hsla(0,0%,71%,.9)}.switch:hover input[type=checkbox]+.check.is-white-passive{background:hsla(0,0%,100%,.9)}.switch:hover input[type=checkbox]+.check.is-black-passive{background:hsla(0,0%,4%,.9)}.switch:hover input[type=checkbox]+.check.is-light-passive{background:hsla(0,0%,96%,.9)}.switch:hover input[type=checkbox]+.check.is-dark-passive{background:rgba(54,54,54,.9)}.switch:hover input[type=checkbox]+.check.is-primary-passive{background:rgba(38,166,154,.9)}.switch:hover input[type=checkbox]+.check.is-info-passive{background:rgba(32,156,238,.9)}.switch:hover input[type=checkbox]+.check.is-success-passive{background:rgba(35,209,96,.9)}.switch:hover input[type=checkbox]+.check.is-warning-passive{background:rgba(255,221,87,.9)}.switch:hover input[type=checkbox]+.check.is-danger-passive{background:rgba(244,67,54,.9)}.switch:hover input[type=checkbox]+.check.is-twitter-passive{background:rgba(64,153,255,.9)}.switch:hover input[type=checkbox]:checked+.check{background:rgba(38,166,154,.9)}.switch:hover input[type=checkbox]:checked+.check.is-white{background:hsla(0,0%,100%,.9)}.switch:hover input[type=checkbox]:checked+.check.is-black{background:hsla(0,0%,4%,.9)}.switch:hover input[type=checkbox]:checked+.check.is-light{background:hsla(0,0%,96%,.9)}.switch:hover input[type=checkbox]:checked+.check.is-dark{background:rgba(54,54,54,.9)}.switch:hover input[type=checkbox]:checked+.check.is-primary{background:rgba(38,166,154,.9)}.switch:hover input[type=checkbox]:checked+.check.is-info{background:rgba(32,156,238,.9)}.switch:hover input[type=checkbox]:checked+.check.is-success{background:rgba(35,209,96,.9)}.switch:hover input[type=checkbox]:checked+.check.is-warning{background:rgba(255,221,87,.9)}.switch:hover input[type=checkbox]:checked+.check.is-danger{background:rgba(244,67,54,.9)}.switch:hover input[type=checkbox]:checked+.check.is-twitter{background:rgba(64,153,255,.9)}.switch.is-rounded input[type=checkbox]+.check,.switch.is-rounded input[type=checkbox]+.check:before{border-radius:290486px}.switch.is-rounded input[type=checkbox].is-elastic:before{-webkit-transform:scaleX(1.5);transform:scaleX(1.5);border-radius:290486px}.switch.is-outlined input[type=checkbox]+.check{background:transparent;border:.1rem solid #b5b5b5}.switch.is-outlined input[type=checkbox]+.check.is-white-passive{border:.1rem solid hsla(0,0%,100%,.9)}.switch.is-outlined input[type=checkbox]+.check.is-white-passive:before{background:#fff}.switch.is-outlined input[type=checkbox]+.check.is-white-passive:hover{border-color:hsla(0,0%,100%,.9)}.switch.is-outlined input[type=checkbox]+.check.is-black-passive{border:.1rem solid hsla(0,0%,4%,.9)}.switch.is-outlined input[type=checkbox]+.check.is-black-passive:before{background:#0a0a0a}.switch.is-outlined input[type=checkbox]+.check.is-black-passive:hover{border-color:hsla(0,0%,4%,.9)}.switch.is-outlined input[type=checkbox]+.check.is-light-passive{border:.1rem solid hsla(0,0%,96%,.9)}.switch.is-outlined input[type=checkbox]+.check.is-light-passive:before{background:#f5f5f5}.switch.is-outlined input[type=checkbox]+.check.is-light-passive:hover{border-color:hsla(0,0%,96%,.9)}.switch.is-outlined input[type=checkbox]+.check.is-dark-passive{border:.1rem solid rgba(54,54,54,.9)}.switch.is-outlined input[type=checkbox]+.check.is-dark-passive:before{background:#363636}.switch.is-outlined input[type=checkbox]+.check.is-dark-passive:hover{border-color:rgba(54,54,54,.9)}.switch.is-outlined input[type=checkbox]+.check.is-primary-passive{border:.1rem solid rgba(38,166,154,.9)}.switch.is-outlined input[type=checkbox]+.check.is-primary-passive:before{background:#26a69a}.switch.is-outlined input[type=checkbox]+.check.is-primary-passive:hover{border-color:rgba(38,166,154,.9)}.switch.is-outlined input[type=checkbox]+.check.is-info-passive{border:.1rem solid rgba(32,156,238,.9)}.switch.is-outlined input[type=checkbox]+.check.is-info-passive:before{background:#209cee}.switch.is-outlined input[type=checkbox]+.check.is-info-passive:hover{border-color:rgba(32,156,238,.9)}.switch.is-outlined input[type=checkbox]+.check.is-success-passive{border:.1rem solid rgba(35,209,96,.9)}.switch.is-outlined input[type=checkbox]+.check.is-success-passive:before{background:#23d160}.switch.is-outlined input[type=checkbox]+.check.is-success-passive:hover{border-color:rgba(35,209,96,.9)}.switch.is-outlined input[type=checkbox]+.check.is-warning-passive{border:.1rem solid rgba(255,221,87,.9)}.switch.is-outlined input[type=checkbox]+.check.is-warning-passive:before{background:#ffdd57}.switch.is-outlined input[type=checkbox]+.check.is-warning-passive:hover{border-color:rgba(255,221,87,.9)}.switch.is-outlined input[type=checkbox]+.check.is-danger-passive{border:.1rem solid rgba(244,67,54,.9)}.switch.is-outlined input[type=checkbox]+.check.is-danger-passive:before{background:#f44336}.switch.is-outlined input[type=checkbox]+.check.is-danger-passive:hover{border-color:rgba(244,67,54,.9)}.switch.is-outlined input[type=checkbox]+.check.is-twitter-passive{border:.1rem solid rgba(64,153,255,.9)}.switch.is-outlined input[type=checkbox]+.check.is-twitter-passive:before{background:#4099ff}.switch.is-outlined input[type=checkbox]+.check.is-twitter-passive:hover{border-color:rgba(64,153,255,.9)}.switch.is-outlined input[type=checkbox]+.check:before{background:#b5b5b5}.switch.is-outlined input[type=checkbox]:checked+.check{border-color:#26a69a}.switch.is-outlined input[type=checkbox]:checked+.check.is-white{background:transparent;border-color:#fff}.switch.is-outlined input[type=checkbox]:checked+.check.is-white:before{background:#fff}.switch.is-outlined input[type=checkbox]:checked+.check.is-black{background:transparent;border-color:#0a0a0a}.switch.is-outlined input[type=checkbox]:checked+.check.is-black:before{background:#0a0a0a}.switch.is-outlined input[type=checkbox]:checked+.check.is-light{background:transparent;border-color:#f5f5f5}.switch.is-outlined input[type=checkbox]:checked+.check.is-light:before{background:#f5f5f5}.switch.is-outlined input[type=checkbox]:checked+.check.is-dark{background:transparent;border-color:#363636}.switch.is-outlined input[type=checkbox]:checked+.check.is-dark:before{background:#363636}.switch.is-outlined input[type=checkbox]:checked+.check.is-primary{background:transparent;border-color:#26a69a}.switch.is-outlined input[type=checkbox]:checked+.check.is-primary:before{background:#26a69a}.switch.is-outlined input[type=checkbox]:checked+.check.is-info{background:transparent;border-color:#209cee}.switch.is-outlined input[type=checkbox]:checked+.check.is-info:before{background:#209cee}.switch.is-outlined input[type=checkbox]:checked+.check.is-success{background:transparent;border-color:#23d160}.switch.is-outlined input[type=checkbox]:checked+.check.is-success:before{background:#23d160}.switch.is-outlined input[type=checkbox]:checked+.check.is-warning{background:transparent;border-color:#ffdd57}.switch.is-outlined input[type=checkbox]:checked+.check.is-warning:before{background:#ffdd57}.switch.is-outlined input[type=checkbox]:checked+.check.is-danger{background:transparent;border-color:#f44336}.switch.is-outlined input[type=checkbox]:checked+.check.is-danger:before{background:#f44336}.switch.is-outlined input[type=checkbox]:checked+.check.is-twitter{background:transparent;border-color:#4099ff}.switch.is-outlined input[type=checkbox]:checked+.check.is-twitter:before{background:#4099ff}.switch.is-outlined input[type=checkbox]:checked+.check:before{background:#26a69a}.switch.is-outlined:hover input[type=checkbox]+.check{background:transparent;border-color:hsla(0,0%,71%,.9)}.switch.is-outlined:hover input[type=checkbox]:checked+.check{background:transparent;border-color:rgba(38,166,154,.9)}.switch.is-outlined:hover input[type=checkbox]:checked+.check.is-white{border-color:hsla(0,0%,100%,.9)}.switch.is-outlined:hover input[type=checkbox]:checked+.check.is-black{border-color:hsla(0,0%,4%,.9)}.switch.is-outlined:hover input[type=checkbox]:checked+.check.is-light{border-color:hsla(0,0%,96%,.9)}.switch.is-outlined:hover input[type=checkbox]:checked+.check.is-dark{border-color:rgba(54,54,54,.9)}.switch.is-outlined:hover input[type=checkbox]:checked+.check.is-primary{border-color:rgba(38,166,154,.9)}.switch.is-outlined:hover input[type=checkbox]:checked+.check.is-info{border-color:rgba(32,156,238,.9)}.switch.is-outlined:hover input[type=checkbox]:checked+.check.is-success{border-color:rgba(35,209,96,.9)}.switch.is-outlined:hover input[type=checkbox]:checked+.check.is-warning{border-color:rgba(255,221,87,.9)}.switch.is-outlined:hover input[type=checkbox]:checked+.check.is-danger{border-color:rgba(244,67,54,.9)}.switch.is-outlined:hover input[type=checkbox]:checked+.check.is-twitter{border-color:rgba(64,153,255,.9)}.switch.is-small{border-radius:2px;font-size:.75rem}.switch.is-medium{font-size:1.25rem}.switch.is-large{font-size:1.5rem}.switch[disabled]{opacity:.5;cursor:not-allowed;color:#7a7a7a}.table-wrapper .table{margin-bottom:0}.table-wrapper:not(:last-child){margin-bottom:1.5rem}@media screen and (max-width:1023px){.table-wrapper{overflow-x:auto}}.b-table{-webkit-transition:opacity 86ms ease-out;transition:opacity 86ms ease-out}@media print,screen and (min-width:769px){.b-table .table-mobile-sort{display:none}}.b-table .icon{-webkit-transition:opacity 86ms ease-out,-webkit-transform .15s ease-out;transition:opacity 86ms ease-out,-webkit-transform .15s ease-out;transition:transform .15s ease-out,opacity 86ms ease-out;transition:transform .15s ease-out,opacity 86ms ease-out,-webkit-transform .15s ease-out}.b-table .icon.is-desc{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.b-table .icon.is-expanded{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.b-table .table{width:100%;border:1px solid transparent;border-radius:4px;border-collapse:separate}.b-table .table th{font-weight:600}.b-table .table th .th-wrap{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.b-table .table th .th-wrap .icon{margin-left:.5rem;margin-right:0;font-size:1rem}.b-table .table th .th-wrap.is-numeric{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;text-align:right}.b-table .table th .th-wrap.is-numeric .icon{margin-left:0;margin-right:.5rem}.b-table .table th .th-wrap.is-centered{-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;text-align:center}.b-table .table th.is-current-sort{border-color:#7a7a7a;font-weight:700}.b-table .table th.is-sortable:hover{border-color:#7a7a7a}.b-table .table th.is-sortable,.b-table .table th.is-sortable .th-wrap{cursor:pointer}.b-table .table th .multi-sort-cancel-icon{margin-left:10px}.b-table .table th.is-sticky{position:sticky;left:0;z-index:3!important;background:#fff}.b-table .table tr.is-selected .checkbox input:checked+.check{background:#fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1 1'%3E%3Cpath style='fill:%2326a69a' d='M.04.627.146.52.43.804.323.91zm.177.177L.854.167.96.273.323.91z'/%3E%3C/svg%3E") no-repeat 50%}.b-table .table tr.is-selected .checkbox input+.check{border-color:#fff}.b-table .table tr.is-empty:hover{background-color:transparent}.b-table .table .chevron-cell{vertical-align:middle}.b-table .table .checkbox-cell{width:40px}.b-table .table .checkbox-cell .checkbox{vertical-align:middle}.b-table .table .checkbox-cell .checkbox .check{-webkit-transition:none;transition:none}.b-table .table tr.detail{-webkit-box-shadow:inset 0 1px 3px #dbdbdb;box-shadow:inset 0 1px 3px #dbdbdb;background:#fafafa}.b-table .table tr.detail .detail-container{padding:1rem}.b-table .table:focus{border-color:#26a69a;-webkit-box-shadow:0 0 0 .125em rgba(38,166,154,.25);box-shadow:0 0 0 .125em rgba(38,166,154,.25)}.b-table .table.is-bordered th.is-current-sort,.b-table .table.is-bordered th.is-sortable:hover{border-color:#dbdbdb;background:#f5f5f5}.b-table .table td.is-sticky{position:sticky;left:0;z-index:1;background:#fff}.b-table .level:not(.top){padding-bottom:1.5rem}.b-table .table-wrapper.has-sticky-header{height:300px;overflow-y:auto}@media screen and (max-width:768px){.b-table .table-wrapper.has-sticky-header.has-mobile-cards{height:auto!important;overflow-y:initial!important}}.b-table .table-wrapper.has-sticky-header tr:first-child th{position:sticky;top:0;z-index:2;background:#fff}@media screen and (max-width:768px){.b-table .table-wrapper.has-mobile-cards thead{display:none}.b-table .table-wrapper.has-mobile-cards tfoot th{border:0;display:inherit}.b-table .table-wrapper.has-mobile-cards tr{-webkit-box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);max-width:100%;position:relative;display:block}.b-table .table-wrapper.has-mobile-cards tr td{border:0;display:inherit}.b-table .table-wrapper.has-mobile-cards tr td:last-child{border-bottom:0}.b-table .table-wrapper.has-mobile-cards tr:not(:last-child){margin-bottom:1rem}.b-table .table-wrapper.has-mobile-cards tr:not([class*=is-]){background:inherit}.b-table .table-wrapper.has-mobile-cards tr:not([class*=is-]):hover{background-color:inherit}.b-table .table-wrapper.has-mobile-cards tr.detail{margin-top:-1rem}.b-table .table-wrapper.has-mobile-cards tr:not(.detail):not(.is-empty):not(.table-footer) td{display:-webkit-box;display:-ms-flexbox;display:flex;width:auto;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;text-align:right;border-bottom:1px solid #f5f5f5}.b-table .table-wrapper.has-mobile-cards tr:not(.detail):not(.is-empty):not(.table-footer) td:before{content:attr(data-label);font-weight:600;padding-right:.5em;text-align:left}}.b-table .table-wrapper.is-card-list thead{display:none}.b-table .table-wrapper.is-card-list tfoot th{border:0;display:inherit}.b-table .table-wrapper.is-card-list tr{-webkit-box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);box-shadow:0 2px 3px hsla(0,0%,4%,.1),0 0 0 1px hsla(0,0%,4%,.1);max-width:100%;position:relative;display:block}.b-table .table-wrapper.is-card-list tr td{border:0;display:inherit}.b-table .table-wrapper.is-card-list tr td:last-child{border-bottom:0}.b-table .table-wrapper.is-card-list tr:not(:last-child){margin-bottom:1rem}.b-table .table-wrapper.is-card-list tr:not([class*=is-]){background:inherit}.b-table .table-wrapper.is-card-list tr:not([class*=is-]):hover{background-color:inherit}.b-table .table-wrapper.is-card-list tr.detail{margin-top:-1rem}.b-table .table-wrapper.is-card-list tr:not(.detail):not(.is-empty):not(.table-footer) td{display:-webkit-box;display:-ms-flexbox;display:flex;width:auto;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;text-align:right;border-bottom:1px solid #f5f5f5}.b-table .table-wrapper.is-card-list tr:not(.detail):not(.is-empty):not(.table-footer) td:before{content:attr(data-label);font-weight:600;padding-right:.5em;text-align:left}.b-table.is-loading{position:relative;pointer-events:none;opacity:.5}.b-table.is-loading:after{-webkit-animation:spinAround .5s linear infinite;animation:spinAround .5s linear infinite;border:2px solid #dbdbdb;border-radius:290486px;border-right-color:transparent;border-top-color:transparent;content:"";display:block;height:1em;position:relative;width:1em;position:absolute;top:4em;left:calc(50% - 2.5em);width:5em;height:5em;border-width:.25em}.b-tabs .tabs{margin-bottom:0;-ms-flex-negative:0;flex-shrink:0}.b-tabs .tabs li.is-disabled{pointer-events:none;cursor:not-allowed;opacity:.5}.b-tabs .tab-content{position:relative;overflow:visible;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding:1rem}.b-tabs .tab-content .tab-item{-ms-flex-negative:0;flex-shrink:0;-ms-flex-preferred-size:auto;flex-basis:auto}.b-tabs .tab-content.is-transitioning{overflow:hidden}.b-tabs:not(:last-child){margin-bottom:1.5rem}.b-tabs.is-fullwidth{width:100%}.b-tabs.is-vertical{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.b-tabs.is-vertical>.tabs ul{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;border-bottom-color:transparent}.b-tabs.is-vertical>.tabs ul li{width:100%}.b-tabs.is-vertical>.tabs ul li a{-webkit-box-pack:left;-ms-flex-pack:left;justify-content:left}.b-tabs.is-vertical>.tabs.is-boxed li a{border-bottom-color:transparent!important;border-right-color:#dbdbdb!important;border-radius:4px 0 0 4px}.b-tabs.is-vertical>.tabs.is-boxed li.is-active a{border-bottom-color:#dbdbdb!important;border-right-color:transparent!important}.b-tabs.is-vertical>.tabs.is-toggle li+li{margin-left:0}.b-tabs.is-vertical>.tabs.is-toggle li:first-child a{border-radius:4px 4px 0 0}.b-tabs.is-vertical>.tabs.is-toggle li:last-child a{border-radius:0 0 4px 4px}.b-tabs.is-vertical>.tabs.is-fullwidth li a{height:100%}.b-tabs.is-vertical>.tab-content{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.b-tabs.is-vertical.is-right,.b-tabs.is-vertical.is-right>.tabs ul a{-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse}.b-tabs.is-vertical.is-right>.tabs ul a .icon:first-child{margin-right:0;margin-left:.5em}.b-tabs.is-vertical.is-right>.tabs.is-boxed li a{border-bottom-color:transparent!important;border-right-color:transparent!important;border-left-color:#dbdbdb!important;border-radius:0 4px 4px 0}.b-tabs.is-vertical.is-right>.tabs.is-boxed li.is-active a{border-bottom-color:#dbdbdb!important;border-right-color:#dbdbdb!important;border-left-color:transparent!important}.b-tabs.is-multiline>.tabs ul{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-negative:1;flex-shrink:1}.tag .has-ellipsis{max-width:10em;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tag .delete.is-white,.tag.is-delete.is-white{background:#fff}.tag .delete.is-white:hover,.tag.is-delete.is-white:hover{background-color:#e6e6e6}.tag .delete.is-black,.tag.is-delete.is-black{background:#0a0a0a}.tag .delete.is-black:hover,.tag.is-delete.is-black:hover{background-color:#000}.tag .delete.is-light,.tag.is-delete.is-light{background:#f5f5f5}.tag .delete.is-light:hover,.tag.is-delete.is-light:hover{background-color:#dbdbdb}.tag .delete.is-dark,.tag.is-delete.is-dark{background:#363636}.tag .delete.is-dark:hover,.tag.is-delete.is-dark:hover{background-color:#1c1c1c}.tag .delete.is-primary,.tag.is-delete.is-primary{background:#26a69a}.tag .delete.is-primary:hover,.tag.is-delete.is-primary:hover{background-color:#1d7d74}.tag .delete.is-info,.tag.is-delete.is-info{background:#209cee}.tag .delete.is-info:hover,.tag.is-delete.is-info:hover{background-color:#0f81cc}.tag .delete.is-success,.tag.is-delete.is-success{background:#23d160}.tag .delete.is-success:hover,.tag.is-delete.is-success:hover{background-color:#1ca64c}.tag .delete.is-warning,.tag.is-delete.is-warning{background:#ffdd57}.tag .delete.is-warning:hover,.tag.is-delete.is-warning:hover{background-color:#ffd324}.tag .delete.is-danger,.tag.is-delete.is-danger{background:#f44336}.tag .delete.is-danger:hover,.tag.is-delete.is-danger:hover{background-color:#ea1c0d}.tag .delete.is-twitter,.tag.is-delete.is-twitter{background:#4099ff}.tag .delete.is-twitter:hover,.tag.is-delete.is-twitter:hover{background-color:#0d7eff}.taginput .taginput-container{display:-webkit-box;display:-ms-flexbox;display:flex}.taginput .taginput-container.is-focusable{padding-bottom:0;padding-top:calc(.275em - 1px);padding-left:0;cursor:text}.taginput .taginput-container.is-focusable,.taginput .taginput-container:not(.is-focusable){-webkit-box-align:center;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start;height:auto}.taginput .taginput-container:not(.is-focusable).is-small{border-radius:2px;font-size:.75rem}.taginput .taginput-container:not(.is-focusable).is-medium{font-size:1.25rem}.taginput .taginput-container:not(.is-focusable).is-large{font-size:1.5rem}.taginput .taginput-container>.tag,.taginput .taginput-container>.tags{margin-left:.275rem;margin-bottom:calc(.275em - 1px);font-size:.9em;height:1.7em}.taginput .taginput-container>.tag .tag,.taginput .taginput-container>.tags .tag{margin-bottom:0;font-size:.9em;height:1.7em}.taginput .taginput-container>.tag .tag.is-delete,.taginput .taginput-container>.tags .tag.is-delete{width:1.7em}.taginput .taginput-container .autocomplete{position:static;-webkit-box-flex:1;-ms-flex:1;flex:1}.taginput .taginput-container .autocomplete input{height:1.7em;margin-bottom:calc(.275em - 1px);padding-top:0;padding-bottom:0;border:none;-webkit-box-shadow:none;box-shadow:none;min-width:8em}.taginput .taginput-container .autocomplete input:focus{-webkit-box-shadow:none!important;box-shadow:none!important}.taginput .taginput-container .autocomplete .icon{height:1.7em}.taginput .taginput-container .autocomplete>.control.is-loading:after{top:.375em}.timepicker .dropdown-menu{min-width:0}.timepicker .dropdown,.timepicker .dropdown-trigger{width:100%}.taginput .timepicker .dropdown [readonly].taginput-container.is-focusable,.taginput .timepicker .dropdown-trigger [readonly].taginput-container.is-focusable,.timepicker .dropdown .input[readonly],.timepicker .dropdown .taginput [readonly].taginput-container.is-focusable,.timepicker .dropdown-trigger .input[readonly],.timepicker .dropdown-trigger .taginput [readonly].taginput-container.is-focusable{cursor:pointer;-webkit-box-shadow:inset 0 1px 2px hsla(0,0%,4%,.1);box-shadow:inset 0 1px 2px hsla(0,0%,4%,.1)}.taginput .timepicker .dropdown [readonly].is-active.taginput-container.is-focusable,.taginput .timepicker .dropdown [readonly].is-focused.taginput-container.is-focusable,.taginput .timepicker .dropdown [readonly].taginput-container.is-focusable:active,.taginput .timepicker .dropdown [readonly].taginput-container.is-focusable:focus,.taginput .timepicker .dropdown-trigger [readonly].is-active.taginput-container.is-focusable,.taginput .timepicker .dropdown-trigger [readonly].is-focused.taginput-container.is-focusable,.taginput .timepicker .dropdown-trigger [readonly].taginput-container.is-focusable:active,.taginput .timepicker .dropdown-trigger [readonly].taginput-container.is-focusable:focus,.timepicker .dropdown .input[readonly].is-active,.timepicker .dropdown .input[readonly].is-focused,.timepicker .dropdown .input[readonly]:active,.timepicker .dropdown .input[readonly]:focus,.timepicker .dropdown .taginput [readonly].is-active.taginput-container.is-focusable,.timepicker .dropdown .taginput [readonly].is-focused.taginput-container.is-focusable,.timepicker .dropdown .taginput [readonly].taginput-container.is-focusable:active,.timepicker .dropdown .taginput [readonly].taginput-container.is-focusable:focus,.timepicker .dropdown-trigger .input[readonly].is-active,.timepicker .dropdown-trigger .input[readonly].is-focused,.timepicker .dropdown-trigger .input[readonly]:active,.timepicker .dropdown-trigger .input[readonly]:focus,.timepicker .dropdown-trigger .taginput [readonly].is-active.taginput-container.is-focusable,.timepicker .dropdown-trigger .taginput [readonly].is-focused.taginput-container.is-focusable,.timepicker .dropdown-trigger .taginput [readonly].taginput-container.is-focusable:active,.timepicker .dropdown-trigger .taginput [readonly].taginput-container.is-focusable:focus{-webkit-box-shadow:0 0 0 .125em rgba(38,166,154,.25);box-shadow:0 0 0 .125em rgba(38,166,154,.25)}.timepicker .dropdown.is-disabled{opacity:1}.dropdown .dropdown-menu .has-link .timepicker a,.timepicker .dropdown .dropdown-menu .has-link a,.timepicker .dropdown-item{font-size:inherit;padding:0}.timepicker .timepicker-footer{padding:0 .5rem 0 .5rem}.timepicker .dropdown-content .control{font-size:1.25em;margin-right:0!important}.timepicker .dropdown-content .control .select select{font-weight:600;padding-right:calc(.625em - 1px);border:0}.timepicker .dropdown-content .control .select select option:disabled{color:hsla(0,0%,48%,.7)}.timepicker .dropdown-content .control .select:after{display:none}.timepicker .dropdown-content .control.is-colon{font-size:1.7em}.timepicker.is-small{border-radius:2px;font-size:.75rem}.timepicker.is-medium{font-size:1.25rem}.timepicker.is-large{font-size:1.5rem}.b-tooltip{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.b-tooltip.is-top:after,.b-tooltip.is-top:before{top:auto;right:auto;bottom:calc(100% + 7px);left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.b-tooltip.is-top.is-white:before{border-top:5px solid #fff}.b-tooltip.is-top.is-black:before,.b-tooltip.is-top.is-white:before{border-right:5px solid transparent;border-left:5px solid transparent;bottom:calc(100% + 2px)}.b-tooltip.is-top.is-black:before{border-top:5px solid #0a0a0a}.b-tooltip.is-top.is-light:before{border-top:5px solid #f5f5f5}.b-tooltip.is-top.is-dark:before,.b-tooltip.is-top.is-light:before{border-right:5px solid transparent;border-left:5px solid transparent;bottom:calc(100% + 2px)}.b-tooltip.is-top.is-dark:before{border-top:5px solid #363636}.b-tooltip.is-top.is-primary:before{border-top:5px solid #26a69a}.b-tooltip.is-top.is-info:before,.b-tooltip.is-top.is-primary:before{border-right:5px solid transparent;border-left:5px solid transparent;bottom:calc(100% + 2px)}.b-tooltip.is-top.is-info:before{border-top:5px solid #209cee}.b-tooltip.is-top.is-success:before{border-top:5px solid #23d160}.b-tooltip.is-top.is-success:before,.b-tooltip.is-top.is-warning:before{border-right:5px solid transparent;border-left:5px solid transparent;bottom:calc(100% + 2px)}.b-tooltip.is-top.is-warning:before{border-top:5px solid #ffdd57}.b-tooltip.is-top.is-danger:before{border-top:5px solid #f44336}.b-tooltip.is-top.is-danger:before,.b-tooltip.is-top.is-twitter:before{border-right:5px solid transparent;border-left:5px solid transparent;bottom:calc(100% + 2px)}.b-tooltip.is-top.is-twitter:before{border-top:5px solid #4099ff}.b-tooltip.is-top.is-multiline.is-small:after{width:180px}.b-tooltip.is-top.is-multiline.is-medium:after{width:240px}.b-tooltip.is-top.is-multiline.is-large:after{width:300px}.b-tooltip.is-right:after,.b-tooltip.is-right:before{top:50%;right:auto;bottom:auto;left:calc(100% + 7px);-webkit-transform:translateY(-50%);transform:translateY(-50%)}.b-tooltip.is-right.is-white:before{border-right:5px solid #fff}.b-tooltip.is-right.is-black:before,.b-tooltip.is-right.is-white:before{border-top:5px solid transparent;border-bottom:5px solid transparent;left:calc(100% + 2px)}.b-tooltip.is-right.is-black:before{border-right:5px solid #0a0a0a}.b-tooltip.is-right.is-light:before{border-right:5px solid #f5f5f5}.b-tooltip.is-right.is-dark:before,.b-tooltip.is-right.is-light:before{border-top:5px solid transparent;border-bottom:5px solid transparent;left:calc(100% + 2px)}.b-tooltip.is-right.is-dark:before{border-right:5px solid #363636}.b-tooltip.is-right.is-primary:before{border-right:5px solid #26a69a}.b-tooltip.is-right.is-info:before,.b-tooltip.is-right.is-primary:before{border-top:5px solid transparent;border-bottom:5px solid transparent;left:calc(100% + 2px)}.b-tooltip.is-right.is-info:before{border-right:5px solid #209cee}.b-tooltip.is-right.is-success:before{border-right:5px solid #23d160}.b-tooltip.is-right.is-success:before,.b-tooltip.is-right.is-warning:before{border-top:5px solid transparent;border-bottom:5px solid transparent;left:calc(100% + 2px)}.b-tooltip.is-right.is-warning:before{border-right:5px solid #ffdd57}.b-tooltip.is-right.is-danger:before{border-right:5px solid #f44336}.b-tooltip.is-right.is-danger:before,.b-tooltip.is-right.is-twitter:before{border-top:5px solid transparent;border-bottom:5px solid transparent;left:calc(100% + 2px)}.b-tooltip.is-right.is-twitter:before{border-right:5px solid #4099ff}.b-tooltip.is-right.is-multiline.is-small:after{width:180px}.b-tooltip.is-right.is-multiline.is-medium:after{width:240px}.b-tooltip.is-right.is-multiline.is-large:after{width:300px}.b-tooltip.is-bottom:after,.b-tooltip.is-bottom:before{top:calc(100% + 7px);right:auto;bottom:auto;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.b-tooltip.is-bottom.is-white:before{border-bottom:5px solid #fff}.b-tooltip.is-bottom.is-black:before,.b-tooltip.is-bottom.is-white:before{border-right:5px solid transparent;border-left:5px solid transparent;top:calc(100% + 2px)}.b-tooltip.is-bottom.is-black:before{border-bottom:5px solid #0a0a0a}.b-tooltip.is-bottom.is-light:before{border-bottom:5px solid #f5f5f5}.b-tooltip.is-bottom.is-dark:before,.b-tooltip.is-bottom.is-light:before{border-right:5px solid transparent;border-left:5px solid transparent;top:calc(100% + 2px)}.b-tooltip.is-bottom.is-dark:before{border-bottom:5px solid #363636}.b-tooltip.is-bottom.is-primary:before{border-bottom:5px solid #26a69a}.b-tooltip.is-bottom.is-info:before,.b-tooltip.is-bottom.is-primary:before{border-right:5px solid transparent;border-left:5px solid transparent;top:calc(100% + 2px)}.b-tooltip.is-bottom.is-info:before{border-bottom:5px solid #209cee}.b-tooltip.is-bottom.is-success:before{border-bottom:5px solid #23d160}.b-tooltip.is-bottom.is-success:before,.b-tooltip.is-bottom.is-warning:before{border-right:5px solid transparent;border-left:5px solid transparent;top:calc(100% + 2px)}.b-tooltip.is-bottom.is-warning:before{border-bottom:5px solid #ffdd57}.b-tooltip.is-bottom.is-danger:before{border-bottom:5px solid #f44336}.b-tooltip.is-bottom.is-danger:before,.b-tooltip.is-bottom.is-twitter:before{border-right:5px solid transparent;border-left:5px solid transparent;top:calc(100% + 2px)}.b-tooltip.is-bottom.is-twitter:before{border-bottom:5px solid #4099ff}.b-tooltip.is-bottom.is-multiline.is-small:after{width:180px}.b-tooltip.is-bottom.is-multiline.is-medium:after{width:240px}.b-tooltip.is-bottom.is-multiline.is-large:after{width:300px}.b-tooltip.is-left:after,.b-tooltip.is-left:before{top:50%;right:calc(100% + 7px);bottom:auto;left:auto;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.b-tooltip.is-left.is-white:before{border-left:5px solid #fff}.b-tooltip.is-left.is-black:before,.b-tooltip.is-left.is-white:before{border-top:5px solid transparent;border-bottom:5px solid transparent;right:calc(100% + 2px)}.b-tooltip.is-left.is-black:before{border-left:5px solid #0a0a0a}.b-tooltip.is-left.is-light:before{border-left:5px solid #f5f5f5}.b-tooltip.is-left.is-dark:before,.b-tooltip.is-left.is-light:before{border-top:5px solid transparent;border-bottom:5px solid transparent;right:calc(100% + 2px)}.b-tooltip.is-left.is-dark:before{border-left:5px solid #363636}.b-tooltip.is-left.is-primary:before{border-left:5px solid #26a69a}.b-tooltip.is-left.is-info:before,.b-tooltip.is-left.is-primary:before{border-top:5px solid transparent;border-bottom:5px solid transparent;right:calc(100% + 2px)}.b-tooltip.is-left.is-info:before{border-left:5px solid #209cee}.b-tooltip.is-left.is-success:before{border-left:5px solid #23d160}.b-tooltip.is-left.is-success:before,.b-tooltip.is-left.is-warning:before{border-top:5px solid transparent;border-bottom:5px solid transparent;right:calc(100% + 2px)}.b-tooltip.is-left.is-warning:before{border-left:5px solid #ffdd57}.b-tooltip.is-left.is-danger:before{border-left:5px solid #f44336}.b-tooltip.is-left.is-danger:before,.b-tooltip.is-left.is-twitter:before{border-top:5px solid transparent;border-bottom:5px solid transparent;right:calc(100% + 2px)}.b-tooltip.is-left.is-twitter:before{border-left:5px solid #4099ff}.b-tooltip.is-left.is-multiline.is-small:after{width:180px}.b-tooltip.is-left.is-multiline.is-medium:after{width:240px}.b-tooltip.is-left.is-multiline.is-large:after{width:300px}.b-tooltip:after,.b-tooltip:before{position:absolute;content:"";opacity:0;visibility:hidden;pointer-events:none}.b-tooltip:before{z-index:39}.b-tooltip:after{content:attr(data-label);width:auto;padding:.35rem .75rem;border-radius:6px;font-size:.85rem;font-weight:400;-webkit-box-shadow:0 1px 2px 1px rgba(0,1,0,.2);box-shadow:0 1px 2px 1px rgba(0,1,0,.2);z-index:38;white-space:nowrap}.b-tooltip:not([data-label=""]):hover:after,.b-tooltip:not([data-label=""]):hover:before{-webkit-transition-delay:inherit;transition-delay:inherit;opacity:1;visibility:visible}.b-tooltip.is-white:after{background:#fff;color:#0a0a0a}.b-tooltip.is-black:after{background:#0a0a0a;color:#fff}.b-tooltip.is-light:after{background:#f5f5f5;color:#363636}.b-tooltip.is-dark:after{background:#363636;color:#f5f5f5}.b-tooltip.is-primary:after{background:#26a69a;color:#fff}.b-tooltip.is-info:after{background:#209cee;color:#fff}.b-tooltip.is-success:after{background:#23d160;color:#fff}.b-tooltip.is-warning:after{background:#ffdd57;color:rgba(0,0,0,.7)}.b-tooltip.is-danger:after{background:#f44336;color:#fff}.b-tooltip.is-twitter:after{background:#4099ff;color:#fff}.b-tooltip:not([data-label=""]).is-always:after,.b-tooltip:not([data-label=""]).is-always:before{opacity:1;visibility:visible}.b-tooltip.is-multiline:after{display:flex-block;text-align:center;white-space:normal}.b-tooltip.is-dashed{border-bottom:1px dashed #b5b5b5;cursor:default}.b-tooltip.is-square:after{border-radius:0}.b-tooltip.is-animated:after,.b-tooltip.is-animated:before{-webkit-transition:opacity 86ms ease-out,visibility 86ms ease-out;transition:opacity 86ms ease-out,visibility 86ms ease-out}.upload{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex}.upload input[type=file]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;outline:none;cursor:pointer;z-index:-1}.upload .upload-draggable{cursor:pointer;padding:.25em;border:1px dashed #b5b5b5;border-radius:6px}.upload .upload-draggable.is-disabled{opacity:.5;cursor:not-allowed}.upload .upload-draggable.is-loading{position:relative;pointer-events:none;opacity:.5}.upload .upload-draggable.is-loading:after{-webkit-animation:spinAround .5s linear infinite;animation:spinAround .5s linear infinite;border:2px solid #dbdbdb;border-radius:290486px;border-right-color:transparent;border-top-color:transparent;content:"";display:block;height:1em;position:relative;width:1em;top:0;left:calc(50% - 1.5em);width:3em;height:3em;border-width:.25em}.upload .upload-draggable.is-hovered.is-white,.upload .upload-draggable:hover.is-white{border-color:#fff;background:hsla(0,0%,100%,.05)}.upload .upload-draggable.is-hovered.is-black,.upload .upload-draggable:hover.is-black{border-color:#0a0a0a;background:hsla(0,0%,4%,.05)}.upload .upload-draggable.is-hovered.is-light,.upload .upload-draggable:hover.is-light{border-color:#f5f5f5;background:hsla(0,0%,96%,.05)}.upload .upload-draggable.is-hovered.is-dark,.upload .upload-draggable:hover.is-dark{border-color:#363636;background:rgba(54,54,54,.05)}.upload .upload-draggable.is-hovered.is-primary,.upload .upload-draggable:hover.is-primary{border-color:#26a69a;background:rgba(38,166,154,.05)}.upload .upload-draggable.is-hovered.is-info,.upload .upload-draggable:hover.is-info{border-color:#209cee;background:rgba(32,156,238,.05)}.upload .upload-draggable.is-hovered.is-success,.upload .upload-draggable:hover.is-success{border-color:#23d160;background:rgba(35,209,96,.05)}.upload .upload-draggable.is-hovered.is-warning,.upload .upload-draggable:hover.is-warning{border-color:#ffdd57;background:rgba(255,221,87,.05)}.upload .upload-draggable.is-hovered.is-danger,.upload .upload-draggable:hover.is-danger{border-color:#f44336;background:rgba(244,67,54,.05)}.upload .upload-draggable.is-hovered.is-twitter,.upload .upload-draggable:hover.is-twitter{border-color:#4099ff;background:rgba(64,153,255,.05)}.upload .upload-draggable.is-expanded,.upload.is-expanded{width:100%}@media screen and (-ms-high-contrast:active),screen and (-ms-high-contrast:none){.upload input[type=file]{z-index:auto}.upload .upload-draggable+input[type=file]{z-index:-1}}.navbar-brand.is-marginless .subtitle[data-v-611d79ae]:not(:last-child){margin-bottom:0}html{height:100vh}body{height:100%}.router-view{height:100%;overflow:auto}.box[data-v-7247e069]{margin:auto}.image img[data-v-7247e069]{border-radius:3px}.img-hover .could-hover[data-v-7247e069]{cursor:pointer;-webkit-transition:-webkit-transform .2s,-webkit-filter .2s ease-in-out;transition:-webkit-transform .2s,-webkit-filter .2s ease-in-out;transition:transform .2s,filter .2s ease-in-out;transition:transform .2s,filter .2s ease-in-out,-webkit-transform .2s,-webkit-filter .2s ease-in-out}.img-hover:hover .could-hover[data-v-7247e069]{-webkit-transform:scale(1.1);transform:scale(1.1);-webkit-filter:brightness(1.2);filter:brightness(1.2)}.column[data-v-49a5fd46]:last-child{margin-bottom:1.5rem}.buttons-slot[data-v-49a5fd46]{opacity:.3;-webkit-transition:opacity .2s ease-in-out;transition:opacity .2s ease-in-out}.contract-box[data-v-49a5fd46]{width:320px}.contract-box:hover .buttons-slot[data-v-49a5fd46]{opacity:1}.item-content[data-v-69031e6a]{padding:.5rem 5rem 0 0}.item-content .buttons[data-v-69031e6a]{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.my-label{display:block;width:50px;-webkit-box-flex:unset;-ms-flex-positive:unset;flex-grow:unset;font-size:14px}.my-content .tab-content{padding:20px 0}.item-content[data-v-dfb6d268]{padding:.5rem 5rem 0 0}.item-content .buttons[data-v-dfb6d268]{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.code-pre pre{word-wrap:break-word;white-space:pre-wrap}.contract-detail{max-width:1000px;margin:auto}.log-container[data-v-1219d4b9]{width:800px;margin:auto;padding:1.1rem;overflow-x:auto;min-height:100%}.block-range.field-label[data-v-1219d4b9]{width:100px}.log-container .log-loading[data-v-1219d4b9]{z-index:111}.item-content[data-v-18528316]{padding:.5rem 5rem 0 0}.func-card .card-content[data-v-18528316]{border-left:1px solid #dbdbdb;border-right:1px solid #dbdbdb;border-bottom:1px solid #dbdbdb;padding-bottom:20px}.item-content .buttons[data-v-18528316]{-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end}.modal-card-head{border-bottom:none}.modal-card-foot{border-top:none}.modal-card-foot,.modal-card-head{background-color:#fff}.display-6{font-size:14px}@-webkit-keyframes textChange{0%{background:rgba(0,209,178,.8);color:#fff}30%{background:rgba(0,209,178,.8);color:rgba(0,0,0,.6)}70%{background:rgba(0,209,178,.3);color:rgba(0,0,0,.3)}to{color:#000;background:transparent}}@keyframes textChange{0%{background:rgba(0,209,178,.8);color:#fff}30%{background:rgba(0,209,178,.8);color:rgba(0,0,0,.6)}70%{background:rgba(0,209,178,.3);color:rgba(0,0,0,.3)}to{color:#000;background:transparent}}.textChange{-webkit-animation-name:textChange;animation-name:textChange}@-webkit-keyframes textOut{0%{opacity:1}to{opacity:0}}@keyframes textOut{0%{opacity:1}to{opacity:0}}.textOut{-webkit-animation-name:textOut;animation-name:textOut}.animated{-webkit-animation-duration:.7s;animation-duration:.7s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.animated.faster{-webkit-animation-duration:.5s;animation-duration:.5s} \ No newline at end of file diff --git a/css/chunk-vendors.4e32a51b.css b/css/chunk-vendors.4e32a51b.css new file mode 100644 index 0000000..0a0fc2a --- /dev/null +++ b/css/chunk-vendors.4e32a51b.css @@ -0,0 +1,4 @@ +/*! + * Font Awesome Free 5.5.0 by @fontawesome - https://fontawesome.com + * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) + */.fa,.fab,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-180,:root .fa-rotate-270,:root .fa-rotate-90{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\f26e"}.fa-accessible-icon:before{content:"\f368"}.fa-accusoft:before{content:"\f369"}.fa-acquisitions-incorporated:before{content:"\f6af"}.fa-ad:before{content:"\f641"}.fa-address-book:before{content:"\f2b9"}.fa-address-card:before{content:"\f2bb"}.fa-adjust:before{content:"\f042"}.fa-adn:before{content:"\f170"}.fa-adversal:before{content:"\f36a"}.fa-affiliatetheme:before{content:"\f36b"}.fa-air-freshener:before{content:"\f5d0"}.fa-algolia:before{content:"\f36c"}.fa-align-center:before{content:"\f037"}.fa-align-justify:before{content:"\f039"}.fa-align-left:before{content:"\f036"}.fa-align-right:before{content:"\f038"}.fa-alipay:before{content:"\f642"}.fa-allergies:before{content:"\f461"}.fa-amazon:before{content:"\f270"}.fa-amazon-pay:before{content:"\f42c"}.fa-ambulance:before{content:"\f0f9"}.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-amilia:before{content:"\f36d"}.fa-anchor:before{content:"\f13d"}.fa-android:before{content:"\f17b"}.fa-angellist:before{content:"\f209"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-down:before{content:"\f107"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angry:before{content:"\f556"}.fa-angrycreative:before{content:"\f36e"}.fa-angular:before{content:"\f420"}.fa-ankh:before{content:"\f644"}.fa-app-store:before{content:"\f36f"}.fa-app-store-ios:before{content:"\f370"}.fa-apper:before{content:"\f371"}.fa-apple:before{content:"\f179"}.fa-apple-alt:before{content:"\f5d1"}.fa-apple-pay:before{content:"\f415"}.fa-archive:before{content:"\f187"}.fa-archway:before{content:"\f557"}.fa-arrow-alt-circle-down:before{content:"\f358"}.fa-arrow-alt-circle-left:before{content:"\f359"}.fa-arrow-alt-circle-right:before{content:"\f35a"}.fa-arrow-alt-circle-up:before{content:"\f35b"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-down:before{content:"\f063"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrows-alt:before{content:"\f0b2"}.fa-arrows-alt-h:before{content:"\f337"}.fa-arrows-alt-v:before{content:"\f338"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asterisk:before{content:"\f069"}.fa-asymmetrik:before{content:"\f372"}.fa-at:before{content:"\f1fa"}.fa-atlas:before{content:"\f558"}.fa-atom:before{content:"\f5d2"}.fa-audible:before{content:"\f373"}.fa-audio-description:before{content:"\f29e"}.fa-autoprefixer:before{content:"\f41c"}.fa-avianex:before{content:"\f374"}.fa-aviato:before{content:"\f421"}.fa-award:before{content:"\f559"}.fa-aws:before{content:"\f375"}.fa-backspace:before{content:"\f55a"}.fa-backward:before{content:"\f04a"}.fa-balance-scale:before{content:"\f24e"}.fa-ban:before{content:"\f05e"}.fa-band-aid:before{content:"\f462"}.fa-bandcamp:before{content:"\f2d5"}.fa-barcode:before{content:"\f02a"}.fa-bars:before{content:"\f0c9"}.fa-baseball-ball:before{content:"\f433"}.fa-basketball-ball:before{content:"\f434"}.fa-bath:before{content:"\f2cd"}.fa-battery-empty:before{content:"\f244"}.fa-battery-full:before{content:"\f240"}.fa-battery-half:before{content:"\f242"}.fa-battery-quarter:before{content:"\f243"}.fa-battery-three-quarters:before{content:"\f241"}.fa-bed:before{content:"\f236"}.fa-beer:before{content:"\f0fc"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-bell:before{content:"\f0f3"}.fa-bell-slash:before{content:"\f1f6"}.fa-bezier-curve:before{content:"\f55b"}.fa-bible:before{content:"\f647"}.fa-bicycle:before{content:"\f206"}.fa-bimobject:before{content:"\f378"}.fa-binoculars:before{content:"\f1e5"}.fa-birthday-cake:before{content:"\f1fd"}.fa-bitbucket:before{content:"\f171"}.fa-bitcoin:before{content:"\f379"}.fa-bity:before{content:"\f37a"}.fa-black-tie:before{content:"\f27e"}.fa-blackberry:before{content:"\f37b"}.fa-blender:before{content:"\f517"}.fa-blender-phone:before{content:"\f6b6"}.fa-blind:before{content:"\f29d"}.fa-blogger:before{content:"\f37c"}.fa-blogger-b:before{content:"\f37d"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-bold:before{content:"\f032"}.fa-bolt:before{content:"\f0e7"}.fa-bomb:before{content:"\f1e2"}.fa-bone:before{content:"\f5d7"}.fa-bong:before{content:"\f55c"}.fa-book:before{content:"\f02d"}.fa-book-dead:before{content:"\f6b7"}.fa-book-open:before{content:"\f518"}.fa-book-reader:before{content:"\f5da"}.fa-bookmark:before{content:"\f02e"}.fa-bowling-ball:before{content:"\f436"}.fa-box:before{content:"\f466"}.fa-box-open:before{content:"\f49e"}.fa-boxes:before{content:"\f468"}.fa-braille:before{content:"\f2a1"}.fa-brain:before{content:"\f5dc"}.fa-briefcase:before{content:"\f0b1"}.fa-briefcase-medical:before{content:"\f469"}.fa-broadcast-tower:before{content:"\f519"}.fa-broom:before{content:"\f51a"}.fa-brush:before{content:"\f55d"}.fa-btc:before{content:"\f15a"}.fa-bug:before{content:"\f188"}.fa-building:before{content:"\f1ad"}.fa-bullhorn:before{content:"\f0a1"}.fa-bullseye:before{content:"\f140"}.fa-burn:before{content:"\f46a"}.fa-buromobelexperte:before{content:"\f37f"}.fa-bus:before{content:"\f207"}.fa-bus-alt:before{content:"\f55e"}.fa-business-time:before{content:"\f64a"}.fa-buysellads:before{content:"\f20d"}.fa-calculator:before{content:"\f1ec"}.fa-calendar:before{content:"\f133"}.fa-calendar-alt:before{content:"\f073"}.fa-calendar-check:before{content:"\f274"}.fa-calendar-minus:before{content:"\f272"}.fa-calendar-plus:before{content:"\f271"}.fa-calendar-times:before{content:"\f273"}.fa-camera:before{content:"\f030"}.fa-camera-retro:before{content:"\f083"}.fa-campground:before{content:"\f6bb"}.fa-cannabis:before{content:"\f55f"}.fa-capsules:before{content:"\f46b"}.fa-car:before{content:"\f1b9"}.fa-car-alt:before{content:"\f5de"}.fa-car-battery:before{content:"\f5df"}.fa-car-crash:before{content:"\f5e1"}.fa-car-side:before{content:"\f5e4"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-caret-square-down:before{content:"\f150"}.fa-caret-square-left:before{content:"\f191"}.fa-caret-square-right:before{content:"\f152"}.fa-caret-square-up:before{content:"\f151"}.fa-caret-up:before{content:"\f0d8"}.fa-cart-arrow-down:before{content:"\f218"}.fa-cart-plus:before{content:"\f217"}.fa-cat:before{content:"\f6be"}.fa-cc-amazon-pay:before{content:"\f42d"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-apple-pay:before{content:"\f416"}.fa-cc-diners-club:before{content:"\f24c"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-cc-visa:before{content:"\f1f0"}.fa-centercode:before{content:"\f380"}.fa-certificate:before{content:"\f0a3"}.fa-chair:before{content:"\f6c0"}.fa-chalkboard:before{content:"\f51b"}.fa-chalkboard-teacher:before{content:"\f51c"}.fa-charging-station:before{content:"\f5e7"}.fa-chart-area:before{content:"\f1fe"}.fa-chart-bar:before{content:"\f080"}.fa-chart-line:before{content:"\f201"}.fa-chart-pie:before{content:"\f200"}.fa-check:before{content:"\f00c"}.fa-check-circle:before{content:"\f058"}.fa-check-double:before{content:"\f560"}.fa-check-square:before{content:"\f14a"}.fa-chess:before{content:"\f439"}.fa-chess-bishop:before{content:"\f43a"}.fa-chess-board:before{content:"\f43c"}.fa-chess-king:before{content:"\f43f"}.fa-chess-knight:before{content:"\f441"}.fa-chess-pawn:before{content:"\f443"}.fa-chess-queen:before{content:"\f445"}.fa-chess-rook:before{content:"\f447"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-down:before{content:"\f078"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-chevron-up:before{content:"\f077"}.fa-child:before{content:"\f1ae"}.fa-chrome:before{content:"\f268"}.fa-church:before{content:"\f51d"}.fa-circle:before{content:"\f111"}.fa-circle-notch:before{content:"\f1ce"}.fa-city:before{content:"\f64f"}.fa-clipboard:before{content:"\f328"}.fa-clipboard-check:before{content:"\f46c"}.fa-clipboard-list:before{content:"\f46d"}.fa-clock:before{content:"\f017"}.fa-clone:before{content:"\f24d"}.fa-closed-captioning:before{content:"\f20a"}.fa-cloud:before{content:"\f0c2"}.fa-cloud-download-alt:before{content:"\f381"}.fa-cloud-meatball:before{content:"\f73b"}.fa-cloud-moon:before{content:"\f6c3"}.fa-cloud-moon-rain:before{content:"\f73c"}.fa-cloud-rain:before{content:"\f73d"}.fa-cloud-showers-heavy:before{content:"\f740"}.fa-cloud-sun:before{content:"\f6c4"}.fa-cloud-sun-rain:before{content:"\f743"}.fa-cloud-upload-alt:before{content:"\f382"}.fa-cloudscale:before{content:"\f383"}.fa-cloudsmith:before{content:"\f384"}.fa-cloudversify:before{content:"\f385"}.fa-cocktail:before{content:"\f561"}.fa-code:before{content:"\f121"}.fa-code-branch:before{content:"\f126"}.fa-codepen:before{content:"\f1cb"}.fa-codiepie:before{content:"\f284"}.fa-coffee:before{content:"\f0f4"}.fa-cog:before{content:"\f013"}.fa-cogs:before{content:"\f085"}.fa-coins:before{content:"\f51e"}.fa-columns:before{content:"\f0db"}.fa-comment:before{content:"\f075"}.fa-comment-alt:before{content:"\f27a"}.fa-comment-dollar:before{content:"\f651"}.fa-comment-dots:before{content:"\f4ad"}.fa-comment-slash:before{content:"\f4b3"}.fa-comments:before{content:"\f086"}.fa-comments-dollar:before{content:"\f653"}.fa-compact-disc:before{content:"\f51f"}.fa-compass:before{content:"\f14e"}.fa-compress:before{content:"\f066"}.fa-concierge-bell:before{content:"\f562"}.fa-connectdevelop:before{content:"\f20e"}.fa-contao:before{content:"\f26d"}.fa-cookie:before{content:"\f563"}.fa-cookie-bite:before{content:"\f564"}.fa-copy:before{content:"\f0c5"}.fa-copyright:before{content:"\f1f9"}.fa-couch:before{content:"\f4b8"}.fa-cpanel:before{content:"\f388"}.fa-creative-commons:before{content:"\f25e"}.fa-creative-commons-by:before{content:"\f4e7"}.fa-creative-commons-nc:before{content:"\f4e8"}.fa-creative-commons-nc-eu:before{content:"\f4e9"}.fa-creative-commons-nc-jp:before{content:"\f4ea"}.fa-creative-commons-nd:before{content:"\f4eb"}.fa-creative-commons-pd:before{content:"\f4ec"}.fa-creative-commons-pd-alt:before{content:"\f4ed"}.fa-creative-commons-remix:before{content:"\f4ee"}.fa-creative-commons-sa:before{content:"\f4ef"}.fa-creative-commons-sampling:before{content:"\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\f4f1"}.fa-creative-commons-share:before{content:"\f4f2"}.fa-creative-commons-zero:before{content:"\f4f3"}.fa-credit-card:before{content:"\f09d"}.fa-critical-role:before{content:"\f6c9"}.fa-crop:before{content:"\f125"}.fa-crop-alt:before{content:"\f565"}.fa-cross:before{content:"\f654"}.fa-crosshairs:before{content:"\f05b"}.fa-crow:before{content:"\f520"}.fa-crown:before{content:"\f521"}.fa-css3:before{content:"\f13c"}.fa-css3-alt:before{content:"\f38b"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-cut:before{content:"\f0c4"}.fa-cuttlefish:before{content:"\f38c"}.fa-d-and-d:before{content:"\f38d"}.fa-d-and-d-beyond:before{content:"\f6ca"}.fa-dashcube:before{content:"\f210"}.fa-database:before{content:"\f1c0"}.fa-deaf:before{content:"\f2a4"}.fa-delicious:before{content:"\f1a5"}.fa-democrat:before{content:"\f747"}.fa-deploydog:before{content:"\f38e"}.fa-deskpro:before{content:"\f38f"}.fa-desktop:before{content:"\f108"}.fa-dev:before{content:"\f6cc"}.fa-deviantart:before{content:"\f1bd"}.fa-dharmachakra:before{content:"\f655"}.fa-diagnoses:before{content:"\f470"}.fa-dice:before{content:"\f522"}.fa-dice-d20:before{content:"\f6cf"}.fa-dice-d6:before{content:"\f6d1"}.fa-dice-five:before{content:"\f523"}.fa-dice-four:before{content:"\f524"}.fa-dice-one:before{content:"\f525"}.fa-dice-six:before{content:"\f526"}.fa-dice-three:before{content:"\f527"}.fa-dice-two:before{content:"\f528"}.fa-digg:before{content:"\f1a6"}.fa-digital-ocean:before{content:"\f391"}.fa-digital-tachograph:before{content:"\f566"}.fa-directions:before{content:"\f5eb"}.fa-discord:before{content:"\f392"}.fa-discourse:before{content:"\f393"}.fa-divide:before{content:"\f529"}.fa-dizzy:before{content:"\f567"}.fa-dna:before{content:"\f471"}.fa-dochub:before{content:"\f394"}.fa-docker:before{content:"\f395"}.fa-dog:before{content:"\f6d3"}.fa-dollar-sign:before{content:"\f155"}.fa-dolly:before{content:"\f472"}.fa-dolly-flatbed:before{content:"\f474"}.fa-donate:before{content:"\f4b9"}.fa-door-closed:before{content:"\f52a"}.fa-door-open:before{content:"\f52b"}.fa-dot-circle:before{content:"\f192"}.fa-dove:before{content:"\f4ba"}.fa-download:before{content:"\f019"}.fa-draft2digital:before{content:"\f396"}.fa-drafting-compass:before{content:"\f568"}.fa-dragon:before{content:"\f6d5"}.fa-draw-polygon:before{content:"\f5ee"}.fa-dribbble:before{content:"\f17d"}.fa-dribbble-square:before{content:"\f397"}.fa-dropbox:before{content:"\f16b"}.fa-drum:before{content:"\f569"}.fa-drum-steelpan:before{content:"\f56a"}.fa-drumstick-bite:before{content:"\f6d7"}.fa-drupal:before{content:"\f1a9"}.fa-dumbbell:before{content:"\f44b"}.fa-dungeon:before{content:"\f6d9"}.fa-dyalog:before{content:"\f399"}.fa-earlybirds:before{content:"\f39a"}.fa-ebay:before{content:"\f4f4"}.fa-edge:before{content:"\f282"}.fa-edit:before{content:"\f044"}.fa-eject:before{content:"\f052"}.fa-elementor:before{content:"\f430"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-ello:before{content:"\f5f1"}.fa-ember:before{content:"\f423"}.fa-empire:before{content:"\f1d1"}.fa-envelope:before{content:"\f0e0"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-text:before{content:"\f658"}.fa-envelope-square:before{content:"\f199"}.fa-envira:before{content:"\f299"}.fa-equals:before{content:"\f52c"}.fa-eraser:before{content:"\f12d"}.fa-erlang:before{content:"\f39d"}.fa-ethereum:before{content:"\f42e"}.fa-etsy:before{content:"\f2d7"}.fa-euro-sign:before{content:"\f153"}.fa-exchange-alt:before{content:"\f362"}.fa-exclamation:before{content:"\f12a"}.fa-exclamation-circle:before{content:"\f06a"}.fa-exclamation-triangle:before{content:"\f071"}.fa-expand:before{content:"\f065"}.fa-expand-arrows-alt:before{content:"\f31e"}.fa-expeditedssl:before{content:"\f23e"}.fa-external-link-alt:before{content:"\f35d"}.fa-external-link-square-alt:before{content:"\f360"}.fa-eye:before{content:"\f06e"}.fa-eye-dropper:before{content:"\f1fb"}.fa-eye-slash:before{content:"\f070"}.fa-facebook:before{content:"\f09a"}.fa-facebook-f:before{content:"\f39e"}.fa-facebook-messenger:before{content:"\f39f"}.fa-facebook-square:before{content:"\f082"}.fa-fantasy-flight-games:before{content:"\f6dc"}.fa-fast-backward:before{content:"\f049"}.fa-fast-forward:before{content:"\f050"}.fa-fax:before{content:"\f1ac"}.fa-feather:before{content:"\f52d"}.fa-feather-alt:before{content:"\f56b"}.fa-female:before{content:"\f182"}.fa-fighter-jet:before{content:"\f0fb"}.fa-file:before{content:"\f15b"}.fa-file-alt:before{content:"\f15c"}.fa-file-archive:before{content:"\f1c6"}.fa-file-audio:before{content:"\f1c7"}.fa-file-code:before{content:"\f1c9"}.fa-file-contract:before{content:"\f56c"}.fa-file-csv:before{content:"\f6dd"}.fa-file-download:before{content:"\f56d"}.fa-file-excel:before{content:"\f1c3"}.fa-file-export:before{content:"\f56e"}.fa-file-image:before{content:"\f1c5"}.fa-file-import:before{content:"\f56f"}.fa-file-invoice:before{content:"\f570"}.fa-file-invoice-dollar:before{content:"\f571"}.fa-file-medical:before{content:"\f477"}.fa-file-medical-alt:before{content:"\f478"}.fa-file-pdf:before{content:"\f1c1"}.fa-file-powerpoint:before{content:"\f1c4"}.fa-file-prescription:before{content:"\f572"}.fa-file-signature:before{content:"\f573"}.fa-file-upload:before{content:"\f574"}.fa-file-video:before{content:"\f1c8"}.fa-file-word:before{content:"\f1c2"}.fa-fill:before{content:"\f575"}.fa-fill-drip:before{content:"\f576"}.fa-film:before{content:"\f008"}.fa-filter:before{content:"\f0b0"}.fa-fingerprint:before{content:"\f577"}.fa-fire:before{content:"\f06d"}.fa-fire-extinguisher:before{content:"\f134"}.fa-firefox:before{content:"\f269"}.fa-first-aid:before{content:"\f479"}.fa-first-order:before{content:"\f2b0"}.fa-first-order-alt:before{content:"\f50a"}.fa-firstdraft:before{content:"\f3a1"}.fa-fish:before{content:"\f578"}.fa-fist-raised:before{content:"\f6de"}.fa-flag:before{content:"\f024"}.fa-flag-checkered:before{content:"\f11e"}.fa-flag-usa:before{content:"\f74d"}.fa-flask:before{content:"\f0c3"}.fa-flickr:before{content:"\f16e"}.fa-flipboard:before{content:"\f44d"}.fa-flushed:before{content:"\f579"}.fa-fly:before{content:"\f417"}.fa-folder:before{content:"\f07b"}.fa-folder-minus:before{content:"\f65d"}.fa-folder-open:before{content:"\f07c"}.fa-folder-plus:before{content:"\f65e"}.fa-font:before{content:"\f031"}.fa-font-awesome:before{content:"\f2b4"}.fa-font-awesome-alt:before{content:"\f35c"}.fa-font-awesome-flag:before{content:"\f425"}.fa-font-awesome-logo-full:before{content:"\f4e6"}.fa-fonticons:before{content:"\f280"}.fa-fonticons-fi:before{content:"\f3a2"}.fa-football-ball:before{content:"\f44e"}.fa-fort-awesome:before{content:"\f286"}.fa-fort-awesome-alt:before{content:"\f3a3"}.fa-forumbee:before{content:"\f211"}.fa-forward:before{content:"\f04e"}.fa-foursquare:before{content:"\f180"}.fa-free-code-camp:before{content:"\f2c5"}.fa-freebsd:before{content:"\f3a4"}.fa-frog:before{content:"\f52e"}.fa-frown:before{content:"\f119"}.fa-frown-open:before{content:"\f57a"}.fa-fulcrum:before{content:"\f50b"}.fa-funnel-dollar:before{content:"\f662"}.fa-futbol:before{content:"\f1e3"}.fa-galactic-republic:before{content:"\f50c"}.fa-galactic-senate:before{content:"\f50d"}.fa-gamepad:before{content:"\f11b"}.fa-gas-pump:before{content:"\f52f"}.fa-gavel:before{content:"\f0e3"}.fa-gem:before{content:"\f3a5"}.fa-genderless:before{content:"\f22d"}.fa-get-pocket:before{content:"\f265"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-ghost:before{content:"\f6e2"}.fa-gift:before{content:"\f06b"}.fa-git:before{content:"\f1d3"}.fa-git-square:before{content:"\f1d2"}.fa-github:before{content:"\f09b"}.fa-github-alt:before{content:"\f113"}.fa-github-square:before{content:"\f092"}.fa-gitkraken:before{content:"\f3a6"}.fa-gitlab:before{content:"\f296"}.fa-gitter:before{content:"\f426"}.fa-glass-martini:before{content:"\f000"}.fa-glass-martini-alt:before{content:"\f57b"}.fa-glasses:before{content:"\f530"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-globe:before{content:"\f0ac"}.fa-globe-africa:before{content:"\f57c"}.fa-globe-americas:before{content:"\f57d"}.fa-globe-asia:before{content:"\f57e"}.fa-gofore:before{content:"\f3a7"}.fa-golf-ball:before{content:"\f450"}.fa-goodreads:before{content:"\f3a8"}.fa-goodreads-g:before{content:"\f3a9"}.fa-google:before{content:"\f1a0"}.fa-google-drive:before{content:"\f3aa"}.fa-google-play:before{content:"\f3ab"}.fa-google-plus:before{content:"\f2b3"}.fa-google-plus-g:before{content:"\f0d5"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-wallet:before{content:"\f1ee"}.fa-gopuram:before{content:"\f664"}.fa-graduation-cap:before{content:"\f19d"}.fa-gratipay:before{content:"\f184"}.fa-grav:before{content:"\f2d6"}.fa-greater-than:before{content:"\f531"}.fa-greater-than-equal:before{content:"\f532"}.fa-grimace:before{content:"\f57f"}.fa-grin:before{content:"\f580"}.fa-grin-alt:before{content:"\f581"}.fa-grin-beam:before{content:"\f582"}.fa-grin-beam-sweat:before{content:"\f583"}.fa-grin-hearts:before{content:"\f584"}.fa-grin-squint:before{content:"\f585"}.fa-grin-squint-tears:before{content:"\f586"}.fa-grin-stars:before{content:"\f587"}.fa-grin-tears:before{content:"\f588"}.fa-grin-tongue:before{content:"\f589"}.fa-grin-tongue-squint:before{content:"\f58a"}.fa-grin-tongue-wink:before{content:"\f58b"}.fa-grin-wink:before{content:"\f58c"}.fa-grip-horizontal:before{content:"\f58d"}.fa-grip-vertical:before{content:"\f58e"}.fa-gripfire:before{content:"\f3ac"}.fa-grunt:before{content:"\f3ad"}.fa-gulp:before{content:"\f3ae"}.fa-h-square:before{content:"\f0fd"}.fa-hacker-news:before{content:"\f1d4"}.fa-hacker-news-square:before{content:"\f3af"}.fa-hackerrank:before{content:"\f5f7"}.fa-hammer:before{content:"\f6e3"}.fa-hamsa:before{content:"\f665"}.fa-hand-holding:before{content:"\f4bd"}.fa-hand-holding-heart:before{content:"\f4be"}.fa-hand-holding-usd:before{content:"\f4c0"}.fa-hand-lizard:before{content:"\f258"}.fa-hand-paper:before{content:"\f256"}.fa-hand-peace:before{content:"\f25b"}.fa-hand-point-down:before{content:"\f0a7"}.fa-hand-point-left:before{content:"\f0a5"}.fa-hand-point-right:before{content:"\f0a4"}.fa-hand-point-up:before{content:"\f0a6"}.fa-hand-pointer:before{content:"\f25a"}.fa-hand-rock:before{content:"\f255"}.fa-hand-scissors:before{content:"\f257"}.fa-hand-spock:before{content:"\f259"}.fa-hands:before{content:"\f4c2"}.fa-hands-helping:before{content:"\f4c4"}.fa-handshake:before{content:"\f2b5"}.fa-hanukiah:before{content:"\f6e6"}.fa-hashtag:before{content:"\f292"}.fa-hat-wizard:before{content:"\f6e8"}.fa-haykal:before{content:"\f666"}.fa-hdd:before{content:"\f0a0"}.fa-heading:before{content:"\f1dc"}.fa-headphones:before{content:"\f025"}.fa-headphones-alt:before{content:"\f58f"}.fa-headset:before{content:"\f590"}.fa-heart:before{content:"\f004"}.fa-heartbeat:before{content:"\f21e"}.fa-helicopter:before{content:"\f533"}.fa-highlighter:before{content:"\f591"}.fa-hiking:before{content:"\f6ec"}.fa-hippo:before{content:"\f6ed"}.fa-hips:before{content:"\f452"}.fa-hire-a-helper:before{content:"\f3b0"}.fa-history:before{content:"\f1da"}.fa-hockey-puck:before{content:"\f453"}.fa-home:before{content:"\f015"}.fa-hooli:before{content:"\f427"}.fa-hornbill:before{content:"\f592"}.fa-horse:before{content:"\f6f0"}.fa-hospital:before{content:"\f0f8"}.fa-hospital-alt:before{content:"\f47d"}.fa-hospital-symbol:before{content:"\f47e"}.fa-hot-tub:before{content:"\f593"}.fa-hotel:before{content:"\f594"}.fa-hotjar:before{content:"\f3b1"}.fa-hourglass:before{content:"\f254"}.fa-hourglass-end:before{content:"\f253"}.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-start:before{content:"\f251"}.fa-house-damage:before{content:"\f6f1"}.fa-houzz:before{content:"\f27c"}.fa-hryvnia:before{content:"\f6f2"}.fa-html5:before{content:"\f13b"}.fa-hubspot:before{content:"\f3b2"}.fa-i-cursor:before{content:"\f246"}.fa-id-badge:before{content:"\f2c1"}.fa-id-card:before{content:"\f2c2"}.fa-id-card-alt:before{content:"\f47f"}.fa-image:before{content:"\f03e"}.fa-images:before{content:"\f302"}.fa-imdb:before{content:"\f2d8"}.fa-inbox:before{content:"\f01c"}.fa-indent:before{content:"\f03c"}.fa-industry:before{content:"\f275"}.fa-infinity:before{content:"\f534"}.fa-info:before{content:"\f129"}.fa-info-circle:before{content:"\f05a"}.fa-instagram:before{content:"\f16d"}.fa-internet-explorer:before{content:"\f26b"}.fa-ioxhost:before{content:"\f208"}.fa-italic:before{content:"\f033"}.fa-itunes:before{content:"\f3b4"}.fa-itunes-note:before{content:"\f3b5"}.fa-java:before{content:"\f4e4"}.fa-jedi:before{content:"\f669"}.fa-jedi-order:before{content:"\f50e"}.fa-jenkins:before{content:"\f3b6"}.fa-joget:before{content:"\f3b7"}.fa-joint:before{content:"\f595"}.fa-joomla:before{content:"\f1aa"}.fa-journal-whills:before{content:"\f66a"}.fa-js:before{content:"\f3b8"}.fa-js-square:before{content:"\f3b9"}.fa-jsfiddle:before{content:"\f1cc"}.fa-kaaba:before{content:"\f66b"}.fa-kaggle:before{content:"\f5fa"}.fa-key:before{content:"\f084"}.fa-keybase:before{content:"\f4f5"}.fa-keyboard:before{content:"\f11c"}.fa-keycdn:before{content:"\f3ba"}.fa-khanda:before{content:"\f66d"}.fa-kickstarter:before{content:"\f3bb"}.fa-kickstarter-k:before{content:"\f3bc"}.fa-kiss:before{content:"\f596"}.fa-kiss-beam:before{content:"\f597"}.fa-kiss-wink-heart:before{content:"\f598"}.fa-kiwi-bird:before{content:"\f535"}.fa-korvue:before{content:"\f42f"}.fa-landmark:before{content:"\f66f"}.fa-language:before{content:"\f1ab"}.fa-laptop:before{content:"\f109"}.fa-laptop-code:before{content:"\f5fc"}.fa-laravel:before{content:"\f3bd"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-laugh:before{content:"\f599"}.fa-laugh-beam:before{content:"\f59a"}.fa-laugh-squint:before{content:"\f59b"}.fa-laugh-wink:before{content:"\f59c"}.fa-layer-group:before{content:"\f5fd"}.fa-leaf:before{content:"\f06c"}.fa-leanpub:before{content:"\f212"}.fa-lemon:before{content:"\f094"}.fa-less:before{content:"\f41d"}.fa-less-than:before{content:"\f536"}.fa-less-than-equal:before{content:"\f537"}.fa-level-down-alt:before{content:"\f3be"}.fa-level-up-alt:before{content:"\f3bf"}.fa-life-ring:before{content:"\f1cd"}.fa-lightbulb:before{content:"\f0eb"}.fa-line:before{content:"\f3c0"}.fa-link:before{content:"\f0c1"}.fa-linkedin:before{content:"\f08c"}.fa-linkedin-in:before{content:"\f0e1"}.fa-linode:before{content:"\f2b8"}.fa-linux:before{content:"\f17c"}.fa-lira-sign:before{content:"\f195"}.fa-list:before{content:"\f03a"}.fa-list-alt:before{content:"\f022"}.fa-list-ol:before{content:"\f0cb"}.fa-list-ul:before{content:"\f0ca"}.fa-location-arrow:before{content:"\f124"}.fa-lock:before{content:"\f023"}.fa-lock-open:before{content:"\f3c1"}.fa-long-arrow-alt-down:before{content:"\f309"}.fa-long-arrow-alt-left:before{content:"\f30a"}.fa-long-arrow-alt-right:before{content:"\f30b"}.fa-long-arrow-alt-up:before{content:"\f30c"}.fa-low-vision:before{content:"\f2a8"}.fa-luggage-cart:before{content:"\f59d"}.fa-lyft:before{content:"\f3c3"}.fa-magento:before{content:"\f3c4"}.fa-magic:before{content:"\f0d0"}.fa-magnet:before{content:"\f076"}.fa-mail-bulk:before{content:"\f674"}.fa-mailchimp:before{content:"\f59e"}.fa-male:before{content:"\f183"}.fa-mandalorian:before{content:"\f50f"}.fa-map:before{content:"\f279"}.fa-map-marked:before{content:"\f59f"}.fa-map-marked-alt:before{content:"\f5a0"}.fa-map-marker:before{content:"\f041"}.fa-map-marker-alt:before{content:"\f3c5"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-markdown:before{content:"\f60f"}.fa-marker:before{content:"\f5a1"}.fa-mars:before{content:"\f222"}.fa-mars-double:before{content:"\f227"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mask:before{content:"\f6fa"}.fa-mastodon:before{content:"\f4f6"}.fa-maxcdn:before{content:"\f136"}.fa-medal:before{content:"\f5a2"}.fa-medapps:before{content:"\f3c6"}.fa-medium:before{content:"\f23a"}.fa-medium-m:before{content:"\f3c7"}.fa-medkit:before{content:"\f0fa"}.fa-medrt:before{content:"\f3c8"}.fa-meetup:before{content:"\f2e0"}.fa-megaport:before{content:"\f5a3"}.fa-meh:before{content:"\f11a"}.fa-meh-blank:before{content:"\f5a4"}.fa-meh-rolling-eyes:before{content:"\f5a5"}.fa-memory:before{content:"\f538"}.fa-menorah:before{content:"\f676"}.fa-mercury:before{content:"\f223"}.fa-meteor:before{content:"\f753"}.fa-microchip:before{content:"\f2db"}.fa-microphone:before{content:"\f130"}.fa-microphone-alt:before{content:"\f3c9"}.fa-microphone-alt-slash:before{content:"\f539"}.fa-microphone-slash:before{content:"\f131"}.fa-microscope:before{content:"\f610"}.fa-microsoft:before{content:"\f3ca"}.fa-minus:before{content:"\f068"}.fa-minus-circle:before{content:"\f056"}.fa-minus-square:before{content:"\f146"}.fa-mix:before{content:"\f3cb"}.fa-mixcloud:before{content:"\f289"}.fa-mizuni:before{content:"\f3cc"}.fa-mobile:before{content:"\f10b"}.fa-mobile-alt:before{content:"\f3cd"}.fa-modx:before{content:"\f285"}.fa-monero:before{content:"\f3d0"}.fa-money-bill:before{content:"\f0d6"}.fa-money-bill-alt:before{content:"\f3d1"}.fa-money-bill-wave:before{content:"\f53a"}.fa-money-bill-wave-alt:before{content:"\f53b"}.fa-money-check:before{content:"\f53c"}.fa-money-check-alt:before{content:"\f53d"}.fa-monument:before{content:"\f5a6"}.fa-moon:before{content:"\f186"}.fa-mortar-pestle:before{content:"\f5a7"}.fa-mosque:before{content:"\f678"}.fa-motorcycle:before{content:"\f21c"}.fa-mountain:before{content:"\f6fc"}.fa-mouse-pointer:before{content:"\f245"}.fa-music:before{content:"\f001"}.fa-napster:before{content:"\f3d2"}.fa-neos:before{content:"\f612"}.fa-network-wired:before{content:"\f6ff"}.fa-neuter:before{content:"\f22c"}.fa-newspaper:before{content:"\f1ea"}.fa-nimblr:before{content:"\f5a8"}.fa-nintendo-switch:before{content:"\f418"}.fa-node:before{content:"\f419"}.fa-node-js:before{content:"\f3d3"}.fa-not-equal:before{content:"\f53e"}.fa-notes-medical:before{content:"\f481"}.fa-npm:before{content:"\f3d4"}.fa-ns8:before{content:"\f3d5"}.fa-nutritionix:before{content:"\f3d6"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-oil-can:before{content:"\f613"}.fa-old-republic:before{content:"\f510"}.fa-om:before{content:"\f679"}.fa-opencart:before{content:"\f23d"}.fa-openid:before{content:"\f19b"}.fa-opera:before{content:"\f26a"}.fa-optin-monster:before{content:"\f23c"}.fa-osi:before{content:"\f41a"}.fa-otter:before{content:"\f700"}.fa-outdent:before{content:"\f03b"}.fa-page4:before{content:"\f3d7"}.fa-pagelines:before{content:"\f18c"}.fa-paint-brush:before{content:"\f1fc"}.fa-paint-roller:before{content:"\f5aa"}.fa-palette:before{content:"\f53f"}.fa-palfed:before{content:"\f3d8"}.fa-pallet:before{content:"\f482"}.fa-paper-plane:before{content:"\f1d8"}.fa-paperclip:before{content:"\f0c6"}.fa-parachute-box:before{content:"\f4cd"}.fa-paragraph:before{content:"\f1dd"}.fa-parking:before{content:"\f540"}.fa-passport:before{content:"\f5ab"}.fa-pastafarianism:before{content:"\f67b"}.fa-paste:before{content:"\f0ea"}.fa-patreon:before{content:"\f3d9"}.fa-pause:before{content:"\f04c"}.fa-pause-circle:before{content:"\f28b"}.fa-paw:before{content:"\f1b0"}.fa-paypal:before{content:"\f1ed"}.fa-peace:before{content:"\f67c"}.fa-pen:before{content:"\f304"}.fa-pen-alt:before{content:"\f305"}.fa-pen-fancy:before{content:"\f5ac"}.fa-pen-nib:before{content:"\f5ad"}.fa-pen-square:before{content:"\f14b"}.fa-pencil-alt:before{content:"\f303"}.fa-pencil-ruler:before{content:"\f5ae"}.fa-penny-arcade:before{content:"\f704"}.fa-people-carry:before{content:"\f4ce"}.fa-percent:before{content:"\f295"}.fa-percentage:before{content:"\f541"}.fa-periscope:before{content:"\f3da"}.fa-person-booth:before{content:"\f756"}.fa-phabricator:before{content:"\f3db"}.fa-phoenix-framework:before{content:"\f3dc"}.fa-phoenix-squadron:before{content:"\f511"}.fa-phone:before{content:"\f095"}.fa-phone-slash:before{content:"\f3dd"}.fa-phone-square:before{content:"\f098"}.fa-phone-volume:before{content:"\f2a0"}.fa-php:before{content:"\f457"}.fa-pied-piper:before{content:"\f2ae"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-pied-piper-hat:before{content:"\f4e5"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-piggy-bank:before{content:"\f4d3"}.fa-pills:before{content:"\f484"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-p:before{content:"\f231"}.fa-pinterest-square:before{content:"\f0d3"}.fa-place-of-worship:before{content:"\f67f"}.fa-plane:before{content:"\f072"}.fa-plane-arrival:before{content:"\f5af"}.fa-plane-departure:before{content:"\f5b0"}.fa-play:before{content:"\f04b"}.fa-play-circle:before{content:"\f144"}.fa-playstation:before{content:"\f3df"}.fa-plug:before{content:"\f1e6"}.fa-plus:before{content:"\f067"}.fa-plus-circle:before{content:"\f055"}.fa-plus-square:before{content:"\f0fe"}.fa-podcast:before{content:"\f2ce"}.fa-poll:before{content:"\f681"}.fa-poll-h:before{content:"\f682"}.fa-poo:before{content:"\f2fe"}.fa-poo-storm:before{content:"\f75a"}.fa-poop:before{content:"\f619"}.fa-portrait:before{content:"\f3e0"}.fa-pound-sign:before{content:"\f154"}.fa-power-off:before{content:"\f011"}.fa-pray:before{content:"\f683"}.fa-praying-hands:before{content:"\f684"}.fa-prescription:before{content:"\f5b1"}.fa-prescription-bottle:before{content:"\f485"}.fa-prescription-bottle-alt:before{content:"\f486"}.fa-print:before{content:"\f02f"}.fa-procedures:before{content:"\f487"}.fa-product-hunt:before{content:"\f288"}.fa-project-diagram:before{content:"\f542"}.fa-pushed:before{content:"\f3e1"}.fa-puzzle-piece:before{content:"\f12e"}.fa-python:before{content:"\f3e2"}.fa-qq:before{content:"\f1d6"}.fa-qrcode:before{content:"\f029"}.fa-question:before{content:"\f128"}.fa-question-circle:before{content:"\f059"}.fa-quidditch:before{content:"\f458"}.fa-quinscape:before{content:"\f459"}.fa-quora:before{content:"\f2c4"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-quran:before{content:"\f687"}.fa-r-project:before{content:"\f4f7"}.fa-rainbow:before{content:"\f75b"}.fa-random:before{content:"\f074"}.fa-ravelry:before{content:"\f2d9"}.fa-react:before{content:"\f41b"}.fa-reacteurope:before{content:"\f75d"}.fa-readme:before{content:"\f4d5"}.fa-rebel:before{content:"\f1d0"}.fa-receipt:before{content:"\f543"}.fa-recycle:before{content:"\f1b8"}.fa-red-river:before{content:"\f3e3"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-alien:before{content:"\f281"}.fa-reddit-square:before{content:"\f1a2"}.fa-redo:before{content:"\f01e"}.fa-redo-alt:before{content:"\f2f9"}.fa-registered:before{content:"\f25d"}.fa-renren:before{content:"\f18b"}.fa-reply:before{content:"\f3e5"}.fa-reply-all:before{content:"\f122"}.fa-replyd:before{content:"\f3e6"}.fa-republican:before{content:"\f75e"}.fa-researchgate:before{content:"\f4f8"}.fa-resolving:before{content:"\f3e7"}.fa-retweet:before{content:"\f079"}.fa-rev:before{content:"\f5b2"}.fa-ribbon:before{content:"\f4d6"}.fa-ring:before{content:"\f70b"}.fa-road:before{content:"\f018"}.fa-robot:before{content:"\f544"}.fa-rocket:before{content:"\f135"}.fa-rocketchat:before{content:"\f3e8"}.fa-rockrms:before{content:"\f3e9"}.fa-route:before{content:"\f4d7"}.fa-rss:before{content:"\f09e"}.fa-rss-square:before{content:"\f143"}.fa-ruble-sign:before{content:"\f158"}.fa-ruler:before{content:"\f545"}.fa-ruler-combined:before{content:"\f546"}.fa-ruler-horizontal:before{content:"\f547"}.fa-ruler-vertical:before{content:"\f548"}.fa-running:before{content:"\f70c"}.fa-rupee-sign:before{content:"\f156"}.fa-sad-cry:before{content:"\f5b3"}.fa-sad-tear:before{content:"\f5b4"}.fa-safari:before{content:"\f267"}.fa-sass:before{content:"\f41e"}.fa-save:before{content:"\f0c7"}.fa-schlix:before{content:"\f3ea"}.fa-school:before{content:"\f549"}.fa-screwdriver:before{content:"\f54a"}.fa-scribd:before{content:"\f28a"}.fa-scroll:before{content:"\f70e"}.fa-search:before{content:"\f002"}.fa-search-dollar:before{content:"\f688"}.fa-search-location:before{content:"\f689"}.fa-search-minus:before{content:"\f010"}.fa-search-plus:before{content:"\f00e"}.fa-searchengin:before{content:"\f3eb"}.fa-seedling:before{content:"\f4d8"}.fa-sellcast:before{content:"\f2da"}.fa-sellsy:before{content:"\f213"}.fa-server:before{content:"\f233"}.fa-servicestack:before{content:"\f3ec"}.fa-shapes:before{content:"\f61f"}.fa-share:before{content:"\f064"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-share-square:before{content:"\f14d"}.fa-shekel-sign:before{content:"\f20b"}.fa-shield-alt:before{content:"\f3ed"}.fa-ship:before{content:"\f21a"}.fa-shipping-fast:before{content:"\f48b"}.fa-shirtsinbulk:before{content:"\f214"}.fa-shoe-prints:before{content:"\f54b"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-shopping-cart:before{content:"\f07a"}.fa-shopware:before{content:"\f5b5"}.fa-shower:before{content:"\f2cc"}.fa-shuttle-van:before{content:"\f5b6"}.fa-sign:before{content:"\f4d9"}.fa-sign-in-alt:before{content:"\f2f6"}.fa-sign-language:before{content:"\f2a7"}.fa-sign-out-alt:before{content:"\f2f5"}.fa-signal:before{content:"\f012"}.fa-signature:before{content:"\f5b7"}.fa-simplybuilt:before{content:"\f215"}.fa-sistrix:before{content:"\f3ee"}.fa-sitemap:before{content:"\f0e8"}.fa-sith:before{content:"\f512"}.fa-skull:before{content:"\f54c"}.fa-skull-crossbones:before{content:"\f714"}.fa-skyatlas:before{content:"\f216"}.fa-skype:before{content:"\f17e"}.fa-slack:before{content:"\f198"}.fa-slack-hash:before{content:"\f3ef"}.fa-slash:before{content:"\f715"}.fa-sliders-h:before{content:"\f1de"}.fa-slideshare:before{content:"\f1e7"}.fa-smile:before{content:"\f118"}.fa-smile-beam:before{content:"\f5b8"}.fa-smile-wink:before{content:"\f4da"}.fa-smog:before{content:"\f75f"}.fa-smoking:before{content:"\f48d"}.fa-smoking-ban:before{content:"\f54d"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-snowflake:before{content:"\f2dc"}.fa-socks:before{content:"\f696"}.fa-solar-panel:before{content:"\f5ba"}.fa-sort:before{content:"\f0dc"}.fa-sort-alpha-down:before{content:"\f15d"}.fa-sort-alpha-up:before{content:"\f15e"}.fa-sort-amount-down:before{content:"\f160"}.fa-sort-amount-up:before{content:"\f161"}.fa-sort-down:before{content:"\f0dd"}.fa-sort-numeric-down:before{content:"\f162"}.fa-sort-numeric-up:before{content:"\f163"}.fa-sort-up:before{content:"\f0de"}.fa-soundcloud:before{content:"\f1be"}.fa-spa:before{content:"\f5bb"}.fa-space-shuttle:before{content:"\f197"}.fa-speakap:before{content:"\f3f3"}.fa-spider:before{content:"\f717"}.fa-spinner:before{content:"\f110"}.fa-splotch:before{content:"\f5bc"}.fa-spotify:before{content:"\f1bc"}.fa-spray-can:before{content:"\f5bd"}.fa-square:before{content:"\f0c8"}.fa-square-full:before{content:"\f45c"}.fa-square-root-alt:before{content:"\f698"}.fa-squarespace:before{content:"\f5be"}.fa-stack-exchange:before{content:"\f18d"}.fa-stack-overflow:before{content:"\f16c"}.fa-stamp:before{content:"\f5bf"}.fa-star:before{content:"\f005"}.fa-star-and-crescent:before{content:"\f699"}.fa-star-half:before{content:"\f089"}.fa-star-half-alt:before{content:"\f5c0"}.fa-star-of-david:before{content:"\f69a"}.fa-star-of-life:before{content:"\f621"}.fa-staylinked:before{content:"\f3f5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-steam-symbol:before{content:"\f3f6"}.fa-step-backward:before{content:"\f048"}.fa-step-forward:before{content:"\f051"}.fa-stethoscope:before{content:"\f0f1"}.fa-sticker-mule:before{content:"\f3f7"}.fa-sticky-note:before{content:"\f249"}.fa-stop:before{content:"\f04d"}.fa-stop-circle:before{content:"\f28d"}.fa-stopwatch:before{content:"\f2f2"}.fa-store:before{content:"\f54e"}.fa-store-alt:before{content:"\f54f"}.fa-strava:before{content:"\f428"}.fa-stream:before{content:"\f550"}.fa-street-view:before{content:"\f21d"}.fa-strikethrough:before{content:"\f0cc"}.fa-stripe:before{content:"\f429"}.fa-stripe-s:before{content:"\f42a"}.fa-stroopwafel:before{content:"\f551"}.fa-studiovinari:before{content:"\f3f8"}.fa-stumbleupon:before{content:"\f1a4"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-subscript:before{content:"\f12c"}.fa-subway:before{content:"\f239"}.fa-suitcase:before{content:"\f0f2"}.fa-suitcase-rolling:before{content:"\f5c1"}.fa-sun:before{content:"\f185"}.fa-superpowers:before{content:"\f2dd"}.fa-superscript:before{content:"\f12b"}.fa-supple:before{content:"\f3f9"}.fa-surprise:before{content:"\f5c2"}.fa-swatchbook:before{content:"\f5c3"}.fa-swimmer:before{content:"\f5c4"}.fa-swimming-pool:before{content:"\f5c5"}.fa-synagogue:before{content:"\f69b"}.fa-sync:before{content:"\f021"}.fa-sync-alt:before{content:"\f2f1"}.fa-syringe:before{content:"\f48e"}.fa-table:before{content:"\f0ce"}.fa-table-tennis:before{content:"\f45d"}.fa-tablet:before{content:"\f10a"}.fa-tablet-alt:before{content:"\f3fa"}.fa-tablets:before{content:"\f490"}.fa-tachometer-alt:before{content:"\f3fd"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-tape:before{content:"\f4db"}.fa-tasks:before{content:"\f0ae"}.fa-taxi:before{content:"\f1ba"}.fa-teamspeak:before{content:"\f4f9"}.fa-teeth:before{content:"\f62e"}.fa-teeth-open:before{content:"\f62f"}.fa-telegram:before{content:"\f2c6"}.fa-telegram-plane:before{content:"\f3fe"}.fa-temperature-high:before{content:"\f769"}.fa-temperature-low:before{content:"\f76b"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-terminal:before{content:"\f120"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-th:before{content:"\f00a"}.fa-th-large:before{content:"\f009"}.fa-th-list:before{content:"\f00b"}.fa-the-red-yeti:before{content:"\f69d"}.fa-theater-masks:before{content:"\f630"}.fa-themeco:before{content:"\f5c6"}.fa-themeisle:before{content:"\f2b2"}.fa-thermometer:before{content:"\f491"}.fa-thermometer-empty:before{content:"\f2cb"}.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-think-peaks:before{content:"\f731"}.fa-thumbs-down:before{content:"\f165"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbtack:before{content:"\f08d"}.fa-ticket-alt:before{content:"\f3ff"}.fa-times:before{content:"\f00d"}.fa-times-circle:before{content:"\f057"}.fa-tint:before{content:"\f043"}.fa-tint-slash:before{content:"\f5c7"}.fa-tired:before{content:"\f5c8"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-toilet-paper:before{content:"\f71e"}.fa-toolbox:before{content:"\f552"}.fa-tooth:before{content:"\f5c9"}.fa-torah:before{content:"\f6a0"}.fa-torii-gate:before{content:"\f6a1"}.fa-tractor:before{content:"\f722"}.fa-trade-federation:before{content:"\f513"}.fa-trademark:before{content:"\f25c"}.fa-traffic-light:before{content:"\f637"}.fa-train:before{content:"\f238"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-trash:before{content:"\f1f8"}.fa-trash-alt:before{content:"\f2ed"}.fa-tree:before{content:"\f1bb"}.fa-trello:before{content:"\f181"}.fa-tripadvisor:before{content:"\f262"}.fa-trophy:before{content:"\f091"}.fa-truck:before{content:"\f0d1"}.fa-truck-loading:before{content:"\f4de"}.fa-truck-monster:before{content:"\f63b"}.fa-truck-moving:before{content:"\f4df"}.fa-truck-pickup:before{content:"\f63c"}.fa-tshirt:before{content:"\f553"}.fa-tty:before{content:"\f1e4"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-tv:before{content:"\f26c"}.fa-twitch:before{content:"\f1e8"}.fa-twitter:before{content:"\f099"}.fa-twitter-square:before{content:"\f081"}.fa-typo3:before{content:"\f42b"}.fa-uber:before{content:"\f402"}.fa-uikit:before{content:"\f403"}.fa-umbrella:before{content:"\f0e9"}.fa-umbrella-beach:before{content:"\f5ca"}.fa-underline:before{content:"\f0cd"}.fa-undo:before{content:"\f0e2"}.fa-undo-alt:before{content:"\f2ea"}.fa-uniregistry:before{content:"\f404"}.fa-universal-access:before{content:"\f29a"}.fa-university:before{content:"\f19c"}.fa-unlink:before{content:"\f127"}.fa-unlock:before{content:"\f09c"}.fa-unlock-alt:before{content:"\f13e"}.fa-untappd:before{content:"\f405"}.fa-upload:before{content:"\f093"}.fa-usb:before{content:"\f287"}.fa-user:before{content:"\f007"}.fa-user-alt:before{content:"\f406"}.fa-user-alt-slash:before{content:"\f4fa"}.fa-user-astronaut:before{content:"\f4fb"}.fa-user-check:before{content:"\f4fc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-clock:before{content:"\f4fd"}.fa-user-cog:before{content:"\f4fe"}.fa-user-edit:before{content:"\f4ff"}.fa-user-friends:before{content:"\f500"}.fa-user-graduate:before{content:"\f501"}.fa-user-injured:before{content:"\f728"}.fa-user-lock:before{content:"\f502"}.fa-user-md:before{content:"\f0f0"}.fa-user-minus:before{content:"\f503"}.fa-user-ninja:before{content:"\f504"}.fa-user-plus:before{content:"\f234"}.fa-user-secret:before{content:"\f21b"}.fa-user-shield:before{content:"\f505"}.fa-user-slash:before{content:"\f506"}.fa-user-tag:before{content:"\f507"}.fa-user-tie:before{content:"\f508"}.fa-user-times:before{content:"\f235"}.fa-users:before{content:"\f0c0"}.fa-users-cog:before{content:"\f509"}.fa-ussunnah:before{content:"\f407"}.fa-utensil-spoon:before{content:"\f2e5"}.fa-utensils:before{content:"\f2e7"}.fa-vaadin:before{content:"\f408"}.fa-vector-square:before{content:"\f5cb"}.fa-venus:before{content:"\f221"}.fa-venus-double:before{content:"\f226"}.fa-venus-mars:before{content:"\f228"}.fa-viacoin:before{content:"\f237"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-vial:before{content:"\f492"}.fa-vials:before{content:"\f493"}.fa-viber:before{content:"\f409"}.fa-video:before{content:"\f03d"}.fa-video-slash:before{content:"\f4e2"}.fa-vihara:before{content:"\f6a7"}.fa-vimeo:before{content:"\f40a"}.fa-vimeo-square:before{content:"\f194"}.fa-vimeo-v:before{content:"\f27d"}.fa-vine:before{content:"\f1ca"}.fa-vk:before{content:"\f189"}.fa-vnv:before{content:"\f40b"}.fa-volleyball-ball:before{content:"\f45f"}.fa-volume-down:before{content:"\f027"}.fa-volume-mute:before{content:"\f6a9"}.fa-volume-off:before{content:"\f026"}.fa-volume-up:before{content:"\f028"}.fa-vote-yea:before{content:"\f772"}.fa-vr-cardboard:before{content:"\f729"}.fa-vuejs:before{content:"\f41f"}.fa-walking:before{content:"\f554"}.fa-wallet:before{content:"\f555"}.fa-warehouse:before{content:"\f494"}.fa-water:before{content:"\f773"}.fa-weebly:before{content:"\f5cc"}.fa-weibo:before{content:"\f18a"}.fa-weight:before{content:"\f496"}.fa-weight-hanging:before{content:"\f5cd"}.fa-weixin:before{content:"\f1d7"}.fa-whatsapp:before{content:"\f232"}.fa-whatsapp-square:before{content:"\f40c"}.fa-wheelchair:before{content:"\f193"}.fa-whmcs:before{content:"\f40d"}.fa-wifi:before{content:"\f1eb"}.fa-wikipedia-w:before{content:"\f266"}.fa-wind:before{content:"\f72e"}.fa-window-close:before{content:"\f410"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-windows:before{content:"\f17a"}.fa-wine-bottle:before{content:"\f72f"}.fa-wine-glass:before{content:"\f4e3"}.fa-wine-glass-alt:before{content:"\f5ce"}.fa-wix:before{content:"\f5cf"}.fa-wizards-of-the-coast:before{content:"\f730"}.fa-wolf-pack-battalion:before{content:"\f514"}.fa-won-sign:before{content:"\f159"}.fa-wordpress:before{content:"\f19a"}.fa-wordpress-simple:before{content:"\f411"}.fa-wpbeginner:before{content:"\f297"}.fa-wpexplorer:before{content:"\f2de"}.fa-wpforms:before{content:"\f298"}.fa-wpressr:before{content:"\f3e4"}.fa-wrench:before{content:"\f0ad"}.fa-x-ray:before{content:"\f497"}.fa-xbox:before{content:"\f412"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-y-combinator:before{content:"\f23b"}.fa-yahoo:before{content:"\f19e"}.fa-yandex:before{content:"\f413"}.fa-yandex-international:before{content:"\f414"}.fa-yelp:before{content:"\f1e9"}.fa-yen-sign:before{content:"\f157"}.fa-yin-yang:before{content:"\f6ad"}.fa-yoast:before{content:"\f2b1"}.fa-youtube:before{content:"\f167"}.fa-youtube-square:before{content:"\f431"}.fa-zhihu:before{content:"\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:Font Awesome\ 5 Brands;font-style:normal;font-weight:400;src:url(/fonts/fa-brands-400.f16ab58e.eot);src:url(/fonts/fa-brands-400.f16ab58e.eot?#iefix) format("embedded-opentype"),url(/fonts/fa-brands-400.f818f042.woff2) format("woff2"),url(/fonts/fa-brands-400.f5215337.woff) format("woff"),url(/fonts/fa-brands-400.32ed3107.ttf) format("truetype"),url(/img/fa-brands-400.3ba7d1c4.svg#fontawesome) format("svg")}.fab{font-family:Font Awesome\ 5 Brands}@font-face{font-family:Font Awesome\ 5 Free;font-style:normal;font-weight:400;src:url(/fonts/fa-regular-400.9dc17ff7.eot);src:url(/fonts/fa-regular-400.9dc17ff7.eot?#iefix) format("embedded-opentype"),url(/fonts/fa-regular-400.6cce0c27.woff2) format("woff2"),url(/fonts/fa-regular-400.f12fac26.woff) format("woff"),url(/fonts/fa-regular-400.dde98125.ttf) format("truetype"),url(/img/fa-regular-400.26ba6f3a.svg#fontawesome) format("svg")}.far{font-weight:400}@font-face{font-family:Font Awesome\ 5 Free;font-style:normal;font-weight:900;src:url(/fonts/fa-solid-900.a8b4fde7.eot);src:url(/fonts/fa-solid-900.a8b4fde7.eot?#iefix) format("embedded-opentype"),url(/fonts/fa-solid-900.ea119175.woff2) format("woff2"),url(/fonts/fa-solid-900.302236c4.woff) format("woff"),url(/fonts/fa-solid-900.92ac4121.ttf) format("truetype"),url(/img/fa-solid-900.5b3874ca.svg#fontawesome) format("svg")}.fa,.far,.fas{font-family:Font Awesome\ 5 Free}.fa,.fas{font-weight:900} \ No newline at end of file diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..41586c0 Binary files /dev/null and b/favicon.ico differ diff --git a/fonts/fa-brands-400.32ed3107.ttf b/fonts/fa-brands-400.32ed3107.ttf new file mode 100644 index 0000000..953d567 Binary files /dev/null and b/fonts/fa-brands-400.32ed3107.ttf differ diff --git a/fonts/fa-brands-400.f16ab58e.eot b/fonts/fa-brands-400.f16ab58e.eot new file mode 100644 index 0000000..1a675a4 Binary files /dev/null and b/fonts/fa-brands-400.f16ab58e.eot differ diff --git a/fonts/fa-brands-400.f5215337.woff b/fonts/fa-brands-400.f5215337.woff new file mode 100644 index 0000000..1ae5263 Binary files /dev/null and b/fonts/fa-brands-400.f5215337.woff differ diff --git a/fonts/fa-brands-400.f818f042.woff2 b/fonts/fa-brands-400.f818f042.woff2 new file mode 100644 index 0000000..4a07e40 Binary files /dev/null and b/fonts/fa-brands-400.f818f042.woff2 differ diff --git a/fonts/fa-regular-400.6cce0c27.woff2 b/fonts/fa-regular-400.6cce0c27.woff2 new file mode 100644 index 0000000..1489f64 Binary files /dev/null and b/fonts/fa-regular-400.6cce0c27.woff2 differ diff --git a/fonts/fa-regular-400.9dc17ff7.eot b/fonts/fa-regular-400.9dc17ff7.eot new file mode 100644 index 0000000..db3ed40 Binary files /dev/null and b/fonts/fa-regular-400.9dc17ff7.eot differ diff --git a/fonts/fa-regular-400.dde98125.ttf b/fonts/fa-regular-400.dde98125.ttf new file mode 100644 index 0000000..235101c Binary files /dev/null and b/fonts/fa-regular-400.dde98125.ttf differ diff --git a/fonts/fa-regular-400.f12fac26.woff b/fonts/fa-regular-400.f12fac26.woff new file mode 100644 index 0000000..9058e29 Binary files /dev/null and b/fonts/fa-regular-400.f12fac26.woff differ diff --git a/fonts/fa-solid-900.302236c4.woff b/fonts/fa-solid-900.302236c4.woff new file mode 100644 index 0000000..b7d52cf Binary files /dev/null and b/fonts/fa-solid-900.302236c4.woff differ diff --git a/fonts/fa-solid-900.92ac4121.ttf b/fonts/fa-solid-900.92ac4121.ttf new file mode 100644 index 0000000..7c92e98 Binary files /dev/null and b/fonts/fa-solid-900.92ac4121.ttf differ diff --git a/fonts/fa-solid-900.a8b4fde7.eot b/fonts/fa-solid-900.a8b4fde7.eot new file mode 100644 index 0000000..cb8d3f0 Binary files /dev/null and b/fonts/fa-solid-900.a8b4fde7.eot differ diff --git a/fonts/fa-solid-900.ea119175.woff2 b/fonts/fa-solid-900.ea119175.woff2 new file mode 100644 index 0000000..59d92b2 Binary files /dev/null and b/fonts/fa-solid-900.ea119175.woff2 differ diff --git a/img/fa-brands-400.3ba7d1c4.svg b/img/fa-brands-400.3ba7d1c4.svg new file mode 100644 index 0000000..5b60e84 --- /dev/null +++ b/img/fa-brands-400.3ba7d1c4.svg @@ -0,0 +1,1184 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/fa-regular-400.26ba6f3a.svg b/img/fa-regular-400.26ba6f3a.svg new file mode 100644 index 0000000..cf3d065 --- /dev/null +++ b/img/fa-regular-400.26ba6f3a.svg @@ -0,0 +1,467 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/fa-solid-900.5b3874ca.svg b/img/fa-solid-900.5b3874ca.svg new file mode 100644 index 0000000..bd7565a --- /dev/null +++ b/img/fa-solid-900.5b3874ca.svg @@ -0,0 +1,2618 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/img/icons/facicon-256.ico b/img/icons/facicon-256.ico new file mode 100644 index 0000000..41586c0 Binary files /dev/null and b/img/icons/facicon-256.ico differ diff --git a/img/icons/favicon-128.ico b/img/icons/favicon-128.ico new file mode 100644 index 0000000..f7c4d64 Binary files /dev/null and b/img/icons/favicon-128.ico differ diff --git a/img/icons/favicon-16.ico b/img/icons/favicon-16.ico new file mode 100644 index 0000000..cd28e31 Binary files /dev/null and b/img/icons/favicon-16.ico differ diff --git a/img/icons/favicon-32.ico b/img/icons/favicon-32.ico new file mode 100644 index 0000000..ee73c69 Binary files /dev/null and b/img/icons/favicon-32.ico differ diff --git a/img/icons/favicon-64.ico b/img/icons/favicon-64.ico new file mode 100644 index 0000000..566a744 Binary files /dev/null and b/img/icons/favicon-64.ico differ diff --git a/index.html b/index.html new file mode 100644 index 0000000..7cebc38 --- /dev/null +++ b/index.html @@ -0,0 +1 @@ +Inspector \ No newline at end of file diff --git a/js/app-legacy.2fe5fc63.js b/js/app-legacy.2fe5fc63.js new file mode 100644 index 0000000..490b0be --- /dev/null +++ b/js/app-legacy.2fe5fc63.js @@ -0,0 +1,2 @@ +(function(){var t={9637:function(t,e,s){"use strict";var a=s(5471);const i=s(1594);Object.defineProperty(window,"BUS",{value:new a["default"],enumerable:!0,writable:!1}),window.BUS.$alert=t=>{BUS.$buefy.dialog.confirm({title:"Error",type:"is-danger",message:`${t}`,hasIcon:!0,cancelText:"Close",confirmText:"Open an issue",onConfirm:()=>{window.open("https://github.com/vechain/inspector-app/issues","_blank")}})},Object.defineProperty(window,"BN",{value:i,enumerable:!0,writable:!1});var n=s(4915),r=s(5261);r.Dr.extend("bytecode",{getMessage:t=>`${t} field is invalid.`,validate:t=>{const e=/^(0x|0X)[a-fA-F0-9]+$/;return e.test(t)&&t.length%2===0}}),r.Dr.extend("vet",{getMessage:t=>`${t} field is invalid, (positive number and limited to 18 decimal places).`,validate:t=>{const e=BN(t),s=BN(e.multipliedBy(1e18));return s.isInteger()&&!s.isNegative()}});const o={en:{attributes:{code:"Byte Code"}}};r.Dr.localize(o);var l=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("body",{staticClass:"has-navbar-fixed-top"},[e("Navbar",{staticClass:"is-fixed-top"}),e("div",{staticClass:"router-view"},[e("router-view")],1)],1)},c=[],d=s(1635),u=s(8657),p=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("nav",{staticClass:"navbar is-dark",attrs:{role:"navigation","aria-label":"main navigation"}},[e("div",{staticClass:"container"},[e("div",{staticClass:"navbar-brand is-marginless"},[e("h2",{staticClass:"subtitle has-text-white is-2",staticStyle:{"padding-left":"20px"}},[t._v("Inspector")]),e("a",{staticClass:"navbar-burger",class:{"is-active":t.burgerActive},attrs:{role:"button"},on:{click:function(e){t.burgerActive=!t.burgerActive}}},[e("span",{attrs:{"aria-hidden":"true"}}),e("span",{attrs:{"aria-hidden":"true"}}),e("span",{attrs:{"aria-hidden":"true"}})])]),e("div",{staticClass:"navbar-menu",class:{"is-active":t.burgerActive}},[e("div",{staticStyle:{width:"40px"}}),e("div",{staticClass:"navbar-start"},[t._l(t.routes,(function(s,a){return e("router-link",{key:a,staticClass:"navbar-item",attrs:{exact:"",to:{name:s.name}}},[t._v(t._s(s.text))])})),t.views.length?e("div",{staticClass:"navbar-item has-dropdown is-hoverable"},[e("a",{staticClass:"navbar-link"},[t._v("Views")]),e("div",{staticClass:"navbar-dropdown"},[e("router-link",{staticClass:"navbar-item",attrs:{to:{name:"filter_mgt"}}},[t._v("All")]),e("hr",{staticClass:"navbar-divider"}),t._l(t.views,(function(s,a){return e("router-link",{key:a,staticClass:"navbar-item",attrs:{to:{name:"filter_view",params:{id:s.id}}}},[t._v(t._s(s.name))])}))],2)]):t._e(),t.shortCuts?e("router-link",{staticClass:"navbar-item",attrs:{"active-class":"has-background-grey-dark",to:{name:"short_cuts"}}},[t._v("Shortcuts")]):t._e()],2),e("div",{staticClass:"navbar-end",staticStyle:{"padding-right":"20px"}},[1===t.networks.length?e("b-tag",{staticStyle:{margin:"auto 0px"},attrs:{size:"is-medium",type:"is-warning"}},[t._v(t._s(t.networks[0].label))]):t._e(),t.networks.length>1?e("b-dropdown",{staticStyle:{"vertical-align":"top"},attrs:{size:"sm",text:t.network,"toggle-class":"py-0 px-1"}},[e("template",{slot:"trigger"},[e("b-button",{staticClass:"navbar-item",attrs:{type:"is-dark",label:t.network,"icon-right":"caret-down"}})],1),t._l(t.switchableNetworks,(function(s,a){return e("b-dropdown-item",{key:a,attrs:{value:s.name},on:{click:function(e){return t.onChange(s.name)}}},[t._v(t._s(s.label))])}))],2):t._e(),e("a",{staticClass:"navbar-item",attrs:{href:"https://github.com/vechain/inspector-app",target:"_blank"}},[t._v("GitHub")])],1)])])])},m=[],h=s(7054),b=(s(8760),s(6763));class f extends h.A{constructor(){super("inspect"),this.version(2).stores({contracts:"++id, &address, name",filters:"++id, address, name, contractName",shortCuts:"++id, address, name, contractName"}),this.version(3).stores({shortCuts:"++id, address, name, contractName, fromPrototype",filters:"++id, address, name, contractName, fromPrototype"}),this.version(4).stores({contracts:"++id, &address, name, network"}),this.version(5).stores({contracts:"++id, address, name, network"}),this.open().catch((t=>{b.error(t)}))}subscribe(t,e){const s=this.on("changes"),a=s=>{s=s.filter((e=>e.table===t)),s.length>0&&e(s)};return s.subscribe(a),{unsubscribe:()=>s.unsubscribe(a)}}}const v=new f;var g=v,y=s(6130);const x=()=>{if({NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_IS_DOCKER){const t="VUE_APP_SOLO_URL_PLACEHOLDER";return t}return{NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_SOLO_URL},_=!!x(),w={main:"https://explore-mainnet.veblocks.net",test:"https://explore-testnet.veblocks.net",solo:x()||"http://localhost:8669",custom:""},C={number:0,id:"0x00000000c05a20fbca2bf6ae3affba6af4a74b800b585bf7a4988aba7aea69f6",size:170,parentID:"0xffffffff53616c757465202620526573706563742c20457468657265756d2100",timestamp:1530316800,gasLimit:1e7,beneficiary:"0x0000000000000000000000000000000000000000",gasUsed:0,totalScore:0,txsRoot:"0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0",txsFeatures:0,stateRoot:"0x93de0ffb1f33bc0af053abc2a87c4af44594f5dcb1cb879dd823686a15d68550",receiptsRoot:"0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0",signer:"0x0000000000000000000000000000000000000000",isTrunk:!0,transactions:[]};function k(t){if(t){const e=w[t];return"solo"==t?new y.A({node:e,network:C}):new y.A({node:e,network:t})}{const t=window.connex;return t?new y.A({node:"",network:t.thor.genesis}):_?new y.A({node:w.solo,network:C}):new y.A({node:w.main})}}function S(t){switch(t){case"0x00000000851caf3cfdb6e899cf5958bfb1ac3413d346d43539627e6be7ec1b4a":return"main";case"0x000000000b2bce3c70bc649a02749e8687721b09ed2e15997f466536b20bb127":return"test";case"0x00000000c05a20fbca2bf6ae3affba6af4a74b800b585bf7a4988aba7aea69f6":return"solo";default:return"custom"}}function $(t){switch(t){case"main":return"0x00000000851caf3cfdb6e899cf5958bfb1ac3413d346d43539627e6be7ec1b4a";case"test":return"0x000000000b2bce3c70bc649a02749e8687721b09ed2e15997f466536b20bb127";case"solo":return"0x00000000c05a20fbca2bf6ae3affba6af4a74b800b585bf7a4988aba7aea69f6";default:return""}}let A=class extends u.lD{constructor(){super(...arguments),this.routes=[{name:"contracts",text:"Contracts"},{name:"deploy",text:"Deploy"}],this.burgerActive=!1,this.views=[],this.shortCuts=0,this.node=localStorage.getItem("custom-node"),this.genesis=localStorage.getItem("custom-network")}get hasConnex(){return!!window.connex}get hasCustom(){return!!this.node&&!!this.genesis}get network(){switch(S(this.$connex.thor.genesis.id)){case"main":return"Mainnet";case"test":return"Testnet";case"solo":return"Solonet";default:return"Custom"}}get networks(){return _?[{name:"solo",label:"SoloNet"}]:[{name:"main",label:"Mainnet"},{name:"test",label:"Testnet"},..._?[{name:"solo",label:"Solonet"}]:[]]}get switchableNetworks(){return this.networks.filter((t=>this.$connex.thor.genesis.id!==$(t.name)))}onChange(t){localStorage.setItem("last-net",t),window.location.href=window.location.origin}async getList(){this.views=await g.filters.filter((t=>t.network===this.network||void 0===t.network)).limit(5).toArray()}async countShortCuts(){this.shortCuts=await g.shortCuts.filter((t=>t.network===this.network||void 0===t.network)).count()}};A=(0,d.Cg)([u.uA],A);var P=A,I=P,T=s(1656),N=(0,T.A)(I,p,m,!1,null,"611d79ae",null),M=N.exports;let E=class extends u.lD{created(){this.$ga.page("/inspector")}mounted(){this.$connex||this.$router.push({name:"notSupport"})}};E=(0,d.Cg)([(0,u.uA)({components:{Navbar:M}})],E);var D=E,L=D,O=(0,T.A)(L,l,c,!1,null,null,null),F=O.exports,z=s(3458);u.lD.filter("addr",(t=>{const e=t.startsWith("0x")?t:`0x${t}`;return e.substring(0,8)+"…"+e.substring(e.length-8,e.length)})),u.lD.filter("datetime",(t=>new Date(t).toLocaleString())),u.lD.filter("toChecksumAddress",(t=>{if(t)return z.h.toChecksumed(t)}));var B=s(1394);function q(t,e){const s=(0,B.H)(e.toLowerCase());return"IMG"===t.nodeName?`data:image/svg+xml;utf8,${s}`:`no-repeat url('data:image/svg+xml;utf8,${s}')`}u.lD.directive("ident",{update(t,e){if(e.value!==e.oldValue)if("IMG"===t.nodeName){const s=t;s.src=q(t,e.value)}else t.style.background=q(t,e.value),t.style.backgroundSize="cover"},inserted(t,e){if(e.value!==e.oldValue)if("IMG"===t.nodeName){const s=t;s.src=q(t,e.value)}else t.style.background=q(t,e.value),t.style.backgroundSize="cover"}}),u.lD.directive("inview",{update(t,e,s){const a=document.querySelector(e.value);let i;const n=t.offsetTop,r=t.clientHeight;t.style.transition="margin-top 0.15s",a.onscroll=e=>{window.clearTimeout(i),i=window.setTimeout((()=>{const s=e.target.scrollTop;if(s>n){const e=s-(n-r);t.style.marginTop=(e>0?e:0)+"px"}else t.style.marginTop="0px"}),100)}}});var R=s(173),V=function(){var t=this;t._self._c,t._self._setupProxy;return t._m(0)},U=[function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticStyle:{width:"500px",margin:"140px auto","font-size":"25px"}},[t._v(" Inspector only supported for the "),e("strong",{staticStyle:{color:"#26a69a"}},[t._v("Main")]),t._v(" or "),e("strong",{staticStyle:{color:"#26a69a"}},[t._v("Test")]),t._v(" net. if you need other networks, please check on "),e("a",{attrs:{target:"_blank",href:"https://github.com/vechain/inspector-app"}},[e("strong",[t._v("GitHub")])])])}];let j=class extends u.lD{};j=(0,d.Cg)([u.uA],j);var J=j,H=J,W=(0,T.A)(H,V,U,!1,null,null,null),G=W.exports,X=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("section",{staticClass:"section"},[e("div",{staticClass:"level container"},[t._m(0),e("div",{staticClass:"level-right"},[e("button",{staticClass:"button is-primary is-outlined",staticStyle:{"margin-right":"10px"},on:{click:t.onImport}},[e("b-icon",{attrs:{icon:"file-import"}})],1),e("button",{staticClass:"button is-primary is-outlined",on:{click:t.addItem}},[e("b-icon",{attrs:{icon:"plus"}})],1),e("input",{ref:"files",staticClass:"is-hidden",attrs:{type:"file",accept:"application/json"}})])]),t.contracts.length?e("div",{staticClass:"columns section is-variable is-1 is-multiline",class:{"is-centered":t.contracts.length<4}},t._l(t.contracts,(function(s,a){return e("div",{key:a,staticClass:"column is-3-fullhd is-4-desktop is-6-tablet"},[e("Contract",{staticClass:"contract-box",attrs:{item:s},on:{select:function(e){return t.onSelect(s.id)}}},[t._t("default",(function(){return[e("p",{staticClass:"buttons buttons-slot"},[e("button",{staticClass:"button is-primary is-inverted",on:{click:function(e){return e.stopPropagation(),t.edit(s)}}},[e("b-icon",{attrs:{icon:"edit",size:"is-small"}})],1),e("button",{staticClass:"button is-primary is-inverted",on:{click:function(e){return e.stopPropagation(),t.exportJson(s)}}},[e("b-icon",{attrs:{icon:"file-export",size:"is-small"}})],1)])]})),t._t("default",(function(){return[e("button",{staticClass:"buttons-slot button is-danger is-inverted",on:{click:function(e){return e.stopPropagation(),t.remove(s)}}},[e("b-icon",{attrs:{icon:"trash-alt",size:"is-small"}})],1)]}),{slot:"right"})],2)],1)})),0):t._e(),t.isloading||t.contracts.length?t._e():e("div",{staticClass:"section"},[e("div",{staticClass:"container"},[e("div",{staticClass:"card"},[e("div",{staticClass:"card-content has-text-centered is-size-2 has-text-grey-light"},[t._v("No contracts here!")]),e("div",{staticClass:"card-footer"},[e("a",{staticClass:"card-footer-item",on:{click:t.addItem}},[t._v("Add")])])])])]),e("b-modal",{attrs:{width:640,canCancel:["outside"],active:t.isModalActive},on:{"update:active":function(e){t.isModalActive=e}}},[e("EditContract",{attrs:{item:t.currentItem,isImport:t.isImport},on:{cancel:t.onCancel,finished:t.reload}})],1)],1)},Y=[function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"level-left"},[e("h1",{staticClass:"title level-item"},[t._v("Contracts")])])}],K=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("form",[e("div",{staticClass:"modal-card"},[e("header",{staticClass:"modal-card-head"},[e("span",{staticClass:"modal-card-title"},[t._v(t._s(t.context.title))])]),e("section",{staticClass:"modal-card-body"},[e("b-field",{attrs:{type:t.formMessage.name.isError?"is-danger":"",message:t.formMessage.name.message,label:"name"}},[e("b-input",{attrs:{type:"text"},on:{blur:t.checkName},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),e("b-field",{attrs:{type:t.formMessage.address.isError?"is-danger":"",message:t.formMessage.address.message,label:"address"}},[e("b-input",{attrs:{"custom-class":"is-family-monospace has-text-weight-semibold",message:t.formMessage.address.message,type:"text"},on:{blur:t.checkAddress},model:{value:t.form.address,callback:function(e){t.$set(t.form,"address",e)},expression:"form.address"}})],1),e("b-field",{attrs:{type:t.formMessage.abi.isError?"is-danger":"",message:t.formMessage.abi.message,label:"ABI"}},[e("b-input",{attrs:{message:t.formMessage.abi.message,type:"textarea"},on:{blur:t.checkABI},model:{value:t.form.abi,callback:function(e){t.$set(t.form,"abi",e)},expression:"form.abi"}})],1),t.isImport&&t.isEdit?e("b-message",{attrs:{type:"is-warning"}},[t._v(" The contract exists, are you sure to override it? ")]):t._e()],1),e("footer",{staticClass:"modal-card-foot"},[e("button",{staticClass:"button",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.close.apply(null,arguments)}}},[t._v("Cancel")]),e("button",{staticClass:"button is-primary",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[t._v(t._s(t.context.btn))])])])])},Q=[],Z=s(6763);let tt=class extends u.lD{constructor(){super(...arguments),this.formMessage={abi:{isError:!1,message:""},address:{isError:!1,message:""},name:{isError:!1,message:""}},this.form={id:0,name:"",address:"",abi:""}}get context(){const t={title:"Add Contract",btn:"Add"};return this.isEdit&&(t.title="Edit Contract",t.btn=this.isImport?"Override":"Edit"),t}get isEdit(){return this.item&&this.item.id}created(){this.initForm()}close(){this.$emit("cancel")}initForm(){const t=this.item;t&&t.address?(this.form.name=t.name||"",this.form.address=t.address||"",this.form.abi=t.abi?JSON.stringify(t.abi,null,2):"",this.form.id=t.id||0):this.form={name:"",address:"",abi:"",id:0}}async submit(){if(!this.checkform())return;const t={name:this.form.name,address:this.form.address.toLowerCase(),abi:JSON.parse(this.form.abi),network:this.$connex.thor.genesis.id,createdTime:Date.now()};try{this.isEdit?await g.contracts.where("id").equals(this.form.id).modify(t):await g.contracts.add(t)}catch(e){Z.error(e)}finally{this.$emit("finished")}}checkform(){return this.checkABI(),this.checkAddress(),this.checkName(),!this.formMessage.name.isError&&!this.formMessage.address.isError&&!this.formMessage.abi.isError}checkABI(){if(this.form.abi)try{JSON.parse(this.form.abi),this.formMessage.abi.isError=!1,this.formMessage.abi.message=""}catch(t){this.formMessage.abi.isError=!0,this.formMessage.abi.message=t.name+": "+t.message}else this.formMessage.abi.isError=!0,this.formMessage.abi.message="ABI is required"}checkAddress(){this.form.address?z.h.test(this.form.address)?(this.formMessage.address.isError=!1,this.formMessage.address.message=""):(this.formMessage.address.isError=!0,this.formMessage.address.message="Invalid address"):(this.formMessage.address.isError=!0,this.formMessage.address.message="Address is required")}checkName(){this.form.name?this.form.name.length<1||this.form.name.length>20?(this.formMessage.name.isError=!0,this.formMessage.name.message="Requires between 1 - 20 characters"):(this.formMessage.name.isError=!1,this.formMessage.name.message=""):(this.formMessage.name.isError=!0,this.formMessage.name.message="Name is required")}};(0,d.Cg)([(0,u.kv)({default:!1})],tt.prototype,"isImport",void 0),(0,d.Cg)([(0,u.kv)({default:null})],tt.prototype,"item",void 0),tt=(0,d.Cg)([u.uA],tt);var et=tt,st=et,at=(0,T.A)(st,K,Q,!1,null,null,null),it=at.exports,nt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"box",class:{"img-hover":t.$listeners.select}},[e("article",{staticClass:"media"},[e("div",{staticClass:"media-left"},[e("figure",{staticClass:"image is-64x64",class:{"could-hover":t.$listeners.select}},[e("img",{directives:[{name:"ident",rawName:"v-ident",value:t.item.address,expression:"item.address"}],attrs:{alt:"Image"},on:{click:function(e){return e.stopPropagation(),t.$emit("select")}}})])]),e("div",{staticClass:"media-content"},[e("div",{staticClass:"content"},[e("p",[e("strong",[t._v(t._s(t.item.name||""))])]),t.isShort?e("p",{staticClass:"is-family-monospace has-text-weight-semibold display-6"},[t._v(t._s(t._f("addr")(t._f("toChecksumAddress")(t.item.address))))]):e("p",{staticClass:"is-family-monospace has-text-weight-semibold display-6"},[e("a",{attrs:{target:"_blank",href:`${t.$explorerAccount}${t.item.address}`}},[t._v(t._s(t._f("toChecksumAddress")(t.item.address)))])])]),e("nav",{staticClass:"level"},[e("div",{staticClass:"level-left"},[e("div",{staticClass:"level-item"},[t._t("default")],2)])])]),e("div",{staticClass:"media-right"},[e("div",{staticClass:"content"},[t._t("right")],2)])])])},rt=[];let ot=class extends u.lD{};(0,d.Cg)([(0,u.kv)()],ot.prototype,"item",void 0),(0,d.Cg)([(0,u.kv)({default:!0})],ot.prototype,"isShort",void 0),ot=(0,d.Cg)([u.uA],ot);var lt=ot,ct=lt,dt=(0,T.A)(ct,nt,rt,!1,null,"7247e069",null),ut=dt.exports;let pt=class extends u.lD{constructor(){super(...arguments),this.isloading=!0,this.isModalActive=!1,this.currentItem=null,this.contracts=[],this.isImport=!1}onSelect(t){this.$router.push({name:"contract_detail",query:{id:t.toString()}})}async created(){this.$ga.page("/inspector/contracts");const t=this.$buefy.loading.open({container:null});await this.list(),this.prepare(),t.close(),g.subscribe("contracts",(()=>{this.list()}))}mounted(){const t=this.$refs.files;t.onchange=()=>{const e=t.files&&t.files[0];if(e){const t=new FileReader;t.onloadend=e=>{const s=JSON.parse(t.result||"");if(s){this.currentItem={abi:s.abi,address:s.address,name:s.name};const t=this.contracts.find((t=>t.address.toLowerCase()===s.address.toLowerCase()));t&&(this.currentItem.id=t.id),this.isImport=!0,this.open()}},t.readAsText(e)}}}onImport(){const t=this.$refs.files;t.click()}prepare(){const{action:t,address:e}=this.$route.query;switch(t){case"add":this.currentItem={address:e},this.open();break;default:break}}reload(){this.$refs.files.value="",this.currentItem=null,this.list(),this.isModalActive=!1}exportJson(t){const e=s(7968),a=new Blob([JSON.stringify({name:t.name,abi:t.abi,address:t.address})],{type:"text/plain"});e.saveAs(a,`${t.address}.json`)}remove(t){this.$buefy.dialog.confirm({title:"Remove",message:`Are you sure want to remove ${t.name} contract`,cancelText:"Cancel",confirmText:"YES",type:"is-danger",scroll:"clip",onConfirm:()=>{g.contracts.delete(t.id).then((()=>{this.reload()}))}})}open(){this.isModalActive=!0}close(){this.$refs.files.value="",this.isModalActive=!1}async list(){const t=this.$connex.thor.genesis.id;this.contracts=await g.contracts.filter((e=>e.network===t||void 0===e.network)).toArray(),this.isloading=!1}addItem(){this.currentItem=null,this.isImport=!1,this.open()}onCancel(){this.currentItem=null,this.close()}edit(t){this.currentItem=t,this.isImport=!1,this.open()}};pt=(0,d.Cg)([(0,u.uA)({components:{Contract:ut,EditContract:it}})],pt);var mt=pt,ht=mt,bt=(0,T.A)(ht,X,Y,!1,null,"49a5fd46",null),ft=bt.exports,vt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"section",staticStyle:{"max-width":"1000px",margin:"auto"}},[e("div",{staticClass:"container"},[e("form",{on:{submit:function(e){return e.preventDefault(),t.sendCode.apply(null,arguments)}}},[e("b-field",{attrs:{type:{"is-danger":t.errors.has("code")},message:t.errors.first("code"),label:"Byte Code"}},[e("b-input",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,bytecode:!0},expression:"{required: true, bytecode: true}"}],attrs:{name:"code",rows:"10",type:"textarea"},model:{value:t.code,callback:function(e){t.code="string"===typeof e?e.trim():e},expression:"code"}})],1),e("b-field",{attrs:{type:{"is-danger":t.errors.has("vet")},message:t.errors.first("vet"),label:"Vet"}},[e("b-input",{directives:[{name:"validate",rawName:"v-validate",value:"vet",expression:"'vet'"}],attrs:{placeholder:"number (optional)",name:"vet",type:"text"},model:{value:t.vet,callback:function(e){t.vet="string"===typeof e?e.trim():e},expression:"vet"}})],1),e("b-field",{attrs:{label:"Valid Hex value (wei)"}},[e("span",{staticClass:"is-family-monospace has-text-weight-semibold"},[t._v(t._s(t.haxValue))])]),e("b-field",{attrs:{label:"Valid Integer value (wei)"}},[e("span",{staticClass:"is-family-monospace has-text-weight-semibold"},[t._v(t._s(t.numberValue))])]),e("b-field",{staticClass:"is-clearfix"},[e("button",{staticClass:"is-pulled-right button is-primary",attrs:{type:"submit"}},[t._v("Send")])])],1)])])},gt=[];let yt=class extends u.lD{constructor(){super(...arguments),this.code="",this.vet=null}get haxValue(){const t=BN(this.vet);return t.isNaN()||t.isNegative()?"0x0":"0x"+BN(t.multipliedBy(1e18).toFixed(0)).toString(16)}get numberValue(){const t=BN(this.vet);return t.isNaN()||t.isNegative()?"0":t.multipliedBy(1e18).toFixed(0)}async checkForm(){const t=await this.$validator.validateAll();return t}async sendCode(){if(await this.checkForm())try{const t=await this.$connex.vendor.sign("tx",[{value:this.haxValue||0,data:this.code,to:null}]).comment("Inspector deploy contract").request();window.open(`${this.$explorerTx}${t.txid}`)}catch(t){this.$buefy.toast.open({type:"is-danger",message:`${t.name}: ${t.message}`,position:"is-top",duration:3e3})}}created(){this.$ga.page("/inspector/deploy")}};yt=(0,d.Cg)([u.uA],yt);var xt=yt,_t=xt,wt=(0,T.A)(_t,vt,gt,!1,null,null,null),Ct=wt.exports,kt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("section",{staticClass:"section contract-detail"},[t.contract?e("div",{staticClass:"container"},[e("Contract",{attrs:{isShort:!1,item:t.contract}},[e("div",{attrs:{slot:"right"},slot:"right"},[e("b-button",{attrs:{expanded:"",size:"is-small",type:"is-info"},on:{click:t.toExplorer}},[t._v("Explorer")]),e("br"),e("b-button",{attrs:{type:"is-light",tag:"a",size:"is-small",href:"https://github.com/vechain/b32/new/master/ABIs",target:"_blank"}},[t._v(" Submit JSON ABI ")])],1)]),e("section",{staticStyle:{"margin-top":"20px"}},[e("b-field",{attrs:{grouped:""}},[e("b-field",{attrs:{expanded:""}},[e("b-field",{staticClass:"is-pulled-right"},[e("b-autocomplete",{attrs:{rounded:"",data:t.filterList,placeholder:"Func/Event Name"},on:{select:t.onSearchSelect},scopedSlots:t._u([{key:"default",fn:function(s){return[e("div",[e("span",{staticClass:"is-size-6"},[t._v(t._s(s.option.name))])]),e("span",{staticClass:"has-text-grey"},[t._v(t._s(s.option.type))])]}}],null,!1,1256192932),model:{value:t.name,callback:function(e){t.name=e},expression:"name"}},[e("template",{slot:"empty"},[t._v("No results found")])],2)],1)],1)],1),e("b-tabs",{staticClass:"block",model:{value:t.tabIndex,callback:function(e){t.tabIndex=e},expression:"tabIndex"}},t._l(t.tabs,(function(s,a){return e("b-tab-item",{key:a,attrs:{visible:s.visible}},[e("span",{attrs:{slot:"header"},slot:"header"},[t._v(" "+t._s(s.text)+" "),s.count?e("span",{staticClass:"is-size-7"},[t._v("("+t._s(s.count)+")")]):t._e()])])})),1),e("div",{directives:[{name:"show",rawName:"v-show",value:0===t.tabIndex,expression:"tabIndex === 0"}]},t._l(t.readList,(function(s,a){return e("FunctionCard",{key:a,ref:s.name,refInFor:!0,staticStyle:{"margin-bottom":"20px"},attrs:{id:s.name,address:t.contract.address,item:s}})})),1),e("div",{directives:[{name:"show",rawName:"v-show",value:1===t.tabIndex,expression:"tabIndex === 1"}]},t._l(t.writeList,(function(s,a){return e("FunctionCard",{key:a,ref:s.name,refInFor:!0,staticStyle:{"margin-bottom":"20px"},attrs:{address:t.contract.address,item:s}})})),1),e("div",{directives:[{name:"show",rawName:"v-show",value:2===t.tabIndex,expression:"tabIndex === 2"}]},[e("DescCard",{staticStyle:{"margin-bottom":"20px"},attrs:{item:t.abi,title:"ABI"}}),t.code?e("DescCard",{staticClass:"code-pre",staticStyle:{"margin-bottom":"20px"},attrs:{item:t.code,title:"Code"}}):t._e()],1),e("div",{directives:[{name:"show",rawName:"v-show",value:3===t.tabIndex,expression:"tabIndex === 3"}]},t._l(t.eventList,(function(s,a){return e("EventCard",{key:a,staticStyle:{"margin-bottom":"20px"},attrs:{address:t.contract.address,item:s,title:s.name}})})),1),e("div",{directives:[{name:"show",rawName:"v-show",value:4===t.tabIndex,expression:"tabIndex === 4"}]},[e("FallbackCard",{attrs:{fb:t.fb}})],1),e("div",{directives:[{name:"show",rawName:"v-show",value:5===t.tabIndex,expression:"tabIndex === 5"}]},t._l(t.prList,(function(s,a){return e("FunctionCard",{key:a,ref:s.name,refInFor:!0,staticStyle:{"margin-bottom":"20px"},attrs:{prototype:!0,address:t.contract.address,item:s}})})),1),e("div",{directives:[{name:"show",rawName:"v-show",value:6===t.tabIndex,expression:"tabIndex === 6"}]},t._l(t.pwList,(function(s,a){return e("FunctionCard",{key:a,ref:s.name,refInFor:!0,staticStyle:{"margin-bottom":"20px"},attrs:{prototype:!0,address:t.contract.address,item:s}})})),1),e("div",{directives:[{name:"show",rawName:"v-show",value:7===t.tabIndex,expression:"tabIndex === 7"}]},t._l(t.peList,(function(s,a){return e("EventCard",{key:a,ref:s.name,refInFor:!0,staticStyle:{"margin-bottom":"20px"},attrs:{prototype:!0,address:t.contract.address,item:s}})})),1)],1)],1):t._e()])},St=[],$t=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("Panel",{attrs:{tabs:t.tabs,title:t.item.name},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[e("template",{slot:"panel-content"},[e("form",{directives:[{name:"show",rawName:"v-show",value:t.activeTab===t.tabs[0],expression:"activeTab === tabs[0]"}],on:{reset:function(e){return e.target!==e.currentTarget?null:(e.preventDefault(),t.reset.apply(null,arguments))}}},[e("b-field",{staticClass:"item-content",attrs:{horizontal:"",message:"Special address to call the method, it's not the param of the method",label:"Caller"}},[e("b-input",{attrs:{"custom-class":"is-family-monospace has-text-weight-semibold",placeholder:"Optional: Address"},model:{value:t.caller,callback:function(e){t.caller=e},expression:"caller"}})],1),t._l(t.item.inputs,(function(s,a){return e("b-field",{key:a,staticClass:"item-content",attrs:{horizontal:"",label:s.name}},["bool"===s.type?e("div",[e("b-radio",{attrs:{name:"True","native-value":!0},model:{value:t.params[a],callback:function(e){t.$set(t.params,a,e)},expression:"params[index]"}},[t._v(" True ")]),e("b-radio",{attrs:{name:"False","native-value":!1},model:{value:t.params[a],callback:function(e){t.$set(t.params,a,e)},expression:"params[index]"}},[t._v(" False ")])],1):e("b-input",{ref:"input",refInFor:!0,attrs:{"custom-class":"is-family-monospace has-text-weight-semibold",required:"",name:s.name,readonly:t.prototype&&"_self"===s.name,placeholder:s.type},model:{value:t.params[a],callback:function(e){t.$set(t.params,a,e)},expression:"params[index]"}})],1)})),t.payable?e("b-field",{staticClass:"item-content",attrs:{horizontal:"",label:"value"}},[e("b-input",{attrs:{"custom-class":"is-family-monospace has-text-weight-semibold",type:"text",placeholder:"number(vet)"},model:{value:t.value,callback:function(e){t.value="string"===typeof e?e.trim():e},expression:"value"}})],1):t._e(),e("b-field",{staticClass:"item-content",attrs:{horizontal:""}},[e("div",{staticClass:"buttons has-addons"},[e("button",{staticClass:"button is-rounded is-primary is-outlined",attrs:{type:"button"},on:{click:function(e){return t.addShortCut(t.item.name)}}},[t._v("Shortcut")]),t.couldExc?e("button",{staticClass:"button is-rounded is-primary is-outlined",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.executeFC.apply(null,arguments)}}},[t._v("Execute")]):t._e(),e("button",{staticClass:"button is-rounded is-primary is-outlined",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.callFC.apply(null,arguments)}}},[t._v("Call")]),t.params.length?e("button",{staticClass:"button is-rounded is-primary is-outlined",attrs:{type:"reset"}},[t._v("Reset")]):t._e()])]),t.request?e("b-field",{attrs:{label:"Request"}},[e("pre",{staticStyle:{width:"100%","white-space":"break-spaces","word-break":"break-all"}},[t._v(t._s(t.request))])]):t._e(),t.resp?e("b-field",{attrs:{label:"Response"}},[e("pre",{staticStyle:{width:"100%","white-space":"break-spaces","word-break":"break-all"}},[t._v(t._s(t.resp))])]):t._e()],2),e("div",{directives:[{name:"show",rawName:"v-show",value:t.activeTab===t.tabs[1],expression:"activeTab === tabs[1]"}]},[e("pre",[t._v(t._s(t.item))])])])],2)},At=[],Pt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("b-collapse",{staticClass:"panel",attrs:{open:t.isOpen},on:{"update:open":t.onupdate},scopedSlots:t._u([{key:"trigger",fn:function(s){return e("div",{staticClass:"panel-heading"},[e("div",{staticClass:"level"},[e("div",{staticClass:"level-left"},[e("div",{staticClass:"level-item"},[e("strong",[t._v(t._s(t.title))])]),e("div",{staticClass:"level-item"})]),e("div",{staticClass:"level-right"},[e("div",{staticClass:"level-item"},[e("b-icon",{attrs:{type:"is-primary",size:"is-small",icon:s.open?"caret-up":"caret-down"}})],1)])])])}}])},[t.tabs.length>1?e("p",{staticClass:"panel-tabs",staticStyle:{"justify-content":"left"}},t._l(t.tabs,(function(s,a){return e("a",{key:a,class:{"is-active":t.activeTab===s},on:{click:function(e){return e.stopPropagation(),t.switchTab(s)}}},[t._v(t._s(s))])})),0):t._e(),e("div",{staticClass:"panel-block is-block"},[t._t("panel-content")],2)])},It=[];let Tt=class extends u.lD{constructor(){super(...arguments),this.isOpen=!1,this.activeTab=this.value}onchange(t){this.activeTab=t}toggle(t){this.isOpen=!0===t||!1===t?t:!this.isOpen}onupdate(t){this.isOpen=t}switchTab(t){this.activeTab=t,this.$emit("input",t)}};(0,d.Cg)([(0,u.kv)({default:0})],Tt.prototype,"value",void 0),(0,d.Cg)([(0,u.kv)({default:Array})],Tt.prototype,"tabs",void 0),(0,d.Cg)([(0,u.kv)({default:""})],Tt.prototype,"title",void 0),(0,d.Cg)([(0,u.ox)("value")],Tt.prototype,"onchange",null),Tt=(0,d.Cg)([u.uA],Tt);var Nt=Tt,Mt=Nt,Et=(0,T.A)(Mt,Pt,It,!1,null,null,null),Dt=Et.exports;let Lt=class extends u.lD{constructor(){super(...arguments),this.value=null,this.resp=null,this.request=null,this.method=null,this.params=new Array(this.item.inputs.length),this.caller=""}callFC(){this.resetOutputs(),this.validate()&&this.readMethod()}reset(){const t=this.$refs.input||[];t.forEach((t=>{t.$parent.newType="",t.$parent.newMessage=""})),this.params.forEach(((t,e)=>{this.prototype&&"_self"===this.item.inputs[e].name||this.$set(this.params,e,"")})),this.resetOutputs()}resetOutputs(){this.request=null,this.resp=null}executeFC(){this.resetOutputs(),this.validate()&&this.writeMethod()}initMethod(t,e){const s=this.$connex.thor.account(this.prototype?"0x000000000000000000000050726f746f74797065":t.toLowerCase());this.method=s.method(e)}validate(){const t=this.$refs.input||[];return t.forEach((t=>{t.checkHtml5Validity()})),!t.some((t=>!1===t.isValid))}get payable(){return this.item.payable||"payable"===this.item.stateMutability}get hexValue(){return BN(this.payable&&this.value||0).multipliedBy(1e18).toFixed(0).toString(16)}async readMethod(){try{const t=this.params.map(((t,e)=>this.item.inputs[e].type.endsWith("]")?JSON.parse(t):t));this.request=this.method.value(this.hexValue).asClause(...t),this.caller?this.resp=await this.method.value(this.hexValue).caller(this.caller).call(...t):this.resp=await this.method.value(this.hexValue).call(...t)}catch(t){BUS.$alert(t.message)}}async writeMethod(){try{const t=this.params.map(((t,e)=>this.item.inputs[e].type.endsWith("]")?JSON.parse(t):t)),e=this.method.value(this.hexValue).asClause(...t);this.request=e,this.$connex.vendor.sign("tx",[{...e,comment:this.item.name}]).comment(`inspect-${this.address}`).request()}catch(t){BUS.$alert(t.message)}}};(0,d.Cg)([(0,u.kv)({default:null})],Lt.prototype,"item",void 0),(0,d.Cg)([(0,u.kv)()],Lt.prototype,"address",void 0),(0,d.Cg)([(0,u.kv)({default:!1})],Lt.prototype,"prototype",void 0),Lt=(0,d.Cg)([u.uA],Lt);var Ot=Lt;let Ft=class extends((0,u.Xe)(Ot)){constructor(){super(...arguments),this.tabs=["Inputs","Description"],this.activeTab="Inputs"}created(){if(this.activeTab=this.tabs[0],this.prototype){const t=this.item.inputs.findIndex((t=>"_self"===t.name));this.params[t]=this.address}this.initMethod(this.address,this.item)}get couldExc(){return!(!0===this.item.constant||["view","pure"].includes(this.item.stateMutability))}addShortCut(t){this.$buefy.dialog.prompt({title:"Add Shortcut",message:"Input a shortcut",inputAttrs:{placeholder:"Filter name",value:t,maxlength:30,required:!0},onConfirm:t=>{this.saveShortCut(t)}})}async saveShortCut(t){const e=await g.contracts.where("address").equals(this.address).first()||null;await g.shortCuts.add({name:t,address:e.address,contractName:e.name,fromPrototype:this.prototype,createdTime:Date.now(),abi:this.item,network:this.$connex.thor.genesis.id,type:this.couldExc?"write":"read"}),BUS.$emit("added-shortcut"),this.$buefy.toast.open({message:"Added success!",type:"is-success"})}};Ft=(0,d.Cg)([(0,u.uA)({components:{Panel:Dt}})],Ft);var zt=Ft,Bt=zt,qt=(0,T.A)(Bt,$t,At,!1,null,"69031e6a",null),Rt=qt.exports,Vt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("Panel",{attrs:{title:"Fallback"}},[e("template",{slot:"panel-content"},[e("pre",[t._v(t._s(t.fb))])])],2)},Ut=[];let jt=class extends u.lD{};(0,d.Cg)([(0,u.kv)({default:null})],jt.prototype,"fb",void 0),jt=(0,d.Cg)([(0,u.uA)({components:{Panel:Dt}})],jt);var Jt=jt,Ht=Jt,Wt=(0,T.A)(Ht,Vt,Ut,!1,null,null,null),Gt=Wt.exports,Xt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("Panel",{attrs:{tabs:t.tabs,title:t.item.name},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[e("template",{slot:"panel-content"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.activeTab===t.tabs[0],expression:"activeTab === tabs[0]"}]},[t._l(t.filters,(function(s,a){return e("b-field",{key:a,staticClass:"item-content",attrs:{horizontal:"",label:s.name}},[e("b-input",{ref:"input",refInFor:!0,attrs:{placeholder:s.type},model:{value:t.params[s.name],callback:function(e){t.$set(t.params,s.name,e)},expression:"params[v.name]"}})],1)})),e("b-field",{staticClass:"item-content",attrs:{horizontal:""}},[e("div",{staticClass:"buttons has-addons"},[e("button",{staticClass:"button is-rounded is-primary is-outlined",attrs:{type:"button"},on:{click:function(e){return t.addFilter(t.item.name)}}},[t._v("As a view")]),e("button",{staticClass:"button is-rounded is-primary is-outlined",attrs:{type:"button"},on:{click:function(e){return t.onRefresh(0)}}},[t._v("Execute")]),t.filters.length?e("button",{staticClass:"button is-rounded is-primary is-outlined",attrs:{type:"button"},on:{click:t.reset}},[t._v("Reset")]):t._e()])])],2),e("div",{directives:[{name:"show",rawName:"v-show",value:t.activeTab===t.tabs[1],expression:"activeTab === tabs[1]"}]},[e("pre",[t._v(t._s(t.item))])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.activeTab===t.tabs[2],expression:"activeTab === tabs[2]"}]},[e("nav",{staticClass:"navbar is-transparent",staticStyle:{"margin-bottom":"2px"}},[e("div",{staticClass:"navbar-item"},[e("div",{staticClass:"buttons has-addons"},[e("b-button",{staticClass:"is-primary",attrs:{tag:"button","icon-left":"sync-alt"},on:{click:t.onRefresh}}),e("b-button",{staticClass:"is-primary",attrs:{tag:"button",disabled:this.page<1,"icon-left":"chevron-left"},on:{click:t.onPrev}}),e("b-button",{staticClass:"is-primary",attrs:{tag:"button",disabled:t.list.length<5,"icon-left":"chevron-right"},on:{click:t.onNext}})],1)]),e("div",{staticClass:"navbar-item"},[t._v(t._s(t.ranges))])]),e("b-loading",{attrs:{"is-full-page":!0,active:t.isLoading},on:{"update:active":function(e){t.isLoading=e}}}),t._l(t.list,(function(s,a){return[e("EventShowCard",{key:5*t.page+a,attrs:{item:s,params:t.item.inputs}},[e("span",{attrs:{slot:"title"},slot:"title"},[t._v("#"+t._s(5*t.page+a+1))])])]}))],2)])],2)},Yt=[],Kt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"box"},[e("div",[e("div",{staticClass:"level has-background-light",staticStyle:{"margin-bottom":"10px",padding:"5px 10px","border-radius":"5px"}},[e("div",{staticClass:"level-left"},[e("span",{staticClass:"is-family-secondary display-6 has-text-black-ter has-text-weight-semibold"},[t._t("title")],2),e("span",{staticClass:"is-family-secondary display-6 has-text-black-ter has-text-weight-semibold",staticStyle:{"margin-left":"20px"}},[t._v(" #Block "),e("a",{attrs:{target:"_blank",href:`${t.$explorerBlock}${t.item.meta.blockID}`}},[t._v(t._s(t.item.meta.blockNumber))])]),e("span",{staticClass:"is-family-secondary display-6",staticStyle:{"margin-left":"20px"}},[t._v(t._s(t._f("datetime")(1e3*t.item.meta.blockTimestamp)))])]),e("div",{staticClass:"level-right"},[e("a",{staticClass:"is-family-monospace display-6 has-text-weight-semibold",attrs:{target:"_blank",href:`${t.$explorerTx}${t.item.meta.txID}`}},[t._v(t._s(t._f("addr")(t.item.meta.txID)))])])]),e("b-tabs",{staticClass:"my-content",attrs:{animated:!1,size:"is-small",type:"is-toggle"},model:{value:t.tabIndex,callback:function(e){t.tabIndex=e},expression:"tabIndex"}},[e("b-tab-item",{attrs:{label:"Decoded"}},[e("b-table",{attrs:{data:t.data},scopedSlots:t._u([{key:"default",fn:function(s){return[e("b-table-column",{attrs:{width:"20",label:"#",field:"id"}},[t._v(t._s(s.row.id))]),e("b-table-column",{attrs:{width:"170",label:"Name",field:"name"}},[t._v(t._s(s.row.name))]),e("b-table-column",{attrs:{width:"220",label:"Type",field:"type"}},[t._v(" "+t._s(s.row.type)+" "),s.row.indexed?e("sup",{staticClass:"has-background-primary has-text-light",staticStyle:{padding:"2px 5px","border-radius":"3px","font-size":"11px"}},[t._v("indexed")]):t._e()]),e("b-table-column",{staticStyle:{"max-width":"380px","word-wrap":"break-word"},attrs:{label:"Data",field:"value"}},["address"===s.row.type?e("a",{staticClass:"has-text-weight-semibold is-family-monospace display-6",attrs:{target:"_blank",href:`${t.$explorerAccount}${s.row.value}`}},[t._v(t._s(t._f("toChecksumAddress")(s.row.value)))]):e("span",{staticClass:"has-text-weight-semibold is-family-monospace display-6 has-text-grey"},[t._v(t._s(s.row.value))])])]}}])})],1),e("b-tab-item",{attrs:{label:"Raw"}},[e("div",[e("b-field",{attrs:{"custom-class":"my-label","label-position":"inside",horizontal:"",label:"Topics"}},[e("ul",t._l(t.item.topics,(function(s,a){return e("li",{key:t.item.meta.blockID+a,staticClass:"is-family-monospace display-6 has-text-grey has-text-weight-semibold"},[e("span",[t._v("["+t._s(a)+"]")]),t._v(" "+t._s(s)+" ")])})),0)]),e("b-field",{attrs:{"custom-class":"my-label","label-position":"on-border",horizontal:"",label:"Data"}},[e("p",{staticClass:"has-text-weight-semibold has-text-grey display-6 is-family-monospace",staticStyle:{"word-break":"break-all"}},[t._v(t._s(t.item.data))])])],1)])],1)],1)])},Qt=[];let Zt=class extends u.lD{constructor(){super(...arguments),this.tabIndex=0,this.columns=[{label:"ID",field:"index"},{label:"Name",field:"name"},{label:"Type",field:"type"},{label:"Data",field:"value"}]}onItemChange(){this.data=this.params.map(((t,e)=>({id:e,name:t.name,type:t.type,indexed:t.indexed,value:this.item.decoded[t.name]})))}created(){this.onItemChange()}};(0,d.Cg)([(0,u.kv)(Object)],Zt.prototype,"item",void 0),(0,d.Cg)([(0,u.kv)(Array)],Zt.prototype,"params",void 0),(0,d.Cg)([(0,u.ox)("item"),(0,u.ox)("params")],Zt.prototype,"onItemChange",null),Zt=(0,d.Cg)([u.uA],Zt);var te=Zt,ee=te,se=(0,T.A)(ee,Kt,Qt,!1,null,null,null),ae=se.exports;let ie=class extends u.lD{constructor(){super(...arguments),this.page=0,this.list=[],this.params={},this.tabs=["Filters","Description","Datas"],this.activeTab="",this.isLoading=!1}created(){this.filters.forEach((t=>{this.params[t.name]=""})),this.activeTab=this.tabs[0];const t=this.$connex.thor.account(this.address);this.event=t.event(this.item)}get filters(){return this.item.inputs.filter((t=>t.indexed))}get ranges(){return 5*this.page+(this.list.length?1:0)+" - "+(5*this.page+this.list.length)}onTabChange(){"Datas"===this.activeTab&&this.getResult(this.page)}onNext(){this.page++,this.getResult(this.page)}onPrev(){this.page>0&&(this.page--,this.getResult(this.page))}onRefresh(){this.page=0,this.getResult(0)}addFilter(t){this.$buefy.dialog.prompt({title:"Add quick view",message:"Input a filter name",inputAttrs:{placeholder:"Filter name",value:t,maxlength:30,required:!0},onConfirm:t=>{this.saveFilter(t)}})}reset(){this.params={}}async saveFilter(t){const e=await g.contracts.where("address").equals(this.address).first()||null;await g.filters.add({name:t,address:e.address,contractName:e.name,fromPrototype:this.prototype,createdTime:Date.now(),network:this.$connex.thor.genesis.id,abi:this.item}),BUS.$emit("added-filter"),this.$buefy.toast.open({message:"Added success!",type:"is-success"})}async getResult(t){if(this.isLoading)return;this.isLoading=!0,this.activeTab=this.tabs[2];const e=[];for(const a in this.params)if(this.params.hasOwnProperty(a)){const t=this.params[a];t&&e.push({[a]:t})}try{this.list=await this.event.filter(e).order("desc").apply(5*t,5)}catch(s){BUS.$alert(s.message)}finally{this.isLoading=!1}}};(0,d.Cg)([(0,u.kv)({default:null})],ie.prototype,"item",void 0),(0,d.Cg)([(0,u.kv)()],ie.prototype,"address",void 0),(0,d.Cg)([(0,u.kv)({default:!1})],ie.prototype,"prototype",void 0),(0,d.Cg)([(0,u.ox)("activeTab")],ie.prototype,"onTabChange",null),ie=(0,d.Cg)([(0,u.uA)({components:{Panel:Dt,EventShowCard:ae}})],ie);var ne=ie,re=ne,oe=(0,T.A)(re,Xt,Yt,!1,null,"dfb6d268",null),le=oe.exports,ce=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("Panel",{attrs:{title:t.$attrs.title}},[e("template",{slot:"panel-content"},[e("pre",{staticStyle:{"max-height":"500px",overflow:"auto"}},[t._v(t._s(t.item))])])],2)},de=[];let ue=class extends u.lD{};(0,d.Cg)([(0,u.kv)({default:null})],ue.prototype,"item",void 0),ue=(0,d.Cg)([(0,u.uA)({components:{Panel:Dt}})],ue);var pe=ue,me=pe,he=(0,T.A)(me,ce,de,!1,null,null,null),be=he.exports,fe=[{constant:!1,inputs:[{name:"_self",type:"address"},{name:"_newMaster",type:"address"}],name:"setMaster",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_self",type:"address"},{name:"_user",type:"address"}],name:"isUser",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_self",type:"address"},{name:"_key",type:"bytes32"}],name:"storageFor",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_self",type:"address"},{name:"_blockNumber",type:"uint256"}],name:"energy",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_self",type:"address"},{name:"_user",type:"address"}],name:"removeUser",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_self",type:"address"}],name:"currentSponsor",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_self",type:"address"},{name:"_credit",type:"uint256"},{name:"_recoveryRate",type:"uint256"}],name:"setCreditPlan",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_self",type:"address"},{name:"_sponsor",type:"address"}],name:"selectSponsor",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_self",type:"address"},{name:"_blockNumber",type:"uint256"}],name:"balance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_self",type:"address"}],name:"sponsor",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_self",type:"address"}],name:"creditPlan",outputs:[{name:"credit",type:"uint256"},{name:"recoveryRate",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_self",type:"address"},{name:"_user",type:"address"}],name:"addUser",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_self",type:"address"}],name:"hasCode",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_self",type:"address"}],name:"master",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_self",type:"address"},{name:"_user",type:"address"}],name:"userCredit",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_self",type:"address"}],name:"unsponsor",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_self",type:"address"},{name:"_sponsor",type:"address"}],name:"isSponsor",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"}],ve=[{anonymous:!1,inputs:[{indexed:!1,name:"newMaster",type:"address"}],name:"$Master",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"credit",type:"uint256"},{indexed:!1,name:"recoveryRate",type:"uint256"}],name:"$CreditPlan",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"user",type:"address"},{indexed:!1,name:"action",type:"bytes32"}],name:"$User",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"sponsor",type:"address"},{indexed:!1,name:"action",type:"bytes32"}],name:"$Sponsor",type:"event"}];let ge=class extends u.lD{constructor(){super(...arguments),this.protoTabs=[{text:"Prototype-Read",count:10,visible:!0},{text:"Prototype-Write",count:7,visible:!0},{text:"Prototype-Event",count:4,visible:!0}]}get prList(){return this._abi.filter((t=>"function"===t.type&&t.constant))}get pwList(){return this._abi.filter((t=>"function"===t.type&&!t.constant))}get peList(){return this._abiEvent}initAbi(){this._abi=fe,this._abiEvent=ve}};ge=(0,d.Cg)([u.uA],ge);var ye=ge,xe=s(6763);let _e=class extends((0,u.Xe)(ye)){constructor(){super(...arguments),this.contract=null,this.tabIndex=0,this.tabs=[],this.abi=[],this.code="",this.name="",this.caller="",this.isProtoType=!0}get filterList(){const t=this.abi;return t.filter((t=>t.name&&this.name&&t.name.toString().toLowerCase().indexOf(this.name.toLowerCase())>=0))}get readList(){return this.abi.filter((t=>"function"===t.type&&(!0===t.constant||["pure","view"].includes(t.stateMutability))))}get writeList(){return this.abi.filter((t=>"function"===t.type&&(!1===t.constant||!["pure","view"].includes(t.stateMutability))))}get eventList(){return this.abi.filter((t=>"event"===t.type))}get fb(){return this.abi.find((t=>"fallback"===t.type))}async getDetail(t){if(this.contract=await g.contracts.where("id").equals(parseInt(t,10)).or("address").equals(t).first()||null,this.contract)this.abi=this.contract.abi;else{this.$buefy.toast.open({duration:3e3,message:"No item got",position:"is-top",queue:!1,type:"is-info"});setTimeout((()=>{this.$router.push({name:"contracts"})}),3100)}}toExplorer(){window.open(`${this.$explorerAccount}${this.contract.address}`,"_blank")}async getCode(t){try{if(t){const e=await this.$connex.thor.account(t).getCode();this.code=e.code}}catch(e){xe.error(e)}}async created(){this.$ga.page("/inspector/contract/detail"),this.initAbi();const t=this.$route.query.id||this.$route.query.address;await this.getDetail(t),this.tabs=[{text:"Read",count:this.readList.length,visible:!!this.readList.length},{text:"Write",count:this.writeList.length,visible:!!this.writeList.length},{text:"Code & ABI",count:"",visible:!0},{text:"Events",count:this.eventList.length,visible:!!this.eventList.length},{text:"Fallback",count:"",visible:!!this.fb}],this.tabs=this.tabs.concat(this.protoTabs),await this.getCode(this.contract.address||""),this.tabIndex=this.tabs.findIndex((t=>t.visible))}onSearchSelect(t){const e={cb:2,fb:4,read:0,write:1,event:3};let s=t.type;"function"===s&&(s=t.constant?"read":"write"),this.tabIndex=e[s];const a=this.$refs[t.name];a[0].$children[0].toggle(!0),a[0].$el.scrollIntoView()}};_e=(0,d.Cg)([(0,u.uA)({components:{Contract:ut,FunctionCard:Rt,FallbackCard:Gt,DescCard:be,EventCard:le}})],_e);var we=_e,Ce=we,ke=(0,T.A)(Ce,kt,St,!1,null,null,null),Se=ke.exports,$e=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("section",[e("div",{staticClass:"log-container"},[e("div",{staticClass:"columns is-multiline"},[t._l(t.params,(function(s,a){return e("div",{key:a,staticClass:"column is-one-third"},[e("b-field",{attrs:{label:s.name}},[e("b-input",{attrs:{placeholder:s.type},model:{value:t.conditions[s.name],callback:function(e){t.$set(t.conditions,s.name,e)},expression:"conditions[v.name]"}})],1)],1)})),e("div",{staticClass:"column is-one-third"},[e("b-field",{attrs:{label:"Order"}},[e("b-select",{attrs:{expanded:"",placeholder:"Order"},model:{value:t.page.order,callback:function(e){t.$set(t.page,"order",e)},expression:"page.order"}},[e("option",{domProps:{value:!1}},[t._v("ASC")]),e("option",{domProps:{value:!0}},[t._v("DESC")])])],1)],1)],2),e("nav",{staticClass:"navbar is-transparent",staticStyle:{"margin-bottom":"2px","z-index":"20"}},[e("div",{staticClass:"navbar-start"},[e("div",{staticClass:"navbar-item",staticStyle:{"padding-left":"0"}},[e("b-field",{staticStyle:{width:"350px"},attrs:{horizontal:""}},[e("template",{slot:"label"},[e("div",{staticStyle:{width:"100px","text-align":"left"}},[t._v("Block Range")])]),e("b-input",{attrs:{placeholder:"from"},model:{value:t.blockFrom,callback:function(e){t.blockFrom=e},expression:"blockFrom"}}),e("b-input",{attrs:{placeholder:"to"},model:{value:t.blockTo,callback:function(e){t.blockTo=e},expression:"blockTo"}})],2)],1)]),e("div",{staticClass:"navbar-end"},[e("div",{staticClass:"navbar-item"},[t._v(t._s(t.ranges))]),e("div",{staticClass:"navbar-item"},[e("div",{staticClass:"buttons has-addons"},[e("button",{staticClass:"button",attrs:{disabled:t.page.num<1},on:{click:t.prePage}},[e("b-icon",{attrs:{icon:"angle-left"}})],1),e("button",{staticClass:"button",attrs:{disabled:t.list.lengtht.indexed))}get ranges(){return"#"+(this.page.num*this.page.size+(this.list.length?1:0))+" - #"+(this.page.num*this.page.size+this.list.length)}async onRouterChange(){await this.init(),this.getList(0)}onSizeChanged(t){t||(this.page.size=5),this.search()}onOrderChanged(){this.search()}async init(){this.filter=await g.filters.where("id").equals(parseInt(this.$route.params.id,10)).first()||null;const t=this.$connex.thor.account(this.filter.address);this.abi=this.filter.abi?this.filter.abi:"",this.event=t.event(this.abi),this.setParams()}search(){this.page.num=0,this.getList(0)}prePage(){this.page.num>0&&(this.page.num--,this.getList(this.page.num))}nextPage(){this.page.num++,this.getList(this.page.num)}async getList(t){this.isLoading=!0;const e=[];for(const a in this.conditions)if(this.conditions.hasOwnProperty(a)){const t=this.conditions[a];t&&e.push({[a]:t})}try{this.list=await this.event.filter(e).order(this.page.order?"desc":"asc").range(this.getBlcokRange()).apply(t*this.page.size,this.page.size)}catch(s){BUS.$alert(s.message)}finally{this.isLoading=!1}}getBlcokRange(){const t=this.blockFrom||0,e=this.blockTo||this.$connex.thor.status.head.number;return{unit:"block",from:BN(t).toNumber(),to:BN(e).toNumber()}}async created(){this.$ga.page("/inspector/view/list"),await this.init(),this.getList(0)}};(0,d.Cg)([(0,u.ox)("$route")],Pe.prototype,"onRouterChange",null),(0,d.Cg)([(0,u.ox)("page.size")],Pe.prototype,"onSizeChanged",null),(0,d.Cg)([(0,u.ox)("page.order")],Pe.prototype,"onOrderChanged",null),Pe=(0,d.Cg)([(0,u.uA)({components:{EventShowCard:ae}})],Pe);var Ie=Pe,Te=Ie,Ne=(0,T.A)(Te,$e,Ae,!1,null,"1219d4b9",null),Me=Ne.exports,Ee=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("section",{staticClass:"section"},[e("div",{staticClass:"container"},[e("b-table",{attrs:{detailed:"","per-page":t.perPage,"current-page":t.currentPage,data:t.list,paginated:"","backend-pagination":"",total:t.count},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"page-change":t.onPageChange},scopedSlots:t._u([{key:"default",fn:function(s){return[e("b-table-column",{attrs:{centered:"",label:"ID"}},[t._v(t._s(s.row.id))]),e("b-table-column",{attrs:{label:"Name"}},[e("router-link",{attrs:{to:{name:"filter_view",params:{id:s.row.id}}}},[t._v(t._s(s.row.name))])],1),e("b-table-column",{attrs:{label:"Contract"}},[e("router-link",{attrs:{to:{name:"contract_detail",query:{address:s.row.address}}}},[t._v(" "+t._s(s.row.contractName)+" ")]),e("b-tooltip",{attrs:{label:"Prototype"}},[s.row.fromPrototype?e("b-icon",{staticStyle:{"margin-left":"5px"},attrs:{icon:"code-branch",size:"is-small"}}):t._e()],1)],1),e("b-table-column",{attrs:{label:"Address"}},[e("span",{staticClass:"is-family-monospace has-text-weight-semibold"},[t._v(t._s(t._f("addr")(t._f("toChecksumAddress")(s.row.address))))])]),e("b-table-column",{attrs:{centered:"",label:"Operations"}},[e("div",{staticClass:"buttons has-addons is-centered"},[e("button",{staticClass:"button is-rounded control is-small",on:{click:function(e){return t.edit(s.row)}}},[e("b-icon",{attrs:{size:"is-small",icon:"edit"}})],1),e("button",{staticClass:"button is-rounded control is-small",on:{click:function(e){return t.remove(s.row)}}},[e("b-icon",{attrs:{size:"is-small",icon:"trash-alt"}})],1)])])]}},{key:"detail",fn:function(s){return[e("pre",[t._v(t._s(s.row.abi))])]}}])})],1)])},De=[];let Le=class extends u.lD{constructor(){super(...arguments),this.list=[],this.perPage=10,this.currentPage=1,this.count=0,this.columns=[{label:"ID",field:"id",centered:!0},{label:"From Contract",field:"contractName",centered:!0},{label:"Name",field:"name",centered:!0},{label:"Address",field:"address",centered:!0}]}get network(){return this.$connex.thor.genesis.id}async created(){this.$ga.page("/inspector/view/mgt"),this.onPageChange(1),this.count=await g.filters.filter((t=>t.network===this.network||void 0===t.network)).count()}edit(t){this.$buefy.dialog.prompt({title:"Edit quick view",message:"Edit filter name",inputAttrs:{placeholder:"Filter name",value:t.name,maxlength:30,required:!0},onConfirm:e=>{g.filters.update(t.id,{name:e}).then((()=>{this.onPageChange(this.currentPage)}))}})}remove(t){this.$buefy.dialog.confirm({title:"Remove",message:`Are you sure want to remove '${t.name}' contract`,cancelText:"Cancel",confirmText:"YES",type:"is-danger",scroll:"clip",onConfirm:()=>{g.filters.delete(t.id).then((()=>{this.onPageChange(this.currentPage)}))}})}async onPageChange(t){this.list=await g.filters.filter((t=>t.network===this.network||void 0===t.network)).offset((t-1)*this.perPage).limit(this.perPage).toArray()}};Le=(0,d.Cg)([u.uA],Le);var Oe=Le,Fe=Oe,ze=(0,T.A)(Fe,Ee,De,!1,null,null,null),Be=ze.exports,qe=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("section",{staticClass:"section"},[e("div",{staticClass:"container"},[e("b-field",{attrs:{grouped:""}},[e("b-field",{attrs:{expanded:""}},[e("b-field",{staticClass:"is-pulled-right"},[e("b-input",{attrs:{icon:"search",type:"text",placeholder:"Name"}}),e("p",{staticClass:"control"},[e("button",{staticClass:"button is-primary"},[t._v("Search")])])],1)],1)],1),e("b-table",{attrs:{detailed:"","per-page":t.perPage,"current-page":t.currentPage,data:t.list,paginated:"","backend-pagination":"",total:t.count},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"page-change":t.onPageChange},scopedSlots:t._u([{key:"default",fn:function(s){return[e("b-table-column",{attrs:{centered:"",label:"ID"}},[t._v(t._s(s.row.id))]),e("b-table-column",{attrs:{label:"Name"}},[t._v(t._s(s.row.name))]),e("b-table-column",{attrs:{label:"Contract"}},[e("router-link",{attrs:{to:{name:"contract_detail",query:{address:s.row.address}}}},[t._v(t._s(s.row.contractName))]),e("b-tooltip",{attrs:{label:"Prototype"}},[s.row.fromPrototype?e("b-icon",{staticStyle:{"margin-left":"5px"},attrs:{icon:"code-branch",size:"is-small"}}):t._e()],1)],1),e("b-table-column",{attrs:{label:"Type"}},[t._v(t._s(s.row.type))]),e("b-table-column",{attrs:{label:"Address"}},[e("b-tooltip",{attrs:{label:t._f("toChecksumAddress")(s.row.address)}},[e("span",{staticClass:"is-family-monospace has-text-weight-semibold"},[t._v(t._s(t._f("addr")(t._f("toChecksumAddress")(s.row.address))))])])],1),e("b-table-column",{attrs:{centered:"",label:"Operations"}},[e("div",{staticClass:"buttons has-addons is-centered"},[e("button",{staticClass:"button is-rounded control is-small",on:{click:function(e){return t.edit(s.row)}}},[e("b-icon",{attrs:{size:"is-small",icon:"edit"}})],1),e("button",{staticClass:"button is-rounded control is-small",on:{click:function(e){return t.remove(s.row)}}},[e("b-icon",{attrs:{size:"is-small",icon:"trash-alt"}})],1)])])]}},{key:"detail",fn:function(t){return[e("SampleFuncCard",{attrs:{caller:"caller",prototype:t.row.fromPrototype,item:t.row.abi,address:t.row.address}})]}}])})],1)])},Re=[],Ve=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"func-card"},[e("p",{staticClass:"panel-tabs",staticStyle:{"justify-content":"left"}},t._l(t.tabs,(function(s,a){return e("a",{key:a,class:{"is-active":t.activeTab===s},on:{click:function(e){return e.stopPropagation(),t.switchTab(s)}}},[t._v(t._s(s))])})),0),e("div",{staticClass:"card-content"},[e("form",{directives:[{name:"show",rawName:"v-show",value:t.activeTab===t.tabs[0],expression:"activeTab === tabs[0]"}],ref:"form",on:{reset:function(e){return e.preventDefault(),t.reset.apply(null,arguments)}}},[e("b-field",{staticClass:"item-content",attrs:{horizontal:"",message:"Special address to call the method, it's not the param of the method",label:"Caller"},model:{value:t.caller,callback:function(e){t.caller=e},expression:"caller"}},[e("b-input",{attrs:{placeholder:"Optional: Address"}})],1),t._l(t.item.inputs,(function(s,a){return e("b-field",{key:a,staticClass:"item-content",attrs:{horizontal:"",label:s.name}},[e("b-input",{ref:"input",refInFor:!0,attrs:{readonly:t.prototype&&"_self"===s.name,required:"",placeholder:s.type},model:{value:t.params[a],callback:function(e){t.$set(t.params,a,e)},expression:"params[index]"}})],1)})),t.item.payable?e("b-field",{staticClass:"item-content",attrs:{horizontal:"",label:"value"}},[e("b-input",{attrs:{type:"number",placeholder:"number"},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1):t._e(),e("b-field",{staticClass:"item-content"},[e("div",{staticClass:"buttons has-addons"},[t.item.constant?t._e():e("button",{staticClass:"button is-rounded is-primary is-outlined",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.executeFC.apply(null,arguments)}}},[t._v("Execute")]),e("button",{staticClass:"button is-rounded is-primary is-outlined",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.callFC.apply(null,arguments)}}},[t._v("Call")]),e("button",{staticClass:"button is-rounded is-primary is-outlined",attrs:{type:"reset"}},[t._v("Reset")])])]),t.request?e("b-field",{attrs:{label:"Request"}},[e("pre",{staticStyle:{width:"100%","white-space":"break-spaces","word-break":"break-all"}},[t._v(t._s(t.request))])]):t._e(),t.resp?e("b-field",{attrs:{label:"Response"}},[e("pre",{staticStyle:{width:"100%","white-space":"break-spaces","word-break":"break-all"}},[t._v(t._s(t.resp))])]):t._e()],2),e("div",{directives:[{name:"show",rawName:"v-show",value:t.activeTab===t.tabs[1],expression:"activeTab === tabs[1]"}]},[e("pre",[t._v(t._s(t.item))])])])])},Ue=[];let je=class extends((0,u.Xe)(Ot)){constructor(){super(...arguments),this.tabs=["Inputs","Description"],this.activeTab=""}created(){this.activeTab=this.tabs[0];const t=this.$connex.thor.account(this.address);if(this.method=t.method(this.item),this.prototype){const t=this.item.inputs.findIndex((t=>"_self"===t.name));this.params[t]=this.address}}switchTab(t){this.activeTab=t}};(0,d.Cg)([(0,u.kv)({default:!1})],je.prototype,"prototype",void 0),je=(0,d.Cg)([(0,u.uA)({components:{Panel:Dt}})],je);var Je=je,He=Je,We=(0,T.A)(He,Ve,Ue,!1,null,"18528316",null),Ge=We.exports;let Xe=class extends u.lD{constructor(){super(...arguments),this.list=[],this.count=0,this.perPage=10,this.currentPage=1,this.caller=""}async created(){this.$ga.page("/view/scs"),await this.onPageChange(1),await this.countList()}get network(){return this.$connex.thor.genesis.id}async countList(){this.count=await g.shortCuts.filter((t=>t.network===this.network||void 0===t.network)).count()}async onPageChange(t){this.list=await g.shortCuts.filter((t=>t.network===this.network||void 0===t.network)).offset((t-1)*this.perPage).limit(this.perPage).toArray()}edit(t){this.$buefy.dialog.prompt({title:"Edit Shortcut",message:"Edit shortcut name",inputAttrs:{placeholder:"Shortcut name",value:t.name,maxlength:30,required:!0},onConfirm:e=>{g.shortCuts.update(t.id,{name:e}).then((()=>{this.onPageChange(this.currentPage)}))}})}remove(t){this.$buefy.dialog.confirm({title:"Remove",message:`Are you sure want to remove '${t.name}' contract`,cancelText:"Cancel",confirmText:"YES",type:"is-danger",scroll:"clip",onConfirm:()=>{g.shortCuts.delete(t.id).then((()=>{this.onPageChange(this.currentPage)}))}})}};Xe=(0,d.Cg)([(0,u.uA)({components:{SampleFuncCard:Ge}})],Xe);var Ye=Xe,Ke=Ye,Qe=(0,T.A)(Ke,qe,Re,!1,null,null,null),Ze=Qe.exports;u.lD.use(R.A);const ts=new R.A({mode:"hash",routes:[{name:"root",redirect:{name:"contracts"},path:"/"},{name:"notSupport",component:G,path:"/not-support"},{name:"contracts",component:ft,path:"/contracts"},{name:"deploy",component:Ct,path:"/deploy"},{name:"contract_detail",component:Se,path:"/contract/detail"},{name:"filter_view",component:Me,path:"/view/:id/list"},{name:"filter_mgt",component:Be,path:"/view/mgt"},{name:"short_cuts",component:Ze,path:"/view/scs"},{path:"*",redirect:{name:"contracts"}}]});var es=ts,ss=s(2102),as=s.n(ss),is=s(6281),ns=s.n(is);const rs=async t=>{const{address:e,genesisId:s,name:a,abi:i}=t;await g.contracts.filter((t=>t.address.toLowerCase()===e.toLowerCase())).delete();const n={abi:i,address:e.toLowerCase(),name:a,createdTime:Date.now(),network:s};await g.contracts.add(n)},os=async()=>{const t=await fetch("/abis/contracts.json");if(!t.ok)return;const e=await t.json();for(const s of e)await rs(s)};var ls=s(6763);function cs(t){const e=t?t+"/":t;a["default"].prototype.$explorerAccount=`https://insight.vecha.in/#/${e}accounts/`,a["default"].prototype.$explorerBlock=`https://insight.vecha.in/#/${e}blocks/`,a["default"].prototype.$explorerTx=`https://insight.vecha.in/#/${e}txs/`}if(a["default"].use(n.Ay,{defaultIconPack:"fas"}),a["default"].use(r.Ay,{events:"blur",validity:!0}),a["default"].use(as(),{id:"UA-132391998-2",disabled:!0}),a["default"].config.productionTip=!1,window.connex)ls.log("Connex ok",window.connex),a["default"].prototype.$connex=new(ns())({network:window.connex.thor.genesis,node:"",noV1Compat:!1}),cs("");else{const t=_?"solo":"main",e=localStorage.getItem("last-net")||t;if(ls.log("net",e),["test","main","solo"].includes(e))cs(e),a["default"].prototype.$connex=k(e);else{const t=localStorage.getItem("custom-node"),e=JSON.parse(localStorage.getItem("custom-network")||"");if(t&&e){if("0x000000000b2bce3c70bc649a02749e8687721b09ed2e15997f466536b20bb127"===e.id)cs("test");else if("0x00000000851caf3cfdb6e899cf5958bfb1ac3413d346d43539627e6be7ec1b4a"===e.id)cs("main");else{const e=t.endsWith("/")?t:t+"/";a["default"].prototype.$explorerAccount=`${e}accounts/`,a["default"].prototype.$explorerBlock=`${e}blocks/`,a["default"].prototype.$explorerTx=`${e}transactions/`}a["default"].prototype.$connex=new(ns())({network:e,node:t})}}}os(),new a["default"]({router:es,render:t=>t(F)}).$mount("#app")},7790:function(){},2634:function(){},5340:function(){},9838:function(){}},e={};function s(a){var i=e[a];if(void 0!==i)return i.exports;var n=e[a]={id:a,loaded:!1,exports:{}};return t[a].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=t,function(){var t=[];s.O=function(e,a,i,n){if(!a){var r=1/0;for(d=0;d=n)&&Object.keys(s.O).every((function(t){return s.O[t](a[l])}))?a.splice(l--,1):(o=!1,n0&&t[d-1][2]>n;d--)t[d]=t[d-1];t[d]=[a,i,n]}}(),function(){s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,{a:e}),e}}(),function(){s.d=function(t,e){for(var a in e)s.o(e,a)&&!s.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})}}(),function(){s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){s.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){s.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t}}(),function(){var t={524:0};s.O.j=function(e){return 0===t[e]};var e=function(e,a){var i,n,r=a[0],o=a[1],l=a[2],c=0;if(r.some((function(e){return 0!==t[e]}))){for(i in o)s.o(o,i)&&(s.m[i]=o[i]);if(l)var d=l(s)}for(e&&e(a);c {\n BUS.$buefy.dialog.confirm({\n title: 'Error',\n type: 'is-danger',\n message: `${msg}`,\n hasIcon: true,\n cancelText: 'Close',\n confirmText: 'Open an issue',\n onConfirm: () => {\n window.open('https://github.com/vechain/inspector-app/issues', '_blank')\n }\n })\n}\nObject.defineProperty(window, 'BN', {\n value: BN,\n enumerable: true,\n writable: false\n})\n","import { Validator } from 'vee-validate'\n\nValidator.extend('bytecode', {\n getMessage: (field: string) => {\n return `${field} field is invalid.`\n },\n validate: (value: string) => {\n const regex = /^(0x|0X)[a-fA-F0-9]+$/\n return regex.test(value) && value.length % 2 === 0\n }\n})\n\nValidator.extend('vet', {\n getMessage: (field: string) => {\n return `${field} field is invalid, (positive number and limited to 18 decimal places).`\n },\n validate: (value: string) => {\n const v = BN(value)\n const temp = BN(v.multipliedBy(1e18))\n return temp.isInteger() && !temp.isNegative()\n }\n})\nconst dictionary = {\n en: {\n attributes: {\n code: `Byte Code`\n }\n }\n}\n\nValidator.localize(dictionary)\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('body',{staticClass:\"has-navbar-fixed-top\"},[_c('Navbar',{staticClass:\"is-fixed-top\"}),_c('div',{staticClass:\"router-view\"},[_c('router-view')],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('nav',{staticClass:\"navbar is-dark\",attrs:{\"role\":\"navigation\",\"aria-label\":\"main navigation\"}},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"navbar-brand is-marginless\"},[_c('h2',{staticClass:\"subtitle has-text-white is-2\",staticStyle:{\"padding-left\":\"20px\"}},[_vm._v(\"Inspector\")]),_c('a',{staticClass:\"navbar-burger\",class:{'is-active': _vm.burgerActive},attrs:{\"role\":\"button\"},on:{\"click\":function($event){_vm.burgerActive = !_vm.burgerActive}}},[_c('span',{attrs:{\"aria-hidden\":\"true\"}}),_c('span',{attrs:{\"aria-hidden\":\"true\"}}),_c('span',{attrs:{\"aria-hidden\":\"true\"}})])]),_c('div',{staticClass:\"navbar-menu\",class:{'is-active': _vm.burgerActive}},[_c('div',{staticStyle:{\"width\":\"40px\"}}),_c('div',{staticClass:\"navbar-start\"},[_vm._l((_vm.routes),function(item,index){return _c('router-link',{key:index,staticClass:\"navbar-item\",attrs:{\"exact\":\"\",\"to\":{name: item.name}}},[_vm._v(_vm._s(item.text))])}),(_vm.views.length)?_c('div',{staticClass:\"navbar-item has-dropdown is-hoverable\"},[_c('a',{staticClass:\"navbar-link\"},[_vm._v(\"Views\")]),_c('div',{staticClass:\"navbar-dropdown\"},[_c('router-link',{staticClass:\"navbar-item\",attrs:{\"to\":{\n name: 'filter_mgt'\n }}},[_vm._v(\"All\")]),_c('hr',{staticClass:\"navbar-divider\"}),_vm._l((_vm.views),function(view,index){return _c('router-link',{key:index,staticClass:\"navbar-item\",attrs:{\"to\":{\n name: 'filter_view',\n params: {\n id: view.id\n }\n }}},[_vm._v(_vm._s(view.name))])})],2)]):_vm._e(),(_vm.shortCuts)?_c('router-link',{staticClass:\"navbar-item\",attrs:{\"active-class\":\"has-background-grey-dark\",\"to\":{name: 'short_cuts'}}},[_vm._v(\"Shortcuts\")]):_vm._e()],2),_c('div',{staticClass:\"navbar-end\",staticStyle:{\"padding-right\":\"20px\"}},[(_vm.networks.length === 1)?_c('b-tag',{staticStyle:{\"margin\":\"auto 0px\"},attrs:{\"size\":\"is-medium\",\"type\":\"is-warning\"}},[_vm._v(_vm._s(_vm.networks[0].label))]):_vm._e(),(_vm.networks.length > 1)?_c('b-dropdown',{staticStyle:{\"vertical-align\":\"top\"},attrs:{\"size\":\"sm\",\"text\":_vm.network,\"toggle-class\":\"py-0 px-1\"}},[_c('template',{slot:\"trigger\"},[_c('b-button',{staticClass:\"navbar-item\",attrs:{\"type\":\"is-dark\",\"label\":_vm.network,\"icon-right\":\"caret-down\"}})],1),_vm._l((_vm.switchableNetworks),function(n,i){return _c('b-dropdown-item',{key:i,attrs:{\"value\":n.name},on:{\"click\":function($event){return _vm.onChange(n.name)}}},[_vm._v(_vm._s(n.label))])})],2):_vm._e(),_c('a',{staticClass:\"navbar-item\",attrs:{\"href\":\"https://github.com/vechain/inspector-app\",\"target\":\"_blank\"}},[_vm._v(\"GitHub\")])],1)])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Dexie from 'dexie'\nimport 'dexie-observable'\nimport { IDatabaseChange } from 'dexie-observable/api'\n\nexport namespace Entities {\n export interface Contract {\n id?: number\n name?: string\n address: string\n createdTime?: number\n abi?: object | []\n network?: string\n }\n\n export interface Filter extends Contract {\n contractName?: string\n fromPrototype?: boolean\n }\n\n export interface ShortCuts extends Contract {\n contractName?: string\n type: 'read' | 'write'\n fromPrototype?: boolean\n }\n}\n\nclass Database extends Dexie {\n public readonly contracts!: Dexie.Table\n public readonly filters!: Dexie.Table\n public readonly shortCuts!: Dexie.Table\n\n constructor() {\n super('inspect')\n\n this.version(2).stores({\n contracts: '++id, &address, name',\n filters: '++id, address, name, contractName',\n shortCuts: '++id, address, name, contractName'\n })\n this.version(3).stores({\n shortCuts: '++id, address, name, contractName, fromPrototype',\n filters: '++id, address, name, contractName, fromPrototype',\n })\n\n this.version(4).stores({\n contracts: '++id, &address, name, network'\n })\n this.version(5).stores({\n contracts: '++id, address, name, network'\n })\n this.open().catch((err) => {\n // tslint:disable-next-line:no-console\n console.error(err)\n })\n }\n\n public subscribe(\n tableName: string,\n onChange: (changes: IDatabaseChange[]) => void\n ) {\n const ev = this.on('changes')\n const fn = (changes: IDatabaseChange[]) => {\n changes = changes.filter((c) => c.table === tableName)\n if (changes.length > 0) {\n onChange(changes)\n }\n }\n ev.subscribe(fn)\n return {\n unsubscribe: () => ev.unsubscribe(fn)\n }\n }\n}\n\nconst DB = new Database()\n\nexport default DB\n","import Connex from \"@vechain/connex/esm\";\n\nexport const soloUrlNode = () => {\n //Used to support docker runtime env variables. This string is overrided on container startup using the injected env \n if(process.env.VUE_APP_IS_DOCKER) {\n const soloUrlPlaceholder = 'VUE_APP_SOLO_URL_PLACEHOLDER';\n return soloUrlPlaceholder;\n }\n return process.env.VUE_APP_SOLO_URL;\n}\n\n\n//Needed to support runtime env variables\nexport const isSoloNode = !!soloUrlNode();\nexport const nodeUrls = {\n main: \"https://explore-mainnet.veblocks.net\",\n test: \"https://explore-testnet.veblocks.net\",\n solo: soloUrlNode() || \"http://localhost:8669\",\n custom: \"\",\n};\n\nconst soloGenesis = {\n number: 0,\n id: \"0x00000000c05a20fbca2bf6ae3affba6af4a74b800b585bf7a4988aba7aea69f6\",\n size: 170,\n parentID:\n \"0xffffffff53616c757465202620526573706563742c20457468657265756d2100\",\n timestamp: 1530316800,\n gasLimit: 10000000,\n beneficiary: \"0x0000000000000000000000000000000000000000\",\n gasUsed: 0,\n totalScore: 0,\n txsRoot: \"0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0\",\n txsFeatures: 0,\n stateRoot:\n \"0x93de0ffb1f33bc0af053abc2a87c4af44594f5dcb1cb879dd823686a15d68550\",\n receiptsRoot:\n \"0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0\",\n signer: \"0x0000000000000000000000000000000000000000\",\n isTrunk: true,\n transactions: [],\n};\n\nexport function createConnex(net?: \"main\" | \"test\" | \"solo\") {\n if (net) {\n // net specified\n const url = nodeUrls[net];\n if (net == \"solo\") {\n return new Connex({ node: url, network: soloGenesis });\n}\n return new Connex({ node: url, network: net });\n } else {\n const injected = (window as any).connex;\n // net unspecified\n if (injected) {\n return new Connex({ node: \"\", network: injected.thor.genesis });\n } else {\n // defaults to main net, or soloUrl if solo is provided\n if (isSoloNode) {\n return new Connex({ node: nodeUrls.solo, network: soloGenesis });\n }\n return new Connex({ node: nodeUrls.main });\n }\n }\n}\n","export function genesisIdToNetwork(id: string) {\n switch (id) {\n case \"0x00000000851caf3cfdb6e899cf5958bfb1ac3413d346d43539627e6be7ec1b4a\":\n return \"main\";\n case \"0x000000000b2bce3c70bc649a02749e8687721b09ed2e15997f466536b20bb127\":\n return \"test\";\n case \"0x00000000c05a20fbca2bf6ae3affba6af4a74b800b585bf7a4988aba7aea69f6\":\n return \"solo\";\n default:\n return \"custom\";\n }\n }\n \n export function networkToGenesisId(net: string) {\n switch (net) {\n case \"main\":\n return \"0x00000000851caf3cfdb6e899cf5958bfb1ac3413d346d43539627e6be7ec1b4a\";\n case \"test\":\n return \"0x000000000b2bce3c70bc649a02749e8687721b09ed2e15997f466536b20bb127\";\n case \"solo\":\n return \"0x00000000c05a20fbca2bf6ae3affba6af4a74b800b585bf7a4988aba7aea69f6\";\n default:\n return \"\";\n }\n }\n ","\n\n\n\nimport { isSoloNode } from '@/create-connex'\nimport { isSoloNode } from '@/create-connex'\nimport { isSoloNode } from '@/create-connex'\ngenesisIdToNetwork, \n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Navbar.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Navbar.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./Navbar.vue?vue&type=template&id=611d79ae&scoped=true\"\nimport script from \"./Navbar.vue?vue&type=script&lang=ts\"\nexport * from \"./Navbar.vue?vue&type=script&lang=ts\"\nimport style0 from \"./Navbar.vue?vue&type=style&index=0&id=611d79ae&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"611d79ae\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n","import mod from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=0a47c642\"\nimport script from \"./App.vue?vue&type=script&lang=ts\"\nexport * from \"./App.vue?vue&type=script&lang=ts\"\nimport style0 from \"./App.vue?vue&type=style&index=0&id=0a47c642&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import { Vue } from 'vue-property-decorator'\nimport { address as Address } from 'thor-devkit'\nVue.filter('addr', (v: string) => {\n const temp = v.startsWith('0x') ? v : `0x${v}`\n return temp.substring(0, 8) + '…' + temp.substring(temp.length - 8, temp.length)\n})\n\nVue.filter('datetime', (v: number) => {\n return new Date(v).toLocaleString()\n})\n\nVue.filter('toChecksumAddress', (val: string) => {\n if (val) {\n return Address.toChecksumed(val)\n }\n})\n","import { Vue } from 'vue-property-decorator'\nimport { picasso } from '@vechain/picasso'\nimport { VNode } from 'vue'\n\nfunction getImg(el: HTMLElement, address: string): string {\n const svg = picasso(address.toLowerCase())\n if (el.nodeName === 'IMG') {\n return `data:image/svg+xml;utf8,${svg}`\n } else {\n return `no-repeat url('data:image/svg+xml;utf8,${svg}')`\n }\n}\n\nVue.directive('ident', {\n update(el: HTMLElement, binding: any) {\n if (binding.value !== binding.oldValue) {\n if (el.nodeName === 'IMG') {\n const temp = el as HTMLImageElement\n temp.src = getImg(el, binding.value)\n } else {\n el.style.background = getImg(el, binding.value)\n el.style.backgroundSize = 'cover'\n }\n }\n },\n inserted(el: HTMLElement, binding: any) {\n if (binding.value !== binding.oldValue) {\n if (el.nodeName === 'IMG') {\n const temp = el as HTMLImageElement\n temp.src = getImg(el, binding.value)\n } else {\n el.style.background = getImg(el, binding.value)\n el.style.backgroundSize = 'cover'\n }\n }\n }\n})\n\nVue.directive('inview', {\n update(el: HTMLElement, binding: any, vnode: VNode) {\n const SE = document.querySelector(binding.value)\n let scrollEnd: number\n const offsetTop = el.offsetTop\n const elHeight = el.clientHeight\n el.style.transition = 'margin-top 0.15s'\n SE.onscroll = (event: any) => {\n window.clearTimeout(scrollEnd)\n scrollEnd = window.setTimeout(() => {\n const top = event.target.scrollTop\n if (top > offsetTop) {\n const temp = top - (offsetTop - elHeight)\n el.style.marginTop = (temp > 0 ? temp : 0) + 'px'\n } else {\n el.style.marginTop = '0px'\n }\n }, 100)\n }\n }\n})\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _vm._m(0)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticStyle:{\"width\":\"500px\",\"margin\":\"140px auto\",\"font-size\":\"25px\"}},[_vm._v(\" Inspector only supported for the \"),_c('strong',{staticStyle:{\"color\":\"#26a69a\"}},[_vm._v(\"Main\")]),_vm._v(\" or \"),_c('strong',{staticStyle:{\"color\":\"#26a69a\"}},[_vm._v(\"Test\")]),_vm._v(\" net. if you need other networks, please check on \"),_c('a',{attrs:{\"target\":\"_blank\",\"href\":\"https://github.com/vechain/inspector-app\"}},[_c('strong',[_vm._v(\"GitHub\")])])])\n}]\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./NotSupport.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./NotSupport.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./NotSupport.vue?vue&type=template&id=e5bea554\"\nimport script from \"./NotSupport.vue?vue&type=script&lang=ts\"\nexport * from \"./NotSupport.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('section',{staticClass:\"section\"},[_c('div',{staticClass:\"level container\"},[_vm._m(0),_c('div',{staticClass:\"level-right\"},[_c('button',{staticClass:\"button is-primary is-outlined\",staticStyle:{\"margin-right\":\"10px\"},on:{\"click\":_vm.onImport}},[_c('b-icon',{attrs:{\"icon\":\"file-import\"}})],1),_c('button',{staticClass:\"button is-primary is-outlined\",on:{\"click\":_vm.addItem}},[_c('b-icon',{attrs:{\"icon\":\"plus\"}})],1),_c('input',{ref:\"files\",staticClass:\"is-hidden\",attrs:{\"type\":\"file\",\"accept\":\"application/json\"}})])]),(_vm.contracts.length)?_c('div',{staticClass:\"columns section is-variable is-1 is-multiline\",class:{'is-centered': _vm.contracts.length < 4}},_vm._l((_vm.contracts),function(item,index){return _c('div',{key:index,staticClass:\"column is-3-fullhd is-4-desktop is-6-tablet\"},[_c('Contract',{staticClass:\"contract-box\",attrs:{\"item\":item},on:{\"select\":function($event){return _vm.onSelect(item.id)}}},[_vm._t(\"default\",function(){return [_c('p',{staticClass:\"buttons buttons-slot\"},[_c('button',{staticClass:\"button is-primary is-inverted\",on:{\"click\":function($event){$event.stopPropagation();return _vm.edit(item)}}},[_c('b-icon',{attrs:{\"icon\":\"edit\",\"size\":\"is-small\"}})],1),_c('button',{staticClass:\"button is-primary is-inverted\",on:{\"click\":function($event){$event.stopPropagation();return _vm.exportJson(item)}}},[_c('b-icon',{attrs:{\"icon\":\"file-export\",\"size\":\"is-small\"}})],1)])]}),_vm._t(\"default\",function(){return [_c('button',{staticClass:\"buttons-slot button is-danger is-inverted\",on:{\"click\":function($event){$event.stopPropagation();return _vm.remove(item)}}},[_c('b-icon',{attrs:{\"icon\":\"trash-alt\",\"size\":\"is-small\"}})],1)]},{\"slot\":\"right\"})],2)],1)}),0):_vm._e(),(!_vm.isloading && !_vm.contracts.length)?_c('div',{staticClass:\"section\"},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-content has-text-centered is-size-2 has-text-grey-light\"},[_vm._v(\"No contracts here!\")]),_c('div',{staticClass:\"card-footer\"},[_c('a',{staticClass:\"card-footer-item\",on:{\"click\":_vm.addItem}},[_vm._v(\"Add\")])])])])]):_vm._e(),_c('b-modal',{attrs:{\"width\":640,\"canCancel\":['outside'],\"active\":_vm.isModalActive},on:{\"update:active\":function($event){_vm.isModalActive=$event}}},[_c('EditContract',{attrs:{\"item\":_vm.currentItem,\"isImport\":_vm.isImport},on:{\"cancel\":_vm.onCancel,\"finished\":_vm.reload}})],1)],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"level-left\"},[_c('h1',{staticClass:\"title level-item\"},[_vm._v(\"Contracts\")])])\n}]\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('form',[_c('div',{staticClass:\"modal-card\"},[_c('header',{staticClass:\"modal-card-head\"},[_c('span',{staticClass:\"modal-card-title\"},[_vm._v(_vm._s(_vm.context.title))])]),_c('section',{staticClass:\"modal-card-body\"},[_c('b-field',{attrs:{\"type\":_vm.formMessage.name.isError ? 'is-danger' : '',\"message\":_vm.formMessage.name.message,\"label\":\"name\"}},[_c('b-input',{attrs:{\"type\":\"text\"},on:{\"blur\":_vm.checkName},model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, \"name\", $$v)},expression:\"form.name\"}})],1),_c('b-field',{attrs:{\"type\":_vm.formMessage.address.isError ? 'is-danger' : '',\"message\":_vm.formMessage.address.message,\"label\":\"address\"}},[_c('b-input',{attrs:{\"custom-class\":\"is-family-monospace has-text-weight-semibold\",\"message\":_vm.formMessage.address.message,\"type\":\"text\"},on:{\"blur\":_vm.checkAddress},model:{value:(_vm.form.address),callback:function ($$v) {_vm.$set(_vm.form, \"address\", $$v)},expression:\"form.address\"}})],1),_c('b-field',{attrs:{\"type\":_vm.formMessage.abi.isError ? 'is-danger' : '',\"message\":_vm.formMessage.abi.message,\"label\":\"ABI\"}},[_c('b-input',{attrs:{\"message\":_vm.formMessage.abi.message,\"type\":\"textarea\"},on:{\"blur\":_vm.checkABI},model:{value:(_vm.form.abi),callback:function ($$v) {_vm.$set(_vm.form, \"abi\", $$v)},expression:\"form.abi\"}})],1),(_vm.isImport && _vm.isEdit)?_c('b-message',{attrs:{\"type\":\"is-warning\"}},[_vm._v(\" The contract exists, are you sure to override it? \")]):_vm._e()],1),_c('footer',{staticClass:\"modal-card-foot\"},[_c('button',{staticClass:\"button\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.close.apply(null, arguments)}}},[_vm._v(\"Cancel\")]),_c('button',{staticClass:\"button is-primary\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.preventDefault();return _vm.submit.apply(null, arguments)}}},[_vm._v(_vm._s(_vm.context.btn))])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EditContract.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EditContract.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./EditContract.vue?vue&type=template&id=3c19c210\"\nimport script from \"./EditContract.vue?vue&type=script&lang=ts\"\nexport * from \"./EditContract.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"box\",class:{'img-hover': _vm.$listeners.select}},[_c('article',{staticClass:\"media\"},[_c('div',{staticClass:\"media-left\"},[_c('figure',{staticClass:\"image is-64x64\",class:{'could-hover': _vm.$listeners.select}},[_c('img',{directives:[{name:\"ident\",rawName:\"v-ident\",value:(_vm.item.address),expression:\"item.address\"}],attrs:{\"alt\":\"Image\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.$emit('select')}}})])]),_c('div',{staticClass:\"media-content\"},[_c('div',{staticClass:\"content\"},[_c('p',[_c('strong',[_vm._v(_vm._s(_vm.item.name || ''))])]),(_vm.isShort)?_c('p',{staticClass:\"is-family-monospace has-text-weight-semibold display-6\"},[_vm._v(_vm._s(_vm._f(\"addr\")(_vm._f(\"toChecksumAddress\")(_vm.item.address))))]):_c('p',{staticClass:\"is-family-monospace has-text-weight-semibold display-6\"},[_c('a',{attrs:{\"target\":\"_blank\",\"href\":`${_vm.$explorerAccount}${_vm.item.address}`}},[_vm._v(_vm._s(_vm._f(\"toChecksumAddress\")(_vm.item.address)))])])]),_c('nav',{staticClass:\"level\"},[_c('div',{staticClass:\"level-left\"},[_c('div',{staticClass:\"level-item\"},[_vm._t(\"default\")],2)])])]),_c('div',{staticClass:\"media-right\"},[_c('div',{staticClass:\"content\"},[_vm._t(\"right\")],2)])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Contract.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Contract.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./Contract.vue?vue&type=template&id=7247e069&scoped=true\"\nimport script from \"./Contract.vue?vue&type=script&lang=ts\"\nexport * from \"./Contract.vue?vue&type=script&lang=ts\"\nimport style0 from \"./Contract.vue?vue&type=style&index=0&id=7247e069&prod&lang=css&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7247e069\",\n null\n \n)\n\nexport default component.exports","\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Contracts.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Contracts.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./Contracts.vue?vue&type=template&id=49a5fd46&scoped=true\"\nimport script from \"./Contracts.vue?vue&type=script&lang=ts\"\nexport * from \"./Contracts.vue?vue&type=script&lang=ts\"\nimport style0 from \"./Contracts.vue?vue&type=style&index=0&id=49a5fd46&prod&lang=css&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"49a5fd46\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"section\",staticStyle:{\"max-width\":\"1000px\",\"margin\":\"auto\"}},[_c('div',{staticClass:\"container\"},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.sendCode.apply(null, arguments)}}},[_c('b-field',{attrs:{\"type\":{'is-danger': _vm.errors.has('code')},\"message\":_vm.errors.first('code'),\"label\":\"Byte Code\"}},[_c('b-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:({required: true, bytecode: true}),expression:\"{required: true, bytecode: true}\"}],attrs:{\"name\":\"code\",\"rows\":\"10\",\"type\":\"textarea\"},model:{value:(_vm.code),callback:function ($$v) {_vm.code=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"code\"}})],1),_c('b-field',{attrs:{\"type\":{'is-danger': _vm.errors.has('vet')},\"message\":_vm.errors.first('vet'),\"label\":\"Vet\"}},[_c('b-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('vet'),expression:\"'vet'\"}],attrs:{\"placeholder\":\"number (optional)\",\"name\":\"vet\",\"type\":\"text\"},model:{value:(_vm.vet),callback:function ($$v) {_vm.vet=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"vet\"}})],1),_c('b-field',{attrs:{\"label\":\"Valid Hex value (wei)\"}},[_c('span',{staticClass:\"is-family-monospace has-text-weight-semibold\"},[_vm._v(_vm._s(_vm.haxValue))])]),_c('b-field',{attrs:{\"label\":\"Valid Integer value (wei)\"}},[_c('span',{staticClass:\"is-family-monospace has-text-weight-semibold\"},[_vm._v(_vm._s(_vm.numberValue))])]),_c('b-field',{staticClass:\"is-clearfix\"},[_c('button',{staticClass:\"is-pulled-right button is-primary\",attrs:{\"type\":\"submit\"}},[_vm._v(\"Send\")])])],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./DeployContract.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./DeployContract.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./DeployContract.vue?vue&type=template&id=70f315fe\"\nimport script from \"./DeployContract.vue?vue&type=script&lang=ts\"\nexport * from \"./DeployContract.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('section',{staticClass:\"section contract-detail\"},[(_vm.contract)?_c('div',{staticClass:\"container\"},[_c('Contract',{attrs:{\"isShort\":false,\"item\":_vm.contract}},[_c('div',{attrs:{\"slot\":\"right\"},slot:\"right\"},[_c('b-button',{attrs:{\"expanded\":\"\",\"size\":\"is-small\",\"type\":\"is-info\"},on:{\"click\":_vm.toExplorer}},[_vm._v(\"Explorer\")]),_c('br'),_c('b-button',{attrs:{\"type\":\"is-light\",\"tag\":\"a\",\"size\":\"is-small\",\"href\":\"https://github.com/vechain/b32/new/master/ABIs\",\"target\":\"_blank\"}},[_vm._v(\" Submit JSON ABI \")])],1)]),_c('section',{staticStyle:{\"margin-top\":\"20px\"}},[_c('b-field',{attrs:{\"grouped\":\"\"}},[_c('b-field',{attrs:{\"expanded\":\"\"}},[_c('b-field',{staticClass:\"is-pulled-right\"},[_c('b-autocomplete',{attrs:{\"rounded\":\"\",\"data\":_vm.filterList,\"placeholder\":\"Func/Event Name\"},on:{\"select\":_vm.onSearchSelect},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_c('div',[_c('span',{staticClass:\"is-size-6\"},[_vm._v(_vm._s(props.option.name))])]),_c('span',{staticClass:\"has-text-grey\"},[_vm._v(_vm._s(props.option.type))])]}}],null,false,1256192932),model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:\"name\"}},[_c('template',{slot:\"empty\"},[_vm._v(\"No results found\")])],2)],1)],1)],1),_c('b-tabs',{staticClass:\"block\",model:{value:(_vm.tabIndex),callback:function ($$v) {_vm.tabIndex=$$v},expression:\"tabIndex\"}},_vm._l((_vm.tabs),function(item,index){return _c('b-tab-item',{key:index,attrs:{\"visible\":item.visible}},[_c('span',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\" \"+_vm._s(item.text)+\" \"),(item.count)?_c('span',{staticClass:\"is-size-7\"},[_vm._v(\"(\"+_vm._s(item.count)+\")\")]):_vm._e()])])}),1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tabIndex === 0),expression:\"tabIndex === 0\"}]},_vm._l((_vm.readList),function(item,index){return _c('FunctionCard',{key:index,ref:item.name,refInFor:true,staticStyle:{\"margin-bottom\":\"20px\"},attrs:{\"id\":item.name,\"address\":_vm.contract.address,\"item\":item}})}),1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tabIndex === 1),expression:\"tabIndex === 1\"}]},_vm._l((_vm.writeList),function(item,index){return _c('FunctionCard',{key:index,ref:item.name,refInFor:true,staticStyle:{\"margin-bottom\":\"20px\"},attrs:{\"address\":_vm.contract.address,\"item\":item}})}),1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tabIndex === 2),expression:\"tabIndex === 2\"}]},[_c('DescCard',{staticStyle:{\"margin-bottom\":\"20px\"},attrs:{\"item\":_vm.abi,\"title\":\"ABI\"}}),(_vm.code)?_c('DescCard',{staticClass:\"code-pre\",staticStyle:{\"margin-bottom\":\"20px\"},attrs:{\"item\":_vm.code,\"title\":\"Code\"}}):_vm._e()],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tabIndex === 3),expression:\"tabIndex === 3\"}]},_vm._l((_vm.eventList),function(item,index){return _c('EventCard',{key:index,staticStyle:{\"margin-bottom\":\"20px\"},attrs:{\"address\":_vm.contract.address,\"item\":item,\"title\":item.name}})}),1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tabIndex === 4),expression:\"tabIndex === 4\"}]},[_c('FallbackCard',{attrs:{\"fb\":_vm.fb}})],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tabIndex === 5),expression:\"tabIndex === 5\"}]},_vm._l((_vm.prList),function(item,index){return _c('FunctionCard',{key:index,ref:item.name,refInFor:true,staticStyle:{\"margin-bottom\":\"20px\"},attrs:{\"prototype\":true,\"address\":_vm.contract.address,\"item\":item}})}),1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tabIndex === 6),expression:\"tabIndex === 6\"}]},_vm._l((_vm.pwList),function(item,index){return _c('FunctionCard',{key:index,ref:item.name,refInFor:true,staticStyle:{\"margin-bottom\":\"20px\"},attrs:{\"prototype\":true,\"address\":_vm.contract.address,\"item\":item}})}),1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tabIndex === 7),expression:\"tabIndex === 7\"}]},_vm._l((_vm.peList),function(item,index){return _c('EventCard',{key:index,ref:item.name,refInFor:true,staticStyle:{\"margin-bottom\":\"20px\"},attrs:{\"prototype\":true,\"address\":_vm.contract.address,\"item\":item}})}),1)],1)],1):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('Panel',{attrs:{\"tabs\":_vm.tabs,\"title\":_vm.item.name},model:{value:(_vm.activeTab),callback:function ($$v) {_vm.activeTab=$$v},expression:\"activeTab\"}},[_c('template',{slot:\"panel-content\"},[_c('form',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.activeTab === _vm.tabs[0]),expression:\"activeTab === tabs[0]\"}],on:{\"reset\":function($event){if($event.target !== $event.currentTarget)return null;$event.preventDefault();return _vm.reset.apply(null, arguments)}}},[_c('b-field',{staticClass:\"item-content\",attrs:{\"horizontal\":\"\",\"message\":\"Special address to call the method, it's not the param of the method\",\"label\":\"Caller\"}},[_c('b-input',{attrs:{\"custom-class\":\"is-family-monospace has-text-weight-semibold\",\"placeholder\":\"Optional: Address\"},model:{value:(_vm.caller),callback:function ($$v) {_vm.caller=$$v},expression:\"caller\"}})],1),_vm._l((_vm.item.inputs),function(v,index){return _c('b-field',{key:index,staticClass:\"item-content\",attrs:{\"horizontal\":\"\",\"label\":v.name}},[(v.type === 'bool')?_c('div',[_c('b-radio',{attrs:{\"name\":\"True\",\"native-value\":true},model:{value:(_vm.params[index]),callback:function ($$v) {_vm.$set(_vm.params, index, $$v)},expression:\"params[index]\"}},[_vm._v(\" True \")]),_c('b-radio',{attrs:{\"name\":\"False\",\"native-value\":false},model:{value:(_vm.params[index]),callback:function ($$v) {_vm.$set(_vm.params, index, $$v)},expression:\"params[index]\"}},[_vm._v(\" False \")])],1):_c('b-input',{ref:\"input\",refInFor:true,attrs:{\"custom-class\":\"is-family-monospace has-text-weight-semibold\",\"required\":\"\",\"name\":v.name,\"readonly\":(_vm.prototype && v.name === '_self'),\"placeholder\":v.type},model:{value:(_vm.params[index]),callback:function ($$v) {_vm.$set(_vm.params, index, $$v)},expression:\"params[index]\"}})],1)}),(_vm.payable)?_c('b-field',{staticClass:\"item-content\",attrs:{\"horizontal\":\"\",\"label\":\"value\"}},[_c('b-input',{attrs:{\"custom-class\":\"is-family-monospace has-text-weight-semibold\",\"type\":\"text\",\"placeholder\":\"number(vet)\"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"value\"}})],1):_vm._e(),_c('b-field',{staticClass:\"item-content\",attrs:{\"horizontal\":\"\"}},[_c('div',{staticClass:\"buttons has-addons\"},[_c('button',{staticClass:\"button is-rounded is-primary is-outlined\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.addShortCut(_vm.item.name)}}},[_vm._v(\"Shortcut\")]),(_vm.couldExc)?_c('button',{staticClass:\"button is-rounded is-primary is-outlined\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.executeFC.apply(null, arguments)}}},[_vm._v(\"Execute\")]):_vm._e(),_c('button',{staticClass:\"button is-rounded is-primary is-outlined\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.callFC.apply(null, arguments)}}},[_vm._v(\"Call\")]),(_vm.params.length)?_c('button',{staticClass:\"button is-rounded is-primary is-outlined\",attrs:{\"type\":\"reset\"}},[_vm._v(\"Reset\")]):_vm._e()])]),(_vm.request)?_c('b-field',{attrs:{\"label\":\"Request\"}},[_c('pre',{staticStyle:{\"width\":\"100%\",\"white-space\":\"break-spaces\",\"word-break\":\"break-all\"}},[_vm._v(_vm._s(_vm.request))])]):_vm._e(),(_vm.resp)?_c('b-field',{attrs:{\"label\":\"Response\"}},[_c('pre',{staticStyle:{\"width\":\"100%\",\"white-space\":\"break-spaces\",\"word-break\":\"break-all\"}},[_vm._v(_vm._s(_vm.resp))])]):_vm._e()],2),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.activeTab === _vm.tabs[1]),expression:\"activeTab === tabs[1]\"}]},[_c('pre',[_vm._v(_vm._s(_vm.item))])])])],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('b-collapse',{staticClass:\"panel\",attrs:{\"open\":_vm.isOpen},on:{\"update:open\":_vm.onupdate},scopedSlots:_vm._u([{key:\"trigger\",fn:function(props){return _c('div',{staticClass:\"panel-heading\"},[_c('div',{staticClass:\"level\"},[_c('div',{staticClass:\"level-left\"},[_c('div',{staticClass:\"level-item\"},[_c('strong',[_vm._v(_vm._s(_vm.title))])]),_c('div',{staticClass:\"level-item\"})]),_c('div',{staticClass:\"level-right\"},[_c('div',{staticClass:\"level-item\"},[_c('b-icon',{attrs:{\"type\":\"is-primary\",\"size\":\"is-small\",\"icon\":props.open ? 'caret-up' : 'caret-down'}})],1)])])])}}])},[(_vm.tabs.length > 1)?_c('p',{staticClass:\"panel-tabs\",staticStyle:{\"justify-content\":\"left\"}},_vm._l((_vm.tabs),function(item,index){return _c('a',{key:index,class:{'is-active': _vm.activeTab === item},on:{\"click\":function($event){$event.stopPropagation();return _vm.switchTab(item)}}},[_vm._v(_vm._s(item))])}),0):_vm._e(),_c('div',{staticClass:\"panel-block is-block\"},[_vm._t(\"panel-content\")],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Panel.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Panel.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./Panel.vue?vue&type=template&id=699eb682\"\nimport script from \"./Panel.vue?vue&type=script&lang=ts\"\nexport * from \"./Panel.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import { Vue, Component, Prop } from 'vue-property-decorator'\n@Component\nexport default class AccountCall extends Vue {\n @Prop({ default: null })\n public item!: ABI.FunctionItem | any\n @Prop() public address!: string\n\n @Prop({ default: false })\n public prototype?: boolean\n\n public value: string | null = null\n public resp: any = null\n public request: any = null\n public method: Connex.Thor.Account.Method | null = null\n public params: string[] = new Array(this.item.inputs.length)\n\n public caller?: string = ''\n\n public callFC() {\n this.resetOutputs()\n if (this.validate()) {\n this.readMethod()\n }\n }\n public reset() {\n const inputs = this.$refs.input as any[] || []\n inputs.forEach((element) => {\n element.$parent.newType = ''\n element.$parent.newMessage = ''\n })\n this.params.forEach((item, index) => {\n if (!(this.prototype && this.item.inputs[index].name === '_self')) {\n this.$set(this.params, index, '')\n }\n })\n\n this.resetOutputs()\n }\n public resetOutputs() {\n this.request = null\n this.resp = null\n }\n public executeFC() {\n this.resetOutputs()\n if (this.validate()) {\n this.writeMethod()\n }\n }\n\n public initMethod(address: string, abi: object) {\n const account = this.$connex.thor.account(this.prototype\n ? '0x000000000000000000000050726f746f74797065'\n : address.toLowerCase())\n this.method = account.method(abi)\n }\n\n private validate() {\n const inputs = this.$refs.input as any[] || []\n inputs.forEach((element) => {\n element.checkHtml5Validity()\n })\n return !inputs.some((item) => {\n return item.isValid === false\n })\n }\n\n get payable() {\n return this.item.payable || this.item.stateMutability === 'payable'\n }\n\n public get hexValue() {\n return BN(this.payable ? this.value || 0 : 0).multipliedBy(1e18).toFixed(0).toString(16)\n }\n\n private async readMethod() {\n try {\n const params: any[] = this.params.map((item: string, index: number) => {\n return this.item.inputs[index].type.endsWith(']') ? JSON.parse(item) : item\n })\n this.request = this.method!.value(this.hexValue).asClause(...params)\n if (this.caller) {\n this.resp = await this.method!.value(this.hexValue).caller(this.caller).call(...params)\n } else {\n this.resp = await this.method!.value(this.hexValue).call(...params)\n }\n } catch (error: any) {\n BUS.$alert(error.message)\n }\n }\n private async writeMethod() {\n try {\n const params: any[] = this.params.map((item: string, index: number) => {\n return this.item.inputs[index].type.endsWith(']') ? JSON.parse(item) : item\n })\n const clause = this.method!.value(this.hexValue).asClause(...params)\n this.request = clause\n\n this.$connex.vendor\n .sign('tx', [\n {\n ...clause,\n comment: this.item.name\n }\n ])\n .comment(`inspect-${this.address}`)\n .request()\n } catch (error: any) {\n BUS.$alert(error.message)\n }\n }\n}\n","\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./FunctionCard.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./FunctionCard.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./FunctionCard.vue?vue&type=template&id=69031e6a&scoped=true\"\nimport script from \"./FunctionCard.vue?vue&type=script&lang=ts\"\nexport * from \"./FunctionCard.vue?vue&type=script&lang=ts\"\nimport style0 from \"./FunctionCard.vue?vue&type=style&index=0&id=69031e6a&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"69031e6a\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('Panel',{attrs:{\"title\":\"Fallback\"}},[_c('template',{slot:\"panel-content\"},[_c('pre',[_vm._v(_vm._s(_vm.fb))])])],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./FallbackCard.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./FallbackCard.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./FallbackCard.vue?vue&type=template&id=7c120820\"\nimport script from \"./FallbackCard.vue?vue&type=script&lang=ts\"\nexport * from \"./FallbackCard.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('Panel',{attrs:{\"tabs\":_vm.tabs,\"title\":_vm.item.name},model:{value:(_vm.activeTab),callback:function ($$v) {_vm.activeTab=$$v},expression:\"activeTab\"}},[_c('template',{slot:\"panel-content\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.activeTab === _vm.tabs[0]),expression:\"activeTab === tabs[0]\"}]},[_vm._l((_vm.filters),function(v,index){return _c('b-field',{key:index,staticClass:\"item-content\",attrs:{\"horizontal\":\"\",\"label\":v.name}},[_c('b-input',{ref:\"input\",refInFor:true,attrs:{\"placeholder\":v.type},model:{value:(_vm.params[v.name]),callback:function ($$v) {_vm.$set(_vm.params, v.name, $$v)},expression:\"params[v.name]\"}})],1)}),_c('b-field',{staticClass:\"item-content\",attrs:{\"horizontal\":\"\"}},[_c('div',{staticClass:\"buttons has-addons\"},[_c('button',{staticClass:\"button is-rounded is-primary is-outlined\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.addFilter(_vm.item.name)}}},[_vm._v(\"As a view\")]),_c('button',{staticClass:\"button is-rounded is-primary is-outlined\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.onRefresh(0)}}},[_vm._v(\"Execute\")]),(_vm.filters.length)?_c('button',{staticClass:\"button is-rounded is-primary is-outlined\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.reset}},[_vm._v(\"Reset\")]):_vm._e()])])],2),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.activeTab === _vm.tabs[1]),expression:\"activeTab === tabs[1]\"}]},[_c('pre',[_vm._v(_vm._s(_vm.item))])]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.activeTab === _vm.tabs[2]),expression:\"activeTab === tabs[2]\"}]},[_c('nav',{staticClass:\"navbar is-transparent\",staticStyle:{\"margin-bottom\":\"2px\"}},[_c('div',{staticClass:\"navbar-item\"},[_c('div',{staticClass:\"buttons has-addons\"},[_c('b-button',{staticClass:\"is-primary\",attrs:{\"tag\":\"button\",\"icon-left\":\"sync-alt\"},on:{\"click\":_vm.onRefresh}}),_c('b-button',{staticClass:\"is-primary\",attrs:{\"tag\":\"button\",\"disabled\":this.page < 1,\"icon-left\":\"chevron-left\"},on:{\"click\":_vm.onPrev}}),_c('b-button',{staticClass:\"is-primary\",attrs:{\"tag\":\"button\",\"disabled\":_vm.list.length < 5,\"icon-left\":\"chevron-right\"},on:{\"click\":_vm.onNext}})],1)]),_c('div',{staticClass:\"navbar-item\"},[_vm._v(_vm._s(_vm.ranges))])]),_c('b-loading',{attrs:{\"is-full-page\":true,\"active\":_vm.isLoading},on:{\"update:active\":function($event){_vm.isLoading=$event}}}),_vm._l((_vm.list),function(event,i){return [_c('EventShowCard',{key:_vm.page * 5 + i,attrs:{\"item\":event,\"params\":_vm.item.inputs}},[_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"#\"+_vm._s(_vm.page * 5 + i + 1))])])]})],2)])],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"box\"},[_c('div',[_c('div',{staticClass:\"level has-background-light\",staticStyle:{\"margin-bottom\":\"10px\",\"padding\":\"5px 10px\",\"border-radius\":\"5px\"}},[_c('div',{staticClass:\"level-left\"},[_c('span',{staticClass:\"is-family-secondary display-6 has-text-black-ter has-text-weight-semibold\"},[_vm._t(\"title\")],2),_c('span',{staticClass:\"is-family-secondary display-6 has-text-black-ter has-text-weight-semibold\",staticStyle:{\"margin-left\":\"20px\"}},[_vm._v(\" #Block \"),_c('a',{attrs:{\"target\":\"_blank\",\"href\":`${_vm.$explorerBlock}${_vm.item.meta.blockID}`}},[_vm._v(_vm._s(_vm.item.meta.blockNumber))])]),_c('span',{staticClass:\"is-family-secondary display-6\",staticStyle:{\"margin-left\":\"20px\"}},[_vm._v(_vm._s(_vm._f(\"datetime\")(_vm.item.meta.blockTimestamp * 1000)))])]),_c('div',{staticClass:\"level-right\"},[_c('a',{staticClass:\"is-family-monospace display-6 has-text-weight-semibold\",attrs:{\"target\":\"_blank\",\"href\":`${_vm.$explorerTx}${_vm.item.meta.txID}`}},[_vm._v(_vm._s(_vm._f(\"addr\")(_vm.item.meta.txID)))])])]),_c('b-tabs',{staticClass:\"my-content\",attrs:{\"animated\":false,\"size\":\"is-small\",\"type\":\"is-toggle\"},model:{value:(_vm.tabIndex),callback:function ($$v) {_vm.tabIndex=$$v},expression:\"tabIndex\"}},[_c('b-tab-item',{attrs:{\"label\":\"Decoded\"}},[_c('b-table',{attrs:{\"data\":_vm.data},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_c('b-table-column',{attrs:{\"width\":\"20\",\"label\":\"#\",\"field\":\"id\"}},[_vm._v(_vm._s(props.row.id))]),_c('b-table-column',{attrs:{\"width\":\"170\",\"label\":\"Name\",\"field\":\"name\"}},[_vm._v(_vm._s(props.row.name))]),_c('b-table-column',{attrs:{\"width\":\"220\",\"label\":\"Type\",\"field\":\"type\"}},[_vm._v(\" \"+_vm._s(props.row.type)+\" \"),(props.row.indexed)?_c('sup',{staticClass:\"has-background-primary has-text-light\",staticStyle:{\"padding\":\"2px 5px\",\"border-radius\":\"3px\",\"font-size\":\"11px\"}},[_vm._v(\"indexed\")]):_vm._e()]),_c('b-table-column',{staticStyle:{\"max-width\":\"380px\",\"word-wrap\":\"break-word\"},attrs:{\"label\":\"Data\",\"field\":\"value\"}},[(props.row.type === 'address')?_c('a',{staticClass:\"has-text-weight-semibold is-family-monospace display-6\",attrs:{\"target\":\"_blank\",\"href\":`${_vm.$explorerAccount}${props.row.value}`}},[_vm._v(_vm._s(_vm._f(\"toChecksumAddress\")(props.row.value)))]):_c('span',{staticClass:\"has-text-weight-semibold is-family-monospace display-6 has-text-grey\"},[_vm._v(_vm._s(props.row.value))])])]}}])})],1),_c('b-tab-item',{attrs:{\"label\":\"Raw\"}},[_c('div',[_c('b-field',{attrs:{\"custom-class\":\"my-label\",\"label-position\":\"inside\",\"horizontal\":\"\",\"label\":\"Topics\"}},[_c('ul',_vm._l((_vm.item.topics),function(topic,i){return _c('li',{key:_vm.item.meta.blockID + i,staticClass:\"is-family-monospace display-6 has-text-grey has-text-weight-semibold\"},[_c('span',[_vm._v(\"[\"+_vm._s(i)+\"]\")]),_vm._v(\" \"+_vm._s(topic)+\" \")])}),0)]),_c('b-field',{attrs:{\"custom-class\":\"my-label\",\"label-position\":\"on-border\",\"horizontal\":\"\",\"label\":\"Data\"}},[_c('p',{staticClass:\"has-text-weight-semibold has-text-grey display-6 is-family-monospace\",staticStyle:{\"word-break\":\"break-all\"}},[_vm._v(_vm._s(_vm.item.data))])])],1)])],1)],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EventShowCard.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EventShowCard.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./EventShowCard.vue?vue&type=template&id=3e44b4ae\"\nimport script from \"./EventShowCard.vue?vue&type=script&lang=ts\"\nexport * from \"./EventShowCard.vue?vue&type=script&lang=ts\"\nimport style0 from \"./EventShowCard.vue?vue&type=style&index=0&id=3e44b4ae&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EventCard.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EventCard.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./EventCard.vue?vue&type=template&id=dfb6d268&scoped=true\"\nimport script from \"./EventCard.vue?vue&type=script&lang=ts\"\nexport * from \"./EventCard.vue?vue&type=script&lang=ts\"\nimport style0 from \"./EventCard.vue?vue&type=style&index=0&id=dfb6d268&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"dfb6d268\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('Panel',{attrs:{\"title\":_vm.$attrs.title}},[_c('template',{slot:\"panel-content\"},[_c('pre',{staticStyle:{\"max-height\":\"500px\",\"overflow\":\"auto\"}},[_vm._v(_vm._s(_vm.item))])])],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./DescCard.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./DescCard.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./DescCard.vue?vue&type=template&id=2d6f165e\"\nimport script from \"./DescCard.vue?vue&type=script&lang=ts\"\nexport * from \"./DescCard.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export default [\n {\n constant: false,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_newMaster',\n type: 'address'\n }\n ],\n name: 'setMaster',\n outputs: [],\n payable: false,\n stateMutability: 'nonpayable',\n type: 'function'\n },\n {\n constant: true,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_user',\n type: 'address'\n }\n ],\n name: 'isUser',\n outputs: [\n {\n name: '',\n type: 'bool'\n }\n ],\n payable: false,\n stateMutability: 'view',\n type: 'function'\n },\n {\n constant: true,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_key',\n type: 'bytes32'\n }\n ],\n name: 'storageFor',\n outputs: [\n {\n name: '',\n type: 'bytes32'\n }\n ],\n payable: false,\n stateMutability: 'view',\n type: 'function'\n },\n {\n constant: true,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_blockNumber',\n type: 'uint256'\n }\n ],\n name: 'energy',\n outputs: [\n {\n name: '',\n type: 'uint256'\n }\n ],\n payable: false,\n stateMutability: 'view',\n type: 'function'\n },\n {\n constant: false,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_user',\n type: 'address'\n }\n ],\n name: 'removeUser',\n outputs: [],\n payable: false,\n stateMutability: 'nonpayable',\n type: 'function'\n },\n {\n constant: true,\n inputs: [\n {\n name: '_self',\n type: 'address'\n }\n ],\n name: 'currentSponsor',\n outputs: [\n {\n name: '',\n type: 'address'\n }\n ],\n payable: false,\n stateMutability: 'view',\n type: 'function'\n },\n {\n constant: false,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_credit',\n type: 'uint256'\n },\n {\n name: '_recoveryRate',\n type: 'uint256'\n }\n ],\n name: 'setCreditPlan',\n outputs: [],\n payable: false,\n stateMutability: 'nonpayable',\n type: 'function'\n },\n {\n constant: false,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_sponsor',\n type: 'address'\n }\n ],\n name: 'selectSponsor',\n outputs: [],\n payable: false,\n stateMutability: 'nonpayable',\n type: 'function'\n },\n {\n constant: true,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_blockNumber',\n type: 'uint256'\n }\n ],\n name: 'balance',\n outputs: [\n {\n name: '',\n type: 'uint256'\n }\n ],\n payable: false,\n stateMutability: 'view',\n type: 'function'\n },\n {\n constant: false,\n inputs: [\n {\n name: '_self',\n type: 'address'\n }\n ],\n name: 'sponsor',\n outputs: [],\n payable: false,\n stateMutability: 'nonpayable',\n type: 'function'\n },\n {\n constant: true,\n inputs: [\n {\n name: '_self',\n type: 'address'\n }\n ],\n name: 'creditPlan',\n outputs: [\n {\n name: 'credit',\n type: 'uint256'\n },\n {\n name: 'recoveryRate',\n type: 'uint256'\n }\n ],\n payable: false,\n stateMutability: 'view',\n type: 'function'\n },\n {\n constant: false,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_user',\n type: 'address'\n }\n ],\n name: 'addUser',\n outputs: [],\n payable: false,\n stateMutability: 'nonpayable',\n type: 'function'\n },\n {\n constant: true,\n inputs: [\n {\n name: '_self',\n type: 'address'\n }\n ],\n name: 'hasCode',\n outputs: [\n {\n name: '',\n type: 'bool'\n }\n ],\n payable: false,\n stateMutability: 'view',\n type: 'function'\n },\n {\n constant: true,\n inputs: [\n {\n name: '_self',\n type: 'address'\n }\n ],\n name: 'master',\n outputs: [\n {\n name: '',\n type: 'address'\n }\n ],\n payable: false,\n stateMutability: 'view',\n type: 'function'\n },\n {\n constant: true,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_user',\n type: 'address'\n }\n ],\n name: 'userCredit',\n outputs: [\n {\n name: '',\n type: 'uint256'\n }\n ],\n payable: false,\n stateMutability: 'view',\n type: 'function'\n },\n {\n constant: false,\n inputs: [\n {\n name: '_self',\n type: 'address'\n }\n ],\n name: 'unsponsor',\n outputs: [],\n payable: false,\n stateMutability: 'nonpayable',\n type: 'function'\n },\n {\n constant: true,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_sponsor',\n type: 'address'\n }\n ],\n name: 'isSponsor',\n outputs: [\n {\n name: '',\n type: 'bool'\n }\n ],\n payable: false,\n stateMutability: 'view',\n type: 'function'\n }\n]\n","export default [\n {\n anonymous: false,\n inputs: [\n {\n indexed: false,\n name: 'newMaster',\n type: 'address'\n }\n ],\n name: '$Master',\n type: 'event'\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: false,\n name: 'credit',\n type: 'uint256'\n },\n {\n indexed: false,\n name: 'recoveryRate',\n type: 'uint256'\n }\n ],\n name: '$CreditPlan',\n type: 'event'\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'user',\n type: 'address'\n },\n {\n indexed: false,\n name: 'action',\n type: 'bytes32'\n }\n ],\n name: '$User',\n type: 'event'\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'sponsor',\n type: 'address'\n },\n {\n indexed: false,\n name: 'action',\n type: 'bytes32'\n }\n ],\n name: '$Sponsor',\n type: 'event'\n }\n]\n","import { Vue, Component } from 'vue-property-decorator'\nimport prototype from '../abis/prototype'\nimport prototypeEvent from '../abis/prototypeEvent'\n@Component\nexport default class Prototype extends Vue {\n public protoTabs: Array<{ text: string; count: number | '', visible: boolean }> = [{\n text: 'Prototype-Read',\n count: 10,\n visible: true\n },\n {\n text: 'Prototype-Write',\n count: 7,\n visible: true\n },\n {\n text: 'Prototype-Event',\n count: 4,\n visible: true\n }]\n\n private _abi?: ABI.FunctionItem[]\n private _abiEvent?: ABI.EventItem[]\n\n get prList() {\n return this._abi!.filter((item: ABI.FunctionItem) => {\n return item.type === 'function' && item.constant\n })\n }\n\n get pwList() {\n return this._abi!.filter((item: ABI.FunctionItem) => {\n return item.type === 'function' && !item.constant\n })\n }\n\n get peList() {\n return this._abiEvent\n }\n\n public initAbi() {\n this._abi = prototype as ABI.FunctionItem[]\n this._abiEvent = prototypeEvent as ABI.EventItem[]\n }\n}\n","\n\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ContractDetail.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ContractDetail.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./ContractDetail.vue?vue&type=template&id=285b673e\"\nimport script from \"./ContractDetail.vue?vue&type=script&lang=ts\"\nexport * from \"./ContractDetail.vue?vue&type=script&lang=ts\"\nimport style0 from \"./ContractDetail.vue?vue&type=style&index=0&id=285b673e&prod&scope=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('section',[_c('div',{staticClass:\"log-container\"},[_c('div',{staticClass:\"columns is-multiline\"},[_vm._l((_vm.params),function(v,index){return _c('div',{key:index,staticClass:\"column is-one-third\"},[_c('b-field',{attrs:{\"label\":v.name}},[_c('b-input',{attrs:{\"placeholder\":v.type},model:{value:(_vm.conditions[v.name]),callback:function ($$v) {_vm.$set(_vm.conditions, v.name, $$v)},expression:\"conditions[v.name]\"}})],1)],1)}),_c('div',{staticClass:\"column is-one-third\"},[_c('b-field',{attrs:{\"label\":\"Order\"}},[_c('b-select',{attrs:{\"expanded\":\"\",\"placeholder\":\"Order\"},model:{value:(_vm.page.order),callback:function ($$v) {_vm.$set(_vm.page, \"order\", $$v)},expression:\"page.order\"}},[_c('option',{domProps:{\"value\":false}},[_vm._v(\"ASC\")]),_c('option',{domProps:{\"value\":true}},[_vm._v(\"DESC\")])])],1)],1)],2),_c('nav',{staticClass:\"navbar is-transparent\",staticStyle:{\"margin-bottom\":\"2px\",\"z-index\":\"20\"}},[_c('div',{staticClass:\"navbar-start\"},[_c('div',{staticClass:\"navbar-item\",staticStyle:{\"padding-left\":\"0\"}},[_c('b-field',{staticStyle:{\"width\":\"350px\"},attrs:{\"horizontal\":\"\"}},[_c('template',{slot:\"label\"},[_c('div',{staticStyle:{\"width\":\"100px\",\"text-align\":\"left\"}},[_vm._v(\"Block Range\")])]),_c('b-input',{attrs:{\"placeholder\":\"from\"},model:{value:(_vm.blockFrom),callback:function ($$v) {_vm.blockFrom=$$v},expression:\"blockFrom\"}}),_c('b-input',{attrs:{\"placeholder\":\"to\"},model:{value:(_vm.blockTo),callback:function ($$v) {_vm.blockTo=$$v},expression:\"blockTo\"}})],2)],1)]),_c('div',{staticClass:\"navbar-end\"},[_c('div',{staticClass:\"navbar-item\"},[_vm._v(_vm._s(_vm.ranges))]),_c('div',{staticClass:\"navbar-item\"},[_c('div',{staticClass:\"buttons has-addons\"},[_c('button',{staticClass:\"button\",attrs:{\"disabled\":_vm.page.num < 1},on:{\"click\":_vm.prePage}},[_c('b-icon',{attrs:{\"icon\":\"angle-left\"}})],1),_c('button',{staticClass:\"button\",attrs:{\"disabled\":_vm.list.length < _vm.page.size},on:{\"click\":_vm.nextPage}},[_c('b-icon',{attrs:{\"icon\":\"angle-right\"}})],1)])]),_c('div',{staticClass:\"navbar-item\"},[_c('button',{staticClass:\"button is-primary is-outlined\",on:{\"click\":_vm.search}},[_vm._v(\"Search\")])])])]),_c('b-loading',{staticClass:\"log-loading\",attrs:{\"is-full-page\":false,\"active\":_vm.isLoading,\"can-cancel\":true},on:{\"update:active\":function($event){_vm.isLoading=$event}}}),_vm._l((_vm.list),function(item,i){return [_c('EventShowCard',{key:item.meta.txID + _vm.page.num,attrs:{\"item\":item,\"params\":_vm.abi.inputs}},[_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"#\"+_vm._s(_vm.page.num * _vm.page.size + i + 1))])])]})],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./FilterView.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./FilterView.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./FilterView.vue?vue&type=template&id=1219d4b9&scoped=true\"\nimport script from \"./FilterView.vue?vue&type=script&lang=ts\"\nexport * from \"./FilterView.vue?vue&type=script&lang=ts\"\nimport style0 from \"./FilterView.vue?vue&type=style&index=0&id=1219d4b9&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1219d4b9\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('section',{staticClass:\"section\"},[_c('div',{staticClass:\"container\"},[_c('b-table',{attrs:{\"detailed\":\"\",\"per-page\":_vm.perPage,\"current-page\":_vm.currentPage,\"data\":_vm.list,\"paginated\":\"\",\"backend-pagination\":\"\",\"total\":_vm.count},on:{\"update:currentPage\":function($event){_vm.currentPage=$event},\"update:current-page\":function($event){_vm.currentPage=$event},\"page-change\":_vm.onPageChange},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_c('b-table-column',{attrs:{\"centered\":\"\",\"label\":\"ID\"}},[_vm._v(_vm._s(props.row.id))]),_c('b-table-column',{attrs:{\"label\":\"Name\"}},[_c('router-link',{attrs:{\"to\":{\n name: 'filter_view',\n params: {\n id: props.row.id\n }\n }}},[_vm._v(_vm._s(props.row.name))])],1),_c('b-table-column',{attrs:{\"label\":\"Contract\"}},[_c('router-link',{attrs:{\"to\":{\n name: 'contract_detail',\n query: {\n address: props.row.address\n }\n }}},[_vm._v(\" \"+_vm._s(props.row.contractName)+\" \")]),_c('b-tooltip',{attrs:{\"label\":\"Prototype\"}},[(props.row.fromPrototype)?_c('b-icon',{staticStyle:{\"margin-left\":\"5px\"},attrs:{\"icon\":\"code-branch\",\"size\":\"is-small\"}}):_vm._e()],1)],1),_c('b-table-column',{attrs:{\"label\":\"Address\"}},[_c('span',{staticClass:\"is-family-monospace has-text-weight-semibold\"},[_vm._v(_vm._s(_vm._f(\"addr\")(_vm._f(\"toChecksumAddress\")(props.row.address))))])]),_c('b-table-column',{attrs:{\"centered\":\"\",\"label\":\"Operations\"}},[_c('div',{staticClass:\"buttons has-addons is-centered\"},[_c('button',{staticClass:\"button is-rounded control is-small\",on:{\"click\":function($event){return _vm.edit(props.row)}}},[_c('b-icon',{attrs:{\"size\":\"is-small\",\"icon\":\"edit\"}})],1),_c('button',{staticClass:\"button is-rounded control is-small\",on:{\"click\":function($event){return _vm.remove(props.row)}}},[_c('b-icon',{attrs:{\"size\":\"is-small\",\"icon\":\"trash-alt\"}})],1)])])]}},{key:\"detail\",fn:function(props){return [_c('pre',[_vm._v(_vm._s(props.row.abi))])]}}])})],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./FilterMgt.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./FilterMgt.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./FilterMgt.vue?vue&type=template&id=7b7210dc\"\nimport script from \"./FilterMgt.vue?vue&type=script&lang=ts\"\nexport * from \"./FilterMgt.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('section',{staticClass:\"section\"},[_c('div',{staticClass:\"container\"},[_c('b-field',{attrs:{\"grouped\":\"\"}},[_c('b-field',{attrs:{\"expanded\":\"\"}},[_c('b-field',{staticClass:\"is-pulled-right\"},[_c('b-input',{attrs:{\"icon\":\"search\",\"type\":\"text\",\"placeholder\":\"Name\"}}),_c('p',{staticClass:\"control\"},[_c('button',{staticClass:\"button is-primary\"},[_vm._v(\"Search\")])])],1)],1)],1),_c('b-table',{attrs:{\"detailed\":\"\",\"per-page\":_vm.perPage,\"current-page\":_vm.currentPage,\"data\":_vm.list,\"paginated\":\"\",\"backend-pagination\":\"\",\"total\":_vm.count},on:{\"update:currentPage\":function($event){_vm.currentPage=$event},\"update:current-page\":function($event){_vm.currentPage=$event},\"page-change\":_vm.onPageChange},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_c('b-table-column',{attrs:{\"centered\":\"\",\"label\":\"ID\"}},[_vm._v(_vm._s(props.row.id))]),_c('b-table-column',{attrs:{\"label\":\"Name\"}},[_vm._v(_vm._s(props.row.name))]),_c('b-table-column',{attrs:{\"label\":\"Contract\"}},[_c('router-link',{attrs:{\"to\":{\n name: 'contract_detail',\n query: {\n address: props.row.address\n }\n }}},[_vm._v(_vm._s(props.row.contractName))]),_c('b-tooltip',{attrs:{\"label\":\"Prototype\"}},[(props.row.fromPrototype)?_c('b-icon',{staticStyle:{\"margin-left\":\"5px\"},attrs:{\"icon\":\"code-branch\",\"size\":\"is-small\"}}):_vm._e()],1)],1),_c('b-table-column',{attrs:{\"label\":\"Type\"}},[_vm._v(_vm._s(props.row.type))]),_c('b-table-column',{attrs:{\"label\":\"Address\"}},[_c('b-tooltip',{attrs:{\"label\":_vm._f(\"toChecksumAddress\")(props.row.address)}},[_c('span',{staticClass:\"is-family-monospace has-text-weight-semibold\"},[_vm._v(_vm._s(_vm._f(\"addr\")(_vm._f(\"toChecksumAddress\")(props.row.address))))])])],1),_c('b-table-column',{attrs:{\"centered\":\"\",\"label\":\"Operations\"}},[_c('div',{staticClass:\"buttons has-addons is-centered\"},[_c('button',{staticClass:\"button is-rounded control is-small\",on:{\"click\":function($event){return _vm.edit(props.row)}}},[_c('b-icon',{attrs:{\"size\":\"is-small\",\"icon\":\"edit\"}})],1),_c('button',{staticClass:\"button is-rounded control is-small\",on:{\"click\":function($event){return _vm.remove(props.row)}}},[_c('b-icon',{attrs:{\"size\":\"is-small\",\"icon\":\"trash-alt\"}})],1)])])]}},{key:\"detail\",fn:function(props){return [_c('SampleFuncCard',{attrs:{\"caller\":\"caller\",\"prototype\":props.row.fromPrototype,\"item\":props.row.abi,\"address\":props.row.address}})]}}])})],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"func-card\"},[_c('p',{staticClass:\"panel-tabs\",staticStyle:{\"justify-content\":\"left\"}},_vm._l((_vm.tabs),function(item,index){return _c('a',{key:index,class:{'is-active': _vm.activeTab === item},on:{\"click\":function($event){$event.stopPropagation();return _vm.switchTab(item)}}},[_vm._v(_vm._s(item))])}),0),_c('div',{staticClass:\"card-content\"},[_c('form',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.activeTab === _vm.tabs[0]),expression:\"activeTab === tabs[0]\"}],ref:\"form\",on:{\"reset\":function($event){$event.preventDefault();return _vm.reset.apply(null, arguments)}}},[_c('b-field',{staticClass:\"item-content\",attrs:{\"horizontal\":\"\",\"message\":\"Special address to call the method, it's not the param of the method\",\"label\":\"Caller\"},model:{value:(_vm.caller),callback:function ($$v) {_vm.caller=$$v},expression:\"caller\"}},[_c('b-input',{attrs:{\"placeholder\":\"Optional: Address\"}})],1),_vm._l((_vm.item.inputs),function(v,index){return _c('b-field',{key:index,staticClass:\"item-content\",attrs:{\"horizontal\":\"\",\"label\":v.name}},[_c('b-input',{ref:\"input\",refInFor:true,attrs:{\"readonly\":(_vm.prototype && v.name === '_self'),\"required\":\"\",\"placeholder\":v.type},model:{value:(_vm.params[index]),callback:function ($$v) {_vm.$set(_vm.params, index, $$v)},expression:\"params[index]\"}})],1)}),(_vm.item.payable)?_c('b-field',{staticClass:\"item-content\",attrs:{\"horizontal\":\"\",\"label\":\"value\"}},[_c('b-input',{attrs:{\"type\":\"number\",\"placeholder\":\"number\"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}})],1):_vm._e(),_c('b-field',{staticClass:\"item-content\"},[_c('div',{staticClass:\"buttons has-addons\"},[(!_vm.item.constant)?_c('button',{staticClass:\"button is-rounded is-primary is-outlined\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.executeFC.apply(null, arguments)}}},[_vm._v(\"Execute\")]):_vm._e(),_c('button',{staticClass:\"button is-rounded is-primary is-outlined\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.callFC.apply(null, arguments)}}},[_vm._v(\"Call\")]),_c('button',{staticClass:\"button is-rounded is-primary is-outlined\",attrs:{\"type\":\"reset\"}},[_vm._v(\"Reset\")])])]),(_vm.request)?_c('b-field',{attrs:{\"label\":\"Request\"}},[_c('pre',{staticStyle:{\"width\":\"100%\",\"white-space\":\"break-spaces\",\"word-break\":\"break-all\"}},[_vm._v(_vm._s(_vm.request))])]):_vm._e(),(_vm.resp)?_c('b-field',{attrs:{\"label\":\"Response\"}},[_c('pre',{staticStyle:{\"width\":\"100%\",\"white-space\":\"break-spaces\",\"word-break\":\"break-all\"}},[_vm._v(_vm._s(_vm.resp))])]):_vm._e()],2),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.activeTab === _vm.tabs[1]),expression:\"activeTab === tabs[1]\"}]},[_c('pre',[_vm._v(_vm._s(_vm.item))])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SampleFuncCard.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SampleFuncCard.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./SampleFuncCard.vue?vue&type=template&id=18528316&scoped=true\"\nimport script from \"./SampleFuncCard.vue?vue&type=script&lang=ts\"\nexport * from \"./SampleFuncCard.vue?vue&type=script&lang=ts\"\nimport style0 from \"./SampleFuncCard.vue?vue&type=style&index=0&id=18528316&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"18528316\",\n null\n \n)\n\nexport default component.exports","\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ShortCuts.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ShortCuts.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./ShortCuts.vue?vue&type=template&id=3a5e1316\"\nimport script from \"./ShortCuts.vue?vue&type=script&lang=ts\"\nexport * from \"./ShortCuts.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import { Vue, Component } from 'vue-property-decorator'\nimport Router from 'vue-router'\nimport NotSupport from './views/NotSupport.vue'\nimport Contracts from './views/Contracts.vue'\nimport Deploy from './views/DeployContract.vue'\nimport ContractDetail from './views/ContractDetail.vue'\nimport FilterView from './views/FilterView.vue'\nimport FilterMgt from './views/FilterMgt.vue'\nimport ShortCuts from './views/ShortCuts.vue'\n\nVue.use(Router)\n\nconst router = new Router({\n mode: 'hash',\n routes: [\n {\n name: 'root',\n redirect: { name: 'contracts' },\n path: '/'\n },\n {\n name: 'notSupport',\n component: NotSupport,\n path: '/not-support'\n },\n {\n name: 'contracts',\n component: Contracts,\n path: '/contracts'\n },\n {\n name: 'deploy',\n component: Deploy,\n path: '/deploy'\n },\n {\n name: 'contract_detail',\n component: ContractDetail,\n path: '/contract/detail'\n },\n {\n name: 'filter_view',\n component: FilterView,\n path: '/view/:id/list'\n }, {\n name: 'filter_mgt',\n component: FilterMgt,\n path: '/view/mgt'\n }, {\n name: 'short_cuts',\n component: ShortCuts,\n path: '/view/scs'\n }, {\n path: '*',\n redirect: { name: 'contracts' }\n }\n ]\n})\n\nexport default router\n","import DB, {Entities} from '@/database'\n\nexport type Contract = {\n address: string\n abi: object\n name: string\n genesisId: string\n}\n\nconst importContract = async (contract: Contract) => {\n\n const {address, genesisId, name, abi} = contract\n\n await DB.contracts.filter((obj) =>\n obj.address.toLowerCase() === address.toLowerCase()\n ).delete()\n\n const entity: Entities.Contract = {\n abi,\n address: address.toLowerCase(),\n name,\n createdTime: Date.now(),\n network: genesisId\n }\n\n await DB.contracts.add(entity)\n}\n\n/**\n * Pre-populate the database with contracts. This is useful for local development\n */\nexport const prePopulate = async () => {\n\n const request = await fetch('/abis/contracts.json')\n\n if (!request.ok) {\n return\n }\n\n const contracts: Contract[] = await request.json()\n\n for (const contract of contracts) {\n await importContract(contract)\n }\n}\n","\nimport './window.init'\nimport Vue from 'vue'\nimport Buefy from 'buefy'\nimport VeeValidate from 'vee-validate'\nimport './validator'\nimport './custom.scss'\nimport '@fortawesome/fontawesome-free/css/all.css'\nimport App from './App.vue'\nimport './filters'\nimport './directives'\nimport router from './Router'\nimport './overwrite.css'\nimport VueAnalytics from 'vue-analytics'\nimport Connex from '@vechain/connex'\nimport { createConnex, isSoloNode } from './create-connex'\nimport { prePopulate } from '@/pre-populate'\ndeclare module 'vue/types/vue' {\n interface Vue {\n $connex: Connex\n $explorerAccount: string\n $explorerBlock: string\n $explorerTx: string\n }\n}\n\nVue.use(Buefy, {\n defaultIconPack: 'fas'\n})\n\nVue.use(VeeValidate, {\n events: 'blur',\n validity: true\n})\n\nVue.use(VueAnalytics, {\n id: 'UA-132391998-2',\n disabled: process.env.NODE_ENV === 'production'\n})\n\nVue.config.productionTip = false\n\n\nfunction setExplorerUrl(path: string) {\n const temp = path ? (path + '/') : path\n Vue.prototype.$explorerAccount = `https://insight.vecha.in/#/${temp}accounts/`\n Vue.prototype.$explorerBlock = `https://insight.vecha.in/#/${temp}blocks/`\n Vue.prototype.$explorerTx = `https://insight.vecha.in/#/${temp}txs/`\n}\n\nif (window.connex) {\n // sync1\n console.log(\"Connex ok\", window.connex)\n Vue.prototype.$connex = new Connex({\n //@ts-ignore\n network: window.connex.thor.genesis,\n node: '',\n noV1Compat: false\n })\n setExplorerUrl('')\n} else {\n\n // Default is main net for sync2\n const defaultNetwork = isSoloNode ? 'solo' : 'main'\n const net = localStorage.getItem('last-net') || defaultNetwork\n console.log(\"net\", net)\n\n if (['test', 'main', 'solo'].includes(net)) {\n setExplorerUrl(net)\n Vue.prototype.$connex = createConnex(net as \"test\" | \"main\" | \"solo\")\n } else {\n const node = localStorage.getItem('custom-node')\n const network = JSON.parse(localStorage.getItem('custom-network') || '') as Connex.Thor.Block // genesis block\n\n if (node && network) {\n if (network.id === '0x000000000b2bce3c70bc649a02749e8687721b09ed2e15997f466536b20bb127') {\n // test\n setExplorerUrl('test')\n } else if (network.id === '0x00000000851caf3cfdb6e899cf5958bfb1ac3413d346d43539627e6be7ec1b4a') {\n // main\n setExplorerUrl('main')\n } else {\n const host = node.endsWith('/') ? node : (node + '/')\n Vue.prototype.$explorerAccount = `${host}accounts/`\n Vue.prototype.$explorerBlock = `${host}blocks/`\n Vue.prototype.$explorerTx = `${host}transactions/`\n }\n Vue.prototype.$connex = new Connex({\n network,\n node\n })\n }\n }\n}\n\nprePopulate()\n\nnew Vue({\n router,\n render: (h) => h(App)\n}).$mount('#app')\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t524: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkinspector_app\"] = self[\"webpackChunkinspector_app\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(9637); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["Object","defineProperty","window","value","enumerable","writable","BUS","$alert","msg","$buefy","dialog","confirm","title","type","message","hasIcon","cancelText","confirmText","onConfirm","open","extend","getMessage","field","validate","regex","test","length","v","BN","temp","multipliedBy","isInteger","isNegative","dictionary","en","attributes","code","localize","render","_vm","this","_c","_self","_setupProxy","staticClass","staticRenderFns","attrs","staticStyle","_v","class","burgerActive","on","$event","_l","item","index","key","name","_s","text","views","view","params","id","_e","networks","label","network","slot","n","i","onChange","Database","constructor","super","version","stores","contracts","filters","shortCuts","catch","err","console","error","subscribe","tableName","ev","fn","changes","filter","c","table","unsubscribe","DB","soloUrlNode","VUE_APP_IS_DOCKER","soloUrlPlaceholder","VUE_APP_SOLO_URL","isSoloNode","nodeUrls","main","solo","custom","soloGenesis","number","size","parentID","timestamp","gasLimit","beneficiary","gasUsed","totalScore","txsRoot","txsFeatures","stateRoot","receiptsRoot","signer","isTrunk","transactions","createConnex","net","url","node","injected","connex","thor","genesis","genesisIdToNetwork","networkToGenesisId","component","startsWith","substring","Date","toLocaleString","val","toChecksumed","getImg","el","address","svg","toLowerCase","nodeName","directive","update","binding","oldValue","src","style","background","backgroundSize","inserted","vnode","SE","document","querySelector","scrollEnd","offsetTop","elHeight","clientHeight","transition","onscroll","event","clearTimeout","setTimeout","top","target","scrollTop","marginTop","_m","onImport","addItem","ref","onSelect","_t","stopPropagation","edit","exportJson","remove","isloading","isModalActive","currentItem","isImport","onCancel","reload","context","formMessage","isError","checkName","model","form","callback","$$v","$set","expression","checkAddress","abi","checkABI","isEdit","close","apply","arguments","preventDefault","submit","btn","$listeners","select","directives","rawName","$emit","_f","$explorerAccount","sendCode","errors","has","first","required","bytecode","trim","vet","haxValue","numberValue","contract","toExplorer","filterList","onSearchSelect","scopedSlots","_u","props","option","tabIndex","visible","count","refInFor","fb","tabs","activeTab","currentTarget","reset","caller","prototype","addShortCut","executeFC","callFC","request","resp","isOpen","onupdate","switchTab","AccountCall","method","Array","inputs","resetOutputs","readMethod","$refs","input","forEach","element","$parent","newType","newMessage","writeMethod","initMethod","account","$connex","checkHtml5Validity","some","isValid","payable","stateMutability","hexValue","toFixed","toString","map","endsWith","JSON","parse","asClause","call","clause","vendor","sign","comment","default","addFilter","onRefresh","page","onPrev","list","onNext","ranges","isLoading","$explorerBlock","meta","blockID","blockNumber","blockTimestamp","$explorerTx","txID","data","row","topic","$attrs","constant","outputs","anonymous","indexed","Prototype","protoTabs","prList","_abi","pwList","peList","_abiEvent","initAbi","prototypeEvent","conditions","domProps","blockFrom","blockTo","num","prePage","nextPage","search","perPage","currentPage","onPageChange","query","contractName","fromPrototype","use","router","mode","routes","redirect","path","NotSupport","importContract","async","genesisId","obj","delete","entity","createdTime","now","add","prePopulate","fetch","ok","json","setExplorerUrl","defaultIconPack","events","validity","disabled","config","productionTip","log","noV1Compat","defaultNetwork","localStorage","getItem","includes","host","h","$mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","loaded","__webpack_modules__","m","deferred","O","result","chunkIds","priority","notFulfilled","Infinity","fulfilled","j","keys","every","splice","r","getter","__esModule","d","a","definition","o","get","g","globalThis","Function","e","prop","hasOwnProperty","Symbol","toStringTag","nmd","paths","children","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","chunkLoadingGlobal","self","bind","push","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/js/app.2fe5fc63.js b/js/app.2fe5fc63.js new file mode 100644 index 0000000..21ef21f --- /dev/null +++ b/js/app.2fe5fc63.js @@ -0,0 +1,2 @@ +(function(){var t={9637:function(t,e,s){"use strict";var a=s(5471);const i=s(1594);Object.defineProperty(window,"BUS",{value:new a["default"],enumerable:!0,writable:!1}),window.BUS.$alert=t=>{BUS.$buefy.dialog.confirm({title:"Error",type:"is-danger",message:`${t}`,hasIcon:!0,cancelText:"Close",confirmText:"Open an issue",onConfirm:()=>{window.open("https://github.com/vechain/inspector-app/issues","_blank")}})},Object.defineProperty(window,"BN",{value:i,enumerable:!0,writable:!1});var n=s(4915),r=s(5261);r.Dr.extend("bytecode",{getMessage:t=>`${t} field is invalid.`,validate:t=>{const e=/^(0x|0X)[a-fA-F0-9]+$/;return e.test(t)&&t.length%2===0}}),r.Dr.extend("vet",{getMessage:t=>`${t} field is invalid, (positive number and limited to 18 decimal places).`,validate:t=>{const e=BN(t),s=BN(e.multipliedBy(1e18));return s.isInteger()&&!s.isNegative()}});const o={en:{attributes:{code:"Byte Code"}}};r.Dr.localize(o);var l=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("body",{staticClass:"has-navbar-fixed-top"},[e("Navbar",{staticClass:"is-fixed-top"}),e("div",{staticClass:"router-view"},[e("router-view")],1)],1)},c=[],d=s(1635),u=s(8657),p=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("nav",{staticClass:"navbar is-dark",attrs:{role:"navigation","aria-label":"main navigation"}},[e("div",{staticClass:"container"},[e("div",{staticClass:"navbar-brand is-marginless"},[e("h2",{staticClass:"subtitle has-text-white is-2",staticStyle:{"padding-left":"20px"}},[t._v("Inspector")]),e("a",{staticClass:"navbar-burger",class:{"is-active":t.burgerActive},attrs:{role:"button"},on:{click:function(e){t.burgerActive=!t.burgerActive}}},[e("span",{attrs:{"aria-hidden":"true"}}),e("span",{attrs:{"aria-hidden":"true"}}),e("span",{attrs:{"aria-hidden":"true"}})])]),e("div",{staticClass:"navbar-menu",class:{"is-active":t.burgerActive}},[e("div",{staticStyle:{width:"40px"}}),e("div",{staticClass:"navbar-start"},[t._l(t.routes,(function(s,a){return e("router-link",{key:a,staticClass:"navbar-item",attrs:{exact:"",to:{name:s.name}}},[t._v(t._s(s.text))])})),t.views.length?e("div",{staticClass:"navbar-item has-dropdown is-hoverable"},[e("a",{staticClass:"navbar-link"},[t._v("Views")]),e("div",{staticClass:"navbar-dropdown"},[e("router-link",{staticClass:"navbar-item",attrs:{to:{name:"filter_mgt"}}},[t._v("All")]),e("hr",{staticClass:"navbar-divider"}),t._l(t.views,(function(s,a){return e("router-link",{key:a,staticClass:"navbar-item",attrs:{to:{name:"filter_view",params:{id:s.id}}}},[t._v(t._s(s.name))])}))],2)]):t._e(),t.shortCuts?e("router-link",{staticClass:"navbar-item",attrs:{"active-class":"has-background-grey-dark",to:{name:"short_cuts"}}},[t._v("Shortcuts")]):t._e()],2),e("div",{staticClass:"navbar-end",staticStyle:{"padding-right":"20px"}},[1===t.networks.length?e("b-tag",{staticStyle:{margin:"auto 0px"},attrs:{size:"is-medium",type:"is-warning"}},[t._v(t._s(t.networks[0].label))]):t._e(),t.networks.length>1?e("b-dropdown",{staticStyle:{"vertical-align":"top"},attrs:{size:"sm",text:t.network,"toggle-class":"py-0 px-1"}},[e("template",{slot:"trigger"},[e("b-button",{staticClass:"navbar-item",attrs:{type:"is-dark",label:t.network,"icon-right":"caret-down"}})],1),t._l(t.switchableNetworks,(function(s,a){return e("b-dropdown-item",{key:a,attrs:{value:s.name},on:{click:function(e){return t.onChange(s.name)}}},[t._v(t._s(s.label))])}))],2):t._e(),e("a",{staticClass:"navbar-item",attrs:{href:"https://github.com/vechain/inspector-app",target:"_blank"}},[t._v("GitHub")])],1)])])])},m=[],h=s(7054),b=(s(8760),s(6763));class f extends h.A{constructor(){super("inspect"),this.version(2).stores({contracts:"++id, &address, name",filters:"++id, address, name, contractName",shortCuts:"++id, address, name, contractName"}),this.version(3).stores({shortCuts:"++id, address, name, contractName, fromPrototype",filters:"++id, address, name, contractName, fromPrototype"}),this.version(4).stores({contracts:"++id, &address, name, network"}),this.version(5).stores({contracts:"++id, address, name, network"}),this.open().catch((t=>{b.error(t)}))}subscribe(t,e){const s=this.on("changes"),a=s=>{s=s.filter((e=>e.table===t)),s.length>0&&e(s)};return s.subscribe(a),{unsubscribe:()=>s.unsubscribe(a)}}}const v=new f;var g=v,y=s(6130);const x=()=>{if({NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_IS_DOCKER){const t="VUE_APP_SOLO_URL_PLACEHOLDER";return t}return{NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_SOLO_URL},_=!!x(),w={main:"https://explore-mainnet.veblocks.net",test:"https://explore-testnet.veblocks.net",solo:x()||"http://localhost:8669",custom:""},C={number:0,id:"0x00000000c05a20fbca2bf6ae3affba6af4a74b800b585bf7a4988aba7aea69f6",size:170,parentID:"0xffffffff53616c757465202620526573706563742c20457468657265756d2100",timestamp:1530316800,gasLimit:1e7,beneficiary:"0x0000000000000000000000000000000000000000",gasUsed:0,totalScore:0,txsRoot:"0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0",txsFeatures:0,stateRoot:"0x93de0ffb1f33bc0af053abc2a87c4af44594f5dcb1cb879dd823686a15d68550",receiptsRoot:"0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0",signer:"0x0000000000000000000000000000000000000000",isTrunk:!0,transactions:[]};function k(t){if(t){const e=w[t];return"solo"==t?new y.A({node:e,network:C}):new y.A({node:e,network:t})}{const t=window.connex;return t?new y.A({node:"",network:t.thor.genesis}):_?new y.A({node:w.solo,network:C}):new y.A({node:w.main})}}function S(t){switch(t){case"0x00000000851caf3cfdb6e899cf5958bfb1ac3413d346d43539627e6be7ec1b4a":return"main";case"0x000000000b2bce3c70bc649a02749e8687721b09ed2e15997f466536b20bb127":return"test";case"0x00000000c05a20fbca2bf6ae3affba6af4a74b800b585bf7a4988aba7aea69f6":return"solo";default:return"custom"}}function $(t){switch(t){case"main":return"0x00000000851caf3cfdb6e899cf5958bfb1ac3413d346d43539627e6be7ec1b4a";case"test":return"0x000000000b2bce3c70bc649a02749e8687721b09ed2e15997f466536b20bb127";case"solo":return"0x00000000c05a20fbca2bf6ae3affba6af4a74b800b585bf7a4988aba7aea69f6";default:return""}}let A=class extends u.lD{constructor(){super(...arguments),this.routes=[{name:"contracts",text:"Contracts"},{name:"deploy",text:"Deploy"}],this.burgerActive=!1,this.views=[],this.shortCuts=0,this.node=localStorage.getItem("custom-node"),this.genesis=localStorage.getItem("custom-network")}get hasConnex(){return!!window.connex}get hasCustom(){return!!this.node&&!!this.genesis}get network(){switch(S(this.$connex.thor.genesis.id)){case"main":return"Mainnet";case"test":return"Testnet";case"solo":return"Solonet";default:return"Custom"}}get networks(){return _?[{name:"solo",label:"SoloNet"}]:[{name:"main",label:"Mainnet"},{name:"test",label:"Testnet"},..._?[{name:"solo",label:"Solonet"}]:[]]}get switchableNetworks(){return this.networks.filter((t=>this.$connex.thor.genesis.id!==$(t.name)))}onChange(t){localStorage.setItem("last-net",t),window.location.href=window.location.origin}async getList(){this.views=await g.filters.filter((t=>t.network===this.network||void 0===t.network)).limit(5).toArray()}async countShortCuts(){this.shortCuts=await g.shortCuts.filter((t=>t.network===this.network||void 0===t.network)).count()}};A=(0,d.Cg)([u.uA],A);var P=A,I=P,T=s(1656),N=(0,T.A)(I,p,m,!1,null,"611d79ae",null),M=N.exports;let E=class extends u.lD{created(){this.$ga.page("/inspector")}mounted(){this.$connex||this.$router.push({name:"notSupport"})}};E=(0,d.Cg)([(0,u.uA)({components:{Navbar:M}})],E);var D=E,L=D,O=(0,T.A)(L,l,c,!1,null,null,null),F=O.exports,z=s(3458);u.lD.filter("addr",(t=>{const e=t.startsWith("0x")?t:`0x${t}`;return e.substring(0,8)+"…"+e.substring(e.length-8,e.length)})),u.lD.filter("datetime",(t=>new Date(t).toLocaleString())),u.lD.filter("toChecksumAddress",(t=>{if(t)return z.h.toChecksumed(t)}));var B=s(1394);function q(t,e){const s=(0,B.H)(e.toLowerCase());return"IMG"===t.nodeName?`data:image/svg+xml;utf8,${s}`:`no-repeat url('data:image/svg+xml;utf8,${s}')`}u.lD.directive("ident",{update(t,e){if(e.value!==e.oldValue)if("IMG"===t.nodeName){const s=t;s.src=q(t,e.value)}else t.style.background=q(t,e.value),t.style.backgroundSize="cover"},inserted(t,e){if(e.value!==e.oldValue)if("IMG"===t.nodeName){const s=t;s.src=q(t,e.value)}else t.style.background=q(t,e.value),t.style.backgroundSize="cover"}}),u.lD.directive("inview",{update(t,e,s){const a=document.querySelector(e.value);let i;const n=t.offsetTop,r=t.clientHeight;t.style.transition="margin-top 0.15s",a.onscroll=e=>{window.clearTimeout(i),i=window.setTimeout((()=>{const s=e.target.scrollTop;if(s>n){const e=s-(n-r);t.style.marginTop=(e>0?e:0)+"px"}else t.style.marginTop="0px"}),100)}}});var R=s(173),V=function(){var t=this;t._self._c,t._self._setupProxy;return t._m(0)},U=[function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticStyle:{width:"500px",margin:"140px auto","font-size":"25px"}},[t._v(" Inspector only supported for the "),e("strong",{staticStyle:{color:"#26a69a"}},[t._v("Main")]),t._v(" or "),e("strong",{staticStyle:{color:"#26a69a"}},[t._v("Test")]),t._v(" net. if you need other networks, please check on "),e("a",{attrs:{target:"_blank",href:"https://github.com/vechain/inspector-app"}},[e("strong",[t._v("GitHub")])])])}];let j=class extends u.lD{};j=(0,d.Cg)([u.uA],j);var J=j,H=J,W=(0,T.A)(H,V,U,!1,null,null,null),G=W.exports,X=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("section",{staticClass:"section"},[e("div",{staticClass:"level container"},[t._m(0),e("div",{staticClass:"level-right"},[e("button",{staticClass:"button is-primary is-outlined",staticStyle:{"margin-right":"10px"},on:{click:t.onImport}},[e("b-icon",{attrs:{icon:"file-import"}})],1),e("button",{staticClass:"button is-primary is-outlined",on:{click:t.addItem}},[e("b-icon",{attrs:{icon:"plus"}})],1),e("input",{ref:"files",staticClass:"is-hidden",attrs:{type:"file",accept:"application/json"}})])]),t.contracts.length?e("div",{staticClass:"columns section is-variable is-1 is-multiline",class:{"is-centered":t.contracts.length<4}},t._l(t.contracts,(function(s,a){return e("div",{key:a,staticClass:"column is-3-fullhd is-4-desktop is-6-tablet"},[e("Contract",{staticClass:"contract-box",attrs:{item:s},on:{select:function(e){return t.onSelect(s.id)}}},[t._t("default",(function(){return[e("p",{staticClass:"buttons buttons-slot"},[e("button",{staticClass:"button is-primary is-inverted",on:{click:function(e){return e.stopPropagation(),t.edit(s)}}},[e("b-icon",{attrs:{icon:"edit",size:"is-small"}})],1),e("button",{staticClass:"button is-primary is-inverted",on:{click:function(e){return e.stopPropagation(),t.exportJson(s)}}},[e("b-icon",{attrs:{icon:"file-export",size:"is-small"}})],1)])]})),t._t("default",(function(){return[e("button",{staticClass:"buttons-slot button is-danger is-inverted",on:{click:function(e){return e.stopPropagation(),t.remove(s)}}},[e("b-icon",{attrs:{icon:"trash-alt",size:"is-small"}})],1)]}),{slot:"right"})],2)],1)})),0):t._e(),t.isloading||t.contracts.length?t._e():e("div",{staticClass:"section"},[e("div",{staticClass:"container"},[e("div",{staticClass:"card"},[e("div",{staticClass:"card-content has-text-centered is-size-2 has-text-grey-light"},[t._v("No contracts here!")]),e("div",{staticClass:"card-footer"},[e("a",{staticClass:"card-footer-item",on:{click:t.addItem}},[t._v("Add")])])])])]),e("b-modal",{attrs:{width:640,canCancel:["outside"],active:t.isModalActive},on:{"update:active":function(e){t.isModalActive=e}}},[e("EditContract",{attrs:{item:t.currentItem,isImport:t.isImport},on:{cancel:t.onCancel,finished:t.reload}})],1)],1)},Y=[function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"level-left"},[e("h1",{staticClass:"title level-item"},[t._v("Contracts")])])}],K=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("form",[e("div",{staticClass:"modal-card"},[e("header",{staticClass:"modal-card-head"},[e("span",{staticClass:"modal-card-title"},[t._v(t._s(t.context.title))])]),e("section",{staticClass:"modal-card-body"},[e("b-field",{attrs:{type:t.formMessage.name.isError?"is-danger":"",message:t.formMessage.name.message,label:"name"}},[e("b-input",{attrs:{type:"text"},on:{blur:t.checkName},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1),e("b-field",{attrs:{type:t.formMessage.address.isError?"is-danger":"",message:t.formMessage.address.message,label:"address"}},[e("b-input",{attrs:{"custom-class":"is-family-monospace has-text-weight-semibold",message:t.formMessage.address.message,type:"text"},on:{blur:t.checkAddress},model:{value:t.form.address,callback:function(e){t.$set(t.form,"address",e)},expression:"form.address"}})],1),e("b-field",{attrs:{type:t.formMessage.abi.isError?"is-danger":"",message:t.formMessage.abi.message,label:"ABI"}},[e("b-input",{attrs:{message:t.formMessage.abi.message,type:"textarea"},on:{blur:t.checkABI},model:{value:t.form.abi,callback:function(e){t.$set(t.form,"abi",e)},expression:"form.abi"}})],1),t.isImport&&t.isEdit?e("b-message",{attrs:{type:"is-warning"}},[t._v(" The contract exists, are you sure to override it? ")]):t._e()],1),e("footer",{staticClass:"modal-card-foot"},[e("button",{staticClass:"button",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.close.apply(null,arguments)}}},[t._v("Cancel")]),e("button",{staticClass:"button is-primary",attrs:{type:"button"},on:{click:function(e){return e.preventDefault(),t.submit.apply(null,arguments)}}},[t._v(t._s(t.context.btn))])])])])},Q=[],Z=s(6763);let tt=class extends u.lD{constructor(){super(...arguments),this.formMessage={abi:{isError:!1,message:""},address:{isError:!1,message:""},name:{isError:!1,message:""}},this.form={id:0,name:"",address:"",abi:""}}get context(){const t={title:"Add Contract",btn:"Add"};return this.isEdit&&(t.title="Edit Contract",t.btn=this.isImport?"Override":"Edit"),t}get isEdit(){return this.item&&this.item.id}created(){this.initForm()}close(){this.$emit("cancel")}initForm(){const t=this.item;t&&t.address?(this.form.name=t.name||"",this.form.address=t.address||"",this.form.abi=t.abi?JSON.stringify(t.abi,null,2):"",this.form.id=t.id||0):this.form={name:"",address:"",abi:"",id:0}}async submit(){if(!this.checkform())return;const t={name:this.form.name,address:this.form.address.toLowerCase(),abi:JSON.parse(this.form.abi),network:this.$connex.thor.genesis.id,createdTime:Date.now()};try{this.isEdit?await g.contracts.where("id").equals(this.form.id).modify(t):await g.contracts.add(t)}catch(e){Z.error(e)}finally{this.$emit("finished")}}checkform(){return this.checkABI(),this.checkAddress(),this.checkName(),!this.formMessage.name.isError&&!this.formMessage.address.isError&&!this.formMessage.abi.isError}checkABI(){if(this.form.abi)try{JSON.parse(this.form.abi),this.formMessage.abi.isError=!1,this.formMessage.abi.message=""}catch(t){this.formMessage.abi.isError=!0,this.formMessage.abi.message=t.name+": "+t.message}else this.formMessage.abi.isError=!0,this.formMessage.abi.message="ABI is required"}checkAddress(){this.form.address?z.h.test(this.form.address)?(this.formMessage.address.isError=!1,this.formMessage.address.message=""):(this.formMessage.address.isError=!0,this.formMessage.address.message="Invalid address"):(this.formMessage.address.isError=!0,this.formMessage.address.message="Address is required")}checkName(){this.form.name?this.form.name.length<1||this.form.name.length>20?(this.formMessage.name.isError=!0,this.formMessage.name.message="Requires between 1 - 20 characters"):(this.formMessage.name.isError=!1,this.formMessage.name.message=""):(this.formMessage.name.isError=!0,this.formMessage.name.message="Name is required")}};(0,d.Cg)([(0,u.kv)({default:!1})],tt.prototype,"isImport",void 0),(0,d.Cg)([(0,u.kv)({default:null})],tt.prototype,"item",void 0),tt=(0,d.Cg)([u.uA],tt);var et=tt,st=et,at=(0,T.A)(st,K,Q,!1,null,null,null),it=at.exports,nt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"box",class:{"img-hover":t.$listeners.select}},[e("article",{staticClass:"media"},[e("div",{staticClass:"media-left"},[e("figure",{staticClass:"image is-64x64",class:{"could-hover":t.$listeners.select}},[e("img",{directives:[{name:"ident",rawName:"v-ident",value:t.item.address,expression:"item.address"}],attrs:{alt:"Image"},on:{click:function(e){return e.stopPropagation(),t.$emit("select")}}})])]),e("div",{staticClass:"media-content"},[e("div",{staticClass:"content"},[e("p",[e("strong",[t._v(t._s(t.item.name||""))])]),t.isShort?e("p",{staticClass:"is-family-monospace has-text-weight-semibold display-6"},[t._v(t._s(t._f("addr")(t._f("toChecksumAddress")(t.item.address))))]):e("p",{staticClass:"is-family-monospace has-text-weight-semibold display-6"},[e("a",{attrs:{target:"_blank",href:`${t.$explorerAccount}${t.item.address}`}},[t._v(t._s(t._f("toChecksumAddress")(t.item.address)))])])]),e("nav",{staticClass:"level"},[e("div",{staticClass:"level-left"},[e("div",{staticClass:"level-item"},[t._t("default")],2)])])]),e("div",{staticClass:"media-right"},[e("div",{staticClass:"content"},[t._t("right")],2)])])])},rt=[];let ot=class extends u.lD{};(0,d.Cg)([(0,u.kv)()],ot.prototype,"item",void 0),(0,d.Cg)([(0,u.kv)({default:!0})],ot.prototype,"isShort",void 0),ot=(0,d.Cg)([u.uA],ot);var lt=ot,ct=lt,dt=(0,T.A)(ct,nt,rt,!1,null,"7247e069",null),ut=dt.exports;let pt=class extends u.lD{constructor(){super(...arguments),this.isloading=!0,this.isModalActive=!1,this.currentItem=null,this.contracts=[],this.isImport=!1}onSelect(t){this.$router.push({name:"contract_detail",query:{id:t.toString()}})}async created(){this.$ga.page("/inspector/contracts");const t=this.$buefy.loading.open({container:null});await this.list(),this.prepare(),t.close(),g.subscribe("contracts",(()=>{this.list()}))}mounted(){const t=this.$refs.files;t.onchange=()=>{const e=t.files&&t.files[0];if(e){const t=new FileReader;t.onloadend=e=>{const s=JSON.parse(t.result||"");if(s){this.currentItem={abi:s.abi,address:s.address,name:s.name};const t=this.contracts.find((t=>t.address.toLowerCase()===s.address.toLowerCase()));t&&(this.currentItem.id=t.id),this.isImport=!0,this.open()}},t.readAsText(e)}}}onImport(){const t=this.$refs.files;t.click()}prepare(){const{action:t,address:e}=this.$route.query;switch(t){case"add":this.currentItem={address:e},this.open();break;default:break}}reload(){this.$refs.files.value="",this.currentItem=null,this.list(),this.isModalActive=!1}exportJson(t){const e=s(7968),a=new Blob([JSON.stringify({name:t.name,abi:t.abi,address:t.address})],{type:"text/plain"});e.saveAs(a,`${t.address}.json`)}remove(t){this.$buefy.dialog.confirm({title:"Remove",message:`Are you sure want to remove ${t.name} contract`,cancelText:"Cancel",confirmText:"YES",type:"is-danger",scroll:"clip",onConfirm:()=>{g.contracts.delete(t.id).then((()=>{this.reload()}))}})}open(){this.isModalActive=!0}close(){this.$refs.files.value="",this.isModalActive=!1}async list(){const t=this.$connex.thor.genesis.id;this.contracts=await g.contracts.filter((e=>e.network===t||void 0===e.network)).toArray(),this.isloading=!1}addItem(){this.currentItem=null,this.isImport=!1,this.open()}onCancel(){this.currentItem=null,this.close()}edit(t){this.currentItem=t,this.isImport=!1,this.open()}};pt=(0,d.Cg)([(0,u.uA)({components:{Contract:ut,EditContract:it}})],pt);var mt=pt,ht=mt,bt=(0,T.A)(ht,X,Y,!1,null,"49a5fd46",null),ft=bt.exports,vt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"section",staticStyle:{"max-width":"1000px",margin:"auto"}},[e("div",{staticClass:"container"},[e("form",{on:{submit:function(e){return e.preventDefault(),t.sendCode.apply(null,arguments)}}},[e("b-field",{attrs:{type:{"is-danger":t.errors.has("code")},message:t.errors.first("code"),label:"Byte Code"}},[e("b-input",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,bytecode:!0},expression:"{required: true, bytecode: true}"}],attrs:{name:"code",rows:"10",type:"textarea"},model:{value:t.code,callback:function(e){t.code="string"===typeof e?e.trim():e},expression:"code"}})],1),e("b-field",{attrs:{type:{"is-danger":t.errors.has("vet")},message:t.errors.first("vet"),label:"Vet"}},[e("b-input",{directives:[{name:"validate",rawName:"v-validate",value:"vet",expression:"'vet'"}],attrs:{placeholder:"number (optional)",name:"vet",type:"text"},model:{value:t.vet,callback:function(e){t.vet="string"===typeof e?e.trim():e},expression:"vet"}})],1),e("b-field",{attrs:{label:"Valid Hex value (wei)"}},[e("span",{staticClass:"is-family-monospace has-text-weight-semibold"},[t._v(t._s(t.haxValue))])]),e("b-field",{attrs:{label:"Valid Integer value (wei)"}},[e("span",{staticClass:"is-family-monospace has-text-weight-semibold"},[t._v(t._s(t.numberValue))])]),e("b-field",{staticClass:"is-clearfix"},[e("button",{staticClass:"is-pulled-right button is-primary",attrs:{type:"submit"}},[t._v("Send")])])],1)])])},gt=[];let yt=class extends u.lD{constructor(){super(...arguments),this.code="",this.vet=null}get haxValue(){const t=BN(this.vet);return t.isNaN()||t.isNegative()?"0x0":"0x"+BN(t.multipliedBy(1e18).toFixed(0)).toString(16)}get numberValue(){const t=BN(this.vet);return t.isNaN()||t.isNegative()?"0":t.multipliedBy(1e18).toFixed(0)}async checkForm(){const t=await this.$validator.validateAll();return t}async sendCode(){if(await this.checkForm())try{const t=await this.$connex.vendor.sign("tx",[{value:this.haxValue||0,data:this.code,to:null}]).comment("Inspector deploy contract").request();window.open(`${this.$explorerTx}${t.txid}`)}catch(t){this.$buefy.toast.open({type:"is-danger",message:`${t.name}: ${t.message}`,position:"is-top",duration:3e3})}}created(){this.$ga.page("/inspector/deploy")}};yt=(0,d.Cg)([u.uA],yt);var xt=yt,_t=xt,wt=(0,T.A)(_t,vt,gt,!1,null,null,null),Ct=wt.exports,kt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("section",{staticClass:"section contract-detail"},[t.contract?e("div",{staticClass:"container"},[e("Contract",{attrs:{isShort:!1,item:t.contract}},[e("div",{attrs:{slot:"right"},slot:"right"},[e("b-button",{attrs:{expanded:"",size:"is-small",type:"is-info"},on:{click:t.toExplorer}},[t._v("Explorer")]),e("br"),e("b-button",{attrs:{type:"is-light",tag:"a",size:"is-small",href:"https://github.com/vechain/b32/new/master/ABIs",target:"_blank"}},[t._v(" Submit JSON ABI ")])],1)]),e("section",{staticStyle:{"margin-top":"20px"}},[e("b-field",{attrs:{grouped:""}},[e("b-field",{attrs:{expanded:""}},[e("b-field",{staticClass:"is-pulled-right"},[e("b-autocomplete",{attrs:{rounded:"",data:t.filterList,placeholder:"Func/Event Name"},on:{select:t.onSearchSelect},scopedSlots:t._u([{key:"default",fn:function(s){return[e("div",[e("span",{staticClass:"is-size-6"},[t._v(t._s(s.option.name))])]),e("span",{staticClass:"has-text-grey"},[t._v(t._s(s.option.type))])]}}],null,!1,1256192932),model:{value:t.name,callback:function(e){t.name=e},expression:"name"}},[e("template",{slot:"empty"},[t._v("No results found")])],2)],1)],1)],1),e("b-tabs",{staticClass:"block",model:{value:t.tabIndex,callback:function(e){t.tabIndex=e},expression:"tabIndex"}},t._l(t.tabs,(function(s,a){return e("b-tab-item",{key:a,attrs:{visible:s.visible}},[e("span",{attrs:{slot:"header"},slot:"header"},[t._v(" "+t._s(s.text)+" "),s.count?e("span",{staticClass:"is-size-7"},[t._v("("+t._s(s.count)+")")]):t._e()])])})),1),e("div",{directives:[{name:"show",rawName:"v-show",value:0===t.tabIndex,expression:"tabIndex === 0"}]},t._l(t.readList,(function(s,a){return e("FunctionCard",{key:a,ref:s.name,refInFor:!0,staticStyle:{"margin-bottom":"20px"},attrs:{id:s.name,address:t.contract.address,item:s}})})),1),e("div",{directives:[{name:"show",rawName:"v-show",value:1===t.tabIndex,expression:"tabIndex === 1"}]},t._l(t.writeList,(function(s,a){return e("FunctionCard",{key:a,ref:s.name,refInFor:!0,staticStyle:{"margin-bottom":"20px"},attrs:{address:t.contract.address,item:s}})})),1),e("div",{directives:[{name:"show",rawName:"v-show",value:2===t.tabIndex,expression:"tabIndex === 2"}]},[e("DescCard",{staticStyle:{"margin-bottom":"20px"},attrs:{item:t.abi,title:"ABI"}}),t.code?e("DescCard",{staticClass:"code-pre",staticStyle:{"margin-bottom":"20px"},attrs:{item:t.code,title:"Code"}}):t._e()],1),e("div",{directives:[{name:"show",rawName:"v-show",value:3===t.tabIndex,expression:"tabIndex === 3"}]},t._l(t.eventList,(function(s,a){return e("EventCard",{key:a,staticStyle:{"margin-bottom":"20px"},attrs:{address:t.contract.address,item:s,title:s.name}})})),1),e("div",{directives:[{name:"show",rawName:"v-show",value:4===t.tabIndex,expression:"tabIndex === 4"}]},[e("FallbackCard",{attrs:{fb:t.fb}})],1),e("div",{directives:[{name:"show",rawName:"v-show",value:5===t.tabIndex,expression:"tabIndex === 5"}]},t._l(t.prList,(function(s,a){return e("FunctionCard",{key:a,ref:s.name,refInFor:!0,staticStyle:{"margin-bottom":"20px"},attrs:{prototype:!0,address:t.contract.address,item:s}})})),1),e("div",{directives:[{name:"show",rawName:"v-show",value:6===t.tabIndex,expression:"tabIndex === 6"}]},t._l(t.pwList,(function(s,a){return e("FunctionCard",{key:a,ref:s.name,refInFor:!0,staticStyle:{"margin-bottom":"20px"},attrs:{prototype:!0,address:t.contract.address,item:s}})})),1),e("div",{directives:[{name:"show",rawName:"v-show",value:7===t.tabIndex,expression:"tabIndex === 7"}]},t._l(t.peList,(function(s,a){return e("EventCard",{key:a,ref:s.name,refInFor:!0,staticStyle:{"margin-bottom":"20px"},attrs:{prototype:!0,address:t.contract.address,item:s}})})),1)],1)],1):t._e()])},St=[],$t=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("Panel",{attrs:{tabs:t.tabs,title:t.item.name},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[e("template",{slot:"panel-content"},[e("form",{directives:[{name:"show",rawName:"v-show",value:t.activeTab===t.tabs[0],expression:"activeTab === tabs[0]"}],on:{reset:function(e){return e.target!==e.currentTarget?null:(e.preventDefault(),t.reset.apply(null,arguments))}}},[e("b-field",{staticClass:"item-content",attrs:{horizontal:"",message:"Special address to call the method, it's not the param of the method",label:"Caller"}},[e("b-input",{attrs:{"custom-class":"is-family-monospace has-text-weight-semibold",placeholder:"Optional: Address"},model:{value:t.caller,callback:function(e){t.caller=e},expression:"caller"}})],1),t._l(t.item.inputs,(function(s,a){return e("b-field",{key:a,staticClass:"item-content",attrs:{horizontal:"",label:s.name}},["bool"===s.type?e("div",[e("b-radio",{attrs:{name:"True","native-value":!0},model:{value:t.params[a],callback:function(e){t.$set(t.params,a,e)},expression:"params[index]"}},[t._v(" True ")]),e("b-radio",{attrs:{name:"False","native-value":!1},model:{value:t.params[a],callback:function(e){t.$set(t.params,a,e)},expression:"params[index]"}},[t._v(" False ")])],1):e("b-input",{ref:"input",refInFor:!0,attrs:{"custom-class":"is-family-monospace has-text-weight-semibold",required:"",name:s.name,readonly:t.prototype&&"_self"===s.name,placeholder:s.type},model:{value:t.params[a],callback:function(e){t.$set(t.params,a,e)},expression:"params[index]"}})],1)})),t.payable?e("b-field",{staticClass:"item-content",attrs:{horizontal:"",label:"value"}},[e("b-input",{attrs:{"custom-class":"is-family-monospace has-text-weight-semibold",type:"text",placeholder:"number(vet)"},model:{value:t.value,callback:function(e){t.value="string"===typeof e?e.trim():e},expression:"value"}})],1):t._e(),e("b-field",{staticClass:"item-content",attrs:{horizontal:""}},[e("div",{staticClass:"buttons has-addons"},[e("button",{staticClass:"button is-rounded is-primary is-outlined",attrs:{type:"button"},on:{click:function(e){return t.addShortCut(t.item.name)}}},[t._v("Shortcut")]),t.couldExc?e("button",{staticClass:"button is-rounded is-primary is-outlined",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.executeFC.apply(null,arguments)}}},[t._v("Execute")]):t._e(),e("button",{staticClass:"button is-rounded is-primary is-outlined",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.callFC.apply(null,arguments)}}},[t._v("Call")]),t.params.length?e("button",{staticClass:"button is-rounded is-primary is-outlined",attrs:{type:"reset"}},[t._v("Reset")]):t._e()])]),t.request?e("b-field",{attrs:{label:"Request"}},[e("pre",{staticStyle:{width:"100%","white-space":"break-spaces","word-break":"break-all"}},[t._v(t._s(t.request))])]):t._e(),t.resp?e("b-field",{attrs:{label:"Response"}},[e("pre",{staticStyle:{width:"100%","white-space":"break-spaces","word-break":"break-all"}},[t._v(t._s(t.resp))])]):t._e()],2),e("div",{directives:[{name:"show",rawName:"v-show",value:t.activeTab===t.tabs[1],expression:"activeTab === tabs[1]"}]},[e("pre",[t._v(t._s(t.item))])])])],2)},At=[],Pt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("b-collapse",{staticClass:"panel",attrs:{open:t.isOpen},on:{"update:open":t.onupdate},scopedSlots:t._u([{key:"trigger",fn:function(s){return e("div",{staticClass:"panel-heading"},[e("div",{staticClass:"level"},[e("div",{staticClass:"level-left"},[e("div",{staticClass:"level-item"},[e("strong",[t._v(t._s(t.title))])]),e("div",{staticClass:"level-item"})]),e("div",{staticClass:"level-right"},[e("div",{staticClass:"level-item"},[e("b-icon",{attrs:{type:"is-primary",size:"is-small",icon:s.open?"caret-up":"caret-down"}})],1)])])])}}])},[t.tabs.length>1?e("p",{staticClass:"panel-tabs",staticStyle:{"justify-content":"left"}},t._l(t.tabs,(function(s,a){return e("a",{key:a,class:{"is-active":t.activeTab===s},on:{click:function(e){return e.stopPropagation(),t.switchTab(s)}}},[t._v(t._s(s))])})),0):t._e(),e("div",{staticClass:"panel-block is-block"},[t._t("panel-content")],2)])},It=[];let Tt=class extends u.lD{constructor(){super(...arguments),this.isOpen=!1,this.activeTab=this.value}onchange(t){this.activeTab=t}toggle(t){this.isOpen=!0===t||!1===t?t:!this.isOpen}onupdate(t){this.isOpen=t}switchTab(t){this.activeTab=t,this.$emit("input",t)}};(0,d.Cg)([(0,u.kv)({default:0})],Tt.prototype,"value",void 0),(0,d.Cg)([(0,u.kv)({default:Array})],Tt.prototype,"tabs",void 0),(0,d.Cg)([(0,u.kv)({default:""})],Tt.prototype,"title",void 0),(0,d.Cg)([(0,u.ox)("value")],Tt.prototype,"onchange",null),Tt=(0,d.Cg)([u.uA],Tt);var Nt=Tt,Mt=Nt,Et=(0,T.A)(Mt,Pt,It,!1,null,null,null),Dt=Et.exports;let Lt=class extends u.lD{constructor(){super(...arguments),this.value=null,this.resp=null,this.request=null,this.method=null,this.params=new Array(this.item.inputs.length),this.caller=""}callFC(){this.resetOutputs(),this.validate()&&this.readMethod()}reset(){const t=this.$refs.input||[];t.forEach((t=>{t.$parent.newType="",t.$parent.newMessage=""})),this.params.forEach(((t,e)=>{this.prototype&&"_self"===this.item.inputs[e].name||this.$set(this.params,e,"")})),this.resetOutputs()}resetOutputs(){this.request=null,this.resp=null}executeFC(){this.resetOutputs(),this.validate()&&this.writeMethod()}initMethod(t,e){const s=this.$connex.thor.account(this.prototype?"0x000000000000000000000050726f746f74797065":t.toLowerCase());this.method=s.method(e)}validate(){const t=this.$refs.input||[];return t.forEach((t=>{t.checkHtml5Validity()})),!t.some((t=>!1===t.isValid))}get payable(){return this.item.payable||"payable"===this.item.stateMutability}get hexValue(){return BN(this.payable&&this.value||0).multipliedBy(1e18).toFixed(0).toString(16)}async readMethod(){try{const t=this.params.map(((t,e)=>this.item.inputs[e].type.endsWith("]")?JSON.parse(t):t));this.request=this.method.value(this.hexValue).asClause(...t),this.caller?this.resp=await this.method.value(this.hexValue).caller(this.caller).call(...t):this.resp=await this.method.value(this.hexValue).call(...t)}catch(t){BUS.$alert(t.message)}}async writeMethod(){try{const t=this.params.map(((t,e)=>this.item.inputs[e].type.endsWith("]")?JSON.parse(t):t)),e=this.method.value(this.hexValue).asClause(...t);this.request=e,this.$connex.vendor.sign("tx",[{...e,comment:this.item.name}]).comment(`inspect-${this.address}`).request()}catch(t){BUS.$alert(t.message)}}};(0,d.Cg)([(0,u.kv)({default:null})],Lt.prototype,"item",void 0),(0,d.Cg)([(0,u.kv)()],Lt.prototype,"address",void 0),(0,d.Cg)([(0,u.kv)({default:!1})],Lt.prototype,"prototype",void 0),Lt=(0,d.Cg)([u.uA],Lt);var Ot=Lt;let Ft=class extends((0,u.Xe)(Ot)){constructor(){super(...arguments),this.tabs=["Inputs","Description"],this.activeTab="Inputs"}created(){if(this.activeTab=this.tabs[0],this.prototype){const t=this.item.inputs.findIndex((t=>"_self"===t.name));this.params[t]=this.address}this.initMethod(this.address,this.item)}get couldExc(){return!(!0===this.item.constant||["view","pure"].includes(this.item.stateMutability))}addShortCut(t){this.$buefy.dialog.prompt({title:"Add Shortcut",message:"Input a shortcut",inputAttrs:{placeholder:"Filter name",value:t,maxlength:30,required:!0},onConfirm:t=>{this.saveShortCut(t)}})}async saveShortCut(t){const e=await g.contracts.where("address").equals(this.address).first()||null;await g.shortCuts.add({name:t,address:e.address,contractName:e.name,fromPrototype:this.prototype,createdTime:Date.now(),abi:this.item,network:this.$connex.thor.genesis.id,type:this.couldExc?"write":"read"}),BUS.$emit("added-shortcut"),this.$buefy.toast.open({message:"Added success!",type:"is-success"})}};Ft=(0,d.Cg)([(0,u.uA)({components:{Panel:Dt}})],Ft);var zt=Ft,Bt=zt,qt=(0,T.A)(Bt,$t,At,!1,null,"69031e6a",null),Rt=qt.exports,Vt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("Panel",{attrs:{title:"Fallback"}},[e("template",{slot:"panel-content"},[e("pre",[t._v(t._s(t.fb))])])],2)},Ut=[];let jt=class extends u.lD{};(0,d.Cg)([(0,u.kv)({default:null})],jt.prototype,"fb",void 0),jt=(0,d.Cg)([(0,u.uA)({components:{Panel:Dt}})],jt);var Jt=jt,Ht=Jt,Wt=(0,T.A)(Ht,Vt,Ut,!1,null,null,null),Gt=Wt.exports,Xt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("Panel",{attrs:{tabs:t.tabs,title:t.item.name},model:{value:t.activeTab,callback:function(e){t.activeTab=e},expression:"activeTab"}},[e("template",{slot:"panel-content"},[e("div",{directives:[{name:"show",rawName:"v-show",value:t.activeTab===t.tabs[0],expression:"activeTab === tabs[0]"}]},[t._l(t.filters,(function(s,a){return e("b-field",{key:a,staticClass:"item-content",attrs:{horizontal:"",label:s.name}},[e("b-input",{ref:"input",refInFor:!0,attrs:{placeholder:s.type},model:{value:t.params[s.name],callback:function(e){t.$set(t.params,s.name,e)},expression:"params[v.name]"}})],1)})),e("b-field",{staticClass:"item-content",attrs:{horizontal:""}},[e("div",{staticClass:"buttons has-addons"},[e("button",{staticClass:"button is-rounded is-primary is-outlined",attrs:{type:"button"},on:{click:function(e){return t.addFilter(t.item.name)}}},[t._v("As a view")]),e("button",{staticClass:"button is-rounded is-primary is-outlined",attrs:{type:"button"},on:{click:function(e){return t.onRefresh(0)}}},[t._v("Execute")]),t.filters.length?e("button",{staticClass:"button is-rounded is-primary is-outlined",attrs:{type:"button"},on:{click:t.reset}},[t._v("Reset")]):t._e()])])],2),e("div",{directives:[{name:"show",rawName:"v-show",value:t.activeTab===t.tabs[1],expression:"activeTab === tabs[1]"}]},[e("pre",[t._v(t._s(t.item))])]),e("div",{directives:[{name:"show",rawName:"v-show",value:t.activeTab===t.tabs[2],expression:"activeTab === tabs[2]"}]},[e("nav",{staticClass:"navbar is-transparent",staticStyle:{"margin-bottom":"2px"}},[e("div",{staticClass:"navbar-item"},[e("div",{staticClass:"buttons has-addons"},[e("b-button",{staticClass:"is-primary",attrs:{tag:"button","icon-left":"sync-alt"},on:{click:t.onRefresh}}),e("b-button",{staticClass:"is-primary",attrs:{tag:"button",disabled:this.page<1,"icon-left":"chevron-left"},on:{click:t.onPrev}}),e("b-button",{staticClass:"is-primary",attrs:{tag:"button",disabled:t.list.length<5,"icon-left":"chevron-right"},on:{click:t.onNext}})],1)]),e("div",{staticClass:"navbar-item"},[t._v(t._s(t.ranges))])]),e("b-loading",{attrs:{"is-full-page":!0,active:t.isLoading},on:{"update:active":function(e){t.isLoading=e}}}),t._l(t.list,(function(s,a){return[e("EventShowCard",{key:5*t.page+a,attrs:{item:s,params:t.item.inputs}},[e("span",{attrs:{slot:"title"},slot:"title"},[t._v("#"+t._s(5*t.page+a+1))])])]}))],2)])],2)},Yt=[],Kt=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"box"},[e("div",[e("div",{staticClass:"level has-background-light",staticStyle:{"margin-bottom":"10px",padding:"5px 10px","border-radius":"5px"}},[e("div",{staticClass:"level-left"},[e("span",{staticClass:"is-family-secondary display-6 has-text-black-ter has-text-weight-semibold"},[t._t("title")],2),e("span",{staticClass:"is-family-secondary display-6 has-text-black-ter has-text-weight-semibold",staticStyle:{"margin-left":"20px"}},[t._v(" #Block "),e("a",{attrs:{target:"_blank",href:`${t.$explorerBlock}${t.item.meta.blockID}`}},[t._v(t._s(t.item.meta.blockNumber))])]),e("span",{staticClass:"is-family-secondary display-6",staticStyle:{"margin-left":"20px"}},[t._v(t._s(t._f("datetime")(1e3*t.item.meta.blockTimestamp)))])]),e("div",{staticClass:"level-right"},[e("a",{staticClass:"is-family-monospace display-6 has-text-weight-semibold",attrs:{target:"_blank",href:`${t.$explorerTx}${t.item.meta.txID}`}},[t._v(t._s(t._f("addr")(t.item.meta.txID)))])])]),e("b-tabs",{staticClass:"my-content",attrs:{animated:!1,size:"is-small",type:"is-toggle"},model:{value:t.tabIndex,callback:function(e){t.tabIndex=e},expression:"tabIndex"}},[e("b-tab-item",{attrs:{label:"Decoded"}},[e("b-table",{attrs:{data:t.data},scopedSlots:t._u([{key:"default",fn:function(s){return[e("b-table-column",{attrs:{width:"20",label:"#",field:"id"}},[t._v(t._s(s.row.id))]),e("b-table-column",{attrs:{width:"170",label:"Name",field:"name"}},[t._v(t._s(s.row.name))]),e("b-table-column",{attrs:{width:"220",label:"Type",field:"type"}},[t._v(" "+t._s(s.row.type)+" "),s.row.indexed?e("sup",{staticClass:"has-background-primary has-text-light",staticStyle:{padding:"2px 5px","border-radius":"3px","font-size":"11px"}},[t._v("indexed")]):t._e()]),e("b-table-column",{staticStyle:{"max-width":"380px","word-wrap":"break-word"},attrs:{label:"Data",field:"value"}},["address"===s.row.type?e("a",{staticClass:"has-text-weight-semibold is-family-monospace display-6",attrs:{target:"_blank",href:`${t.$explorerAccount}${s.row.value}`}},[t._v(t._s(t._f("toChecksumAddress")(s.row.value)))]):e("span",{staticClass:"has-text-weight-semibold is-family-monospace display-6 has-text-grey"},[t._v(t._s(s.row.value))])])]}}])})],1),e("b-tab-item",{attrs:{label:"Raw"}},[e("div",[e("b-field",{attrs:{"custom-class":"my-label","label-position":"inside",horizontal:"",label:"Topics"}},[e("ul",t._l(t.item.topics,(function(s,a){return e("li",{key:t.item.meta.blockID+a,staticClass:"is-family-monospace display-6 has-text-grey has-text-weight-semibold"},[e("span",[t._v("["+t._s(a)+"]")]),t._v(" "+t._s(s)+" ")])})),0)]),e("b-field",{attrs:{"custom-class":"my-label","label-position":"on-border",horizontal:"",label:"Data"}},[e("p",{staticClass:"has-text-weight-semibold has-text-grey display-6 is-family-monospace",staticStyle:{"word-break":"break-all"}},[t._v(t._s(t.item.data))])])],1)])],1)],1)])},Qt=[];let Zt=class extends u.lD{constructor(){super(...arguments),this.tabIndex=0,this.columns=[{label:"ID",field:"index"},{label:"Name",field:"name"},{label:"Type",field:"type"},{label:"Data",field:"value"}]}onItemChange(){this.data=this.params.map(((t,e)=>({id:e,name:t.name,type:t.type,indexed:t.indexed,value:this.item.decoded[t.name]})))}created(){this.onItemChange()}};(0,d.Cg)([(0,u.kv)(Object)],Zt.prototype,"item",void 0),(0,d.Cg)([(0,u.kv)(Array)],Zt.prototype,"params",void 0),(0,d.Cg)([(0,u.ox)("item"),(0,u.ox)("params")],Zt.prototype,"onItemChange",null),Zt=(0,d.Cg)([u.uA],Zt);var te=Zt,ee=te,se=(0,T.A)(ee,Kt,Qt,!1,null,null,null),ae=se.exports;let ie=class extends u.lD{constructor(){super(...arguments),this.page=0,this.list=[],this.params={},this.tabs=["Filters","Description","Datas"],this.activeTab="",this.isLoading=!1}created(){this.filters.forEach((t=>{this.params[t.name]=""})),this.activeTab=this.tabs[0];const t=this.$connex.thor.account(this.address);this.event=t.event(this.item)}get filters(){return this.item.inputs.filter((t=>t.indexed))}get ranges(){return 5*this.page+(this.list.length?1:0)+" - "+(5*this.page+this.list.length)}onTabChange(){"Datas"===this.activeTab&&this.getResult(this.page)}onNext(){this.page++,this.getResult(this.page)}onPrev(){this.page>0&&(this.page--,this.getResult(this.page))}onRefresh(){this.page=0,this.getResult(0)}addFilter(t){this.$buefy.dialog.prompt({title:"Add quick view",message:"Input a filter name",inputAttrs:{placeholder:"Filter name",value:t,maxlength:30,required:!0},onConfirm:t=>{this.saveFilter(t)}})}reset(){this.params={}}async saveFilter(t){const e=await g.contracts.where("address").equals(this.address).first()||null;await g.filters.add({name:t,address:e.address,contractName:e.name,fromPrototype:this.prototype,createdTime:Date.now(),network:this.$connex.thor.genesis.id,abi:this.item}),BUS.$emit("added-filter"),this.$buefy.toast.open({message:"Added success!",type:"is-success"})}async getResult(t){if(this.isLoading)return;this.isLoading=!0,this.activeTab=this.tabs[2];const e=[];for(const a in this.params)if(this.params.hasOwnProperty(a)){const t=this.params[a];t&&e.push({[a]:t})}try{this.list=await this.event.filter(e).order("desc").apply(5*t,5)}catch(s){BUS.$alert(s.message)}finally{this.isLoading=!1}}};(0,d.Cg)([(0,u.kv)({default:null})],ie.prototype,"item",void 0),(0,d.Cg)([(0,u.kv)()],ie.prototype,"address",void 0),(0,d.Cg)([(0,u.kv)({default:!1})],ie.prototype,"prototype",void 0),(0,d.Cg)([(0,u.ox)("activeTab")],ie.prototype,"onTabChange",null),ie=(0,d.Cg)([(0,u.uA)({components:{Panel:Dt,EventShowCard:ae}})],ie);var ne=ie,re=ne,oe=(0,T.A)(re,Xt,Yt,!1,null,"dfb6d268",null),le=oe.exports,ce=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("Panel",{attrs:{title:t.$attrs.title}},[e("template",{slot:"panel-content"},[e("pre",{staticStyle:{"max-height":"500px",overflow:"auto"}},[t._v(t._s(t.item))])])],2)},de=[];let ue=class extends u.lD{};(0,d.Cg)([(0,u.kv)({default:null})],ue.prototype,"item",void 0),ue=(0,d.Cg)([(0,u.uA)({components:{Panel:Dt}})],ue);var pe=ue,me=pe,he=(0,T.A)(me,ce,de,!1,null,null,null),be=he.exports,fe=[{constant:!1,inputs:[{name:"_self",type:"address"},{name:"_newMaster",type:"address"}],name:"setMaster",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_self",type:"address"},{name:"_user",type:"address"}],name:"isUser",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_self",type:"address"},{name:"_key",type:"bytes32"}],name:"storageFor",outputs:[{name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_self",type:"address"},{name:"_blockNumber",type:"uint256"}],name:"energy",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_self",type:"address"},{name:"_user",type:"address"}],name:"removeUser",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_self",type:"address"}],name:"currentSponsor",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_self",type:"address"},{name:"_credit",type:"uint256"},{name:"_recoveryRate",type:"uint256"}],name:"setCreditPlan",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"_self",type:"address"},{name:"_sponsor",type:"address"}],name:"selectSponsor",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_self",type:"address"},{name:"_blockNumber",type:"uint256"}],name:"balance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_self",type:"address"}],name:"sponsor",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_self",type:"address"}],name:"creditPlan",outputs:[{name:"credit",type:"uint256"},{name:"recoveryRate",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_self",type:"address"},{name:"_user",type:"address"}],name:"addUser",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_self",type:"address"}],name:"hasCode",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_self",type:"address"}],name:"master",outputs:[{name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_self",type:"address"},{name:"_user",type:"address"}],name:"userCredit",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_self",type:"address"}],name:"unsponsor",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_self",type:"address"},{name:"_sponsor",type:"address"}],name:"isSponsor",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"view",type:"function"}],ve=[{anonymous:!1,inputs:[{indexed:!1,name:"newMaster",type:"address"}],name:"$Master",type:"event"},{anonymous:!1,inputs:[{indexed:!1,name:"credit",type:"uint256"},{indexed:!1,name:"recoveryRate",type:"uint256"}],name:"$CreditPlan",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"user",type:"address"},{indexed:!1,name:"action",type:"bytes32"}],name:"$User",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"sponsor",type:"address"},{indexed:!1,name:"action",type:"bytes32"}],name:"$Sponsor",type:"event"}];let ge=class extends u.lD{constructor(){super(...arguments),this.protoTabs=[{text:"Prototype-Read",count:10,visible:!0},{text:"Prototype-Write",count:7,visible:!0},{text:"Prototype-Event",count:4,visible:!0}]}get prList(){return this._abi.filter((t=>"function"===t.type&&t.constant))}get pwList(){return this._abi.filter((t=>"function"===t.type&&!t.constant))}get peList(){return this._abiEvent}initAbi(){this._abi=fe,this._abiEvent=ve}};ge=(0,d.Cg)([u.uA],ge);var ye=ge,xe=s(6763);let _e=class extends((0,u.Xe)(ye)){constructor(){super(...arguments),this.contract=null,this.tabIndex=0,this.tabs=[],this.abi=[],this.code="",this.name="",this.caller="",this.isProtoType=!0}get filterList(){const t=this.abi;return t.filter((t=>t.name&&this.name&&t.name.toString().toLowerCase().indexOf(this.name.toLowerCase())>=0))}get readList(){return this.abi.filter((t=>"function"===t.type&&(!0===t.constant||["pure","view"].includes(t.stateMutability))))}get writeList(){return this.abi.filter((t=>"function"===t.type&&(!1===t.constant||!["pure","view"].includes(t.stateMutability))))}get eventList(){return this.abi.filter((t=>"event"===t.type))}get fb(){return this.abi.find((t=>"fallback"===t.type))}async getDetail(t){if(this.contract=await g.contracts.where("id").equals(parseInt(t,10)).or("address").equals(t).first()||null,this.contract)this.abi=this.contract.abi;else{this.$buefy.toast.open({duration:3e3,message:"No item got",position:"is-top",queue:!1,type:"is-info"});setTimeout((()=>{this.$router.push({name:"contracts"})}),3100)}}toExplorer(){window.open(`${this.$explorerAccount}${this.contract.address}`,"_blank")}async getCode(t){try{if(t){const e=await this.$connex.thor.account(t).getCode();this.code=e.code}}catch(e){xe.error(e)}}async created(){this.$ga.page("/inspector/contract/detail"),this.initAbi();const t=this.$route.query.id||this.$route.query.address;await this.getDetail(t),this.tabs=[{text:"Read",count:this.readList.length,visible:!!this.readList.length},{text:"Write",count:this.writeList.length,visible:!!this.writeList.length},{text:"Code & ABI",count:"",visible:!0},{text:"Events",count:this.eventList.length,visible:!!this.eventList.length},{text:"Fallback",count:"",visible:!!this.fb}],this.tabs=this.tabs.concat(this.protoTabs),await this.getCode(this.contract.address||""),this.tabIndex=this.tabs.findIndex((t=>t.visible))}onSearchSelect(t){const e={cb:2,fb:4,read:0,write:1,event:3};let s=t.type;"function"===s&&(s=t.constant?"read":"write"),this.tabIndex=e[s];const a=this.$refs[t.name];a[0].$children[0].toggle(!0),a[0].$el.scrollIntoView()}};_e=(0,d.Cg)([(0,u.uA)({components:{Contract:ut,FunctionCard:Rt,FallbackCard:Gt,DescCard:be,EventCard:le}})],_e);var we=_e,Ce=we,ke=(0,T.A)(Ce,kt,St,!1,null,null,null),Se=ke.exports,$e=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("section",[e("div",{staticClass:"log-container"},[e("div",{staticClass:"columns is-multiline"},[t._l(t.params,(function(s,a){return e("div",{key:a,staticClass:"column is-one-third"},[e("b-field",{attrs:{label:s.name}},[e("b-input",{attrs:{placeholder:s.type},model:{value:t.conditions[s.name],callback:function(e){t.$set(t.conditions,s.name,e)},expression:"conditions[v.name]"}})],1)],1)})),e("div",{staticClass:"column is-one-third"},[e("b-field",{attrs:{label:"Order"}},[e("b-select",{attrs:{expanded:"",placeholder:"Order"},model:{value:t.page.order,callback:function(e){t.$set(t.page,"order",e)},expression:"page.order"}},[e("option",{domProps:{value:!1}},[t._v("ASC")]),e("option",{domProps:{value:!0}},[t._v("DESC")])])],1)],1)],2),e("nav",{staticClass:"navbar is-transparent",staticStyle:{"margin-bottom":"2px","z-index":"20"}},[e("div",{staticClass:"navbar-start"},[e("div",{staticClass:"navbar-item",staticStyle:{"padding-left":"0"}},[e("b-field",{staticStyle:{width:"350px"},attrs:{horizontal:""}},[e("template",{slot:"label"},[e("div",{staticStyle:{width:"100px","text-align":"left"}},[t._v("Block Range")])]),e("b-input",{attrs:{placeholder:"from"},model:{value:t.blockFrom,callback:function(e){t.blockFrom=e},expression:"blockFrom"}}),e("b-input",{attrs:{placeholder:"to"},model:{value:t.blockTo,callback:function(e){t.blockTo=e},expression:"blockTo"}})],2)],1)]),e("div",{staticClass:"navbar-end"},[e("div",{staticClass:"navbar-item"},[t._v(t._s(t.ranges))]),e("div",{staticClass:"navbar-item"},[e("div",{staticClass:"buttons has-addons"},[e("button",{staticClass:"button",attrs:{disabled:t.page.num<1},on:{click:t.prePage}},[e("b-icon",{attrs:{icon:"angle-left"}})],1),e("button",{staticClass:"button",attrs:{disabled:t.list.lengtht.indexed))}get ranges(){return"#"+(this.page.num*this.page.size+(this.list.length?1:0))+" - #"+(this.page.num*this.page.size+this.list.length)}async onRouterChange(){await this.init(),this.getList(0)}onSizeChanged(t){t||(this.page.size=5),this.search()}onOrderChanged(){this.search()}async init(){this.filter=await g.filters.where("id").equals(parseInt(this.$route.params.id,10)).first()||null;const t=this.$connex.thor.account(this.filter.address);this.abi=this.filter.abi?this.filter.abi:"",this.event=t.event(this.abi),this.setParams()}search(){this.page.num=0,this.getList(0)}prePage(){this.page.num>0&&(this.page.num--,this.getList(this.page.num))}nextPage(){this.page.num++,this.getList(this.page.num)}async getList(t){this.isLoading=!0;const e=[];for(const a in this.conditions)if(this.conditions.hasOwnProperty(a)){const t=this.conditions[a];t&&e.push({[a]:t})}try{this.list=await this.event.filter(e).order(this.page.order?"desc":"asc").range(this.getBlcokRange()).apply(t*this.page.size,this.page.size)}catch(s){BUS.$alert(s.message)}finally{this.isLoading=!1}}getBlcokRange(){const t=this.blockFrom||0,e=this.blockTo||this.$connex.thor.status.head.number;return{unit:"block",from:BN(t).toNumber(),to:BN(e).toNumber()}}async created(){this.$ga.page("/inspector/view/list"),await this.init(),this.getList(0)}};(0,d.Cg)([(0,u.ox)("$route")],Pe.prototype,"onRouterChange",null),(0,d.Cg)([(0,u.ox)("page.size")],Pe.prototype,"onSizeChanged",null),(0,d.Cg)([(0,u.ox)("page.order")],Pe.prototype,"onOrderChanged",null),Pe=(0,d.Cg)([(0,u.uA)({components:{EventShowCard:ae}})],Pe);var Ie=Pe,Te=Ie,Ne=(0,T.A)(Te,$e,Ae,!1,null,"1219d4b9",null),Me=Ne.exports,Ee=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("section",{staticClass:"section"},[e("div",{staticClass:"container"},[e("b-table",{attrs:{detailed:"","per-page":t.perPage,"current-page":t.currentPage,data:t.list,paginated:"","backend-pagination":"",total:t.count},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"page-change":t.onPageChange},scopedSlots:t._u([{key:"default",fn:function(s){return[e("b-table-column",{attrs:{centered:"",label:"ID"}},[t._v(t._s(s.row.id))]),e("b-table-column",{attrs:{label:"Name"}},[e("router-link",{attrs:{to:{name:"filter_view",params:{id:s.row.id}}}},[t._v(t._s(s.row.name))])],1),e("b-table-column",{attrs:{label:"Contract"}},[e("router-link",{attrs:{to:{name:"contract_detail",query:{address:s.row.address}}}},[t._v(" "+t._s(s.row.contractName)+" ")]),e("b-tooltip",{attrs:{label:"Prototype"}},[s.row.fromPrototype?e("b-icon",{staticStyle:{"margin-left":"5px"},attrs:{icon:"code-branch",size:"is-small"}}):t._e()],1)],1),e("b-table-column",{attrs:{label:"Address"}},[e("span",{staticClass:"is-family-monospace has-text-weight-semibold"},[t._v(t._s(t._f("addr")(t._f("toChecksumAddress")(s.row.address))))])]),e("b-table-column",{attrs:{centered:"",label:"Operations"}},[e("div",{staticClass:"buttons has-addons is-centered"},[e("button",{staticClass:"button is-rounded control is-small",on:{click:function(e){return t.edit(s.row)}}},[e("b-icon",{attrs:{size:"is-small",icon:"edit"}})],1),e("button",{staticClass:"button is-rounded control is-small",on:{click:function(e){return t.remove(s.row)}}},[e("b-icon",{attrs:{size:"is-small",icon:"trash-alt"}})],1)])])]}},{key:"detail",fn:function(s){return[e("pre",[t._v(t._s(s.row.abi))])]}}])})],1)])},De=[];let Le=class extends u.lD{constructor(){super(...arguments),this.list=[],this.perPage=10,this.currentPage=1,this.count=0,this.columns=[{label:"ID",field:"id",centered:!0},{label:"From Contract",field:"contractName",centered:!0},{label:"Name",field:"name",centered:!0},{label:"Address",field:"address",centered:!0}]}get network(){return this.$connex.thor.genesis.id}async created(){this.$ga.page("/inspector/view/mgt"),this.onPageChange(1),this.count=await g.filters.filter((t=>t.network===this.network||void 0===t.network)).count()}edit(t){this.$buefy.dialog.prompt({title:"Edit quick view",message:"Edit filter name",inputAttrs:{placeholder:"Filter name",value:t.name,maxlength:30,required:!0},onConfirm:e=>{g.filters.update(t.id,{name:e}).then((()=>{this.onPageChange(this.currentPage)}))}})}remove(t){this.$buefy.dialog.confirm({title:"Remove",message:`Are you sure want to remove '${t.name}' contract`,cancelText:"Cancel",confirmText:"YES",type:"is-danger",scroll:"clip",onConfirm:()=>{g.filters.delete(t.id).then((()=>{this.onPageChange(this.currentPage)}))}})}async onPageChange(t){this.list=await g.filters.filter((t=>t.network===this.network||void 0===t.network)).offset((t-1)*this.perPage).limit(this.perPage).toArray()}};Le=(0,d.Cg)([u.uA],Le);var Oe=Le,Fe=Oe,ze=(0,T.A)(Fe,Ee,De,!1,null,null,null),Be=ze.exports,qe=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("section",{staticClass:"section"},[e("div",{staticClass:"container"},[e("b-field",{attrs:{grouped:""}},[e("b-field",{attrs:{expanded:""}},[e("b-field",{staticClass:"is-pulled-right"},[e("b-input",{attrs:{icon:"search",type:"text",placeholder:"Name"}}),e("p",{staticClass:"control"},[e("button",{staticClass:"button is-primary"},[t._v("Search")])])],1)],1)],1),e("b-table",{attrs:{detailed:"","per-page":t.perPage,"current-page":t.currentPage,data:t.list,paginated:"","backend-pagination":"",total:t.count},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"page-change":t.onPageChange},scopedSlots:t._u([{key:"default",fn:function(s){return[e("b-table-column",{attrs:{centered:"",label:"ID"}},[t._v(t._s(s.row.id))]),e("b-table-column",{attrs:{label:"Name"}},[t._v(t._s(s.row.name))]),e("b-table-column",{attrs:{label:"Contract"}},[e("router-link",{attrs:{to:{name:"contract_detail",query:{address:s.row.address}}}},[t._v(t._s(s.row.contractName))]),e("b-tooltip",{attrs:{label:"Prototype"}},[s.row.fromPrototype?e("b-icon",{staticStyle:{"margin-left":"5px"},attrs:{icon:"code-branch",size:"is-small"}}):t._e()],1)],1),e("b-table-column",{attrs:{label:"Type"}},[t._v(t._s(s.row.type))]),e("b-table-column",{attrs:{label:"Address"}},[e("b-tooltip",{attrs:{label:t._f("toChecksumAddress")(s.row.address)}},[e("span",{staticClass:"is-family-monospace has-text-weight-semibold"},[t._v(t._s(t._f("addr")(t._f("toChecksumAddress")(s.row.address))))])])],1),e("b-table-column",{attrs:{centered:"",label:"Operations"}},[e("div",{staticClass:"buttons has-addons is-centered"},[e("button",{staticClass:"button is-rounded control is-small",on:{click:function(e){return t.edit(s.row)}}},[e("b-icon",{attrs:{size:"is-small",icon:"edit"}})],1),e("button",{staticClass:"button is-rounded control is-small",on:{click:function(e){return t.remove(s.row)}}},[e("b-icon",{attrs:{size:"is-small",icon:"trash-alt"}})],1)])])]}},{key:"detail",fn:function(t){return[e("SampleFuncCard",{attrs:{caller:"caller",prototype:t.row.fromPrototype,item:t.row.abi,address:t.row.address}})]}}])})],1)])},Re=[],Ve=function(){var t=this,e=t._self._c;t._self._setupProxy;return e("div",{staticClass:"func-card"},[e("p",{staticClass:"panel-tabs",staticStyle:{"justify-content":"left"}},t._l(t.tabs,(function(s,a){return e("a",{key:a,class:{"is-active":t.activeTab===s},on:{click:function(e){return e.stopPropagation(),t.switchTab(s)}}},[t._v(t._s(s))])})),0),e("div",{staticClass:"card-content"},[e("form",{directives:[{name:"show",rawName:"v-show",value:t.activeTab===t.tabs[0],expression:"activeTab === tabs[0]"}],ref:"form",on:{reset:function(e){return e.preventDefault(),t.reset.apply(null,arguments)}}},[e("b-field",{staticClass:"item-content",attrs:{horizontal:"",message:"Special address to call the method, it's not the param of the method",label:"Caller"},model:{value:t.caller,callback:function(e){t.caller=e},expression:"caller"}},[e("b-input",{attrs:{placeholder:"Optional: Address"}})],1),t._l(t.item.inputs,(function(s,a){return e("b-field",{key:a,staticClass:"item-content",attrs:{horizontal:"",label:s.name}},[e("b-input",{ref:"input",refInFor:!0,attrs:{readonly:t.prototype&&"_self"===s.name,required:"",placeholder:s.type},model:{value:t.params[a],callback:function(e){t.$set(t.params,a,e)},expression:"params[index]"}})],1)})),t.item.payable?e("b-field",{staticClass:"item-content",attrs:{horizontal:"",label:"value"}},[e("b-input",{attrs:{type:"number",placeholder:"number"},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}})],1):t._e(),e("b-field",{staticClass:"item-content"},[e("div",{staticClass:"buttons has-addons"},[t.item.constant?t._e():e("button",{staticClass:"button is-rounded is-primary is-outlined",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.executeFC.apply(null,arguments)}}},[t._v("Execute")]),e("button",{staticClass:"button is-rounded is-primary is-outlined",attrs:{type:"button"},on:{click:function(e){return e.stopPropagation(),t.callFC.apply(null,arguments)}}},[t._v("Call")]),e("button",{staticClass:"button is-rounded is-primary is-outlined",attrs:{type:"reset"}},[t._v("Reset")])])]),t.request?e("b-field",{attrs:{label:"Request"}},[e("pre",{staticStyle:{width:"100%","white-space":"break-spaces","word-break":"break-all"}},[t._v(t._s(t.request))])]):t._e(),t.resp?e("b-field",{attrs:{label:"Response"}},[e("pre",{staticStyle:{width:"100%","white-space":"break-spaces","word-break":"break-all"}},[t._v(t._s(t.resp))])]):t._e()],2),e("div",{directives:[{name:"show",rawName:"v-show",value:t.activeTab===t.tabs[1],expression:"activeTab === tabs[1]"}]},[e("pre",[t._v(t._s(t.item))])])])])},Ue=[];let je=class extends((0,u.Xe)(Ot)){constructor(){super(...arguments),this.tabs=["Inputs","Description"],this.activeTab=""}created(){this.activeTab=this.tabs[0];const t=this.$connex.thor.account(this.address);if(this.method=t.method(this.item),this.prototype){const t=this.item.inputs.findIndex((t=>"_self"===t.name));this.params[t]=this.address}}switchTab(t){this.activeTab=t}};(0,d.Cg)([(0,u.kv)({default:!1})],je.prototype,"prototype",void 0),je=(0,d.Cg)([(0,u.uA)({components:{Panel:Dt}})],je);var Je=je,He=Je,We=(0,T.A)(He,Ve,Ue,!1,null,"18528316",null),Ge=We.exports;let Xe=class extends u.lD{constructor(){super(...arguments),this.list=[],this.count=0,this.perPage=10,this.currentPage=1,this.caller=""}async created(){this.$ga.page("/view/scs"),await this.onPageChange(1),await this.countList()}get network(){return this.$connex.thor.genesis.id}async countList(){this.count=await g.shortCuts.filter((t=>t.network===this.network||void 0===t.network)).count()}async onPageChange(t){this.list=await g.shortCuts.filter((t=>t.network===this.network||void 0===t.network)).offset((t-1)*this.perPage).limit(this.perPage).toArray()}edit(t){this.$buefy.dialog.prompt({title:"Edit Shortcut",message:"Edit shortcut name",inputAttrs:{placeholder:"Shortcut name",value:t.name,maxlength:30,required:!0},onConfirm:e=>{g.shortCuts.update(t.id,{name:e}).then((()=>{this.onPageChange(this.currentPage)}))}})}remove(t){this.$buefy.dialog.confirm({title:"Remove",message:`Are you sure want to remove '${t.name}' contract`,cancelText:"Cancel",confirmText:"YES",type:"is-danger",scroll:"clip",onConfirm:()=>{g.shortCuts.delete(t.id).then((()=>{this.onPageChange(this.currentPage)}))}})}};Xe=(0,d.Cg)([(0,u.uA)({components:{SampleFuncCard:Ge}})],Xe);var Ye=Xe,Ke=Ye,Qe=(0,T.A)(Ke,qe,Re,!1,null,null,null),Ze=Qe.exports;u.lD.use(R.A);const ts=new R.A({mode:"hash",routes:[{name:"root",redirect:{name:"contracts"},path:"/"},{name:"notSupport",component:G,path:"/not-support"},{name:"contracts",component:ft,path:"/contracts"},{name:"deploy",component:Ct,path:"/deploy"},{name:"contract_detail",component:Se,path:"/contract/detail"},{name:"filter_view",component:Me,path:"/view/:id/list"},{name:"filter_mgt",component:Be,path:"/view/mgt"},{name:"short_cuts",component:Ze,path:"/view/scs"},{path:"*",redirect:{name:"contracts"}}]});var es=ts,ss=s(2102),as=s.n(ss),is=s(6281),ns=s.n(is);const rs=async t=>{const{address:e,genesisId:s,name:a,abi:i}=t;await g.contracts.filter((t=>t.address.toLowerCase()===e.toLowerCase())).delete();const n={abi:i,address:e.toLowerCase(),name:a,createdTime:Date.now(),network:s};await g.contracts.add(n)},os=async()=>{const t=await fetch("/abis/contracts.json");if(!t.ok)return;const e=await t.json();for(const s of e)await rs(s)};var ls=s(6763);function cs(t){const e=t?t+"/":t;a["default"].prototype.$explorerAccount=`https://insight.vecha.in/#/${e}accounts/`,a["default"].prototype.$explorerBlock=`https://insight.vecha.in/#/${e}blocks/`,a["default"].prototype.$explorerTx=`https://insight.vecha.in/#/${e}txs/`}if(a["default"].use(n.Ay,{defaultIconPack:"fas"}),a["default"].use(r.Ay,{events:"blur",validity:!0}),a["default"].use(as(),{id:"UA-132391998-2",disabled:!0}),a["default"].config.productionTip=!1,window.connex)ls.log("Connex ok",window.connex),a["default"].prototype.$connex=new(ns())({network:window.connex.thor.genesis,node:"",noV1Compat:!1}),cs("");else{const t=_?"solo":"main",e=localStorage.getItem("last-net")||t;if(ls.log("net",e),["test","main","solo"].includes(e))cs(e),a["default"].prototype.$connex=k(e);else{const t=localStorage.getItem("custom-node"),e=JSON.parse(localStorage.getItem("custom-network")||"");if(t&&e){if("0x000000000b2bce3c70bc649a02749e8687721b09ed2e15997f466536b20bb127"===e.id)cs("test");else if("0x00000000851caf3cfdb6e899cf5958bfb1ac3413d346d43539627e6be7ec1b4a"===e.id)cs("main");else{const e=t.endsWith("/")?t:t+"/";a["default"].prototype.$explorerAccount=`${e}accounts/`,a["default"].prototype.$explorerBlock=`${e}blocks/`,a["default"].prototype.$explorerTx=`${e}transactions/`}a["default"].prototype.$connex=new(ns())({network:e,node:t})}}}os(),new a["default"]({router:es,render:t=>t(F)}).$mount("#app")},7790:function(){},2634:function(){},5340:function(){},9838:function(){}},e={};function s(a){var i=e[a];if(void 0!==i)return i.exports;var n=e[a]={id:a,loaded:!1,exports:{}};return t[a].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=t,function(){var t=[];s.O=function(e,a,i,n){if(!a){var r=1/0;for(d=0;d=n)&&Object.keys(s.O).every((function(t){return s.O[t](a[l])}))?a.splice(l--,1):(o=!1,n0&&t[d-1][2]>n;d--)t[d]=t[d-1];t[d]=[a,i,n]}}(),function(){s.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return s.d(e,{a:e}),e}}(),function(){s.d=function(t,e){for(var a in e)s.o(e,a)&&!s.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:e[a]})}}(),function(){s.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()}(),function(){s.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),function(){s.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}}(),function(){s.nmd=function(t){return t.paths=[],t.children||(t.children=[]),t}}(),function(){var t={524:0};s.O.j=function(e){return 0===t[e]};var e=function(e,a){var i,n,r=a[0],o=a[1],l=a[2],c=0;if(r.some((function(e){return 0!==t[e]}))){for(i in o)s.o(o,i)&&(s.m[i]=o[i]);if(l)var d=l(s)}for(e&&e(a);c {\n BUS.$buefy.dialog.confirm({\n title: 'Error',\n type: 'is-danger',\n message: `${msg}`,\n hasIcon: true,\n cancelText: 'Close',\n confirmText: 'Open an issue',\n onConfirm: () => {\n window.open('https://github.com/vechain/inspector-app/issues', '_blank')\n }\n })\n}\nObject.defineProperty(window, 'BN', {\n value: BN,\n enumerable: true,\n writable: false\n})\n","import { Validator } from 'vee-validate'\n\nValidator.extend('bytecode', {\n getMessage: (field: string) => {\n return `${field} field is invalid.`\n },\n validate: (value: string) => {\n const regex = /^(0x|0X)[a-fA-F0-9]+$/\n return regex.test(value) && value.length % 2 === 0\n }\n})\n\nValidator.extend('vet', {\n getMessage: (field: string) => {\n return `${field} field is invalid, (positive number and limited to 18 decimal places).`\n },\n validate: (value: string) => {\n const v = BN(value)\n const temp = BN(v.multipliedBy(1e18))\n return temp.isInteger() && !temp.isNegative()\n }\n})\nconst dictionary = {\n en: {\n attributes: {\n code: `Byte Code`\n }\n }\n}\n\nValidator.localize(dictionary)\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('body',{staticClass:\"has-navbar-fixed-top\"},[_c('Navbar',{staticClass:\"is-fixed-top\"}),_c('div',{staticClass:\"router-view\"},[_c('router-view')],1)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('nav',{staticClass:\"navbar is-dark\",attrs:{\"role\":\"navigation\",\"aria-label\":\"main navigation\"}},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"navbar-brand is-marginless\"},[_c('h2',{staticClass:\"subtitle has-text-white is-2\",staticStyle:{\"padding-left\":\"20px\"}},[_vm._v(\"Inspector\")]),_c('a',{staticClass:\"navbar-burger\",class:{'is-active': _vm.burgerActive},attrs:{\"role\":\"button\"},on:{\"click\":function($event){_vm.burgerActive = !_vm.burgerActive}}},[_c('span',{attrs:{\"aria-hidden\":\"true\"}}),_c('span',{attrs:{\"aria-hidden\":\"true\"}}),_c('span',{attrs:{\"aria-hidden\":\"true\"}})])]),_c('div',{staticClass:\"navbar-menu\",class:{'is-active': _vm.burgerActive}},[_c('div',{staticStyle:{\"width\":\"40px\"}}),_c('div',{staticClass:\"navbar-start\"},[_vm._l((_vm.routes),function(item,index){return _c('router-link',{key:index,staticClass:\"navbar-item\",attrs:{\"exact\":\"\",\"to\":{name: item.name}}},[_vm._v(_vm._s(item.text))])}),(_vm.views.length)?_c('div',{staticClass:\"navbar-item has-dropdown is-hoverable\"},[_c('a',{staticClass:\"navbar-link\"},[_vm._v(\"Views\")]),_c('div',{staticClass:\"navbar-dropdown\"},[_c('router-link',{staticClass:\"navbar-item\",attrs:{\"to\":{\n name: 'filter_mgt'\n }}},[_vm._v(\"All\")]),_c('hr',{staticClass:\"navbar-divider\"}),_vm._l((_vm.views),function(view,index){return _c('router-link',{key:index,staticClass:\"navbar-item\",attrs:{\"to\":{\n name: 'filter_view',\n params: {\n id: view.id\n }\n }}},[_vm._v(_vm._s(view.name))])})],2)]):_vm._e(),(_vm.shortCuts)?_c('router-link',{staticClass:\"navbar-item\",attrs:{\"active-class\":\"has-background-grey-dark\",\"to\":{name: 'short_cuts'}}},[_vm._v(\"Shortcuts\")]):_vm._e()],2),_c('div',{staticClass:\"navbar-end\",staticStyle:{\"padding-right\":\"20px\"}},[(_vm.networks.length === 1)?_c('b-tag',{staticStyle:{\"margin\":\"auto 0px\"},attrs:{\"size\":\"is-medium\",\"type\":\"is-warning\"}},[_vm._v(_vm._s(_vm.networks[0].label))]):_vm._e(),(_vm.networks.length > 1)?_c('b-dropdown',{staticStyle:{\"vertical-align\":\"top\"},attrs:{\"size\":\"sm\",\"text\":_vm.network,\"toggle-class\":\"py-0 px-1\"}},[_c('template',{slot:\"trigger\"},[_c('b-button',{staticClass:\"navbar-item\",attrs:{\"type\":\"is-dark\",\"label\":_vm.network,\"icon-right\":\"caret-down\"}})],1),_vm._l((_vm.switchableNetworks),function(n,i){return _c('b-dropdown-item',{key:i,attrs:{\"value\":n.name},on:{\"click\":function($event){return _vm.onChange(n.name)}}},[_vm._v(_vm._s(n.label))])})],2):_vm._e(),_c('a',{staticClass:\"navbar-item\",attrs:{\"href\":\"https://github.com/vechain/inspector-app\",\"target\":\"_blank\"}},[_vm._v(\"GitHub\")])],1)])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","import Dexie from 'dexie'\nimport 'dexie-observable'\nimport { IDatabaseChange } from 'dexie-observable/api'\n\nexport namespace Entities {\n export interface Contract {\n id?: number\n name?: string\n address: string\n createdTime?: number\n abi?: object | []\n network?: string\n }\n\n export interface Filter extends Contract {\n contractName?: string\n fromPrototype?: boolean\n }\n\n export interface ShortCuts extends Contract {\n contractName?: string\n type: 'read' | 'write'\n fromPrototype?: boolean\n }\n}\n\nclass Database extends Dexie {\n public readonly contracts!: Dexie.Table\n public readonly filters!: Dexie.Table\n public readonly shortCuts!: Dexie.Table\n\n constructor() {\n super('inspect')\n\n this.version(2).stores({\n contracts: '++id, &address, name',\n filters: '++id, address, name, contractName',\n shortCuts: '++id, address, name, contractName'\n })\n this.version(3).stores({\n shortCuts: '++id, address, name, contractName, fromPrototype',\n filters: '++id, address, name, contractName, fromPrototype',\n })\n\n this.version(4).stores({\n contracts: '++id, &address, name, network'\n })\n this.version(5).stores({\n contracts: '++id, address, name, network'\n })\n this.open().catch((err) => {\n // tslint:disable-next-line:no-console\n console.error(err)\n })\n }\n\n public subscribe(\n tableName: string,\n onChange: (changes: IDatabaseChange[]) => void\n ) {\n const ev = this.on('changes')\n const fn = (changes: IDatabaseChange[]) => {\n changes = changes.filter((c) => c.table === tableName)\n if (changes.length > 0) {\n onChange(changes)\n }\n }\n ev.subscribe(fn)\n return {\n unsubscribe: () => ev.unsubscribe(fn)\n }\n }\n}\n\nconst DB = new Database()\n\nexport default DB\n","import Connex from \"@vechain/connex/esm\";\n\nexport const soloUrlNode = () => {\n //Used to support docker runtime env variables. This string is overrided on container startup using the injected env \n if(process.env.VUE_APP_IS_DOCKER) {\n const soloUrlPlaceholder = 'VUE_APP_SOLO_URL_PLACEHOLDER';\n return soloUrlPlaceholder;\n }\n return process.env.VUE_APP_SOLO_URL;\n}\n\n\n//Needed to support runtime env variables\nexport const isSoloNode = !!soloUrlNode();\nexport const nodeUrls = {\n main: \"https://explore-mainnet.veblocks.net\",\n test: \"https://explore-testnet.veblocks.net\",\n solo: soloUrlNode() || \"http://localhost:8669\",\n custom: \"\",\n};\n\nconst soloGenesis = {\n number: 0,\n id: \"0x00000000c05a20fbca2bf6ae3affba6af4a74b800b585bf7a4988aba7aea69f6\",\n size: 170,\n parentID:\n \"0xffffffff53616c757465202620526573706563742c20457468657265756d2100\",\n timestamp: 1530316800,\n gasLimit: 10000000,\n beneficiary: \"0x0000000000000000000000000000000000000000\",\n gasUsed: 0,\n totalScore: 0,\n txsRoot: \"0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0\",\n txsFeatures: 0,\n stateRoot:\n \"0x93de0ffb1f33bc0af053abc2a87c4af44594f5dcb1cb879dd823686a15d68550\",\n receiptsRoot:\n \"0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0\",\n signer: \"0x0000000000000000000000000000000000000000\",\n isTrunk: true,\n transactions: [],\n};\n\nexport function createConnex(net?: \"main\" | \"test\" | \"solo\") {\n if (net) {\n // net specified\n const url = nodeUrls[net];\n if (net == \"solo\") {\n return new Connex({ node: url, network: soloGenesis });\n}\n return new Connex({ node: url, network: net });\n } else {\n const injected = (window as any).connex;\n // net unspecified\n if (injected) {\n return new Connex({ node: \"\", network: injected.thor.genesis });\n } else {\n // defaults to main net, or soloUrl if solo is provided\n if (isSoloNode) {\n return new Connex({ node: nodeUrls.solo, network: soloGenesis });\n }\n return new Connex({ node: nodeUrls.main });\n }\n }\n}\n","export function genesisIdToNetwork(id: string) {\n switch (id) {\n case \"0x00000000851caf3cfdb6e899cf5958bfb1ac3413d346d43539627e6be7ec1b4a\":\n return \"main\";\n case \"0x000000000b2bce3c70bc649a02749e8687721b09ed2e15997f466536b20bb127\":\n return \"test\";\n case \"0x00000000c05a20fbca2bf6ae3affba6af4a74b800b585bf7a4988aba7aea69f6\":\n return \"solo\";\n default:\n return \"custom\";\n }\n }\n \n export function networkToGenesisId(net: string) {\n switch (net) {\n case \"main\":\n return \"0x00000000851caf3cfdb6e899cf5958bfb1ac3413d346d43539627e6be7ec1b4a\";\n case \"test\":\n return \"0x000000000b2bce3c70bc649a02749e8687721b09ed2e15997f466536b20bb127\";\n case \"solo\":\n return \"0x00000000c05a20fbca2bf6ae3affba6af4a74b800b585bf7a4988aba7aea69f6\";\n default:\n return \"\";\n }\n }\n ","\n\n\n\nimport { isSoloNode } from '@/create-connex'\nimport { isSoloNode } from '@/create-connex'\nimport { isSoloNode } from '@/create-connex'\ngenesisIdToNetwork, \n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Navbar.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Navbar.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./Navbar.vue?vue&type=template&id=611d79ae&scoped=true\"\nimport script from \"./Navbar.vue?vue&type=script&lang=ts\"\nexport * from \"./Navbar.vue?vue&type=script&lang=ts\"\nimport style0 from \"./Navbar.vue?vue&type=style&index=0&id=611d79ae&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"611d79ae\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n\n","import mod from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../node_modules/thread-loader/dist/cjs.js!../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=0a47c642\"\nimport script from \"./App.vue?vue&type=script&lang=ts\"\nexport * from \"./App.vue?vue&type=script&lang=ts\"\nimport style0 from \"./App.vue?vue&type=style&index=0&id=0a47c642&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import { Vue } from 'vue-property-decorator'\nimport { address as Address } from 'thor-devkit'\nVue.filter('addr', (v: string) => {\n const temp = v.startsWith('0x') ? v : `0x${v}`\n return temp.substring(0, 8) + '…' + temp.substring(temp.length - 8, temp.length)\n})\n\nVue.filter('datetime', (v: number) => {\n return new Date(v).toLocaleString()\n})\n\nVue.filter('toChecksumAddress', (val: string) => {\n if (val) {\n return Address.toChecksumed(val)\n }\n})\n","import { Vue } from 'vue-property-decorator'\nimport { picasso } from '@vechain/picasso'\nimport { VNode } from 'vue'\n\nfunction getImg(el: HTMLElement, address: string): string {\n const svg = picasso(address.toLowerCase())\n if (el.nodeName === 'IMG') {\n return `data:image/svg+xml;utf8,${svg}`\n } else {\n return `no-repeat url('data:image/svg+xml;utf8,${svg}')`\n }\n}\n\nVue.directive('ident', {\n update(el: HTMLElement, binding: any) {\n if (binding.value !== binding.oldValue) {\n if (el.nodeName === 'IMG') {\n const temp = el as HTMLImageElement\n temp.src = getImg(el, binding.value)\n } else {\n el.style.background = getImg(el, binding.value)\n el.style.backgroundSize = 'cover'\n }\n }\n },\n inserted(el: HTMLElement, binding: any) {\n if (binding.value !== binding.oldValue) {\n if (el.nodeName === 'IMG') {\n const temp = el as HTMLImageElement\n temp.src = getImg(el, binding.value)\n } else {\n el.style.background = getImg(el, binding.value)\n el.style.backgroundSize = 'cover'\n }\n }\n }\n})\n\nVue.directive('inview', {\n update(el: HTMLElement, binding: any, vnode: VNode) {\n const SE = document.querySelector(binding.value)\n let scrollEnd: number\n const offsetTop = el.offsetTop\n const elHeight = el.clientHeight\n el.style.transition = 'margin-top 0.15s'\n SE.onscroll = (event: any) => {\n window.clearTimeout(scrollEnd)\n scrollEnd = window.setTimeout(() => {\n const top = event.target.scrollTop\n if (top > offsetTop) {\n const temp = top - (offsetTop - elHeight)\n el.style.marginTop = (temp > 0 ? temp : 0) + 'px'\n } else {\n el.style.marginTop = '0px'\n }\n }, 100)\n }\n }\n})\n","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _vm._m(0)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticStyle:{\"width\":\"500px\",\"margin\":\"140px auto\",\"font-size\":\"25px\"}},[_vm._v(\" Inspector only supported for the \"),_c('strong',{staticStyle:{\"color\":\"#26a69a\"}},[_vm._v(\"Main\")]),_vm._v(\" or \"),_c('strong',{staticStyle:{\"color\":\"#26a69a\"}},[_vm._v(\"Test\")]),_vm._v(\" net. if you need other networks, please check on \"),_c('a',{attrs:{\"target\":\"_blank\",\"href\":\"https://github.com/vechain/inspector-app\"}},[_c('strong',[_vm._v(\"GitHub\")])])])\n}]\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./NotSupport.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./NotSupport.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./NotSupport.vue?vue&type=template&id=e5bea554\"\nimport script from \"./NotSupport.vue?vue&type=script&lang=ts\"\nexport * from \"./NotSupport.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('section',{staticClass:\"section\"},[_c('div',{staticClass:\"level container\"},[_vm._m(0),_c('div',{staticClass:\"level-right\"},[_c('button',{staticClass:\"button is-primary is-outlined\",staticStyle:{\"margin-right\":\"10px\"},on:{\"click\":_vm.onImport}},[_c('b-icon',{attrs:{\"icon\":\"file-import\"}})],1),_c('button',{staticClass:\"button is-primary is-outlined\",on:{\"click\":_vm.addItem}},[_c('b-icon',{attrs:{\"icon\":\"plus\"}})],1),_c('input',{ref:\"files\",staticClass:\"is-hidden\",attrs:{\"type\":\"file\",\"accept\":\"application/json\"}})])]),(_vm.contracts.length)?_c('div',{staticClass:\"columns section is-variable is-1 is-multiline\",class:{'is-centered': _vm.contracts.length < 4}},_vm._l((_vm.contracts),function(item,index){return _c('div',{key:index,staticClass:\"column is-3-fullhd is-4-desktop is-6-tablet\"},[_c('Contract',{staticClass:\"contract-box\",attrs:{\"item\":item},on:{\"select\":function($event){return _vm.onSelect(item.id)}}},[_vm._t(\"default\",function(){return [_c('p',{staticClass:\"buttons buttons-slot\"},[_c('button',{staticClass:\"button is-primary is-inverted\",on:{\"click\":function($event){$event.stopPropagation();return _vm.edit(item)}}},[_c('b-icon',{attrs:{\"icon\":\"edit\",\"size\":\"is-small\"}})],1),_c('button',{staticClass:\"button is-primary is-inverted\",on:{\"click\":function($event){$event.stopPropagation();return _vm.exportJson(item)}}},[_c('b-icon',{attrs:{\"icon\":\"file-export\",\"size\":\"is-small\"}})],1)])]}),_vm._t(\"default\",function(){return [_c('button',{staticClass:\"buttons-slot button is-danger is-inverted\",on:{\"click\":function($event){$event.stopPropagation();return _vm.remove(item)}}},[_c('b-icon',{attrs:{\"icon\":\"trash-alt\",\"size\":\"is-small\"}})],1)]},{\"slot\":\"right\"})],2)],1)}),0):_vm._e(),(!_vm.isloading && !_vm.contracts.length)?_c('div',{staticClass:\"section\"},[_c('div',{staticClass:\"container\"},[_c('div',{staticClass:\"card\"},[_c('div',{staticClass:\"card-content has-text-centered is-size-2 has-text-grey-light\"},[_vm._v(\"No contracts here!\")]),_c('div',{staticClass:\"card-footer\"},[_c('a',{staticClass:\"card-footer-item\",on:{\"click\":_vm.addItem}},[_vm._v(\"Add\")])])])])]):_vm._e(),_c('b-modal',{attrs:{\"width\":640,\"canCancel\":['outside'],\"active\":_vm.isModalActive},on:{\"update:active\":function($event){_vm.isModalActive=$event}}},[_c('EditContract',{attrs:{\"item\":_vm.currentItem,\"isImport\":_vm.isImport},on:{\"cancel\":_vm.onCancel,\"finished\":_vm.reload}})],1)],1)\n}\nvar staticRenderFns = [function (){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"level-left\"},[_c('h1',{staticClass:\"title level-item\"},[_vm._v(\"Contracts\")])])\n}]\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('form',[_c('div',{staticClass:\"modal-card\"},[_c('header',{staticClass:\"modal-card-head\"},[_c('span',{staticClass:\"modal-card-title\"},[_vm._v(_vm._s(_vm.context.title))])]),_c('section',{staticClass:\"modal-card-body\"},[_c('b-field',{attrs:{\"type\":_vm.formMessage.name.isError ? 'is-danger' : '',\"message\":_vm.formMessage.name.message,\"label\":\"name\"}},[_c('b-input',{attrs:{\"type\":\"text\"},on:{\"blur\":_vm.checkName},model:{value:(_vm.form.name),callback:function ($$v) {_vm.$set(_vm.form, \"name\", $$v)},expression:\"form.name\"}})],1),_c('b-field',{attrs:{\"type\":_vm.formMessage.address.isError ? 'is-danger' : '',\"message\":_vm.formMessage.address.message,\"label\":\"address\"}},[_c('b-input',{attrs:{\"custom-class\":\"is-family-monospace has-text-weight-semibold\",\"message\":_vm.formMessage.address.message,\"type\":\"text\"},on:{\"blur\":_vm.checkAddress},model:{value:(_vm.form.address),callback:function ($$v) {_vm.$set(_vm.form, \"address\", $$v)},expression:\"form.address\"}})],1),_c('b-field',{attrs:{\"type\":_vm.formMessage.abi.isError ? 'is-danger' : '',\"message\":_vm.formMessage.abi.message,\"label\":\"ABI\"}},[_c('b-input',{attrs:{\"message\":_vm.formMessage.abi.message,\"type\":\"textarea\"},on:{\"blur\":_vm.checkABI},model:{value:(_vm.form.abi),callback:function ($$v) {_vm.$set(_vm.form, \"abi\", $$v)},expression:\"form.abi\"}})],1),(_vm.isImport && _vm.isEdit)?_c('b-message',{attrs:{\"type\":\"is-warning\"}},[_vm._v(\" The contract exists, are you sure to override it? \")]):_vm._e()],1),_c('footer',{staticClass:\"modal-card-foot\"},[_c('button',{staticClass:\"button\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.close.apply(null, arguments)}}},[_vm._v(\"Cancel\")]),_c('button',{staticClass:\"button is-primary\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.preventDefault();return _vm.submit.apply(null, arguments)}}},[_vm._v(_vm._s(_vm.context.btn))])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EditContract.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EditContract.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./EditContract.vue?vue&type=template&id=3c19c210\"\nimport script from \"./EditContract.vue?vue&type=script&lang=ts\"\nexport * from \"./EditContract.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"box\",class:{'img-hover': _vm.$listeners.select}},[_c('article',{staticClass:\"media\"},[_c('div',{staticClass:\"media-left\"},[_c('figure',{staticClass:\"image is-64x64\",class:{'could-hover': _vm.$listeners.select}},[_c('img',{directives:[{name:\"ident\",rawName:\"v-ident\",value:(_vm.item.address),expression:\"item.address\"}],attrs:{\"alt\":\"Image\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.$emit('select')}}})])]),_c('div',{staticClass:\"media-content\"},[_c('div',{staticClass:\"content\"},[_c('p',[_c('strong',[_vm._v(_vm._s(_vm.item.name || ''))])]),(_vm.isShort)?_c('p',{staticClass:\"is-family-monospace has-text-weight-semibold display-6\"},[_vm._v(_vm._s(_vm._f(\"addr\")(_vm._f(\"toChecksumAddress\")(_vm.item.address))))]):_c('p',{staticClass:\"is-family-monospace has-text-weight-semibold display-6\"},[_c('a',{attrs:{\"target\":\"_blank\",\"href\":`${_vm.$explorerAccount}${_vm.item.address}`}},[_vm._v(_vm._s(_vm._f(\"toChecksumAddress\")(_vm.item.address)))])])]),_c('nav',{staticClass:\"level\"},[_c('div',{staticClass:\"level-left\"},[_c('div',{staticClass:\"level-item\"},[_vm._t(\"default\")],2)])])]),_c('div',{staticClass:\"media-right\"},[_c('div',{staticClass:\"content\"},[_vm._t(\"right\")],2)])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Contract.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Contract.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./Contract.vue?vue&type=template&id=7247e069&scoped=true\"\nimport script from \"./Contract.vue?vue&type=script&lang=ts\"\nexport * from \"./Contract.vue?vue&type=script&lang=ts\"\nimport style0 from \"./Contract.vue?vue&type=style&index=0&id=7247e069&prod&lang=css&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7247e069\",\n null\n \n)\n\nexport default component.exports","\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Contracts.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Contracts.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./Contracts.vue?vue&type=template&id=49a5fd46&scoped=true\"\nimport script from \"./Contracts.vue?vue&type=script&lang=ts\"\nexport * from \"./Contracts.vue?vue&type=script&lang=ts\"\nimport style0 from \"./Contracts.vue?vue&type=style&index=0&id=49a5fd46&prod&lang=css&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"49a5fd46\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"section\",staticStyle:{\"max-width\":\"1000px\",\"margin\":\"auto\"}},[_c('div',{staticClass:\"container\"},[_c('form',{on:{\"submit\":function($event){$event.preventDefault();return _vm.sendCode.apply(null, arguments)}}},[_c('b-field',{attrs:{\"type\":{'is-danger': _vm.errors.has('code')},\"message\":_vm.errors.first('code'),\"label\":\"Byte Code\"}},[_c('b-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:({required: true, bytecode: true}),expression:\"{required: true, bytecode: true}\"}],attrs:{\"name\":\"code\",\"rows\":\"10\",\"type\":\"textarea\"},model:{value:(_vm.code),callback:function ($$v) {_vm.code=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"code\"}})],1),_c('b-field',{attrs:{\"type\":{'is-danger': _vm.errors.has('vet')},\"message\":_vm.errors.first('vet'),\"label\":\"Vet\"}},[_c('b-input',{directives:[{name:\"validate\",rawName:\"v-validate\",value:('vet'),expression:\"'vet'\"}],attrs:{\"placeholder\":\"number (optional)\",\"name\":\"vet\",\"type\":\"text\"},model:{value:(_vm.vet),callback:function ($$v) {_vm.vet=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"vet\"}})],1),_c('b-field',{attrs:{\"label\":\"Valid Hex value (wei)\"}},[_c('span',{staticClass:\"is-family-monospace has-text-weight-semibold\"},[_vm._v(_vm._s(_vm.haxValue))])]),_c('b-field',{attrs:{\"label\":\"Valid Integer value (wei)\"}},[_c('span',{staticClass:\"is-family-monospace has-text-weight-semibold\"},[_vm._v(_vm._s(_vm.numberValue))])]),_c('b-field',{staticClass:\"is-clearfix\"},[_c('button',{staticClass:\"is-pulled-right button is-primary\",attrs:{\"type\":\"submit\"}},[_vm._v(\"Send\")])])],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./DeployContract.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./DeployContract.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./DeployContract.vue?vue&type=template&id=70f315fe\"\nimport script from \"./DeployContract.vue?vue&type=script&lang=ts\"\nexport * from \"./DeployContract.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('section',{staticClass:\"section contract-detail\"},[(_vm.contract)?_c('div',{staticClass:\"container\"},[_c('Contract',{attrs:{\"isShort\":false,\"item\":_vm.contract}},[_c('div',{attrs:{\"slot\":\"right\"},slot:\"right\"},[_c('b-button',{attrs:{\"expanded\":\"\",\"size\":\"is-small\",\"type\":\"is-info\"},on:{\"click\":_vm.toExplorer}},[_vm._v(\"Explorer\")]),_c('br'),_c('b-button',{attrs:{\"type\":\"is-light\",\"tag\":\"a\",\"size\":\"is-small\",\"href\":\"https://github.com/vechain/b32/new/master/ABIs\",\"target\":\"_blank\"}},[_vm._v(\" Submit JSON ABI \")])],1)]),_c('section',{staticStyle:{\"margin-top\":\"20px\"}},[_c('b-field',{attrs:{\"grouped\":\"\"}},[_c('b-field',{attrs:{\"expanded\":\"\"}},[_c('b-field',{staticClass:\"is-pulled-right\"},[_c('b-autocomplete',{attrs:{\"rounded\":\"\",\"data\":_vm.filterList,\"placeholder\":\"Func/Event Name\"},on:{\"select\":_vm.onSearchSelect},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_c('div',[_c('span',{staticClass:\"is-size-6\"},[_vm._v(_vm._s(props.option.name))])]),_c('span',{staticClass:\"has-text-grey\"},[_vm._v(_vm._s(props.option.type))])]}}],null,false,1256192932),model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:\"name\"}},[_c('template',{slot:\"empty\"},[_vm._v(\"No results found\")])],2)],1)],1)],1),_c('b-tabs',{staticClass:\"block\",model:{value:(_vm.tabIndex),callback:function ($$v) {_vm.tabIndex=$$v},expression:\"tabIndex\"}},_vm._l((_vm.tabs),function(item,index){return _c('b-tab-item',{key:index,attrs:{\"visible\":item.visible}},[_c('span',{attrs:{\"slot\":\"header\"},slot:\"header\"},[_vm._v(\" \"+_vm._s(item.text)+\" \"),(item.count)?_c('span',{staticClass:\"is-size-7\"},[_vm._v(\"(\"+_vm._s(item.count)+\")\")]):_vm._e()])])}),1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tabIndex === 0),expression:\"tabIndex === 0\"}]},_vm._l((_vm.readList),function(item,index){return _c('FunctionCard',{key:index,ref:item.name,refInFor:true,staticStyle:{\"margin-bottom\":\"20px\"},attrs:{\"id\":item.name,\"address\":_vm.contract.address,\"item\":item}})}),1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tabIndex === 1),expression:\"tabIndex === 1\"}]},_vm._l((_vm.writeList),function(item,index){return _c('FunctionCard',{key:index,ref:item.name,refInFor:true,staticStyle:{\"margin-bottom\":\"20px\"},attrs:{\"address\":_vm.contract.address,\"item\":item}})}),1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tabIndex === 2),expression:\"tabIndex === 2\"}]},[_c('DescCard',{staticStyle:{\"margin-bottom\":\"20px\"},attrs:{\"item\":_vm.abi,\"title\":\"ABI\"}}),(_vm.code)?_c('DescCard',{staticClass:\"code-pre\",staticStyle:{\"margin-bottom\":\"20px\"},attrs:{\"item\":_vm.code,\"title\":\"Code\"}}):_vm._e()],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tabIndex === 3),expression:\"tabIndex === 3\"}]},_vm._l((_vm.eventList),function(item,index){return _c('EventCard',{key:index,staticStyle:{\"margin-bottom\":\"20px\"},attrs:{\"address\":_vm.contract.address,\"item\":item,\"title\":item.name}})}),1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tabIndex === 4),expression:\"tabIndex === 4\"}]},[_c('FallbackCard',{attrs:{\"fb\":_vm.fb}})],1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tabIndex === 5),expression:\"tabIndex === 5\"}]},_vm._l((_vm.prList),function(item,index){return _c('FunctionCard',{key:index,ref:item.name,refInFor:true,staticStyle:{\"margin-bottom\":\"20px\"},attrs:{\"prototype\":true,\"address\":_vm.contract.address,\"item\":item}})}),1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tabIndex === 6),expression:\"tabIndex === 6\"}]},_vm._l((_vm.pwList),function(item,index){return _c('FunctionCard',{key:index,ref:item.name,refInFor:true,staticStyle:{\"margin-bottom\":\"20px\"},attrs:{\"prototype\":true,\"address\":_vm.contract.address,\"item\":item}})}),1),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tabIndex === 7),expression:\"tabIndex === 7\"}]},_vm._l((_vm.peList),function(item,index){return _c('EventCard',{key:index,ref:item.name,refInFor:true,staticStyle:{\"margin-bottom\":\"20px\"},attrs:{\"prototype\":true,\"address\":_vm.contract.address,\"item\":item}})}),1)],1)],1):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('Panel',{attrs:{\"tabs\":_vm.tabs,\"title\":_vm.item.name},model:{value:(_vm.activeTab),callback:function ($$v) {_vm.activeTab=$$v},expression:\"activeTab\"}},[_c('template',{slot:\"panel-content\"},[_c('form',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.activeTab === _vm.tabs[0]),expression:\"activeTab === tabs[0]\"}],on:{\"reset\":function($event){if($event.target !== $event.currentTarget)return null;$event.preventDefault();return _vm.reset.apply(null, arguments)}}},[_c('b-field',{staticClass:\"item-content\",attrs:{\"horizontal\":\"\",\"message\":\"Special address to call the method, it's not the param of the method\",\"label\":\"Caller\"}},[_c('b-input',{attrs:{\"custom-class\":\"is-family-monospace has-text-weight-semibold\",\"placeholder\":\"Optional: Address\"},model:{value:(_vm.caller),callback:function ($$v) {_vm.caller=$$v},expression:\"caller\"}})],1),_vm._l((_vm.item.inputs),function(v,index){return _c('b-field',{key:index,staticClass:\"item-content\",attrs:{\"horizontal\":\"\",\"label\":v.name}},[(v.type === 'bool')?_c('div',[_c('b-radio',{attrs:{\"name\":\"True\",\"native-value\":true},model:{value:(_vm.params[index]),callback:function ($$v) {_vm.$set(_vm.params, index, $$v)},expression:\"params[index]\"}},[_vm._v(\" True \")]),_c('b-radio',{attrs:{\"name\":\"False\",\"native-value\":false},model:{value:(_vm.params[index]),callback:function ($$v) {_vm.$set(_vm.params, index, $$v)},expression:\"params[index]\"}},[_vm._v(\" False \")])],1):_c('b-input',{ref:\"input\",refInFor:true,attrs:{\"custom-class\":\"is-family-monospace has-text-weight-semibold\",\"required\":\"\",\"name\":v.name,\"readonly\":(_vm.prototype && v.name === '_self'),\"placeholder\":v.type},model:{value:(_vm.params[index]),callback:function ($$v) {_vm.$set(_vm.params, index, $$v)},expression:\"params[index]\"}})],1)}),(_vm.payable)?_c('b-field',{staticClass:\"item-content\",attrs:{\"horizontal\":\"\",\"label\":\"value\"}},[_c('b-input',{attrs:{\"custom-class\":\"is-family-monospace has-text-weight-semibold\",\"type\":\"text\",\"placeholder\":\"number(vet)\"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=(typeof $$v === 'string'? $$v.trim(): $$v)},expression:\"value\"}})],1):_vm._e(),_c('b-field',{staticClass:\"item-content\",attrs:{\"horizontal\":\"\"}},[_c('div',{staticClass:\"buttons has-addons\"},[_c('button',{staticClass:\"button is-rounded is-primary is-outlined\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.addShortCut(_vm.item.name)}}},[_vm._v(\"Shortcut\")]),(_vm.couldExc)?_c('button',{staticClass:\"button is-rounded is-primary is-outlined\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.executeFC.apply(null, arguments)}}},[_vm._v(\"Execute\")]):_vm._e(),_c('button',{staticClass:\"button is-rounded is-primary is-outlined\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.callFC.apply(null, arguments)}}},[_vm._v(\"Call\")]),(_vm.params.length)?_c('button',{staticClass:\"button is-rounded is-primary is-outlined\",attrs:{\"type\":\"reset\"}},[_vm._v(\"Reset\")]):_vm._e()])]),(_vm.request)?_c('b-field',{attrs:{\"label\":\"Request\"}},[_c('pre',{staticStyle:{\"width\":\"100%\",\"white-space\":\"break-spaces\",\"word-break\":\"break-all\"}},[_vm._v(_vm._s(_vm.request))])]):_vm._e(),(_vm.resp)?_c('b-field',{attrs:{\"label\":\"Response\"}},[_c('pre',{staticStyle:{\"width\":\"100%\",\"white-space\":\"break-spaces\",\"word-break\":\"break-all\"}},[_vm._v(_vm._s(_vm.resp))])]):_vm._e()],2),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.activeTab === _vm.tabs[1]),expression:\"activeTab === tabs[1]\"}]},[_c('pre',[_vm._v(_vm._s(_vm.item))])])])],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('b-collapse',{staticClass:\"panel\",attrs:{\"open\":_vm.isOpen},on:{\"update:open\":_vm.onupdate},scopedSlots:_vm._u([{key:\"trigger\",fn:function(props){return _c('div',{staticClass:\"panel-heading\"},[_c('div',{staticClass:\"level\"},[_c('div',{staticClass:\"level-left\"},[_c('div',{staticClass:\"level-item\"},[_c('strong',[_vm._v(_vm._s(_vm.title))])]),_c('div',{staticClass:\"level-item\"})]),_c('div',{staticClass:\"level-right\"},[_c('div',{staticClass:\"level-item\"},[_c('b-icon',{attrs:{\"type\":\"is-primary\",\"size\":\"is-small\",\"icon\":props.open ? 'caret-up' : 'caret-down'}})],1)])])])}}])},[(_vm.tabs.length > 1)?_c('p',{staticClass:\"panel-tabs\",staticStyle:{\"justify-content\":\"left\"}},_vm._l((_vm.tabs),function(item,index){return _c('a',{key:index,class:{'is-active': _vm.activeTab === item},on:{\"click\":function($event){$event.stopPropagation();return _vm.switchTab(item)}}},[_vm._v(_vm._s(item))])}),0):_vm._e(),_c('div',{staticClass:\"panel-block is-block\"},[_vm._t(\"panel-content\")],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Panel.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./Panel.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./Panel.vue?vue&type=template&id=699eb682\"\nimport script from \"./Panel.vue?vue&type=script&lang=ts\"\nexport * from \"./Panel.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import { Vue, Component, Prop } from 'vue-property-decorator'\n@Component\nexport default class AccountCall extends Vue {\n @Prop({ default: null })\n public item!: ABI.FunctionItem | any\n @Prop() public address!: string\n\n @Prop({ default: false })\n public prototype?: boolean\n\n public value: string | null = null\n public resp: any = null\n public request: any = null\n public method: Connex.Thor.Account.Method | null = null\n public params: string[] = new Array(this.item.inputs.length)\n\n public caller?: string = ''\n\n public callFC() {\n this.resetOutputs()\n if (this.validate()) {\n this.readMethod()\n }\n }\n public reset() {\n const inputs = this.$refs.input as any[] || []\n inputs.forEach((element) => {\n element.$parent.newType = ''\n element.$parent.newMessage = ''\n })\n this.params.forEach((item, index) => {\n if (!(this.prototype && this.item.inputs[index].name === '_self')) {\n this.$set(this.params, index, '')\n }\n })\n\n this.resetOutputs()\n }\n public resetOutputs() {\n this.request = null\n this.resp = null\n }\n public executeFC() {\n this.resetOutputs()\n if (this.validate()) {\n this.writeMethod()\n }\n }\n\n public initMethod(address: string, abi: object) {\n const account = this.$connex.thor.account(this.prototype\n ? '0x000000000000000000000050726f746f74797065'\n : address.toLowerCase())\n this.method = account.method(abi)\n }\n\n private validate() {\n const inputs = this.$refs.input as any[] || []\n inputs.forEach((element) => {\n element.checkHtml5Validity()\n })\n return !inputs.some((item) => {\n return item.isValid === false\n })\n }\n\n get payable() {\n return this.item.payable || this.item.stateMutability === 'payable'\n }\n\n public get hexValue() {\n return BN(this.payable ? this.value || 0 : 0).multipliedBy(1e18).toFixed(0).toString(16)\n }\n\n private async readMethod() {\n try {\n const params: any[] = this.params.map((item: string, index: number) => {\n return this.item.inputs[index].type.endsWith(']') ? JSON.parse(item) : item\n })\n this.request = this.method!.value(this.hexValue).asClause(...params)\n if (this.caller) {\n this.resp = await this.method!.value(this.hexValue).caller(this.caller).call(...params)\n } else {\n this.resp = await this.method!.value(this.hexValue).call(...params)\n }\n } catch (error: any) {\n BUS.$alert(error.message)\n }\n }\n private async writeMethod() {\n try {\n const params: any[] = this.params.map((item: string, index: number) => {\n return this.item.inputs[index].type.endsWith(']') ? JSON.parse(item) : item\n })\n const clause = this.method!.value(this.hexValue).asClause(...params)\n this.request = clause\n\n this.$connex.vendor\n .sign('tx', [\n {\n ...clause,\n comment: this.item.name\n }\n ])\n .comment(`inspect-${this.address}`)\n .request()\n } catch (error: any) {\n BUS.$alert(error.message)\n }\n }\n}\n","\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./FunctionCard.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./FunctionCard.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./FunctionCard.vue?vue&type=template&id=69031e6a&scoped=true\"\nimport script from \"./FunctionCard.vue?vue&type=script&lang=ts\"\nexport * from \"./FunctionCard.vue?vue&type=script&lang=ts\"\nimport style0 from \"./FunctionCard.vue?vue&type=style&index=0&id=69031e6a&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"69031e6a\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('Panel',{attrs:{\"title\":\"Fallback\"}},[_c('template',{slot:\"panel-content\"},[_c('pre',[_vm._v(_vm._s(_vm.fb))])])],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./FallbackCard.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./FallbackCard.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./FallbackCard.vue?vue&type=template&id=7c120820\"\nimport script from \"./FallbackCard.vue?vue&type=script&lang=ts\"\nexport * from \"./FallbackCard.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('Panel',{attrs:{\"tabs\":_vm.tabs,\"title\":_vm.item.name},model:{value:(_vm.activeTab),callback:function ($$v) {_vm.activeTab=$$v},expression:\"activeTab\"}},[_c('template',{slot:\"panel-content\"},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.activeTab === _vm.tabs[0]),expression:\"activeTab === tabs[0]\"}]},[_vm._l((_vm.filters),function(v,index){return _c('b-field',{key:index,staticClass:\"item-content\",attrs:{\"horizontal\":\"\",\"label\":v.name}},[_c('b-input',{ref:\"input\",refInFor:true,attrs:{\"placeholder\":v.type},model:{value:(_vm.params[v.name]),callback:function ($$v) {_vm.$set(_vm.params, v.name, $$v)},expression:\"params[v.name]\"}})],1)}),_c('b-field',{staticClass:\"item-content\",attrs:{\"horizontal\":\"\"}},[_c('div',{staticClass:\"buttons has-addons\"},[_c('button',{staticClass:\"button is-rounded is-primary is-outlined\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.addFilter(_vm.item.name)}}},[_vm._v(\"As a view\")]),_c('button',{staticClass:\"button is-rounded is-primary is-outlined\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){return _vm.onRefresh(0)}}},[_vm._v(\"Execute\")]),(_vm.filters.length)?_c('button',{staticClass:\"button is-rounded is-primary is-outlined\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.reset}},[_vm._v(\"Reset\")]):_vm._e()])])],2),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.activeTab === _vm.tabs[1]),expression:\"activeTab === tabs[1]\"}]},[_c('pre',[_vm._v(_vm._s(_vm.item))])]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.activeTab === _vm.tabs[2]),expression:\"activeTab === tabs[2]\"}]},[_c('nav',{staticClass:\"navbar is-transparent\",staticStyle:{\"margin-bottom\":\"2px\"}},[_c('div',{staticClass:\"navbar-item\"},[_c('div',{staticClass:\"buttons has-addons\"},[_c('b-button',{staticClass:\"is-primary\",attrs:{\"tag\":\"button\",\"icon-left\":\"sync-alt\"},on:{\"click\":_vm.onRefresh}}),_c('b-button',{staticClass:\"is-primary\",attrs:{\"tag\":\"button\",\"disabled\":this.page < 1,\"icon-left\":\"chevron-left\"},on:{\"click\":_vm.onPrev}}),_c('b-button',{staticClass:\"is-primary\",attrs:{\"tag\":\"button\",\"disabled\":_vm.list.length < 5,\"icon-left\":\"chevron-right\"},on:{\"click\":_vm.onNext}})],1)]),_c('div',{staticClass:\"navbar-item\"},[_vm._v(_vm._s(_vm.ranges))])]),_c('b-loading',{attrs:{\"is-full-page\":true,\"active\":_vm.isLoading},on:{\"update:active\":function($event){_vm.isLoading=$event}}}),_vm._l((_vm.list),function(event,i){return [_c('EventShowCard',{key:_vm.page * 5 + i,attrs:{\"item\":event,\"params\":_vm.item.inputs}},[_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"#\"+_vm._s(_vm.page * 5 + i + 1))])])]})],2)])],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"box\"},[_c('div',[_c('div',{staticClass:\"level has-background-light\",staticStyle:{\"margin-bottom\":\"10px\",\"padding\":\"5px 10px\",\"border-radius\":\"5px\"}},[_c('div',{staticClass:\"level-left\"},[_c('span',{staticClass:\"is-family-secondary display-6 has-text-black-ter has-text-weight-semibold\"},[_vm._t(\"title\")],2),_c('span',{staticClass:\"is-family-secondary display-6 has-text-black-ter has-text-weight-semibold\",staticStyle:{\"margin-left\":\"20px\"}},[_vm._v(\" #Block \"),_c('a',{attrs:{\"target\":\"_blank\",\"href\":`${_vm.$explorerBlock}${_vm.item.meta.blockID}`}},[_vm._v(_vm._s(_vm.item.meta.blockNumber))])]),_c('span',{staticClass:\"is-family-secondary display-6\",staticStyle:{\"margin-left\":\"20px\"}},[_vm._v(_vm._s(_vm._f(\"datetime\")(_vm.item.meta.blockTimestamp * 1000)))])]),_c('div',{staticClass:\"level-right\"},[_c('a',{staticClass:\"is-family-monospace display-6 has-text-weight-semibold\",attrs:{\"target\":\"_blank\",\"href\":`${_vm.$explorerTx}${_vm.item.meta.txID}`}},[_vm._v(_vm._s(_vm._f(\"addr\")(_vm.item.meta.txID)))])])]),_c('b-tabs',{staticClass:\"my-content\",attrs:{\"animated\":false,\"size\":\"is-small\",\"type\":\"is-toggle\"},model:{value:(_vm.tabIndex),callback:function ($$v) {_vm.tabIndex=$$v},expression:\"tabIndex\"}},[_c('b-tab-item',{attrs:{\"label\":\"Decoded\"}},[_c('b-table',{attrs:{\"data\":_vm.data},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_c('b-table-column',{attrs:{\"width\":\"20\",\"label\":\"#\",\"field\":\"id\"}},[_vm._v(_vm._s(props.row.id))]),_c('b-table-column',{attrs:{\"width\":\"170\",\"label\":\"Name\",\"field\":\"name\"}},[_vm._v(_vm._s(props.row.name))]),_c('b-table-column',{attrs:{\"width\":\"220\",\"label\":\"Type\",\"field\":\"type\"}},[_vm._v(\" \"+_vm._s(props.row.type)+\" \"),(props.row.indexed)?_c('sup',{staticClass:\"has-background-primary has-text-light\",staticStyle:{\"padding\":\"2px 5px\",\"border-radius\":\"3px\",\"font-size\":\"11px\"}},[_vm._v(\"indexed\")]):_vm._e()]),_c('b-table-column',{staticStyle:{\"max-width\":\"380px\",\"word-wrap\":\"break-word\"},attrs:{\"label\":\"Data\",\"field\":\"value\"}},[(props.row.type === 'address')?_c('a',{staticClass:\"has-text-weight-semibold is-family-monospace display-6\",attrs:{\"target\":\"_blank\",\"href\":`${_vm.$explorerAccount}${props.row.value}`}},[_vm._v(_vm._s(_vm._f(\"toChecksumAddress\")(props.row.value)))]):_c('span',{staticClass:\"has-text-weight-semibold is-family-monospace display-6 has-text-grey\"},[_vm._v(_vm._s(props.row.value))])])]}}])})],1),_c('b-tab-item',{attrs:{\"label\":\"Raw\"}},[_c('div',[_c('b-field',{attrs:{\"custom-class\":\"my-label\",\"label-position\":\"inside\",\"horizontal\":\"\",\"label\":\"Topics\"}},[_c('ul',_vm._l((_vm.item.topics),function(topic,i){return _c('li',{key:_vm.item.meta.blockID + i,staticClass:\"is-family-monospace display-6 has-text-grey has-text-weight-semibold\"},[_c('span',[_vm._v(\"[\"+_vm._s(i)+\"]\")]),_vm._v(\" \"+_vm._s(topic)+\" \")])}),0)]),_c('b-field',{attrs:{\"custom-class\":\"my-label\",\"label-position\":\"on-border\",\"horizontal\":\"\",\"label\":\"Data\"}},[_c('p',{staticClass:\"has-text-weight-semibold has-text-grey display-6 is-family-monospace\",staticStyle:{\"word-break\":\"break-all\"}},[_vm._v(_vm._s(_vm.item.data))])])],1)])],1)],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EventShowCard.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EventShowCard.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./EventShowCard.vue?vue&type=template&id=3e44b4ae\"\nimport script from \"./EventShowCard.vue?vue&type=script&lang=ts\"\nexport * from \"./EventShowCard.vue?vue&type=script&lang=ts\"\nimport style0 from \"./EventShowCard.vue?vue&type=style&index=0&id=3e44b4ae&prod&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EventCard.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./EventCard.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./EventCard.vue?vue&type=template&id=dfb6d268&scoped=true\"\nimport script from \"./EventCard.vue?vue&type=script&lang=ts\"\nexport * from \"./EventCard.vue?vue&type=script&lang=ts\"\nimport style0 from \"./EventCard.vue?vue&type=style&index=0&id=dfb6d268&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"dfb6d268\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('Panel',{attrs:{\"title\":_vm.$attrs.title}},[_c('template',{slot:\"panel-content\"},[_c('pre',{staticStyle:{\"max-height\":\"500px\",\"overflow\":\"auto\"}},[_vm._v(_vm._s(_vm.item))])])],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./DescCard.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./DescCard.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./DescCard.vue?vue&type=template&id=2d6f165e\"\nimport script from \"./DescCard.vue?vue&type=script&lang=ts\"\nexport * from \"./DescCard.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","export default [\n {\n constant: false,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_newMaster',\n type: 'address'\n }\n ],\n name: 'setMaster',\n outputs: [],\n payable: false,\n stateMutability: 'nonpayable',\n type: 'function'\n },\n {\n constant: true,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_user',\n type: 'address'\n }\n ],\n name: 'isUser',\n outputs: [\n {\n name: '',\n type: 'bool'\n }\n ],\n payable: false,\n stateMutability: 'view',\n type: 'function'\n },\n {\n constant: true,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_key',\n type: 'bytes32'\n }\n ],\n name: 'storageFor',\n outputs: [\n {\n name: '',\n type: 'bytes32'\n }\n ],\n payable: false,\n stateMutability: 'view',\n type: 'function'\n },\n {\n constant: true,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_blockNumber',\n type: 'uint256'\n }\n ],\n name: 'energy',\n outputs: [\n {\n name: '',\n type: 'uint256'\n }\n ],\n payable: false,\n stateMutability: 'view',\n type: 'function'\n },\n {\n constant: false,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_user',\n type: 'address'\n }\n ],\n name: 'removeUser',\n outputs: [],\n payable: false,\n stateMutability: 'nonpayable',\n type: 'function'\n },\n {\n constant: true,\n inputs: [\n {\n name: '_self',\n type: 'address'\n }\n ],\n name: 'currentSponsor',\n outputs: [\n {\n name: '',\n type: 'address'\n }\n ],\n payable: false,\n stateMutability: 'view',\n type: 'function'\n },\n {\n constant: false,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_credit',\n type: 'uint256'\n },\n {\n name: '_recoveryRate',\n type: 'uint256'\n }\n ],\n name: 'setCreditPlan',\n outputs: [],\n payable: false,\n stateMutability: 'nonpayable',\n type: 'function'\n },\n {\n constant: false,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_sponsor',\n type: 'address'\n }\n ],\n name: 'selectSponsor',\n outputs: [],\n payable: false,\n stateMutability: 'nonpayable',\n type: 'function'\n },\n {\n constant: true,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_blockNumber',\n type: 'uint256'\n }\n ],\n name: 'balance',\n outputs: [\n {\n name: '',\n type: 'uint256'\n }\n ],\n payable: false,\n stateMutability: 'view',\n type: 'function'\n },\n {\n constant: false,\n inputs: [\n {\n name: '_self',\n type: 'address'\n }\n ],\n name: 'sponsor',\n outputs: [],\n payable: false,\n stateMutability: 'nonpayable',\n type: 'function'\n },\n {\n constant: true,\n inputs: [\n {\n name: '_self',\n type: 'address'\n }\n ],\n name: 'creditPlan',\n outputs: [\n {\n name: 'credit',\n type: 'uint256'\n },\n {\n name: 'recoveryRate',\n type: 'uint256'\n }\n ],\n payable: false,\n stateMutability: 'view',\n type: 'function'\n },\n {\n constant: false,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_user',\n type: 'address'\n }\n ],\n name: 'addUser',\n outputs: [],\n payable: false,\n stateMutability: 'nonpayable',\n type: 'function'\n },\n {\n constant: true,\n inputs: [\n {\n name: '_self',\n type: 'address'\n }\n ],\n name: 'hasCode',\n outputs: [\n {\n name: '',\n type: 'bool'\n }\n ],\n payable: false,\n stateMutability: 'view',\n type: 'function'\n },\n {\n constant: true,\n inputs: [\n {\n name: '_self',\n type: 'address'\n }\n ],\n name: 'master',\n outputs: [\n {\n name: '',\n type: 'address'\n }\n ],\n payable: false,\n stateMutability: 'view',\n type: 'function'\n },\n {\n constant: true,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_user',\n type: 'address'\n }\n ],\n name: 'userCredit',\n outputs: [\n {\n name: '',\n type: 'uint256'\n }\n ],\n payable: false,\n stateMutability: 'view',\n type: 'function'\n },\n {\n constant: false,\n inputs: [\n {\n name: '_self',\n type: 'address'\n }\n ],\n name: 'unsponsor',\n outputs: [],\n payable: false,\n stateMutability: 'nonpayable',\n type: 'function'\n },\n {\n constant: true,\n inputs: [\n {\n name: '_self',\n type: 'address'\n },\n {\n name: '_sponsor',\n type: 'address'\n }\n ],\n name: 'isSponsor',\n outputs: [\n {\n name: '',\n type: 'bool'\n }\n ],\n payable: false,\n stateMutability: 'view',\n type: 'function'\n }\n]\n","export default [\n {\n anonymous: false,\n inputs: [\n {\n indexed: false,\n name: 'newMaster',\n type: 'address'\n }\n ],\n name: '$Master',\n type: 'event'\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: false,\n name: 'credit',\n type: 'uint256'\n },\n {\n indexed: false,\n name: 'recoveryRate',\n type: 'uint256'\n }\n ],\n name: '$CreditPlan',\n type: 'event'\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'user',\n type: 'address'\n },\n {\n indexed: false,\n name: 'action',\n type: 'bytes32'\n }\n ],\n name: '$User',\n type: 'event'\n },\n {\n anonymous: false,\n inputs: [\n {\n indexed: true,\n name: 'sponsor',\n type: 'address'\n },\n {\n indexed: false,\n name: 'action',\n type: 'bytes32'\n }\n ],\n name: '$Sponsor',\n type: 'event'\n }\n]\n","import { Vue, Component } from 'vue-property-decorator'\nimport prototype from '../abis/prototype'\nimport prototypeEvent from '../abis/prototypeEvent'\n@Component\nexport default class Prototype extends Vue {\n public protoTabs: Array<{ text: string; count: number | '', visible: boolean }> = [{\n text: 'Prototype-Read',\n count: 10,\n visible: true\n },\n {\n text: 'Prototype-Write',\n count: 7,\n visible: true\n },\n {\n text: 'Prototype-Event',\n count: 4,\n visible: true\n }]\n\n private _abi?: ABI.FunctionItem[]\n private _abiEvent?: ABI.EventItem[]\n\n get prList() {\n return this._abi!.filter((item: ABI.FunctionItem) => {\n return item.type === 'function' && item.constant\n })\n }\n\n get pwList() {\n return this._abi!.filter((item: ABI.FunctionItem) => {\n return item.type === 'function' && !item.constant\n })\n }\n\n get peList() {\n return this._abiEvent\n }\n\n public initAbi() {\n this._abi = prototype as ABI.FunctionItem[]\n this._abiEvent = prototypeEvent as ABI.EventItem[]\n }\n}\n","\n\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ContractDetail.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ContractDetail.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./ContractDetail.vue?vue&type=template&id=285b673e\"\nimport script from \"./ContractDetail.vue?vue&type=script&lang=ts\"\nexport * from \"./ContractDetail.vue?vue&type=script&lang=ts\"\nimport style0 from \"./ContractDetail.vue?vue&type=style&index=0&id=285b673e&prod&scope=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('section',[_c('div',{staticClass:\"log-container\"},[_c('div',{staticClass:\"columns is-multiline\"},[_vm._l((_vm.params),function(v,index){return _c('div',{key:index,staticClass:\"column is-one-third\"},[_c('b-field',{attrs:{\"label\":v.name}},[_c('b-input',{attrs:{\"placeholder\":v.type},model:{value:(_vm.conditions[v.name]),callback:function ($$v) {_vm.$set(_vm.conditions, v.name, $$v)},expression:\"conditions[v.name]\"}})],1)],1)}),_c('div',{staticClass:\"column is-one-third\"},[_c('b-field',{attrs:{\"label\":\"Order\"}},[_c('b-select',{attrs:{\"expanded\":\"\",\"placeholder\":\"Order\"},model:{value:(_vm.page.order),callback:function ($$v) {_vm.$set(_vm.page, \"order\", $$v)},expression:\"page.order\"}},[_c('option',{domProps:{\"value\":false}},[_vm._v(\"ASC\")]),_c('option',{domProps:{\"value\":true}},[_vm._v(\"DESC\")])])],1)],1)],2),_c('nav',{staticClass:\"navbar is-transparent\",staticStyle:{\"margin-bottom\":\"2px\",\"z-index\":\"20\"}},[_c('div',{staticClass:\"navbar-start\"},[_c('div',{staticClass:\"navbar-item\",staticStyle:{\"padding-left\":\"0\"}},[_c('b-field',{staticStyle:{\"width\":\"350px\"},attrs:{\"horizontal\":\"\"}},[_c('template',{slot:\"label\"},[_c('div',{staticStyle:{\"width\":\"100px\",\"text-align\":\"left\"}},[_vm._v(\"Block Range\")])]),_c('b-input',{attrs:{\"placeholder\":\"from\"},model:{value:(_vm.blockFrom),callback:function ($$v) {_vm.blockFrom=$$v},expression:\"blockFrom\"}}),_c('b-input',{attrs:{\"placeholder\":\"to\"},model:{value:(_vm.blockTo),callback:function ($$v) {_vm.blockTo=$$v},expression:\"blockTo\"}})],2)],1)]),_c('div',{staticClass:\"navbar-end\"},[_c('div',{staticClass:\"navbar-item\"},[_vm._v(_vm._s(_vm.ranges))]),_c('div',{staticClass:\"navbar-item\"},[_c('div',{staticClass:\"buttons has-addons\"},[_c('button',{staticClass:\"button\",attrs:{\"disabled\":_vm.page.num < 1},on:{\"click\":_vm.prePage}},[_c('b-icon',{attrs:{\"icon\":\"angle-left\"}})],1),_c('button',{staticClass:\"button\",attrs:{\"disabled\":_vm.list.length < _vm.page.size},on:{\"click\":_vm.nextPage}},[_c('b-icon',{attrs:{\"icon\":\"angle-right\"}})],1)])]),_c('div',{staticClass:\"navbar-item\"},[_c('button',{staticClass:\"button is-primary is-outlined\",on:{\"click\":_vm.search}},[_vm._v(\"Search\")])])])]),_c('b-loading',{staticClass:\"log-loading\",attrs:{\"is-full-page\":false,\"active\":_vm.isLoading,\"can-cancel\":true},on:{\"update:active\":function($event){_vm.isLoading=$event}}}),_vm._l((_vm.list),function(item,i){return [_c('EventShowCard',{key:item.meta.txID + _vm.page.num,attrs:{\"item\":item,\"params\":_vm.abi.inputs}},[_c('span',{attrs:{\"slot\":\"title\"},slot:\"title\"},[_vm._v(\"#\"+_vm._s(_vm.page.num * _vm.page.size + i + 1))])])]})],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./FilterView.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./FilterView.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./FilterView.vue?vue&type=template&id=1219d4b9&scoped=true\"\nimport script from \"./FilterView.vue?vue&type=script&lang=ts\"\nexport * from \"./FilterView.vue?vue&type=script&lang=ts\"\nimport style0 from \"./FilterView.vue?vue&type=style&index=0&id=1219d4b9&prod&scoped=true&lang=css\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1219d4b9\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('section',{staticClass:\"section\"},[_c('div',{staticClass:\"container\"},[_c('b-table',{attrs:{\"detailed\":\"\",\"per-page\":_vm.perPage,\"current-page\":_vm.currentPage,\"data\":_vm.list,\"paginated\":\"\",\"backend-pagination\":\"\",\"total\":_vm.count},on:{\"update:currentPage\":function($event){_vm.currentPage=$event},\"update:current-page\":function($event){_vm.currentPage=$event},\"page-change\":_vm.onPageChange},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_c('b-table-column',{attrs:{\"centered\":\"\",\"label\":\"ID\"}},[_vm._v(_vm._s(props.row.id))]),_c('b-table-column',{attrs:{\"label\":\"Name\"}},[_c('router-link',{attrs:{\"to\":{\n name: 'filter_view',\n params: {\n id: props.row.id\n }\n }}},[_vm._v(_vm._s(props.row.name))])],1),_c('b-table-column',{attrs:{\"label\":\"Contract\"}},[_c('router-link',{attrs:{\"to\":{\n name: 'contract_detail',\n query: {\n address: props.row.address\n }\n }}},[_vm._v(\" \"+_vm._s(props.row.contractName)+\" \")]),_c('b-tooltip',{attrs:{\"label\":\"Prototype\"}},[(props.row.fromPrototype)?_c('b-icon',{staticStyle:{\"margin-left\":\"5px\"},attrs:{\"icon\":\"code-branch\",\"size\":\"is-small\"}}):_vm._e()],1)],1),_c('b-table-column',{attrs:{\"label\":\"Address\"}},[_c('span',{staticClass:\"is-family-monospace has-text-weight-semibold\"},[_vm._v(_vm._s(_vm._f(\"addr\")(_vm._f(\"toChecksumAddress\")(props.row.address))))])]),_c('b-table-column',{attrs:{\"centered\":\"\",\"label\":\"Operations\"}},[_c('div',{staticClass:\"buttons has-addons is-centered\"},[_c('button',{staticClass:\"button is-rounded control is-small\",on:{\"click\":function($event){return _vm.edit(props.row)}}},[_c('b-icon',{attrs:{\"size\":\"is-small\",\"icon\":\"edit\"}})],1),_c('button',{staticClass:\"button is-rounded control is-small\",on:{\"click\":function($event){return _vm.remove(props.row)}}},[_c('b-icon',{attrs:{\"size\":\"is-small\",\"icon\":\"trash-alt\"}})],1)])])]}},{key:\"detail\",fn:function(props){return [_c('pre',[_vm._v(_vm._s(props.row.abi))])]}}])})],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./FilterMgt.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./FilterMgt.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./FilterMgt.vue?vue&type=template&id=7b7210dc\"\nimport script from \"./FilterMgt.vue?vue&type=script&lang=ts\"\nexport * from \"./FilterMgt.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('section',{staticClass:\"section\"},[_c('div',{staticClass:\"container\"},[_c('b-field',{attrs:{\"grouped\":\"\"}},[_c('b-field',{attrs:{\"expanded\":\"\"}},[_c('b-field',{staticClass:\"is-pulled-right\"},[_c('b-input',{attrs:{\"icon\":\"search\",\"type\":\"text\",\"placeholder\":\"Name\"}}),_c('p',{staticClass:\"control\"},[_c('button',{staticClass:\"button is-primary\"},[_vm._v(\"Search\")])])],1)],1)],1),_c('b-table',{attrs:{\"detailed\":\"\",\"per-page\":_vm.perPage,\"current-page\":_vm.currentPage,\"data\":_vm.list,\"paginated\":\"\",\"backend-pagination\":\"\",\"total\":_vm.count},on:{\"update:currentPage\":function($event){_vm.currentPage=$event},\"update:current-page\":function($event){_vm.currentPage=$event},\"page-change\":_vm.onPageChange},scopedSlots:_vm._u([{key:\"default\",fn:function(props){return [_c('b-table-column',{attrs:{\"centered\":\"\",\"label\":\"ID\"}},[_vm._v(_vm._s(props.row.id))]),_c('b-table-column',{attrs:{\"label\":\"Name\"}},[_vm._v(_vm._s(props.row.name))]),_c('b-table-column',{attrs:{\"label\":\"Contract\"}},[_c('router-link',{attrs:{\"to\":{\n name: 'contract_detail',\n query: {\n address: props.row.address\n }\n }}},[_vm._v(_vm._s(props.row.contractName))]),_c('b-tooltip',{attrs:{\"label\":\"Prototype\"}},[(props.row.fromPrototype)?_c('b-icon',{staticStyle:{\"margin-left\":\"5px\"},attrs:{\"icon\":\"code-branch\",\"size\":\"is-small\"}}):_vm._e()],1)],1),_c('b-table-column',{attrs:{\"label\":\"Type\"}},[_vm._v(_vm._s(props.row.type))]),_c('b-table-column',{attrs:{\"label\":\"Address\"}},[_c('b-tooltip',{attrs:{\"label\":_vm._f(\"toChecksumAddress\")(props.row.address)}},[_c('span',{staticClass:\"is-family-monospace has-text-weight-semibold\"},[_vm._v(_vm._s(_vm._f(\"addr\")(_vm._f(\"toChecksumAddress\")(props.row.address))))])])],1),_c('b-table-column',{attrs:{\"centered\":\"\",\"label\":\"Operations\"}},[_c('div',{staticClass:\"buttons has-addons is-centered\"},[_c('button',{staticClass:\"button is-rounded control is-small\",on:{\"click\":function($event){return _vm.edit(props.row)}}},[_c('b-icon',{attrs:{\"size\":\"is-small\",\"icon\":\"edit\"}})],1),_c('button',{staticClass:\"button is-rounded control is-small\",on:{\"click\":function($event){return _vm.remove(props.row)}}},[_c('b-icon',{attrs:{\"size\":\"is-small\",\"icon\":\"trash-alt\"}})],1)])])]}},{key:\"detail\",fn:function(props){return [_c('SampleFuncCard',{attrs:{\"caller\":\"caller\",\"prototype\":props.row.fromPrototype,\"item\":props.row.abi,\"address\":props.row.address}})]}}])})],1)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',{staticClass:\"func-card\"},[_c('p',{staticClass:\"panel-tabs\",staticStyle:{\"justify-content\":\"left\"}},_vm._l((_vm.tabs),function(item,index){return _c('a',{key:index,class:{'is-active': _vm.activeTab === item},on:{\"click\":function($event){$event.stopPropagation();return _vm.switchTab(item)}}},[_vm._v(_vm._s(item))])}),0),_c('div',{staticClass:\"card-content\"},[_c('form',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.activeTab === _vm.tabs[0]),expression:\"activeTab === tabs[0]\"}],ref:\"form\",on:{\"reset\":function($event){$event.preventDefault();return _vm.reset.apply(null, arguments)}}},[_c('b-field',{staticClass:\"item-content\",attrs:{\"horizontal\":\"\",\"message\":\"Special address to call the method, it's not the param of the method\",\"label\":\"Caller\"},model:{value:(_vm.caller),callback:function ($$v) {_vm.caller=$$v},expression:\"caller\"}},[_c('b-input',{attrs:{\"placeholder\":\"Optional: Address\"}})],1),_vm._l((_vm.item.inputs),function(v,index){return _c('b-field',{key:index,staticClass:\"item-content\",attrs:{\"horizontal\":\"\",\"label\":v.name}},[_c('b-input',{ref:\"input\",refInFor:true,attrs:{\"readonly\":(_vm.prototype && v.name === '_self'),\"required\":\"\",\"placeholder\":v.type},model:{value:(_vm.params[index]),callback:function ($$v) {_vm.$set(_vm.params, index, $$v)},expression:\"params[index]\"}})],1)}),(_vm.item.payable)?_c('b-field',{staticClass:\"item-content\",attrs:{\"horizontal\":\"\",\"label\":\"value\"}},[_c('b-input',{attrs:{\"type\":\"number\",\"placeholder\":\"number\"},model:{value:(_vm.value),callback:function ($$v) {_vm.value=$$v},expression:\"value\"}})],1):_vm._e(),_c('b-field',{staticClass:\"item-content\"},[_c('div',{staticClass:\"buttons has-addons\"},[(!_vm.item.constant)?_c('button',{staticClass:\"button is-rounded is-primary is-outlined\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.executeFC.apply(null, arguments)}}},[_vm._v(\"Execute\")]):_vm._e(),_c('button',{staticClass:\"button is-rounded is-primary is-outlined\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.stopPropagation();return _vm.callFC.apply(null, arguments)}}},[_vm._v(\"Call\")]),_c('button',{staticClass:\"button is-rounded is-primary is-outlined\",attrs:{\"type\":\"reset\"}},[_vm._v(\"Reset\")])])]),(_vm.request)?_c('b-field',{attrs:{\"label\":\"Request\"}},[_c('pre',{staticStyle:{\"width\":\"100%\",\"white-space\":\"break-spaces\",\"word-break\":\"break-all\"}},[_vm._v(_vm._s(_vm.request))])]):_vm._e(),(_vm.resp)?_c('b-field',{attrs:{\"label\":\"Response\"}},[_c('pre',{staticStyle:{\"width\":\"100%\",\"white-space\":\"break-spaces\",\"word-break\":\"break-all\"}},[_vm._v(_vm._s(_vm.resp))])]):_vm._e()],2),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.activeTab === _vm.tabs[1]),expression:\"activeTab === tabs[1]\"}]},[_c('pre',[_vm._v(_vm._s(_vm.item))])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SampleFuncCard.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./SampleFuncCard.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./SampleFuncCard.vue?vue&type=template&id=18528316&scoped=true\"\nimport script from \"./SampleFuncCard.vue?vue&type=script&lang=ts\"\nexport * from \"./SampleFuncCard.vue?vue&type=script&lang=ts\"\nimport style0 from \"./SampleFuncCard.vue?vue&type=style&index=0&id=18528316&prod&lang=scss&scoped=true\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"18528316\",\n null\n \n)\n\nexport default component.exports","\n\n\n","import mod from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ShortCuts.vue?vue&type=script&lang=ts\"; export default mod; export * from \"-!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/ts-loader/index.js??clonedRuleSet-40.use[1]!../../node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./ShortCuts.vue?vue&type=script&lang=ts\"","import { render, staticRenderFns } from \"./ShortCuts.vue?vue&type=template&id=3a5e1316\"\nimport script from \"./ShortCuts.vue?vue&type=script&lang=ts\"\nexport * from \"./ShortCuts.vue?vue&type=script&lang=ts\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import { Vue, Component } from 'vue-property-decorator'\nimport Router from 'vue-router'\nimport NotSupport from './views/NotSupport.vue'\nimport Contracts from './views/Contracts.vue'\nimport Deploy from './views/DeployContract.vue'\nimport ContractDetail from './views/ContractDetail.vue'\nimport FilterView from './views/FilterView.vue'\nimport FilterMgt from './views/FilterMgt.vue'\nimport ShortCuts from './views/ShortCuts.vue'\n\nVue.use(Router)\n\nconst router = new Router({\n mode: 'hash',\n routes: [\n {\n name: 'root',\n redirect: { name: 'contracts' },\n path: '/'\n },\n {\n name: 'notSupport',\n component: NotSupport,\n path: '/not-support'\n },\n {\n name: 'contracts',\n component: Contracts,\n path: '/contracts'\n },\n {\n name: 'deploy',\n component: Deploy,\n path: '/deploy'\n },\n {\n name: 'contract_detail',\n component: ContractDetail,\n path: '/contract/detail'\n },\n {\n name: 'filter_view',\n component: FilterView,\n path: '/view/:id/list'\n }, {\n name: 'filter_mgt',\n component: FilterMgt,\n path: '/view/mgt'\n }, {\n name: 'short_cuts',\n component: ShortCuts,\n path: '/view/scs'\n }, {\n path: '*',\n redirect: { name: 'contracts' }\n }\n ]\n})\n\nexport default router\n","import DB, {Entities} from '@/database'\n\nexport type Contract = {\n address: string\n abi: object\n name: string\n genesisId: string\n}\n\nconst importContract = async (contract: Contract) => {\n\n const {address, genesisId, name, abi} = contract\n\n await DB.contracts.filter((obj) =>\n obj.address.toLowerCase() === address.toLowerCase()\n ).delete()\n\n const entity: Entities.Contract = {\n abi,\n address: address.toLowerCase(),\n name,\n createdTime: Date.now(),\n network: genesisId\n }\n\n await DB.contracts.add(entity)\n}\n\n/**\n * Pre-populate the database with contracts. This is useful for local development\n */\nexport const prePopulate = async () => {\n\n const request = await fetch('/abis/contracts.json')\n\n if (!request.ok) {\n return\n }\n\n const contracts: Contract[] = await request.json()\n\n for (const contract of contracts) {\n await importContract(contract)\n }\n}\n","\nimport './window.init'\nimport Vue from 'vue'\nimport Buefy from 'buefy'\nimport VeeValidate from 'vee-validate'\nimport './validator'\nimport './custom.scss'\nimport '@fortawesome/fontawesome-free/css/all.css'\nimport App from './App.vue'\nimport './filters'\nimport './directives'\nimport router from './Router'\nimport './overwrite.css'\nimport VueAnalytics from 'vue-analytics'\nimport Connex from '@vechain/connex'\nimport { createConnex, isSoloNode } from './create-connex'\nimport { prePopulate } from '@/pre-populate'\ndeclare module 'vue/types/vue' {\n interface Vue {\n $connex: Connex\n $explorerAccount: string\n $explorerBlock: string\n $explorerTx: string\n }\n}\n\nVue.use(Buefy, {\n defaultIconPack: 'fas'\n})\n\nVue.use(VeeValidate, {\n events: 'blur',\n validity: true\n})\n\nVue.use(VueAnalytics, {\n id: 'UA-132391998-2',\n disabled: process.env.NODE_ENV === 'production'\n})\n\nVue.config.productionTip = false\n\n\nfunction setExplorerUrl(path: string) {\n const temp = path ? (path + '/') : path\n Vue.prototype.$explorerAccount = `https://insight.vecha.in/#/${temp}accounts/`\n Vue.prototype.$explorerBlock = `https://insight.vecha.in/#/${temp}blocks/`\n Vue.prototype.$explorerTx = `https://insight.vecha.in/#/${temp}txs/`\n}\n\nif (window.connex) {\n // sync1\n console.log(\"Connex ok\", window.connex)\n Vue.prototype.$connex = new Connex({\n //@ts-ignore\n network: window.connex.thor.genesis,\n node: '',\n noV1Compat: false\n })\n setExplorerUrl('')\n} else {\n\n // Default is main net for sync2\n const defaultNetwork = isSoloNode ? 'solo' : 'main'\n const net = localStorage.getItem('last-net') || defaultNetwork\n console.log(\"net\", net)\n\n if (['test', 'main', 'solo'].includes(net)) {\n setExplorerUrl(net)\n Vue.prototype.$connex = createConnex(net as \"test\" | \"main\" | \"solo\")\n } else {\n const node = localStorage.getItem('custom-node')\n const network = JSON.parse(localStorage.getItem('custom-network') || '') as Connex.Thor.Block // genesis block\n\n if (node && network) {\n if (network.id === '0x000000000b2bce3c70bc649a02749e8687721b09ed2e15997f466536b20bb127') {\n // test\n setExplorerUrl('test')\n } else if (network.id === '0x00000000851caf3cfdb6e899cf5958bfb1ac3413d346d43539627e6be7ec1b4a') {\n // main\n setExplorerUrl('main')\n } else {\n const host = node.endsWith('/') ? node : (node + '/')\n Vue.prototype.$explorerAccount = `${host}accounts/`\n Vue.prototype.$explorerBlock = `${host}blocks/`\n Vue.prototype.$explorerTx = `${host}transactions/`\n }\n Vue.prototype.$connex = new Connex({\n network,\n node\n })\n }\n }\n}\n\nprePopulate()\n\nnew Vue({\n router,\n render: (h) => h(App)\n}).$mount('#app')\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","var deferred = [];\n__webpack_require__.O = function(result, chunkIds, fn, priority) {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar chunkIds = deferred[i][0];\n\t\tvar fn = deferred[i][1];\n\t\tvar priority = deferred[i][2];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every(function(key) { return __webpack_require__.O[key](chunkIds[j]); })) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }","// define __esModule on exports\n__webpack_require__.r = function(exports) {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.nmd = function(module) {\n\tmodule.paths = [];\n\tif (!module.children) module.children = [];\n\treturn module;\n};","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t524: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = function(chunkId) { return installedChunks[chunkId] === 0; };\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = function(parentChunkLoadingFunction, data) {\n\tvar chunkIds = data[0];\n\tvar moreModules = data[1];\n\tvar runtime = data[2];\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some(function(id) { return installedChunks[id] !== 0; })) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunkinspector_app\"] = self[\"webpackChunkinspector_app\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\nvar __webpack_exports__ = __webpack_require__.O(undefined, [504], function() { return __webpack_require__(9637); })\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["Object","defineProperty","window","value","enumerable","writable","BUS","$alert","msg","$buefy","dialog","confirm","title","type","message","hasIcon","cancelText","confirmText","onConfirm","open","extend","getMessage","field","validate","regex","test","length","v","BN","temp","multipliedBy","isInteger","isNegative","dictionary","en","attributes","code","localize","render","_vm","this","_c","_self","_setupProxy","staticClass","staticRenderFns","attrs","staticStyle","_v","class","burgerActive","on","$event","_l","item","index","key","name","_s","text","views","view","params","id","_e","networks","label","network","slot","n","i","onChange","Database","constructor","super","version","stores","contracts","filters","shortCuts","catch","err","console","error","subscribe","tableName","ev","fn","changes","filter","c","table","unsubscribe","DB","soloUrlNode","VUE_APP_IS_DOCKER","soloUrlPlaceholder","VUE_APP_SOLO_URL","isSoloNode","nodeUrls","main","solo","custom","soloGenesis","number","size","parentID","timestamp","gasLimit","beneficiary","gasUsed","totalScore","txsRoot","txsFeatures","stateRoot","receiptsRoot","signer","isTrunk","transactions","createConnex","net","url","node","injected","connex","thor","genesis","genesisIdToNetwork","networkToGenesisId","component","startsWith","substring","Date","toLocaleString","val","toChecksumed","getImg","el","address","svg","toLowerCase","nodeName","directive","update","binding","oldValue","src","style","background","backgroundSize","inserted","vnode","SE","document","querySelector","scrollEnd","offsetTop","elHeight","clientHeight","transition","onscroll","event","clearTimeout","setTimeout","top","target","scrollTop","marginTop","_m","onImport","addItem","ref","onSelect","_t","stopPropagation","edit","exportJson","remove","isloading","isModalActive","currentItem","isImport","onCancel","reload","context","formMessage","isError","checkName","model","form","callback","$$v","$set","expression","checkAddress","abi","checkABI","isEdit","close","apply","arguments","preventDefault","submit","btn","$listeners","select","directives","rawName","$emit","_f","$explorerAccount","sendCode","errors","has","first","required","bytecode","trim","vet","haxValue","numberValue","contract","toExplorer","filterList","onSearchSelect","scopedSlots","_u","props","option","tabIndex","visible","count","refInFor","fb","tabs","activeTab","currentTarget","reset","caller","prototype","addShortCut","executeFC","callFC","request","resp","isOpen","onupdate","switchTab","AccountCall","method","Array","inputs","resetOutputs","readMethod","$refs","input","forEach","element","$parent","newType","newMessage","writeMethod","initMethod","account","$connex","checkHtml5Validity","some","isValid","payable","stateMutability","hexValue","toFixed","toString","map","endsWith","JSON","parse","asClause","call","clause","vendor","sign","comment","default","addFilter","onRefresh","page","onPrev","list","onNext","ranges","isLoading","$explorerBlock","meta","blockID","blockNumber","blockTimestamp","$explorerTx","txID","data","row","topic","$attrs","constant","outputs","anonymous","indexed","Prototype","protoTabs","prList","_abi","pwList","peList","_abiEvent","initAbi","prototypeEvent","conditions","domProps","blockFrom","blockTo","num","prePage","nextPage","search","perPage","currentPage","onPageChange","query","contractName","fromPrototype","use","router","mode","routes","redirect","path","NotSupport","importContract","async","genesisId","obj","delete","entity","createdTime","now","add","prePopulate","fetch","ok","json","setExplorerUrl","defaultIconPack","events","validity","disabled","config","productionTip","log","noV1Compat","defaultNetwork","localStorage","getItem","includes","host","h","$mount","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","loaded","__webpack_modules__","m","deferred","O","result","chunkIds","priority","notFulfilled","Infinity","fulfilled","j","keys","every","splice","r","getter","__esModule","d","a","definition","o","get","g","globalThis","Function","e","prop","hasOwnProperty","Symbol","toStringTag","nmd","paths","children","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","chunkLoadingGlobal","self","bind","push","__webpack_exports__"],"sourceRoot":""} \ No newline at end of file diff --git a/js/chunk-vendors-legacy.cb128214.js b/js/chunk-vendors-legacy.cb128214.js new file mode 100644 index 0000000..f2b1428 --- /dev/null +++ b/js/chunk-vendors-legacy.cb128214.js @@ -0,0 +1,67 @@ +(self["webpackChunkinspector_app"]=self["webpackChunkinspector_app"]||[]).push([[504],{2487:function(t,e,n){var r;(function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,u=Math.floor,l="[BigNumber Error] ",c=l+"Number primitive has more than 15 significant digits: ",h=1e14,f=14,d=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],m=1e7,v=1e9;function g(t){var e,n,r,i=B.prototype={constructor:B,toString:null,valueOf:null},o=new B(1),E=20,A=4,O=-7,C=21,N=-1e7,T=1e7,D=!1,I=1,R=0,P={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0},j="0123456789abcdefghijklmnopqrstuvwxyz";function B(t,e){var i,o,s,l,h,p,m,v,g=this;if(!(g instanceof B))return new B(t,e);if(null==e){if(t instanceof B)return g.s=t.s,g.e=t.e,void(g.c=(t=t.c)?t.slice():t);if(p="number"==typeof t,p&&0*t==0){if(g.s=1/t<0?(t=-t,-1):1,t===~~t){for(l=0,h=t;h>=10;h/=10,l++);return g.e=l,void(g.c=[t])}v=t+""}else{if(!a.test(v=t+""))return r(g,v,p);g.s=45==v.charCodeAt(0)?(v=v.slice(1),-1):1}(l=v.indexOf("."))>-1&&(v=v.replace(".","")),(h=v.search(/e/i))>0?(l<0&&(l=h),l+=+v.slice(h+1),v=v.substring(0,h)):l<0&&(l=v.length)}else{if(_(e,2,j.length,"Base"),v=t+"",10==e)return g=new B(t instanceof B?t:v),U(g,E+g.e+1,A);if(p="number"==typeof t,p){if(0*t!=0)return r(g,v,p,e);if(g.s=1/t<0?(v=v.slice(1),-1):1,B.DEBUG&&v.replace(/^0\.0*|\./,"").length>15)throw Error(c+t);p=!1}else g.s=45===v.charCodeAt(0)?(v=v.slice(1),-1):1;for(i=j.slice(0,e),l=h=0,m=v.length;hl){l=m;continue}}else if(!s&&(v==v.toUpperCase()&&(v=v.toLowerCase())||v==v.toLowerCase()&&(v=v.toUpperCase()))){s=!0,h=-1,l=0;continue}return r(g,t+"",p,e)}v=n(v,e,10,g.s),(l=v.indexOf("."))>-1?v=v.replace(".",""):l=v.length}for(h=0;48===v.charCodeAt(h);h++);for(m=v.length;48===v.charCodeAt(--m););if(v=v.slice(h,++m),v){if(m-=h,p&&B.DEBUG&&m>15&&(t>d||t!==u(t)))throw Error(c+g.s*t);if(l=l-h-1,l>T)g.c=g.e=null;else if(ls){if(--e>0)for(u+=".";e--;u+="0");}else if(e+=o-s,e>0)for(o+1==s&&(u+=".");e--;u+="0");return t.s<0&&i?"-"+u:u}function L(t,e){var n,r,i=0;for(x(t[0])&&(t=t[0]),n=new B(t[0]);++i=10;i/=10,r++);return(n=r+n*f-1)>T?t.c=t.e=null:n=10;l/=10,i++);if(o=e-i,o<0)o+=f,a=e,c=v[d=0],m=c/g[i-a-1]%10|0;else if(d=s((o+1)/f),d>=v.length){if(!r)break t;for(;v.length<=d;v.push(0));c=m=0,i=1,o%=f,a=o-f+1}else{for(c=l=v[d],i=1;l>=10;l/=10,i++);o%=f,a=o-f+i,m=a<0?0:c/g[i-a-1]%10|0}if(r=r||e<0||null!=v[d+1]||(a<0?c:c%g[i-a-1]),r=n<4?(m||r)&&(0==n||n==(t.s<0?3:2)):m>5||5==m&&(4==n||r||6==n&&(o>0?a>0?c/g[i-a]:0:v[d-1])%10&1||n==(t.s<0?8:7)),e<1||!v[0])return v.length=0,r?(e-=t.e+1,v[0]=g[(f-e%f)%f],t.e=-e||0):v[0]=t.e=0,t;if(0==o?(v.length=d,l=1,d--):(v.length=d+1,l=g[f-o],v[d]=a>0?u(c/g[i-a]%g[a])*l:0),r)for(;;){if(0==d){for(o=1,a=v[0];a>=10;a/=10,o++);for(a=v[0]+=l,l=1;a>=10;a/=10,l++);o!=l&&(t.e++,v[0]==h&&(v[0]=1));break}if(v[d]+=l,v[d]!=h)break;v[d--]=0,l=1}for(o=v.length;0===v[--o];v.pop());}t.e>T?t.c=t.e=null:t.e>>11),c>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[h]=r[0],n[h+1]=r[1]):(d.push(c%1e14),h+=2);h=a/2}else{if(!crypto.randomBytes)throw D=!1,Error(l+"crypto unavailable");for(n=crypto.randomBytes(a*=7);h=9e15?crypto.randomBytes(7).copy(n,h):(d.push(c%1e14),h+=7);h=a/7}if(!D)for(;h=10;c/=10,h++);hn-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(r,i,o,a,s){var u,l,c,h,f,d,p,m,v=r.indexOf("."),g=E,y=A;for(v>=0&&(h=R,R=0,r=r.replace(".",""),m=new B(i),d=m.pow(r.length-v),R=h,m.c=n(k(b(d.c),d.e,"0"),10,o,t),m.e=m.c.length),p=n(r,i,o,s?(u=j,t):(u=t,j)),c=h=p.length;0==p[--h];p.pop());if(!p[0])return u.charAt(0);if(v<0?--c:(d.c=p,d.e=c,d.s=a,d=e(d,m,g,y,o),p=d.c,f=d.r,c=d.e),l=c+g+1,v=p[l],h=o/2,f=f||l<0||null!=p[l+1],f=y<4?(null!=v||f)&&(0==y||y==(d.s<0?3:2)):v>h||v==h&&(4==y||f||6==y&&1&p[l-1]||y==(d.s<0?8:7)),l<1||!p[0])r=f?k(u.charAt(1),-g,u.charAt(0)):u.charAt(0);else{if(p.length=l,f)for(--o;++p[--l]>o;)p[l]=0,l||(++c,p=[1].concat(p));for(h=p.length;!p[--h];);for(v=0,r="";v<=h;r+=u.charAt(p[v++]));r=k(r,c,u.charAt(0))}return r}}(),e=function(){function t(t,e,n){var r,i,o,a,s=0,u=t.length,l=e%m,c=e/m|0;for(t=t.slice();u--;)o=t[u]%m,a=t[u]/m|0,r=c*o+a*l,i=l*o+r%m*m+s,s=(i/n|0)+(r/m|0)+c*a,t[u]=i%n;return s&&(t=[s].concat(t)),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]1;t.splice(0,1));}return function(r,i,o,a,s){var l,c,d,p,m,v,g,b,w,_,x,S,M,k,E,A,O,C=r.s==i.s?1:-1,N=r.c,T=i.c;if(!N||!N[0]||!T||!T[0])return new B(r.s&&i.s&&(N?!T||N[0]!=T[0]:T)?N&&0==N[0]||!T?0*C:C/0:NaN);for(b=new B(C),w=b.c=[],c=r.e-i.e,C=o+c+1,s||(s=h,c=y(r.e/f)-y(i.e/f),C=C/f|0),d=0;T[d]==(N[d]||0);d++);if(T[d]>(N[d]||0)&&c--,C<0)w.push(1),p=!0;else{for(k=N.length,A=T.length,d=0,C+=2,m=u(s/(T[0]+1)),m>1&&(T=t(T,m,s),N=t(N,m,s),A=T.length,k=N.length),M=A,_=N.slice(0,A),x=_.length;x=s/2&&E++;do{if(m=0,l=e(T,_,A,x),l<0){if(S=_[0],A!=x&&(S=S*s+(_[1]||0)),m=u(S/E),m>1){m>=s&&(m=s-1),v=t(T,m,s),g=v.length,x=_.length;while(1==e(v,_,g,x))m--,n(v,A=10;C/=10,d++);U(b,o+(b.e=d+c*f-1)+1,a,p)}else b.e=c,b.r=+p;return b}}(),r=function(){var t=/^(-?)0([xbo])(?=\w[\w.]*$)/i,e=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,a,s,u){var c,h=s?a:a.replace(i,"");if(r.test(h))o.s=isNaN(h)?null:h<0?-1:1,o.c=o.e=null;else{if(!s&&(h=h.replace(t,(function(t,e,n){return c="x"==(n=n.toLowerCase())?16:"b"==n?2:8,u&&u!=c?t:e})),u&&(c=u,h=h.replace(e,"$1").replace(n,"0.$1")),a!=h))return new B(h,c);if(B.DEBUG)throw Error(l+"Not a"+(u?" base "+u:"")+" number: "+a);o.c=o.e=o.s=null}}}(),i.absoluteValue=i.abs=function(){var t=new B(this);return t.s<0&&(t.s=1),t},i.comparedTo=function(t,e){return w(this,new B(t,e))},i.decimalPlaces=i.dp=function(t,e){var n,r,i,o=this;if(null!=t)return _(t,0,v),null==e?e=A:_(e,0,8),U(new B(o),t+o.e+1,e);if(!(n=o.c))return null;if(r=((i=n.length-1)-y(this.e/f))*f,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},i.dividedBy=i.div=function(t,n){return e(this,new B(t,n),E,A)},i.dividedToIntegerBy=i.idiv=function(t,n){return e(this,new B(t,n),0,1)},i.exponentiatedBy=i.pow=function(t,e){var n,r,i,a,c,h,d,p,m=this;if(t=new B(t),t.c&&!t.isInteger())throw Error(l+"Exponent not an integer: "+t);if(null!=e&&(e=new B(e)),c=t.e>14,!m.c||!m.c[0]||1==m.c[0]&&!m.e&&1==m.c.length||!t.c||!t.c[0])return p=new B(Math.pow(+m.valueOf(),c?2-S(t):+t)),e?p.mod(e):p;if(h=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new B(NaN);r=!h&&m.isInteger()&&e.isInteger(),r&&(m=m.mod(e))}else{if(t.e>9&&(m.e>0||m.e<-1||(0==m.e?m.c[0]>1||c&&m.c[1]>=24e7:m.c[0]<8e13||c&&m.c[0]<=9999975e7)))return i=m.s<0&&S(t)?-0:0,m.e>-1&&(i=1/i),new B(h?1/i:i);R&&(i=s(R/f+2))}for(c?(n=new B(.5),d=S(t)):d=t%2,h&&(t.s=1),p=new B(o);;){if(d){if(p=p.times(m),!p.c)break;i?p.c.length>i&&(p.c.length=i):r&&(p=p.mod(e))}if(c){if(t=t.times(n),U(t,t.e+1,1),!t.c[0])break;c=t.e>14,d=S(t)}else{if(t=u(t/2),!t)break;d=t%2}m=m.times(m),i?m.c&&m.c.length>i&&(m.c.length=i):r&&(m=m.mod(e))}return r?p:(h&&(p=o.div(p)),e?p.mod(e):i?U(p,R,A,a):p)},i.integerValue=function(t){var e=new B(this);return null==t?t=A:_(t,0,8),U(e,e.e+1,t)},i.isEqualTo=i.eq=function(t,e){return 0===w(this,new B(t,e))},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(t,e){return w(this,new B(t,e))>0},i.isGreaterThanOrEqualTo=i.gte=function(t,e){return 1===(e=w(this,new B(t,e)))||0===e},i.isInteger=function(){return!!this.c&&y(this.e/f)>this.c.length-2},i.isLessThan=i.lt=function(t,e){return w(this,new B(t,e))<0},i.isLessThanOrEqualTo=i.lte=function(t,e){return-1===(e=w(this,new B(t,e)))||0===e},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&0==this.c[0]},i.minus=function(t,e){var n,r,i,o,a=this,s=a.s;if(t=new B(t,e),e=t.s,!s||!e)return new B(NaN);if(s!=e)return t.s=-e,a.plus(t);var u=a.e/f,l=t.e/f,c=a.c,d=t.c;if(!u||!l){if(!c||!d)return c?(t.s=-e,t):new B(d?a:NaN);if(!c[0]||!d[0])return d[0]?(t.s=-e,t):new B(c[0]?a:3==A?-0:0)}if(u=y(u),l=y(l),c=c.slice(),s=u-l){for((o=s<0)?(s=-s,i=c):(l=u,i=d),i.reverse(),e=s;e--;i.push(0));i.reverse()}else for(r=(o=(s=c.length)<(e=d.length))?s:e,s=e=0;e0)for(;e--;c[n++]=0);for(e=h-1;r>s;){if(c[--r]=0;){for(n=0,p=S[i]%w,v=S[i]/w|0,a=u,o=i+a;o>i;)l=x[--a]%w,c=x[a]/w|0,s=v*l+c*p,l=p*l+s%w*w+g[o]+n,n=(l/b|0)+(s/w|0)+v*c,g[o--]=l%b;g[o]=n}return n?++r:g.splice(0,1),F(t,g,r)},i.negated=function(){var t=new B(this);return t.s=-t.s||null,t},i.plus=function(t,e){var n,r=this,i=r.s;if(t=new B(t,e),e=t.s,!i||!e)return new B(NaN);if(i!=e)return t.s=-e,r.minus(t);var o=r.e/f,a=t.e/f,s=r.c,u=t.c;if(!o||!a){if(!s||!u)return new B(i/0);if(!s[0]||!u[0])return u[0]?t:new B(s[0]?r:0*i)}if(o=y(o),a=y(a),s=s.slice(),i=o-a){for(i>0?(a=o,n=u):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for(i=s.length,e=u.length,i-e<0&&(n=u,u=s,s=n,e=i),i=0;e;)i=(s[--e]=s[e]+u[e]+i)/h|0,s[e]=h===s[e]?0:s[e]%h;return i&&(s=[i].concat(s),++a),F(t,s,a)},i.precision=i.sd=function(t,e){var n,r,i,o=this;if(null!=t&&t!==!!t)return _(t,1,v),null==e?e=A:_(e,0,8),U(new B(o),t,e);if(!(n=o.c))return null;if(i=n.length-1,r=i*f+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return t&&o.e+1>r&&(r=o.e+1),r},i.shiftedBy=function(t){return _(t,-d,d),this.times("1e"+t)},i.squareRoot=i.sqrt=function(){var t,n,r,i,o,a=this,s=a.c,u=a.s,l=a.e,c=E+4,h=new B("0.5");if(1!==u||!s||!s[0])return new B(!u||u<0&&(!s||s[0])?NaN:s?a:1/0);if(u=Math.sqrt(+a),0==u||u==1/0?(n=b(s),(n.length+l)%2==0&&(n+="0"),u=Math.sqrt(n),l=y((l+1)/2)-(l<0||l%2),u==1/0?n="1e"+l:(n=u.toExponential(),n=n.slice(0,n.indexOf("e")+1)+l),r=new B(n)):r=new B(u+""),r.c[0])for(l=r.e,u=l+c,u<3&&(u=0);;)if(o=r,r=h.times(o.plus(e(a,o,c,1))),b(o.c).slice(0,u)===(n=b(r.c)).slice(0,u)){if(r.e0&&f>0){for(r=f%o||o,u=h.substr(0,r);r0&&(u+=s+h.slice(r)),c&&(u="-"+u)}n=l?u+P.decimalSeparator+((a=+P.fractionGroupSize)?l.replace(new RegExp("\\d{"+a+"}\\B","g"),"$&"+P.fractionGroupSeparator):l):u}return n},i.toFraction=function(t){var n,r,i,a,s,u,c,h,d,m,v,g,y=this,w=y.c;if(null!=t&&(h=new B(t),!h.isInteger()&&(h.c||1!==h.s)||h.lt(o)))throw Error(l+"Argument "+(h.isInteger()?"out of range: ":"not an integer: ")+t);if(!w)return y.toString();for(r=new B(o),m=i=new B(o),a=d=new B(o),g=b(w),u=r.e=g.length-y.e-1,r.c[0]=p[(c=u%f)<0?f+c:c],t=!t||h.comparedTo(r)>0?u>0?r:m:h,c=T,T=1/0,h=new B(g),d.c[0]=0;;){if(v=e(h,r,0,1),s=i.plus(v.times(a)),1==s.comparedTo(t))break;i=a,a=s,m=d.plus(v.times(s=m)),d=s,r=h.minus(v.times(s=r)),h=s}return s=e(t.minus(i),a,0,1),d=d.plus(s.times(m)),i=i.plus(s.times(a)),d.s=m.s=y.s,u*=2,n=e(m,a,u,A).minus(y).abs().comparedTo(e(d,i,u,A).minus(y).abs())<1?[m.toString(),a.toString()]:[d.toString(),i.toString()],T=c,n},i.toNumber=function(){return+this},i.toPrecision=function(t,e){return null!=t&&_(t,1,v),$(this,t,e,2)},i.toString=function(t){var e,r=this,i=r.s,o=r.e;return null===o?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(e=b(r.c),null==t?e=o<=O||o>=C?M(e,o):k(e,o,"0"):(_(t,2,j.length,"Base"),e=n(k(e,o,"0"),10,t,i,!0)),i<0&&r.c[0]&&(e="-"+e)),e},i.valueOf=i.toJSON=function(){var t,e=this,n=e.e;return null===n?e.toString():(t=b(e.c),t=n<=O||n>=C?M(t,n):k(t,n,"0"),e.s<0?"-"+t:t)},i._isBigNumber=!0,null!=t&&B.set(t),B}function y(t){var e=0|t;return t>0||t===e?e:e-1}function b(t){for(var e,n,r=1,i=t.length,o=t[0]+"";rl^n?1:-1;for(s=(u=i.length)<(l=o.length)?u:l,a=0;ao[a]^n?1:-1;return u==l?0:u>l^n?1:-1}function _(t,e,n,r){if(tn||t!==(t<0?s(t):u(t)))throw Error(l+(r||"Argument")+("number"==typeof t?tn?" out of range: ":" not an integer: ":" not a primitive number: ")+t)}function x(t){return"[object Array]"==Object.prototype.toString.call(t)}function S(t){var e=t.c.length-1;return y(t.e/f)==e&&t.c[e]%2!=0}function M(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function k(t,e,n){var r,i;if(e<0){for(i=n+".";++e;i+=n);t=i+t}else if(r=t.length,++e>r){for(i=n,e-=r;--e;i+=n);t+=i}else e=10;h/=10,l++);return g.e=l,void(g.c=[t])}v=t+""}else{if(!a.test(v=t+""))return r(g,v,p);g.s=45==v.charCodeAt(0)?(v=v.slice(1),-1):1}(l=v.indexOf("."))>-1&&(v=v.replace(".","")),(h=v.search(/e/i))>0?(l<0&&(l=h),l+=+v.slice(h+1),v=v.substring(0,h)):l<0&&(l=v.length)}else{if(_(e,2,j.length,"Base"),v=t+"",10==e)return g=new B(t instanceof B?t:v),U(g,E+g.e+1,A);if(p="number"==typeof t,p){if(0*t!=0)return r(g,v,p,e);if(g.s=1/t<0?(v=v.slice(1),-1):1,B.DEBUG&&v.replace(/^0\.0*|\./,"").length>15)throw Error(c+t);p=!1}else g.s=45===v.charCodeAt(0)?(v=v.slice(1),-1):1;for(i=j.slice(0,e),l=h=0,m=v.length;hl){l=m;continue}}else if(!s&&(v==v.toUpperCase()&&(v=v.toLowerCase())||v==v.toLowerCase()&&(v=v.toUpperCase()))){s=!0,h=-1,l=0;continue}return r(g,t+"",p,e)}v=n(v,e,10,g.s),(l=v.indexOf("."))>-1?v=v.replace(".",""):l=v.length}for(h=0;48===v.charCodeAt(h);h++);for(m=v.length;48===v.charCodeAt(--m););if(v=v.slice(h,++m),v){if(m-=h,p&&B.DEBUG&&m>15&&(t>d||t!==u(t)))throw Error(c+g.s*t);if(l=l-h-1,l>T)g.c=g.e=null;else if(ls){if(--e>0)for(u+=".";e--;u+="0");}else if(e+=o-s,e>0)for(o+1==s&&(u+=".");e--;u+="0");return t.s<0&&i?"-"+u:u}function L(t,e){var n,r,i=0;for(x(t[0])&&(t=t[0]),n=new B(t[0]);++i=10;i/=10,r++);return(n=r+n*f-1)>T?t.c=t.e=null:n=10;l/=10,i++);if(o=e-i,o<0)o+=f,a=e,c=v[d=0],m=c/g[i-a-1]%10|0;else if(d=s((o+1)/f),d>=v.length){if(!r)break t;for(;v.length<=d;v.push(0));c=m=0,i=1,o%=f,a=o-f+1}else{for(c=l=v[d],i=1;l>=10;l/=10,i++);o%=f,a=o-f+i,m=a<0?0:c/g[i-a-1]%10|0}if(r=r||e<0||null!=v[d+1]||(a<0?c:c%g[i-a-1]),r=n<4?(m||r)&&(0==n||n==(t.s<0?3:2)):m>5||5==m&&(4==n||r||6==n&&(o>0?a>0?c/g[i-a]:0:v[d-1])%10&1||n==(t.s<0?8:7)),e<1||!v[0])return v.length=0,r?(e-=t.e+1,v[0]=g[(f-e%f)%f],t.e=-e||0):v[0]=t.e=0,t;if(0==o?(v.length=d,l=1,d--):(v.length=d+1,l=g[f-o],v[d]=a>0?u(c/g[i-a]%g[a])*l:0),r)for(;;){if(0==d){for(o=1,a=v[0];a>=10;a/=10,o++);for(a=v[0]+=l,l=1;a>=10;a/=10,l++);o!=l&&(t.e++,v[0]==h&&(v[0]=1));break}if(v[d]+=l,v[d]!=h)break;v[d--]=0,l=1}for(o=v.length;0===v[--o];v.pop());}t.e>T?t.c=t.e=null:t.e>>11),c>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[h]=r[0],n[h+1]=r[1]):(d.push(c%1e14),h+=2);h=a/2}else{if(!crypto.randomBytes)throw D=!1,Error(l+"crypto unavailable");for(n=crypto.randomBytes(a*=7);h=9e15?crypto.randomBytes(7).copy(n,h):(d.push(c%1e14),h+=7);h=a/7}if(!D)for(;h=10;c/=10,h++);hn-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(r,i,o,a,s){var u,l,c,h,f,d,p,m,v=r.indexOf("."),g=E,y=A;for(v>=0&&(h=R,R=0,r=r.replace(".",""),m=new B(i),d=m.pow(r.length-v),R=h,m.c=n(k(b(d.c),d.e,"0"),10,o,t),m.e=m.c.length),p=n(r,i,o,s?(u=j,t):(u=t,j)),c=h=p.length;0==p[--h];p.pop());if(!p[0])return u.charAt(0);if(v<0?--c:(d.c=p,d.e=c,d.s=a,d=e(d,m,g,y,o),p=d.c,f=d.r,c=d.e),l=c+g+1,v=p[l],h=o/2,f=f||l<0||null!=p[l+1],f=y<4?(null!=v||f)&&(0==y||y==(d.s<0?3:2)):v>h||v==h&&(4==y||f||6==y&&1&p[l-1]||y==(d.s<0?8:7)),l<1||!p[0])r=f?k(u.charAt(1),-g,u.charAt(0)):u.charAt(0);else{if(p.length=l,f)for(--o;++p[--l]>o;)p[l]=0,l||(++c,p=[1].concat(p));for(h=p.length;!p[--h];);for(v=0,r="";v<=h;r+=u.charAt(p[v++]));r=k(r,c,u.charAt(0))}return r}}(),e=function(){function t(t,e,n){var r,i,o,a,s=0,u=t.length,l=e%m,c=e/m|0;for(t=t.slice();u--;)o=t[u]%m,a=t[u]/m|0,r=c*o+a*l,i=l*o+r%m*m+s,s=(i/n|0)+(r/m|0)+c*a,t[u]=i%n;return s&&(t=[s].concat(t)),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]1;t.splice(0,1));}return function(r,i,o,a,s){var l,c,d,p,m,v,g,b,w,_,x,S,M,k,E,A,O,C=r.s==i.s?1:-1,N=r.c,T=i.c;if(!N||!N[0]||!T||!T[0])return new B(r.s&&i.s&&(N?!T||N[0]!=T[0]:T)?N&&0==N[0]||!T?0*C:C/0:NaN);for(b=new B(C),w=b.c=[],c=r.e-i.e,C=o+c+1,s||(s=h,c=y(r.e/f)-y(i.e/f),C=C/f|0),d=0;T[d]==(N[d]||0);d++);if(T[d]>(N[d]||0)&&c--,C<0)w.push(1),p=!0;else{for(k=N.length,A=T.length,d=0,C+=2,m=u(s/(T[0]+1)),m>1&&(T=t(T,m,s),N=t(N,m,s),A=T.length,k=N.length),M=A,_=N.slice(0,A),x=_.length;x=s/2&&E++;do{if(m=0,l=e(T,_,A,x),l<0){if(S=_[0],A!=x&&(S=S*s+(_[1]||0)),m=u(S/E),m>1){m>=s&&(m=s-1),v=t(T,m,s),g=v.length,x=_.length;while(1==e(v,_,g,x))m--,n(v,A=10;C/=10,d++);U(b,o+(b.e=d+c*f-1)+1,a,p)}else b.e=c,b.r=+p;return b}}(),r=function(){var t=/^(-?)0([xbo])(?=\w[\w.]*$)/i,e=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,a,s,u){var c,h=s?a:a.replace(i,"");if(r.test(h))o.s=isNaN(h)?null:h<0?-1:1,o.c=o.e=null;else{if(!s&&(h=h.replace(t,(function(t,e,n){return c="x"==(n=n.toLowerCase())?16:"b"==n?2:8,u&&u!=c?t:e})),u&&(c=u,h=h.replace(e,"$1").replace(n,"0.$1")),a!=h))return new B(h,c);if(B.DEBUG)throw Error(l+"Not a"+(u?" base "+u:"")+" number: "+a);o.c=o.e=o.s=null}}}(),i.absoluteValue=i.abs=function(){var t=new B(this);return t.s<0&&(t.s=1),t},i.comparedTo=function(t,e){return w(this,new B(t,e))},i.decimalPlaces=i.dp=function(t,e){var n,r,i,o=this;if(null!=t)return _(t,0,v),null==e?e=A:_(e,0,8),U(new B(o),t+o.e+1,e);if(!(n=o.c))return null;if(r=((i=n.length-1)-y(this.e/f))*f,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},i.dividedBy=i.div=function(t,n){return e(this,new B(t,n),E,A)},i.dividedToIntegerBy=i.idiv=function(t,n){return e(this,new B(t,n),0,1)},i.exponentiatedBy=i.pow=function(t,e){var n,r,i,a,c,h,d,p,m=this;if(t=new B(t),t.c&&!t.isInteger())throw Error(l+"Exponent not an integer: "+t);if(null!=e&&(e=new B(e)),c=t.e>14,!m.c||!m.c[0]||1==m.c[0]&&!m.e&&1==m.c.length||!t.c||!t.c[0])return p=new B(Math.pow(+m.valueOf(),c?2-S(t):+t)),e?p.mod(e):p;if(h=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new B(NaN);r=!h&&m.isInteger()&&e.isInteger(),r&&(m=m.mod(e))}else{if(t.e>9&&(m.e>0||m.e<-1||(0==m.e?m.c[0]>1||c&&m.c[1]>=24e7:m.c[0]<8e13||c&&m.c[0]<=9999975e7)))return i=m.s<0&&S(t)?-0:0,m.e>-1&&(i=1/i),new B(h?1/i:i);R&&(i=s(R/f+2))}for(c?(n=new B(.5),d=S(t)):d=t%2,h&&(t.s=1),p=new B(o);;){if(d){if(p=p.times(m),!p.c)break;i?p.c.length>i&&(p.c.length=i):r&&(p=p.mod(e))}if(c){if(t=t.times(n),U(t,t.e+1,1),!t.c[0])break;c=t.e>14,d=S(t)}else{if(t=u(t/2),!t)break;d=t%2}m=m.times(m),i?m.c&&m.c.length>i&&(m.c.length=i):r&&(m=m.mod(e))}return r?p:(h&&(p=o.div(p)),e?p.mod(e):i?U(p,R,A,a):p)},i.integerValue=function(t){var e=new B(this);return null==t?t=A:_(t,0,8),U(e,e.e+1,t)},i.isEqualTo=i.eq=function(t,e){return 0===w(this,new B(t,e))},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(t,e){return w(this,new B(t,e))>0},i.isGreaterThanOrEqualTo=i.gte=function(t,e){return 1===(e=w(this,new B(t,e)))||0===e},i.isInteger=function(){return!!this.c&&y(this.e/f)>this.c.length-2},i.isLessThan=i.lt=function(t,e){return w(this,new B(t,e))<0},i.isLessThanOrEqualTo=i.lte=function(t,e){return-1===(e=w(this,new B(t,e)))||0===e},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&0==this.c[0]},i.minus=function(t,e){var n,r,i,o,a=this,s=a.s;if(t=new B(t,e),e=t.s,!s||!e)return new B(NaN);if(s!=e)return t.s=-e,a.plus(t);var u=a.e/f,l=t.e/f,c=a.c,d=t.c;if(!u||!l){if(!c||!d)return c?(t.s=-e,t):new B(d?a:NaN);if(!c[0]||!d[0])return d[0]?(t.s=-e,t):new B(c[0]?a:3==A?-0:0)}if(u=y(u),l=y(l),c=c.slice(),s=u-l){for((o=s<0)?(s=-s,i=c):(l=u,i=d),i.reverse(),e=s;e--;i.push(0));i.reverse()}else for(r=(o=(s=c.length)<(e=d.length))?s:e,s=e=0;e0)for(;e--;c[n++]=0);for(e=h-1;r>s;){if(c[--r]=0;){for(n=0,p=S[i]%w,v=S[i]/w|0,a=u,o=i+a;o>i;)l=x[--a]%w,c=x[a]/w|0,s=v*l+c*p,l=p*l+s%w*w+g[o]+n,n=(l/b|0)+(s/w|0)+v*c,g[o--]=l%b;g[o]=n}return n?++r:g.splice(0,1),F(t,g,r)},i.negated=function(){var t=new B(this);return t.s=-t.s||null,t},i.plus=function(t,e){var n,r=this,i=r.s;if(t=new B(t,e),e=t.s,!i||!e)return new B(NaN);if(i!=e)return t.s=-e,r.minus(t);var o=r.e/f,a=t.e/f,s=r.c,u=t.c;if(!o||!a){if(!s||!u)return new B(i/0);if(!s[0]||!u[0])return u[0]?t:new B(s[0]?r:0*i)}if(o=y(o),a=y(a),s=s.slice(),i=o-a){for(i>0?(a=o,n=u):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for(i=s.length,e=u.length,i-e<0&&(n=u,u=s,s=n,e=i),i=0;e;)i=(s[--e]=s[e]+u[e]+i)/h|0,s[e]=h===s[e]?0:s[e]%h;return i&&(s=[i].concat(s),++a),F(t,s,a)},i.precision=i.sd=function(t,e){var n,r,i,o=this;if(null!=t&&t!==!!t)return _(t,1,v),null==e?e=A:_(e,0,8),U(new B(o),t,e);if(!(n=o.c))return null;if(i=n.length-1,r=i*f+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return t&&o.e+1>r&&(r=o.e+1),r},i.shiftedBy=function(t){return _(t,-d,d),this.times("1e"+t)},i.squareRoot=i.sqrt=function(){var t,n,r,i,o,a=this,s=a.c,u=a.s,l=a.e,c=E+4,h=new B("0.5");if(1!==u||!s||!s[0])return new B(!u||u<0&&(!s||s[0])?NaN:s?a:1/0);if(u=Math.sqrt(+a),0==u||u==1/0?(n=b(s),(n.length+l)%2==0&&(n+="0"),u=Math.sqrt(n),l=y((l+1)/2)-(l<0||l%2),u==1/0?n="1e"+l:(n=u.toExponential(),n=n.slice(0,n.indexOf("e")+1)+l),r=new B(n)):r=new B(u+""),r.c[0])for(l=r.e,u=l+c,u<3&&(u=0);;)if(o=r,r=h.times(o.plus(e(a,o,c,1))),b(o.c).slice(0,u)===(n=b(r.c)).slice(0,u)){if(r.e0&&f>0){for(r=f%o||o,u=h.substr(0,r);r0&&(u+=s+h.slice(r)),c&&(u="-"+u)}n=l?u+P.decimalSeparator+((a=+P.fractionGroupSize)?l.replace(new RegExp("\\d{"+a+"}\\B","g"),"$&"+P.fractionGroupSeparator):l):u}return n},i.toFraction=function(t){var n,r,i,a,s,u,c,h,d,m,v,g,y=this,w=y.c;if(null!=t&&(h=new B(t),!h.isInteger()&&(h.c||1!==h.s)||h.lt(o)))throw Error(l+"Argument "+(h.isInteger()?"out of range: ":"not an integer: ")+t);if(!w)return y.toString();for(r=new B(o),m=i=new B(o),a=d=new B(o),g=b(w),u=r.e=g.length-y.e-1,r.c[0]=p[(c=u%f)<0?f+c:c],t=!t||h.comparedTo(r)>0?u>0?r:m:h,c=T,T=1/0,h=new B(g),d.c[0]=0;;){if(v=e(h,r,0,1),s=i.plus(v.times(a)),1==s.comparedTo(t))break;i=a,a=s,m=d.plus(v.times(s=m)),d=s,r=h.minus(v.times(s=r)),h=s}return s=e(t.minus(i),a,0,1),d=d.plus(s.times(m)),i=i.plus(s.times(a)),d.s=m.s=y.s,u*=2,n=e(m,a,u,A).minus(y).abs().comparedTo(e(d,i,u,A).minus(y).abs())<1?[m.toString(),a.toString()]:[d.toString(),i.toString()],T=c,n},i.toNumber=function(){return+this},i.toPrecision=function(t,e){return null!=t&&_(t,1,v),$(this,t,e,2)},i.toString=function(t){var e,r=this,i=r.s,o=r.e;return null===o?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(e=b(r.c),null==t?e=o<=O||o>=C?M(e,o):k(e,o,"0"):(_(t,2,j.length,"Base"),e=n(k(e,o,"0"),10,t,i,!0)),i<0&&r.c[0]&&(e="-"+e)),e},i.valueOf=i.toJSON=function(){var t,e=this,n=e.e;return null===n?e.toString():(t=b(e.c),t=n<=O||n>=C?M(t,n):k(t,n,"0"),e.s<0?"-"+t:t)},i._isBigNumber=!0,null!=t&&B.set(t),B}function y(t){var e=0|t;return t>0||t===e?e:e-1}function b(t){for(var e,n,r=1,i=t.length,o=t[0]+"";rl^n?1:-1;for(s=(u=i.length)<(l=o.length)?u:l,a=0;ao[a]^n?1:-1;return u==l?0:u>l^n?1:-1}function _(t,e,n,r){if(tn||t!==(t<0?s(t):u(t)))throw Error(l+(r||"Argument")+("number"==typeof t?tn?" out of range: ":" not an integer: ":" not a primitive number: ")+t)}function x(t){return"[object Array]"==Object.prototype.toString.call(t)}function S(t){var e=t.c.length-1;return y(t.e/f)==e&&t.c[e]%2!=0}function M(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function k(t,e,n){var r,i;if(e<0){for(i=n+".";++e;i+=n);t=i+t}else if(r=t.length,++e>r){for(i=n,e-=r;--e;i+=n);t+=i}else e{var t={4628:(t,e,n)=>{"use strict";n.r(e),n.d(e,{Connex:()=>Se,default:()=>Me});var i=n(2046),o=n(747),a=n(8764)["Buffer"];function s(...t){const e=o.keccak_256.create();return t.forEach((t=>{a.isBuffer(t)?e.update(t):e.update(a.from(t,"utf8"))})),a.from(e.digest())}var u=n(8764)["Buffer"];class l extends i.AbiCoder{constructor(){super(((t,e)=>t.match(/^u?int/)&&!Array.isArray(e)&&"object"!==typeof e||"BigNumber"===e._ethersType?e.toString():e))}encode(t,e){try{return super.encode(t,e)}catch(n){if(n.reason)throw new Error(n.reason);throw n}}decode(t,e){try{return super.decode(t,e)}catch(n){if(n.reason)throw new Error(n.reason);throw n}}}const c=new l;function h(t){try{return(0,i.formatSignature)(t).replace(/\(tuple\(/g,"((").replace(/\,tuple\(/g,",(")}catch(e){if(e.reason)throw new Error(e.reason);throw e}}var f;(function(t){function e(t,e){return c.encode([t],[e])}function n(t,e){return c.decode([t],e)[0]}function r(t,e){return c.encode(t,e)}function i(t,e){const n=c.decode(t,e),r={};return t.forEach(((t,e)=>{r[e]=n[e],t.name&&(r[t.name]=n[e])})),r}t.encodeParameter=e,t.decodeParameter=n,t.encodeParameters=r,t.decodeParameters=i;class o{constructor(t){this.definition=t,this.canonicalName=h(t),this.signature="0x"+s(this.canonicalName).slice(0,4).toString("hex")}encode(...t){return this.signature+r(this.definition.inputs,t).slice(2)}decode(t){return i(this.definition.outputs,t)}}t.Function=o;class a{constructor(t){this.definition=t,this.canonicalName=h(t),this.signature="0x"+s(this.canonicalName).toString("hex")}encode(t){const n=[];this.definition.anonymous||n.push(this.signature);for(const r of this.definition.inputs){if(!r.indexed)continue;const i=t[r.name];if(void 0===i||null===i)n.push(null);else{let t;if(l(r.type))t=e(r.type,i);else if("string"===r.type)t="0x"+s(i).toString("hex");else{if("string"!==typeof i||!/^0x[0-9a-f]+$/i.test(i)||i.length%2!==0)throw new Error(`event.encode: invalid ${r.type} value`);t="0x"+s(u.from(i.slice(2),"hex")).toString("hex")}n.push(t)}}return n}decode(t,e){if(this.definition.anonymous||(e=e.slice(1)),this.definition.inputs.filter((t=>t.indexed)).length!==e.length)throw new Error("invalid topics count");const r=c.decode(this.definition.inputs.filter((t=>!t.indexed)),t),i={};return this.definition.inputs.forEach(((t,o)=>{if(t.indexed){const r=e.shift();i[o]=l(t.type)?n(t.type,r):r}else i[o]=r.shift();t.name&&(i[t.name]=i[o])})),i}}function l(t){return"address"===t||"bool"===t||/^(u?int)([0-9]*)$/.test(t)||/^bytes([0-9]+)$/.test(t)}t.Event=a})(f||(f={}));const d="0x"+s("Error(string)").toString("hex").slice(0,8),p="0x"+s("Panic(uint256)").toString("hex").slice(0,8);function m(t){try{if(t.startsWith(d))return f.decodeParameter("string","0x"+t.slice(d.length));if(t.startsWith(p)){const e=f.decodeParameter("uint256","0x"+t.slice(p.length));return`Panic(0x${parseInt(e).toString(16).padStart(2,"0")})`}return""}catch(e){return""}}var v=n(6462);function g(t){return"string"===typeof t&&/^[0-9]+$/.test(t)}function y(t){return"string"===typeof t&&/^0x[0-9a-f]+$/i.test(t)}function b(t,e){return!("string"!==typeof t||!/^0x[0-9a-f]*$/i.test(t))&&(e?t.length===2*e+2:t.length%2===0)}function w(t,e){return!(t<0||!Number.isInteger(t))&&(!e||t"block"===t||"time"===t?"":"expected 'block' or 'time'",from:N,to:N},"arg0"),S(t.from<=t.to,"arg0.from: expected <= arg0.to"),r.range=Object.assign({},t),this},order(t){return S("asc"===t||"desc"===t,"arg0: expected 'asc' or 'desc'"),r.order=t,this},cache(t){return i=M(t,[R],"arg0").map((t=>t.toLowerCase())),this},apply(n,o){return M(n,N,"arg0"),S(o>=0&&o<=j&&Number.isInteger(o),`arg1: expected unsigned integer <= ${j}`),r.options.offset=n,r.options.limit=o,"transfer"===e?t.then((t=>t.filterTransferLogs(r,i))):t.then((t=>t.filterEventLogs(r,i)))}}}var $=n(634),L=n.n($),F=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))};function U(t){return{sign:(e,n)=>{if("tx"===e)return M(n,[H],"arg1"),V(Promise.resolve(t),n);if("cert"===e)return M(n,{purpose:t=>"agreement"===t||"identification"===t?"":"expected 'agreement' or 'identification'",payload:{type:t=>"text"===t?"":"expected 'text'",content:P}},"arg1"),z(Promise.resolve(t),n);throw new x("arg0: expected 'tx' or 'cert'")}}}function V(t,e){const n={};return{signer(t){return n.signer=M(t,R,"arg0").toLowerCase(),this},gas(t){return n.gas=M(t,N,"arg0"),this},dependsOn(t){return n.dependsOn=M(t,A,"arg0").toLowerCase(),this},link(t){return n.link=M(t,P,"arg0"),this},comment(t){return n.comment=M(t,P,"arg0"),this},delegate(t,e){return S("string"===typeof t,"arg0: expected url string"),M(e,v.optional(R),"arg1"),n.delegator={url:t,signer:e&&e.toLowerCase()},this},accepted(t){return S("function"===typeof t,"arg0: expected function"),n.onAccepted=t,this},request(){const r=e.map((t=>Object.assign(Object.assign({},t),{value:new(L())(t.value).toString(10)})));return(()=>F(this,void 0,void 0,(function*(){try{const e=yield t;return yield e.signTx(r,n)}catch(e){throw new q(e.message)}})))()}}}function z(t,e){const n={};return{signer(t){return n.signer=M(t,R,"arg0").toLowerCase(),this},link(t){return n.link=M(t,P,"arg0"),this},accepted(t){return S("function"===typeof t,"arg0: expected function"),n.onAccepted=t,this},request(){return(()=>F(this,void 0,void 0,(function*(){try{const r=yield t;return yield r.signCert(e,n)}catch(r){throw new q(r.message)}})))()}}}class q extends Error{constructor(t){super(t)}}q.prototype.name="Rejected";const H={to:v.nullable(R),value:D,data:v.optional(k),comment:v.optional(P),abi:v.optional((t=>{if(!(t instanceof Object))return"expected object";try{return new f.Function(t).signature,""}catch(e){return`expected valid ABI (${e.message})`}}))};function G(t,e){return{get address(){return e},get:()=>t.then((t=>t.getAccount(e,t.head.id))),getCode:()=>t.then((t=>t.getCode(e,t.head.id))),getStorage:n=>(n=M(n,A,"arg0").toLowerCase(),t.then((t=>t.getStorage(e,n,t.head.id)))),method:n=>{let r;try{r=new f.Function(JSON.parse(JSON.stringify(n)))}catch(i){throw new x(`arg0: expected valid ABI (${i.message})`)}return W(t,e,r)},event:n=>{let r;try{r=new f.Event(JSON.parse(JSON.stringify(n)))}catch(i){throw new x(`arg0: expected valid ABI (${i.message})`)}return Y(t,e,r)}}}function W(t,e,n){let r=0;const i={};let o;return{value(t){return r=M(t,D,"arg0"),this},caller(t){return i.caller=M(t,R,"arg0").toLowerCase(),this},gas(t){return i.gas=M(t,N,"arg0"),this},gasPrice(t){return i.gasPrice=M(t,D,"arg0").toString().toLowerCase(),this},gasPayer(t){return i.gasPayer=M(t,R,"arg0").toLowerCase(),this},cache(t){return o=M(t,[R],"arg0").map((t=>t.toLowerCase())),this},asClause:(...t)=>{const i=(n.definition.inputs||[]).length;S(i===t.length,`args count expected ${i}`);try{const i=n.encode(...t);return{to:e,value:r.toString().toLowerCase(),data:i}}catch(o){throw new x(`args can not be encoded (${o.message})`)}},call(...e){const r=this.asClause(...e);return t.then((t=>t.explain(Object.assign({clauses:[r]},i),t.head.id,o))).then((t=>t[0])).then((t=>{if(t.reverted){const e=m(t.data);return Object.assign(Object.assign({},t),{revertReason:e,decoded:{}})}{const e=n.decode(t.data);return Object.assign(Object.assign({},t),{decoded:e})}}))},transact(...e){const r=this.asClause(...e);return V(t,[Object.assign(Object.assign({},r),{abi:n.definition})])}}}function Y(t,e,n){const r=t=>{const r=n.encode(t);return{address:e,topic0:r[0]||void 0,topic1:r[1]||void 0,topic2:r[2]||void 0,topic3:r[3]||void 0,topic4:r[4]||void 0}};return{asCriteria:t=>{try{return r(t)}catch(e){throw new x(`arg0: can not be encoded (${e.message})`)}},filter:e=>{M(e,[{}],"arg0"),0===e.length&&(e=[{}]);const i=e.map(((t,e)=>{try{return r(t)}catch(n){throw new x(`arg0.#${e}: can not be encoded (${n.message})`)}})),o=B(t,"event",i);return{range(t){return o.range(t),this},order(t){return o.order(t),this},cache(t){return o.cache(t),this},apply(t,e){return o.apply(t,e).then((t=>t.map((t=>{const e=n.decode(t.data,t.topics);return Object.assign(Object.assign({},t),{decoded:e})}))))}}}}}function K(t,e){return{get revision(){return e},get:()=>t.getBlock(e)}}function Z(t,e){let n=!1;return{get id(){return e},allowPending(){return n=!0,this},get:()=>t.then((t=>t.getTransaction(e,n))),getReceipt:()=>t.then((t=>t.getReceipt(e)))}}var X=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))};const J=180;function Q(t){let e=Object.assign({},t.head),n=t.genesis.id,r=[];(()=>{X(this,void 0,void 0,(function*(){for(;;)try{const o=yield t.pollHead();if(o.id!==e.id&&o.number>=e.number){if(0===e.number||(o.number+1)%J===0)try{const e=yield t.getBlock("finalized");e&&e.id!=n&&(n=e.id)}catch(i){}e=Object.assign({},o);const a=r;r=[],a.forEach((t=>t(o)))}else yield new Promise((t=>setTimeout(t,1e3)))}catch(o){break}}))})();const i=t.genesis.timestamp;return{get head(){return e},get progress(){const t=Date.now(),n=1e3*e.timestamp;if(t-n<3e4)return 1;const r=1e3*i,o=(n-r)/(t-r);return o<0?NaN:o},get finalized(){return n},ticker:()=>{let t=e.id;return{next:()=>new Promise((n=>{if(t!==e.id)return n(Object.assign({},e));r.push((t=>{n(Object.assign({},t))}))})).then((e=>(t=e.id,e)))}}}}function tt(t,e){const n={};let r;return{caller(t){return n.caller=M(t,R,"arg0").toLowerCase(),this},gas(t){return n.gas=M(t,N,"arg0"),this},gasPrice(t){return n.gasPrice=M(t,D,"arg0").toString().toLowerCase(),this},gasPayer(t){return n.gasPayer=M(t,R,"arg0").toLowerCase(),this},cache(t){return r=M(t,[R],"arg0").map((t=>t.toLowerCase())),this},execute(){const i=e.map((t=>({to:t.to?t.to.toLowerCase():null,value:new(L())(t.value).toString(10),data:(t.data||"0x").toLowerCase()})));return t.then((t=>t.explain(Object.assign({clauses:i},n),t.head.id,r))).then((t=>t.map((t=>{if(t.reverted){const e=m(t.data);return Object.assign(Object.assign({},t),{revertReason:e})}return t}))))}}}var et=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))};function nt(t){const e=Q(t),n=(()=>et(this,void 0,void 0,(function*(){return e.head.number>0||(yield e.ticker().next()),t})))(),r=JSON.parse(JSON.stringify(t.genesis));return{get genesis(){return r},get status(){return{head:e.head,progress:e.progress,finalized:e.finalized}},ticker:()=>e.ticker(),account:t=>(t=M(t,R,"arg0").toLowerCase(),G(n,t)),block:e=>("undefined"===typeof e?e=t.head.id:S("string"===typeof e?b(e,32):w(e,32),"arg0: expected bytes32 or unsigned 32-bit integer"),K(t,"string"===typeof e?e.toLowerCase():e)),transaction:t=>(t=M(t,A,"arg0").toLowerCase(),Z(n,t)),filter:(t,e)=>(S("event"===t||"transfer"===t,"arg0: expected 'event' or 'transfer'"),"event"===t?(M(e,[it],"arg1"),B(n,"event",e.map((t=>({address:t.address?t.address.toLowerCase():void 0,topic0:t.topic0?t.topic0.toLowerCase():void 0,topic1:t.topic1?t.topic1.toLowerCase():void 0,topic2:t.topic2?t.topic2.toLowerCase():void 0,topic3:t.topic3?t.topic3.toLowerCase():void 0,topic4:t.topic4?t.topic4.toLowerCase():void 0}))))):(M(e,[ot],"arg1"),B(n,"transfer",e.map((t=>({txOrigin:t.txOrigin?t.txOrigin.toLowerCase():void 0,sender:t.sender?t.sender.toLowerCase():void 0,recipient:t.recipient?t.recipient.toLowerCase():void 0})))))),explain:t=>(M(t,[rt],"arg0"),tt(n,t))}}const rt={to:v.nullable(R),value:D,data:v.optional(k)},it={address:v.optional(R),topic0:v.optional(A),topic1:v.optional(A),topic2:v.optional(A),topic3:v.optional(A),topic4:v.optional(A)},ot={sender:v.optional(R),recipient:v.optional(R),txOrigin:v.optional(R)};function at(t,e){const n=(t,n,i)=>{try{v.validate(t,n,i)}catch(o){e?e(o):r.warn(`Connex-Driver[MALFORMED RESPONSE]: ${o.message}`)}return t},i=n(t.genesis,ut,"genesis");return{genesis:i,get head(){return n(t.head,st,"head")},pollHead(){return t.pollHead().then((t=>n(t,st,"getHead()")))},getBlock(e){return t.getBlock(e).then((t=>t?n(t,ut,"getBlock()"):t))},getTransaction(e,r){return t.getTransaction(e,r).then((t=>t?n(t,lt,"getTransaction()"):t))},getReceipt(e){return t.getReceipt(e).then((t=>t?n(t,mt,"getReceipt()"):t))},getAccount(e,r){return t.getAccount(e,r).then((t=>n(t,{balance:I,energy:I,hasCode:T},"getAccount()")))},getCode(e,r){return t.getCode(e,r).then((t=>n(t,{code:k},"getCode()")))},getStorage(e,r,i){return t.getStorage(e,r,i).then((t=>n(t,{value:A},"getStorage()")))},explain(e,r){return t.explain(e,r).then((t=>n(t,[vt],"explain()")))},filterEventLogs(e){return t.filterEventLogs(e).then((t=>n(t,[ft],"filterEventLogs()")))},filterTransferLogs(e){return t.filterTransferLogs(e).then((t=>n(t,[pt],"filterTransferLogs()")))},signTx(e,r){return t.signTx(e,r).then((t=>n(t,{txid:A,signer:R},"signTx()")))},signCert(e,r){return t.signCert(e,r).then((t=>n(t,{annex:{domain:P,timestamp:N,signer:R},signature:t=>b(t,65)?"":"expected 65 bytes"},"signCert()")))}}}const st={id:A,number:C,timestamp:N,parentID:A,txsFeatures:v.optional(C),gasLimit:N},ut={id:A,number:C,size:C,parentID:A,timestamp:N,gasLimit:N,beneficiary:R,gasUsed:N,totalScore:N,txsRoot:A,txsFeatures:v.optional(C),stateRoot:A,receiptsRoot:A,signer:R,com:v.optional(T),isFinalized:v.optional(T),isTrunk:T,transactions:[A]},lt={id:A,chainTag:O,blockRef:E,expiration:C,gasPriceCoef:O,gas:N,origin:R,delegator:v.nullable(v.optional(R)),nonce:I,dependsOn:v.nullable(A),size:C,clauses:[{to:v.nullable(R),value:I,data:k}],meta:v.nullable({blockID:A,blockNumber:C,blockTimestamp:N})},ct={blockID:A,blockNumber:C,blockTimestamp:N,txID:A,txOrigin:R,clauseIndex:C},ht={address:R,topics:[A],data:k},ft=Object.assign(Object.assign({},ht),{meta:ct}),dt={sender:R,recipient:R,amount:I},pt=Object.assign(Object.assign({},dt),{meta:ct}),mt={gasUsed:N,gasPayer:R,paid:I,reward:I,reverted:T,outputs:[{contractAddress:v.nullable(R),events:[ht],transfers:[dt]}],meta:{blockID:A,blockNumber:C,blockTimestamp:N,txID:A,txOrigin:R}},vt={data:k,vmError:P,gasUsed:N,reverted:T,revertReason:()=>"",events:[{address:R,topics:[A],data:k}],transfers:[{sender:R,recipient:R,amount:I}]};class gt{constructor(t){this.thor=nt(t),this.vendor=U(t)}static guardDriver(t,e){return at(t,e)}}const yt={main:{number:0,id:"0x00000000851caf3cfdb6e899cf5958bfb1ac3413d346d43539627e6be7ec1b4a",size:170,parentID:"0xffffffff53616c757465202620526573706563742c20457468657265756d2100",timestamp:1530316800,gasLimit:1e7,beneficiary:"0x0000000000000000000000000000000000000000",gasUsed:0,totalScore:0,txsRoot:"0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0",txsFeatures:0,stateRoot:"0x09bfdf9e24dd5cd5b63f3c1b5d58b97ff02ca0490214a021ed7d99b93867839c",receiptsRoot:"0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0",signer:"0x0000000000000000000000000000000000000000",isTrunk:!0,transactions:[]},test:{number:0,id:"0x000000000b2bce3c70bc649a02749e8687721b09ed2e15997f466536b20bb127",size:170,parentID:"0xffffffff00000000000000000000000000000000000000000000000000000000",timestamp:1530014400,gasLimit:1e7,beneficiary:"0x0000000000000000000000000000000000000000",gasUsed:0,totalScore:0,txsRoot:"0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0",txsFeatures:0,stateRoot:"0x4ec3af0acbad1ae467ad569337d2fe8576fe303928d35b8cdd91de47e9ac84bb",receiptsRoot:"0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0",signer:"0x0000000000000000000000000000000000000000",isTrunk:!0,transactions:[]}};var bt=n(4795),wt=n(1094),_t=n(8764)["Buffer"];function xt(...t){const e=wt.keccak_256.create();return t.forEach((t=>{_t.isBuffer(t)?e.update(t):e.update(_t.from(t,"utf8"))})),_t.from(e.digest())}var St=n(8764)["Buffer"];class Mt extends bt.AbiCoder{constructor(){super(((t,e)=>t.match(/^u?int/)&&!Array.isArray(e)&&"object"!==typeof e||"BigNumber"===e._ethersType?e.toString():e))}encode(t,e){try{return super.encode(t,e)}catch(n){if(n.reason)throw new Error(n.reason);throw n}}decode(t,e){try{return super.decode(t,e)}catch(n){if(n.reason)throw new Error(n.reason);throw n}}}const kt=new Mt;function Et(t){try{return(0,bt.formatSignature)(t).replace(/\(tuple\(/g,"((").replace(/\,tuple\(/g,",(")}catch(e){if(e.reason)throw new Error(e.reason);throw e}}var At;(function(t){function e(t,e){return kt.encode([t],[e])}function n(t,e){return kt.decode([t],e)[0]}function r(t,e){return kt.encode(t,e)}function i(t,e){const n=kt.decode(t,e),r={};return t.forEach(((t,e)=>{r[e]=n[e],t.name&&(r[t.name]=n[e])})),r}t.encodeParameter=e,t.decodeParameter=n,t.encodeParameters=r,t.decodeParameters=i;class o{constructor(t){this.definition=t,this.canonicalName=Et(t),this.signature="0x"+xt(this.canonicalName).slice(0,4).toString("hex")}encode(...t){return this.signature+r(this.definition.inputs,t).slice(2)}decode(t){return i(this.definition.outputs,t)}}t.Function=o;class a{constructor(t){this.definition=t,this.canonicalName=Et(t),this.signature="0x"+xt(this.canonicalName).toString("hex")}encode(t){const n=[];this.definition.anonymous||n.push(this.signature);for(const r of this.definition.inputs){if(!r.indexed)continue;const i=t[r.name];if(void 0===i||null===i)n.push(null);else{let t;if(s(r.type))t=e(r.type,i);else if("string"===r.type)t="0x"+xt(i).toString("hex");else{if("string"!==typeof i||!/^0x[0-9a-f]+$/i.test(i)||i.length%2!==0)throw new Error(`event.encode: invalid ${r.type} value`);t="0x"+xt(St.from(i.slice(2),"hex")).toString("hex")}n.push(t)}}return n}decode(t,e){if(this.definition.anonymous||(e=e.slice(1)),this.definition.inputs.filter((t=>t.indexed)).length!==e.length)throw new Error("invalid topics count");const r=kt.decode(this.definition.inputs.filter((t=>!t.indexed)),t),i={};return this.definition.inputs.forEach(((t,o)=>{if(t.indexed){const r=e.shift();i[o]=s(t.type)?n(t.type,r):r}else i[o]=r.shift();t.name&&(i[t.name]=i[o])})),i}}function s(t){return"address"===t||"bool"===t||/^(u?int)([0-9]*)$/.test(t)||/^bytes([0-9]+)$/.test(t)}t.Event=a})(At||(At={}));var Ot=n(2253),Ct=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))};function Nt(t){const e=t.thor,n=t.vendor;return{get thor(){const t={get genesis(){return e.genesis},get status(){const t=e.status;return Object.assign(Object.assign({},t),{head:Object.assign(Object.assign({},t.head),{gasLimit:2e7}),finalized:"0000000000000000000000000000000000000000000000000000000000000000"})},ticker:()=>{const t=e.ticker();return{next:()=>t.next().then((t=>Object.assign(Object.assign({},t),{gasLimit:2e7})))}},account:t=>{const n=e.account(t);return{get address(){return n.address},get:()=>n.get(),getCode:()=>n.getCode(),getStorage:t=>n.getStorage(t),method:t=>Tt(n,t,this),event:t=>Dt(n,t,this)}},block:t=>e.block(t),transaction:t=>e.transaction(t),filter:(t,n)=>{const i=e.filter(t);return i.criteria(n),{range(t){return i.range(t),this},order(t){return i.order(t),this},cache(){return r.warn("filter :cache is not supported in compat mode"),this},apply(t,e){return i.apply(t,e)}}},explain:t=>{const n=e.explain();return{caller(t){return n.caller(t),this},gas(t){return n.gas(t),this},gasPrice(t){return n.gasPrice(t),this},gasPayer(t){return r.warn("gasPayer is not supported in compat mode"),this},cache(){return r.warn("explainer :cache is not supported in compat mode"),this},execute:()=>n.execute(t)}}};return t},get vendor(){return{sign:(t,e)=>{let r;if("tx"===t){const i=n.sign(t),o={signer(t){return i.signer(t),this},gas(t){return i.gas(t),this},dependsOn(t){return i.dependsOn(t),this},link(t){return i.link(t),this},comment(t){return i.comment(t),this},delegate(t){return Ot.zx("string"===typeof t,"arg0: expected url string"),i.delegate((e=>Ct(this,void 0,void 0,(function*(){const n=yield fetch(t,{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}});return n.json()})))),this},accepted(t){return r=t,this},request:()=>(r&&r(),i.request(e))};return o}{const i=n.sign(t),o={signer(t){return i.signer(t),this},link(t){return i.link(t),this},accepted(t){return r=t,this},request:()=>(r&&r(),i.request(e))};return o}}}}}}const Tt=(t,e,n)=>{const i=new At.Function(JSON.parse(JSON.stringify(e)));let o=0;const a={};return{value(t){return o=Ot.Bu(t,Ot.Kw,"arg0"),this},caller(t){return a.caller=Ot.Bu(t,Ot.Lk,"arg0").toLowerCase(),this},gas(t){return a.gas=Ot.Bu(t,Ot.H9,"arg0"),this},gasPrice(t){return a.gasPrice=Ot.Bu(t,Ot.Kw,"arg0").toString().toLowerCase(),this},gasPayer(t){return r.warn("gasPayer is not supported in compat mode"),this},cache(t){return r.warn("account.method :cache is not supported in compat mode"),this},asClause:(...e)=>{const n=(i.definition.inputs||[]).length;Ot.zx(n===e.length,`args count expected ${n}`);try{const n=i.encode(...e);return{to:t.address,value:o.toString().toLowerCase(),data:n}}catch(r){throw new Ot.F8(`args can not be encoded (${r.message})`)}},call(...t){const e=this.asClause(...t),r=n.thor.explain([e]);return a.caller&&r.caller(a.caller),a.gas&&r.gas(a.gas),a.gasPrice&&r.gasPrice(a.gasPrice),r.execute().then((t=>{const e=Object.assign(Object.assign({},t[0]),{decoded:{}});return e.reverted||"0x"===e.data||(e.decoded=i.decode(e.data)),e}))},transact(...t){const e=this.asClause(...t);return n.vendor.sign("tx",[e])}}},Dt=(t,e,n)=>{const i=new At.Event(JSON.parse(JSON.stringify(e))),o=e=>{const n=i.encode(e);return{address:t.address,topic0:n[0]||void 0,topic1:n[1]||void 0,topic2:n[2]||void 0,topic3:n[3]||void 0,topic4:n[4]||void 0}};return{asCriteria:t=>{try{return o(t)}catch(e){throw new Ot.F8(`arg0: can not be encoded (${e.message})`)}},filter(t){Ot.Bu(t,[{}],"arg0"),0===t.length&&(t=[{}]);const e=t.map(((t,e)=>{try{return o(t)}catch(n){throw new Ot.F8(`arg0.#${e}: can not be encoded (${n.message})`)}})),a=n.thor.filter("event",e);return{range(t){return a.range(t),this},order(t){return a.order(t),this},cache(){return r.warn("account.event :cache is not supported in compat mode"),this},apply(t,e){return a.apply(t,e).then((t=>t.map((t=>{const e=Object.assign(Object.assign({},t),{decoded:{}});return e.decoded=i.decode(e.data,e.topics),e}))))}}}}};class It{constructor(){this.rejectors=new Set}interrupt(){const t=this.rejectors;this.rejectors=new Set,t.forEach((t=>t(new Rt)))}wrap(t){return new Promise(((e,n)=>{const r=this.rejectors;r.add(n),t.then(e).catch(n).then((()=>r.delete(n)))}))}}class Rt extends Error{constructor(){super("promise interrupted")}}Rt.prototype.name="InterruptedError";var Pt=n(9992),jt=n(4491),Bt=n.n(jt),$t=n(8764)["Buffer"];const Lt=n(1161);function Ft(...t){const e=Lt.blake2bInit(32,null);return t.forEach((t=>{$t.isBuffer(t)?Lt.blake2bUpdate(e,t):Lt.blake2bUpdate(e,$t.from(t,"utf8"))})),$t.from(Lt.blake2bFinal(e))}function Ut(t,e){const n=8*t.length;return{contains(r){let i=Ft(r).readUInt32BE(0);const o=i>>>17|i<<15>>>0;for(let a=0;a>>3,a=1<>>0}return!0}}}var Vt=n(8764)["Buffer"],zt=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))};const qt=12;class Ht{constructor(){this.irreversible={blocks:new Pt(256),txs:new Pt(512),receipts:new Pt(512)},this.window=[]}handleNewBlock(t,e,n){while(this.window.length>0){const e=this.window[this.window.length-1];if(e.id===t.id)return;if(e.id===t.parentID)break;this.window.pop()}this.window.push(Object.assign(Object.assign({},t),{bloom:e?Ut(Vt.from(e.bits.slice(2),"hex"),e.k):void 0,block:n,accounts:new Map,txs:new Map,receipts:new Map,tied:new Map}));while(this.window.length>qt){const t=this.window.shift();t.txs.forEach(((t,e)=>this.irreversible.txs.set(e,t))),t.receipts.forEach(((t,e)=>this.irreversible.receipts.set(e,t))),t.block&&(this.irreversible.blocks.set(t.block.id,t.block),this.irreversible.blocks.set(t.block.number,t.block))}}getBlock(t,e){return zt(this,void 0,void 0,(function*(){let n=this.irreversible.blocks.get(t)||null;if(n)return n;const{slot:r}=this.findSlot(t);return r&&r.block?r.block:(n=yield e(),n&&(r&&r.id===n.id&&(r.block=n),this.isIrreversible(n.number)&&(this.irreversible.blocks.set(n.id,n),n.isTrunk&&this.irreversible.blocks.set(n.number,n))),n)}))}getTx(t,e){return zt(this,void 0,void 0,(function*(){let n=this.irreversible.txs.get(t)||null;if(n)return n;for(const e of this.window)if(n=e.txs.get(t)||null,n)return n;if(n=yield e(),n&&n.meta){const{slot:e}=this.findSlot(n.meta.blockID);e&&e.txs.set(t,n),this.isIrreversible(n.meta.blockNumber)&&this.irreversible.txs.set(t,n)}return n}))}getReceipt(t,e){return zt(this,void 0,void 0,(function*(){let n=this.irreversible.receipts.get(t)||null;if(n)return n;for(const e of this.window)if(n=e.receipts.get(t)||null,n)return n;if(n=yield e(),n){const{slot:e}=this.findSlot(n.meta.blockID);e&&e.receipts.set(t,n),this.isIrreversible(n.meta.blockNumber)&&this.irreversible.receipts.set(t,n)}return n}))}getAccount(t,e,n){return zt(this,void 0,void 0,(function*(){const r=this.findSlot(e);for(let e=r.index;e>=0;e--){const n=this.window[e],i=n.accounts.get(t);if(i)return e!==r.index&&r.slot.accounts.set(t,i),i.snapshot(r.slot.timestamp);if(!n.bloom||Gt(n.bloom,t))break}const i=yield n();return r.slot&&r.slot.accounts.set(t,new Yt(i,r.slot.timestamp)),i}))}getTied(t,e,n,r){return zt(this,void 0,void 0,(function*(){const i=this.findSlot(e);for(let e=i.index;e>=0;e--){const n=this.window[e],o=n.tied.get(t);if(o)return e!==i.index&&i.slot.tied.set(t,o),o;if(!n.bloom||!r)break;if(r.some((t=>Gt(n.bloom,t))))break}const o=yield n();return i.slot&&i.slot.tied.set(t,o),o}))}findSlot(t){const e=this.window.findIndex((e=>e.id===t||e.number===t));return e>=0?{slot:this.window[e],index:e}:{index:e}}isIrreversible(t){return this.window.length>0&&t0!==t));return n=r<0?Vt.alloc(0):n.slice(r),t.contains(n)}const Wt=5e9;class Yt{constructor(t,e){this.obj=t,this.initTimestamp=e}snapshot(t){return Object.assign(Object.assign({},this.obj),{energy:this.energyAt(t)})}energyAt(t){return tsetTimeout(e,t)))}var Zt=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))};class Xt{constructor(t,e,n){this.net=t,this.genesis=e,this.headResolvers=[],this.int=new It,this.cache=new Ht,this.pendingRequests={},this.head=n||{id:e.id,number:e.number,timestamp:e.timestamp,parentID:e.parentID,txsFeatures:e.txsFeatures,gasLimit:e.gasLimit},this.headTrackerLoop()}close(){this.int.interrupt()}pollHead(){return this.int.wrap(new Promise((t=>{this.headResolvers.push((()=>t(this.head)))})))}getBlock(t){return this.cache.getBlock(t,(()=>this.httpGet(`blocks/${t}`)))}getTransaction(t,e){return this.cache.getTx(t,(()=>{const n={head:this.head.id};return e&&(n.pending="true"),this.httpGet(`transactions/${t}`,n)}))}getReceipt(t){return this.cache.getReceipt(t,(()=>this.httpGet(`transactions/${t}/receipt`,{head:this.head.id})))}getAccount(t,e){return this.cache.getAccount(t,e,(()=>this.httpGet(`accounts/${t}`,{revision:e})))}getCode(t,e){return this.cache.getTied(`code-${t}`,e,(()=>this.httpGet(`accounts/${t}/code`,{revision:e})))}getStorage(t,e,n){return this.cache.getTied(`storage-${t}-${e}`,n,(()=>this.httpGet(`accounts/${t}/storage/${e}`,{revision:n})))}explain(t,e,n){const r=`explain-${Ft(JSON.stringify(t)).toString("hex")}`;return this.cache.getTied(r,e,(()=>this.httpPost("accounts/*",t,{revision:e})),n)}filterEventLogs(t,e){const n=`event-${Ft(JSON.stringify(t)).toString("hex")}`;return this.cache.getTied(n,this.head.id,(()=>this.httpPost("logs/event",t)),e)}filterTransferLogs(t,e){const n=`transfer-${Ft(JSON.stringify(t)).toString("hex")}`;return this.cache.getTied(n,this.head.id,(()=>this.httpPost("logs/transfer",t)),e)}signTx(t,e){throw new Error("not implemented")}signCert(t,e){throw new Error("not implemented")}mergeRequest(t,...e){const n=JSON.stringify(e),r=this.pendingRequests[n];return r||(this.pendingRequests[n]=(()=>Zt(this,void 0,void 0,(function*(){try{return yield t()}finally{delete this.pendingRequests[n]}})))())}httpGet(t,e){return this.mergeRequest((()=>this.net.http("GET",t,{query:e,validateResponseHeader:this.headerValidator})),t,e||"")}httpPost(t,e,n){return this.mergeRequest((()=>this.net.http("POST",t,{query:n,body:e,validateResponseHeader:this.headerValidator})),t,n||"",e||"")}get headerValidator(){return t=>{const e=t["x-genesis-id"];if(e&&e!==this.genesis.id)throw new Error("responded 'x-genesis-id' not matched")}}emitNewHead(){const t=this.headResolvers;this.headResolvers=[],t.forEach((t=>t()))}headTrackerLoop(){return Zt(this,void 0,void 0,(function*(){for(;;){let n=!1;try{const t=yield this.int.wrap(this.httpGet("blocks/best"));t.id!==this.head.id&&t.number>=this.head.number&&(this.head={id:t.id,number:t.number,timestamp:t.timestamp,parentID:t.parentID,txsFeatures:t.txsFeatures,gasLimit:t.gasLimit},this.cache.handleNewBlock(this.head,void 0,t),this.emitNewHead(),Date.now()-1e3*this.head.timestamp<6e4&&(n=!0))}catch(t){if(t instanceof Rt)break}if(n)try{yield this.trackWs()}catch(t){if(t instanceof Rt)break}try{yield this.int.wrap(Kt(8e3))}catch(e){break}}}))}trackWs(){return Zt(this,void 0,void 0,(function*(){const t=`subscriptions/beat2?pos=${this.head.parentID}`,e=this.net.openWebSocketReader(t);try{for(;;){const t=yield this.int.wrap(e.read()),n=JSON.parse(t);!n.obsolete&&n.id!==this.head.id&&n.number>=this.head.number&&(this.head={id:n.id,number:n.number,timestamp:n.timestamp,parentID:n.parentID,txsFeatures:n.txsFeatures,gasLimit:n.gasLimit},this.cache.handleNewBlock(this.head,{k:n.k,bits:n.bloom}),this.emitNewHead())}}finally{e.close()}}))}}var Jt=n(8416),Qt=n.n(Jt),te=n(9347);class ee{constructor(t,e=3e4){this.timeout=e,this.callbacks=[],this.ws=new te(t),this.ws.onmessage=t=>{try{const e=this.callbacks;this.callbacks=[],e.forEach((e=>e(t.data)))}catch(e){this.setError(e),this.ws.close()}},this.ws.onerror=t=>{this.setError(t.error),this.ws.close()},this.ws.onclose=()=>{this.setError(new Error("closed"))}}read(){return new Promise(((t,e)=>{if(this.error)return e(this.error);const n=setTimeout((()=>{e(new Error("ws read timeout"))}),this.timeout);this.callbacks.push(((r,i)=>{if(clearTimeout(n),i)return e(i);t(r)}))}))}close(){this.ws.close()}setError(t){if(!this.error){this.error=t;const e=this.callbacks;this.callbacks=[],e.forEach((e=>e(null,t)))}}}var ne=n(8575);class re{constructor(){}}var ie=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))};class oe{constructor(t,e=3e4,n=3e4){this.baseURL=t,this.wsTimeout=n,this.axios=Qt().create({httpAgent:new re({keepAlive:!0}),httpsAgent:new re({keepAlive:!0}),baseURL:t,timeout:e})}http(t,e,n){return ie(this,void 0,void 0,(function*(){n=n||{};try{const r=yield this.axios.request({method:t,url:e,data:n.body,headers:n.headers,params:n.query});return n.validateResponseHeader&&n.validateResponseHeader(r.headers),r.data}catch(r){if(r.isAxiosError)throw ae(r);throw new Error(`${t} ${(0,ne.DB)(this.baseURL,e)}: ${r.message}`)}}))}openWebSocketReader(t){const e=(0,ne.DB)(this.baseURL,t).replace(/^http:/i,"ws:").replace(/^https:/i,"wss:");return new ee(e,this.wsTimeout)}}function ae(t){if(t.response){const e=t.response;if("string"===typeof e.data){let n=e.data.trim();return n.length>50&&(n=n.slice(0,50)+"..."),new Error(`${e.status} ${t.config.method} ${t.config.url}: ${n}`)}return new Error(`${e.status} ${t.config.method} ${t.config.url}`)}return new Error(`${t.config.method} ${t.config.url}: ${t.message}`)}const se={};function ue(t,e){let n=se[t];if(!n){const r=document.createElement("script");se[t]=n=new Promise(((t,n)=>{r.onload=()=>t(window[e]),r.onerror=t=>n(new Error(t.toString()))})),r.src=t,document.body.appendChild(r)}return n}var le=n(1798),ce=n.n(le),he=n(8764)["Buffer"];const fe=n(1191);function de(...t){const e=fe.blake2bInit(32,null);return t.forEach((t=>{he.isBuffer(t)?fe.blake2bUpdate(e,t):fe.blake2bUpdate(e,he.from(t,"utf8"))})),he.from(fe.blake2bFinal(e))}const pe="https://unpkg.com/@vechain/connex-wallet-buddy@0.1",me="ConnexWalletBuddy";class ve{constructor(t,e){this.signer=this.initSigner(t,e)}get genesis(){throw new Error("not implemented")}get head(){throw new Error("not implemented")}pollHead(){throw new Error("not implemented")}getBlock(t){throw new Error("not implemented")}getTransaction(t,e){throw new Error("not implemented")}getReceipt(t){throw new Error("not implemented")}getAccount(t,e){throw new Error("not implemented")}getCode(t,e){throw new Error("not implemented")}getStorage(t,e,n){throw new Error("not implemented")}explain(t,e,n){throw new Error("not implemented")}filterEventLogs(t){throw new Error("not implemented")}filterTransferLogs(t){throw new Error("not implemented")}signTx(t,e){return this.signer.then((n=>n.signTx(t,e)))}signCert(t,e){return this.signer.then((n=>n.signCert(t,e)))}initSigner(t,e){return e?Promise.resolve(window.vechain.newConnexSigner(t)):ue(pe,me).then((e=>e.create(t,(()=>ce()(16).toString("hex")),(t=>de(t).toString("hex")))))}}class ge extends Xt{constructor(t,e,n){super(new oe(t),e),this.vd=new ve(e.id,n)}signTx(t,e){return this.vd.signTx(t,e)}signCert(t,e){return this.vd.signCert(t,e)}}const ye={};function be(t,e,n){const r=de(JSON.stringify({node:t,genesis:e,useExtension:n})).toString("hex");let i=ye[r];return i||(ye[r]=i=new ge(t,e,n)),i}function we(t){if(t=t||"main","string"===typeof t){const e=yt[t];if(!e)throw new Error("invalid network");return e}return t}function _e(t){if(t=t||"main",/^0x[0-9a-f]{64}$/.test(t))return t;const e=yt[t];if(e)return e.id;throw new Error("invalid genesis id")}class xe{constructor(t,e){if(t=_e(t),!e||!e.noV1Compat)try{const e=window.connex;if(e&&e.thor.genesis.id===t&&/^1\./.test(e.version))return Nt(e).vendor}catch(o){}const n=!(e&&e.noExtension)&&!!window.vechain,r=new ve(t,n),i=U(r);return{get sign(){return i.sign.bind(i)}}}}class Se{constructor(t){const e=we(t.network);if(!t.noV1Compat)try{const t=window.connex;if(t&&t.thor.genesis.id===e.id&&/^1\./.test(t.version))return Nt(t)}catch(o){}const n=!t.noExtension&&!!window.vechain,r=be(t.node,e,n),i=new gt(r);return{get thor(){return i.thor},get vendor(){return i.vendor}}}}Se.Vendor=xe;const Me=Se},5641:(t,e)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version="4.0.27-5"},3695:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(8341),i="0x0000000000000000000000000000000000000000";e.AddressZero=i;var o="0x0000000000000000000000000000000000000000000000000000000000000000";e.HashZero=o;var a="Ξ";e.EtherSymbol=a;var s=r.bigNumberify(-1);e.NegativeOne=s;var u=r.bigNumberify(0);e.Zero=u;var l=r.bigNumberify(1);e.One=l;var c=r.bigNumberify(2);e.Two=c;var h=r.bigNumberify("1000000000000000000");e.WeiPerEther=h;var f=r.bigNumberify("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");e.MaxUint256=f},4615:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(5641);e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.MISSING_NEW="MISSING_NEW",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.NUMERIC_FAULT="NUMERIC_FAULT",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION";var o=!1,a=!1;function s(t,n,r){if(a)throw new Error("unknown error");n||(n=e.UNKNOWN_ERROR),r||(r={});var o=[];Object.keys(r).forEach((function(t){try{o.push(t+"="+JSON.stringify(r[t]))}catch(u){o.push(t+"="+JSON.stringify(r[t].toString()))}})),o.push("version="+i.version);var s=t;o.length&&(t+=" ("+o.join(", ")+")");var u=new Error(t);throw u.reason=s,u.code=n,Object.keys(r).forEach((function(t){u[t]=r[t]})),u}function u(t,n){t instanceof n||s("missing new",e.MISSING_NEW,{name:n.name})}function l(t,n,r){r||(r=""),tn&&s("too many arguments"+r,e.UNEXPECTED_ARGUMENT,{count:t,expectedCount:n})}function c(t,n){o&&s("error censorship permanent",e.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),a=!!t,o=!!n}function h(){try{if(["NFD","NFC","NFKD","NFKC"].forEach((function(t){try{"test".normalize(t)}catch(e){throw new Error("missing "+t)}})),String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){s("platform missing String.prototype.normalize",e.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:t.message})}}e.throwError=s,e.checkNew=u,e.checkArgumentCount=l,e.setCensorship=c,e.checkNormalize=h;var f={debug:1,default:2,info:2,warn:3,error:4,off:5},d=f["default"];function p(t){var e=f[t];null!=e?d=e:v("invliad log level - "+t)}function m(t,e){d>f[t]||r.log.apply(r,e)}function v(){for(var t=[],e=0;e2)throw new Error("invalid signature");if(!n[1].match(/^[0-9]+$/))throw new Error("invalid signature gas");e.gas=u.bigNumberify(n[1]),t=n[0]}n=t.split(" returns ");var r=n[0].match(m);if(!r)throw new Error("invalid signature");if(e.name=r[1].trim(),!e.name.match(v))throw new Error('invalid identifier: "'+r[1]+'"');if(V(r[2]).forEach((function(t){e.inputs.push(y(t))})),r[3].split(" ").forEach((function(t){switch(t){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:a.info("unknown modifier: "+t)}})),n.length>1){var i=n[1].match(m);if(""!=i[1].trim()||""!=i[3].trim())throw new Error("unexpected tokens");V(i[2]).forEach((function(t){e.outputs.push(y(t))}))}if("constructor"===e.name){if(e.type="constructor",e.outputs.length)throw new Error("constructor may not have outputs");delete e.name,delete e.outputs}return e}function _(t){return y(t,!0)}function x(t){return H(e.defaultCoerceFunc,t).type}function S(t){return t.name+"("+t.inputs.map((function(t){return x(t)})).join(",")+")"}function M(t){if("string"===typeof t)return t=t.replace(/\s/g," "),t=t.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),t=t.trim(),"event "===t.substring(0,6)?b(t.substring(6).trim()):("function "===t.substring(0,9)&&(t=t.substring(9)),w(t.trim()));throw new Error("unknown signature")}e.parseParamType=_,e.formatParamType=x,e.formatSignature=S,e.parseSignature=M;var k=function(){function t(t,e,n,r,i){this.coerceFunc=t,this.name=e,this.type=n,this.localName=r,this.dynamic=i}return t}(),E=function(t){function e(e){var n=t.call(this,e.coerceFunc,e.name,e.type,void 0,e.dynamic)||this;return h.defineReadOnly(n,"coder",e),n}return r(e,t),e.prototype.encode=function(t){return this.coder.encode(t)},e.prototype.decode=function(t,e){return this.coder.decode(t,e)},e}(k),A=function(t){function e(e,n){return t.call(this,e,"null","",n,!1)||this}return r(e,t),e.prototype.encode=function(t){return l.arrayify([])},e.prototype.decode=function(t,e){if(e>t.length)throw new Error("invalid null");return{consumed:0,value:this.coerceFunc("null",void 0)}},e}(k),O=function(t){function e(e,n,r,i){var o=this,a=(r?"int":"uint")+8*n;return o=t.call(this,e,a,a,i,!1)||this,o.size=n,o.signed=r,o}return r(e,t),e.prototype.encode=function(t){try{var e=u.bigNumberify(t);if(this.signed){var n=o.MaxUint256.maskn(8*this.size-1);if(e.gt(n))throw new Error("out-of-bounds");if(n=n.add(o.One).mul(o.NegativeOne),e.lt(n))throw new Error("out-of-bounds")}else if(e.lt(o.Zero)||e.gt(o.MaxUint256.maskn(8*this.size)))throw new Error("out-of-bounds");return e=e.toTwos(8*this.size).maskn(8*this.size),this.signed&&(e=e.fromTwos(8*this.size).toTwos(256)),l.padZeros(l.arrayify(e),32)}catch(r){a.throwError("invalid number value",a.INVALID_ARGUMENT,{arg:this.localName,coderType:this.name,value:t})}return null},e.prototype.decode=function(t,e){t.length=0?r:"")+"]",s=-1===r||n.dynamic;return o=t.call(this,e,"array",a,i,s)||this,o.coder=n,o.length=r,o}return r(e,t),e.prototype.encode=function(t){Array.isArray(t)||a.throwError("expected array value",a.INVALID_ARGUMENT,{arg:this.localName,coderType:"array",value:t});var e=this.length,n=new Uint8Array(0);-1===e&&(e=t.length,n=C.encode(e)),a.checkArgumentCount(e,t.length," in coder array"+(this.localName?" "+this.localName:""));for(var r=[],i=0;i256||i%8!==0)&&a.throwError("invalid "+r[1]+" bit length",a.INVALID_ARGUMENT,{arg:"param",value:e}),new O(t,i/8,"int"===r[1],e.name)}r=e.type.match(f);if(r){i=parseInt(r[1]);return(0===i||i>32)&&a.throwError("invalid bytes length",a.INVALID_ARGUMENT,{arg:"param",value:e}),new T(t,i,e.name)}r=e.type.match(p);if(r){i=parseInt(r[2]||"-1");return e=h.shallowCopy(e),e.type=r[1],e=h.deepCopy(e),new F(t,H(t,e),i,e.name)}return"tuple"===e.type.substring(0,5)?q(t,e.components,e.name):""===e.type?new A(t,e.name):(a.throwError("invalid type",a.INVALID_ARGUMENT,{arg:"type",value:e.type}),null)}var G=function(){function t(n){a.checkNew(this,t),n||(n=e.defaultCoerceFunc),h.defineReadOnly(this,"coerceFunc",n)}return t.prototype.encode=function(t,e){t.length!==e.length&&a.throwError("types/values length mismatch",a.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});var n=[];return t.forEach((function(t){var e=null;e="string"===typeof t?y(t):t,n.push(H(this.coerceFunc,e))}),this),l.hexlify(new U(this.coerceFunc,n,"_").encode(e))},t.prototype.decode=function(t,e){var n=[];return t.forEach((function(t){var e=null;e="string"===typeof t?y(t):h.deepCopy(t),n.push(H(this.coerceFunc,e))}),this),new U(this.coerceFunc,n,"_").decode(l.arrayify(e),0).value},t}();e.AbiCoder=G,e.defaultAbiCoder=new G},8332:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(3550)),o=n(8722),a=n(9095),s=n(8440),u=n(4615);function l(t){"string"===typeof t&&t.match(/^0x[0-9A-Fa-f]{40}$/)||u.throwError("invalid address",u.INVALID_ARGUMENT,{arg:"address",value:t}),t=t.toLowerCase();for(var e=t.substring(2).split(""),n=new Uint8Array(40),r=0;r<40;r++)n[r]=e[r].charCodeAt(0);n=o.arrayify(a.keccak256(n));for(var i=0;i<40;i+=2)n[i>>1]>>4>=8&&(e[i]=e[i].toUpperCase()),(15&n[i>>1])>=8&&(e[i+1]=e[i+1].toUpperCase());return"0x"+e.join("")}var c=9007199254740991;function h(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}for(var f={},d=0;d<10;d++)f[String(d)]=String(d);for(d=0;d<26;d++)f[String.fromCharCode(65+d)]=String(10+d);var p=Math.floor(h(c));function m(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";var e="";t.split("").forEach((function(t){e+=f[t]}));while(e.length>=p){var n=e.substring(0,p);e=parseInt(n,10)%97+e.substring(n.length)}var r=String(98-parseInt(e,10)%97);while(r.length<2)r="0"+r;return r}function v(t,e){void 0===e&&(e=!0);var n=null;if("string"!==typeof t&&u.throwError("invalid address",u.INVALID_ARGUMENT,{arg:"address",value:t}),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e?(n=l(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&n!==t&&u.throwError("bad address checksum",u.INVALID_ARGUMENT,{arg:"address",value:t})):n=t;else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){t.substring(2,4)!==m(t)&&u.throwError("bad icap checksum",u.INVALID_ARGUMENT,{arg:"address",value:t}),n=new i.default.BN(t.substring(4),36).toString(16);while(n.length<40)n="0"+n;n=e?l("0x"+n):"0x"+n}else u.throwError("invalid address",u.INVALID_ARGUMENT,{arg:"address",value:t});return n}function g(t){var e=new i.default.BN(v(t).substring(2),16).toString(36).toUpperCase();while(e.length<30)e="0"+e;return"XE"+m("XE00"+e)+e}function y(t){if(!t.from)throw new Error("missing from address");var e=t.nonce;return v("0x"+a.keccak256(s.encode([v(t.from),o.stripZeros(o.hexlify(e))])).substring(26))}e.getAddress=v,e.getIcapAddress=g,e.getContractAddress=y},8341:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e};Object.defineProperty(e,"__esModule",{value:!0});var o=r(n(3550)),a=n(8722),s=n(4498),u=i(n(4615)),l=new o.default.BN(-1);function c(t){var e=t.toString(16);return"-"===e[0]?e.length%2===0?"-0x0"+e.substring(1):"-0x"+e.substring(1):e.length%2===1?"0x0"+e:"0x"+e}function h(t){return d(m(t))}function f(t){return new p(c(t))}function d(t){var e=t._hex;return"-"===e[0]?new o.default.BN(e.substring(3),16).mul(l):new o.default.BN(e.substring(2),16)}var p=function(){function t(e){if(u.checkNew(this,t),s.setType(this,"BigNumber"),"string"===typeof e)a.isHexString(e)?("0x"==e&&(e="0x0"),s.defineReadOnly(this,"_hex",e)):"-"===e[0]&&a.isHexString(e.substring(1))?s.defineReadOnly(this,"_hex",e):e.match(/^-?[0-9]*$/)?(""==e&&(e="0"),s.defineReadOnly(this,"_hex",c(new o.default.BN(e)))):u.throwError("invalid BigNumber string value",u.INVALID_ARGUMENT,{arg:"value",value:e});else if("number"===typeof e){parseInt(String(e))!==e&&u.throwError("underflow",u.NUMERIC_FAULT,{operation:"setValue",fault:"underflow",value:e,outputValue:parseInt(String(e))});try{s.defineReadOnly(this,"_hex",c(new o.default.BN(e)))}catch(n){u.throwError("overflow",u.NUMERIC_FAULT,{operation:"setValue",fault:"overflow",details:n.message})}}else e instanceof t?s.defineReadOnly(this,"_hex",e._hex):e.toHexString?s.defineReadOnly(this,"_hex",c(h(e.toHexString()))):e._hex&&a.isHexString(e._hex)?s.defineReadOnly(this,"_hex",e._hex):a.isArrayish(e)?s.defineReadOnly(this,"_hex",c(new o.default.BN(a.hexlify(e).substring(2),16))):u.throwError("invalid BigNumber value",u.INVALID_ARGUMENT,{arg:"value",value:e})}return t.prototype.fromTwos=function(t){return f(d(this).fromTwos(t))},t.prototype.toTwos=function(t){return f(d(this).toTwos(t))},t.prototype.abs=function(){return"-"===this._hex[0]?f(d(this).mul(l)):this},t.prototype.add=function(t){return f(d(this).add(h(t)))},t.prototype.sub=function(t){return f(d(this).sub(h(t)))},t.prototype.div=function(t){var e=m(t);return e.isZero()&&u.throwError("division by zero",u.NUMERIC_FAULT,{operation:"divide",fault:"division by zero"}),f(d(this).div(h(t)))},t.prototype.mul=function(t){return f(d(this).mul(h(t)))},t.prototype.mod=function(t){return f(d(this).mod(h(t)))},t.prototype.pow=function(t){return f(d(this).pow(h(t)))},t.prototype.maskn=function(t){return f(d(this).maskn(t))},t.prototype.eq=function(t){return d(this).eq(h(t))},t.prototype.lt=function(t){return d(this).lt(h(t))},t.prototype.lte=function(t){return d(this).lte(h(t))},t.prototype.gt=function(t){return d(this).gt(h(t))},t.prototype.gte=function(t){return d(this).gte(h(t))},t.prototype.isZero=function(){return d(this).isZero()},t.prototype.toNumber=function(){try{return d(this).toNumber()}catch(t){u.throwError("overflow",u.NUMERIC_FAULT,{operation:"setValue",fault:"overflow",details:t.message})}return null},t.prototype.toString=function(){return d(this).toString(10)},t.prototype.toHexString=function(){return this._hex},t.isBigNumber=function(t){return s.isType(t,"BigNumber")},t}();function m(t){return p.isBigNumber(t)?t:new p(t)}e.BigNumber=p,e.bigNumberify=m},8722:function(t,e,n){"use strict";var r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(4615));function o(t){return!!t.toHexString}function a(t){return t.slice||(t.slice=function(){var e=Array.prototype.slice.call(arguments);return a(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function s(t){if(!t||parseInt(String(t.length))!=t.length||"string"===typeof t)return!1;for(var e=0;e=256||parseInt(String(n))!=n)return!1}return!0}function u(t){if(null==t&&i.throwError("cannot convert null value to array",i.INVALID_ARGUMENT,{arg:"value",value:t}),o(t)&&(t=t.toHexString()),"string"===typeof t){var e=t.match(/^(0x)?[0-9a-fA-F]*$/);e||i.throwError("invalid hexidecimal string",i.INVALID_ARGUMENT,{arg:"value",value:t}),"0x"!==e[1]&&i.throwError("hex string must have 0x prefix",i.INVALID_ARGUMENT,{arg:"value",value:t}),t=t.substring(2),t.length%2&&(t="0"+t);for(var n=[],r=0;r=9007199254740991&&i.throwError("out-of-range",i.NUMERIC_FAULT,{operartion:"hexlify",fault:"out-of-safe-range"});var e="";while(t)e=d[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("string"===typeof t){var n=t.match(/^(0x)?[0-9a-fA-F]*$/);return n||i.throwError("invalid hexidecimal string",i.INVALID_ARGUMENT,{arg:"value",value:t}),"0x"!==n[1]&&i.throwError("hex string must have 0x prefix",i.INVALID_ARGUMENT,{arg:"value",value:t}),t.length%2&&(t="0x0"+t.substring(2)),t}if(s(t)){for(var r=[],a=0;a>4]+d[15&u])}return"0x"+r.join("")}return i.throwError("invalid hexlify value",null,{arg:"value",value:t}),"never"}function m(t){return f(t)&&t.length%2===0?(t.length-2)/2:null}function v(t,e,n){return f(t)||i.throwError("invalid hex data",i.INVALID_ARGUMENT,{arg:"value",value:t}),t.length%2!==0&&i.throwError("hex data length must be even",i.INVALID_ARGUMENT,{arg:"value",value:t}),e=2+2*e,null!=n?"0x"+t.substring(e,2+2*n):"0x"+t.substring(e)}function g(t){f(t)||i.throwError("invalid hex string",i.INVALID_ARGUMENT,{arg:"value",value:t});while(t.length>3&&"0x0"===t.substring(0,3))t="0x"+t.substring(3);return t}function y(t,e){f(t)||i.throwError("invalid hex string",i.INVALID_ARGUMENT,{arg:"value",value:t});while(t.length<2*e+2)t="0x0"+t.substring(2);return t}function b(t){return t&&null!=t.r&&null!=t.s}function w(t){var e=0,n="0x",r="0x";if(b(t)){null==t.v&&null==t.recoveryParam&&i.throwError("at least on of recoveryParam or v must be specified",i.INVALID_ARGUMENT,{argument:"signature",value:t}),n=y(t.r,32),r=y(t.s,32),e=t.v,"string"===typeof e&&(e=parseInt(e,16));var o=t.recoveryParam;null==o&&null!=t.v&&(o=1-e%2),e=27+o}else{var a=u(t);if(65!==a.length)throw new Error("invalid signature");n=p(a.slice(0,32)),r=p(a.slice(32,64)),e=a[64],27!==e&&28!==e&&(e=27+e%2)}return{r:n,s:r,recoveryParam:e-27,v:e}}function _(t){return t=w(t),p(l([t.r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}e.hexlify=p,e.hexDataLength=m,e.hexDataSlice=v,e.hexStripZeros=g,e.hexZeroPad=y,e.splitSignature=w,e.joinSignature=_},9095:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1094),i=n(8722);function o(t){return"0x"+r.keccak_256(i.arrayify(t))}e.keccak256=o},4498:function(t,e,n){"use strict";var r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(4615));function o(t,e,n){Object.defineProperty(t,e,{enumerable:!0,value:n,writable:!1})}function a(t,e){Object.defineProperty(t,"_ethersType",{configurable:!1,value:e,writable:!1})}function s(t,e){return t&&t._ethersType===e}function u(t){var e={},n=[];return Object.keys(t).forEach((function(r){var i=t[r];i instanceof Promise?n.push(i.then((function(t){return e[r]=t,null}))):e[r]=i})),Promise.all(n).then((function(){return e}))}function l(t,e){t&&"object"===typeof t||i.throwError("invalid object",i.INVALID_ARGUMENT,{argument:"object",value:t}),Object.keys(t).forEach((function(n){e[n]||i.throwError("invalid object key - "+n,i.INVALID_ARGUMENT,{argument:"transaction",value:t,key:n})}))}function c(t){var e={};for(var n in t)e[n]=t[n];return e}e.defineReadOnly=o,e.setType=a,e.isType=s,e.resolveProperties=u,e.checkProperties=l,e.shallowCopy=c;var h={boolean:!0,number:!0,string:!0};function f(t,e){if(void 0===t||null===t||h[typeof t])return t;if(Array.isArray(t)){var n=t.map((function(t){return f(t,e)}));return e&&Object.freeze(n),n}if("object"===typeof t){if(s(t,"BigNumber"))return t;if(s(t,"Description"))return t;if(s(t,"Indexed"))return t;n={};for(var r in t){var i=t[r];void 0!==i&&o(n,r,f(i,e))}return e&&Object.freeze(n),n}if("function"===typeof t)return t;throw new Error("Cannot deepCopy "+typeof t)}function d(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}function p(t){return function(e){d(e,t),o(e,"inherits",p(e))}}e.deepCopy=f,e.inheritable=p},8440:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(8722);function i(t){var e=[];while(t)e.unshift(255&t),t>>=8;return e}function o(t,e,n){for(var r=0,i=0;ie+1+r)throw new Error("invalid rlp")}return{consumed:1+r,result:i}}function l(t,e){if(0===t.length)throw new Error("invalid rlp data");if(t[e]>=248){var n=t[e]-247;if(e+1+n>t.length)throw new Error("too short");var i=o(t,e+1,n);if(e+1+n+i>t.length)throw new Error("to short");return u(t,e,e+1+n,n+i)}if(t[e]>=192){i=t[e]-192;if(e+1+i>t.length)throw new Error("invalid rlp data");return u(t,e,e+1,i)}if(t[e]>=184){n=t[e]-183;if(e+1+n>t.length)throw new Error("invalid rlp data");i=o(t,e+1,n);if(e+1+n+i>t.length)throw new Error("invalid rlp data");var a=r.hexlify(t.slice(e+1+n,e+1+n+i));return{consumed:1+n+i,result:a}}if(t[e]>=128){i=t[e]-128;if(e+1+i>t.length)throw new Error("invlaid rlp data");a=r.hexlify(t.slice(e+1,e+1+i));return{consumed:1+i,result:a}}return{consumed:1,result:r.hexlify(t[e])}}function c(t){var e=r.arrayify(t),n=l(e,0);if(n.consumed!==e.length)throw new Error("invalid rlp data");return n.result}e.encode=s,e.decode=c},6253:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(3695),o=n(4615),a=n(8722);function s(t,e){void 0===e&&(e=r.current),e!=r.current&&(o.checkNormalize(),t=t.normalize(e));for(var n=[],i=0;i>6|192),n.push(63&s|128);else if(55296==(64512&s)){i++;var u=t.charCodeAt(i);if(i>=t.length||56320!==(64512&u))throw new Error("invalid utf-8 string");s=65536+((1023&s)<<10)+(1023&u),n.push(s>>18|240),n.push(s>>12&63|128),n.push(s>>6&63|128),n.push(63&s|128)}else n.push(s>>12|224),n.push(s>>6&63|128),n.push(63&s|128)}return a.arrayify(n)}function u(t,e){t=a.arrayify(t);var n="",r=0;while(r>7!==0){var o=null,s=null;if(192===(224&i))o=1,s=127;else if(224===(240&i))o=2,s=2047;else{if(240!==(248&i)){if(!e){if(128===(192&i))throw new Error("invalid utf8 byte sequence; unexpected continuation byte");throw new Error("invalid utf8 byte sequence; invalid prefix")}continue}o=3,s=65535}if(r+o>t.length){if(!e)throw new Error("invalid utf8 byte sequence; too short");for(;r>6!==2)break}else{for(var u=i&(1<<8-o-1)-1,l=0;l1114111){if(!e)throw new Error("invalid utf8 byte sequence; out-of-range")}else if(u>=55296&&u<=57343){if(!e)throw new Error("invalid utf8 byte sequence; utf-16 surrogate")}else u<=65535?n+=String.fromCharCode(u):(u-=65536,n+=String.fromCharCode(55296+(u>>10&1023),56320+(1023&u)));else if(!e)throw new Error("invalid utf8 byte sequence; invalid continuation byte")}}else n+=String.fromCharCode(i)}return n}function l(t){var e=s(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return a.hexlify(a.concat([e,i.HashZero]).slice(0,32))}function c(t){var e=a.arrayify(t);if(32!==e.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==e[31])throw new Error("invalid bytes32 sdtring - no null terminator");var n=31;while(0===e[n-1])n--;return u(e.slice(0,n))}(function(t){t["current"]="",t["NFC"]="NFC",t["NFD"]="NFD",t["NFKC"]="NFKC",t["NFKD"]="NFKD"})(r=e.UnicodeNormalizationForm||(e.UnicodeNormalizationForm={})),e.toUtf8Bytes=s,e.toUtf8String=u,e.formatBytes32String=l,e.parseBytes32String=c},9742:(t,e)=>{"use strict";e.byteLength=l,e.toByteArray=h,e.fromByteArray=p;for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=o.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function l(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function c(t,e,n){return 3*(e+n)/4-n}function h(t){var e,n,o=u(t),a=o[0],s=o[1],l=new i(c(t,a,s)),h=0,f=s>0?a-4:a;for(n=0;n>16&255,l[h++]=e>>8&255,l[h++]=255&e;return 2===s&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,l[h++]=255&e),1===s&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,l[h++]=e>>8&255,l[h++]=255&e),l}function f(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function d(t,e,n){for(var r,i=[],o=e;ou?u:s+a));return 1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},8442:(t,e,n)=>{const r=n(9488);function i(t,e,n){const r=t[e]+t[n];let i=t[e+1]+t[n+1];r>=4294967296&&i++,t[e]=r,t[e+1]=i}function o(t,e,n,r){let i=t[e]+n;n<0&&(i+=4294967296);let o=t[e+1]+r;i>=4294967296&&o++,t[e]=i,t[e+1]=o}function a(t,e){return t[e]^t[e+1]<<8^t[e+2]<<16^t[e+3]<<24}function s(t,e,n,r,a,s){const u=f[a],l=f[a+1],c=f[s],d=f[s+1];i(h,t,e),o(h,t,u,l);let p=h[r]^h[t],m=h[r+1]^h[t+1];h[r]=m,h[r+1]=p,i(h,n,r),p=h[e]^h[n],m=h[e+1]^h[n+1],h[e]=p>>>24^m<<8,h[e+1]=m>>>24^p<<8,i(h,t,e),o(h,t,c,d),p=h[r]^h[t],m=h[r+1]^h[t+1],h[r]=p>>>16^m<<16,h[r+1]=m>>>16^p<<16,i(h,n,r),p=h[e]^h[n],m=h[e+1]^h[n+1],h[e]=m>>>31^p<<1,h[e+1]=p>>>31^m<<1}const u=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),l=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],c=new Uint8Array(l.map((function(t){return 2*t}))),h=new Uint32Array(32),f=new Uint32Array(32);function d(t,e){let n=0;for(n=0;n<16;n++)h[n]=t.h[n],h[n+16]=u[n];for(h[24]=h[24]^t.t,h[25]=h[25]^t.t/4294967296,e&&(h[28]=~h[28],h[29]=~h[29]),n=0;n<32;n++)f[n]=a(t.b,4*n);for(n=0;n<12;n++)s(0,8,16,24,c[16*n+0],c[16*n+1]),s(2,10,18,26,c[16*n+2],c[16*n+3]),s(4,12,20,28,c[16*n+4],c[16*n+5]),s(6,14,22,30,c[16*n+6],c[16*n+7]),s(0,10,20,30,c[16*n+8],c[16*n+9]),s(2,12,22,24,c[16*n+10],c[16*n+11]),s(4,14,16,26,c[16*n+12],c[16*n+13]),s(6,8,18,28,c[16*n+14],c[16*n+15]);for(n=0;n<16;n++)t.h[n]=t.h[n]^h[n]^h[n+16]}function p(t,e){if(0===t||t>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(e&&e.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");const n={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:t};for(let i=0;i<16;i++)n.h[i]=u[i];const r=e?e.length:0;return n.h[0]^=16842752^r<<8^t,e&&(m(n,e),n.c=128),n}function m(t,e){for(let n=0;n>2]>>8*(3&n);return e}function g(t,e,n){n=n||64,t=r.normalizeInput(t);const i=p(n,e);return m(i,t),v(i)}function y(t,e,n){const i=g(t,e,n);return r.toHex(i)}t.exports={blake2b:g,blake2bHex:y,blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},5297:(t,e,n)=>{const r=n(9488);function i(t,e){return t[e]^t[e+1]<<8^t[e+2]<<16^t[e+3]<<24}function o(t,e,n,r,i,o){l[t]=l[t]+l[e]+i,l[r]=a(l[r]^l[t],16),l[n]=l[n]+l[r],l[e]=a(l[e]^l[n],12),l[t]=l[t]+l[e]+o,l[r]=a(l[r]^l[t],8),l[n]=l[n]+l[r],l[e]=a(l[e]^l[n],7)}function a(t,e){return t>>>e^t<<32-e}const s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),c=new Uint32Array(16);function h(t,e){let n=0;for(n=0;n<8;n++)l[n]=t.h[n],l[n+8]=s[n];for(l[12]^=t.t,l[13]^=t.t/4294967296,e&&(l[14]=~l[14]),n=0;n<16;n++)c[n]=i(t.b,4*n);for(n=0;n<10;n++)o(0,4,8,12,c[u[16*n+0]],c[u[16*n+1]]),o(1,5,9,13,c[u[16*n+2]],c[u[16*n+3]]),o(2,6,10,14,c[u[16*n+4]],c[u[16*n+5]]),o(3,7,11,15,c[u[16*n+6]],c[u[16*n+7]]),o(0,5,10,15,c[u[16*n+8]],c[u[16*n+9]]),o(1,6,11,12,c[u[16*n+10]],c[u[16*n+11]]),o(2,7,8,13,c[u[16*n+12]],c[u[16*n+13]]),o(3,4,9,14,c[u[16*n+14]],c[u[16*n+15]]);for(n=0;n<8;n++)t.h[n]^=l[n]^l[n+8]}function f(t,e){if(!(t>0&&t<=32))throw new Error("Incorrect output length, should be in [1, 32]");const n=e?e.length:0;if(e&&!(n>0&&n<=32))throw new Error("Incorrect key length, should be in [1, 32]");const r={h:new Uint32Array(s),b:new Uint8Array(64),c:0,t:0,outlen:t};return r.h[0]^=16842752^n<<8^t,n>0&&(d(r,e),r.c=64),r}function d(t,e){for(let n=0;n>2]>>8*(3&n)&255;return e}function m(t,e,n){n=n||32,t=r.normalizeInput(t);const i=f(n,e);return d(i,t),p(i)}function v(t,e,n){const i=m(t,e,n);return r.toHex(i)}t.exports={blake2s:m,blake2sHex:v,blake2sInit:f,blake2sUpdate:d,blake2sFinal:p}},1191:(t,e,n)=>{const r=n(8442),i=n(5297);t.exports={blake2b:r.blake2b,blake2bHex:r.blake2bHex,blake2bInit:r.blake2bInit,blake2bUpdate:r.blake2bUpdate,blake2bFinal:r.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},9488:(t,e,n)=>{var i=n(8764)["Buffer"];const o="Input must be an string, Buffer or Uint8Array";function a(t){let e;if(t instanceof Uint8Array)e=t;else if(t instanceof i)e=new Uint8Array(t);else{if("string"!==typeof t)throw new Error(o);e=new Uint8Array(i.from(t,"utf8"))}return e}function s(t){return Array.prototype.map.call(t,(function(t){return(t<16?"0":"")+t.toString(16)})).join("")}function u(t){return(4294967296+t).toString(16).substring(1)}function l(t,e,n){let i="\n"+t+" = ";for(let r=0;r=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function u(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&i++,16===e?this._parseHex(t,i):this._parseBase(t,e,i),"-"===t[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initNumber=function(t,e,n){t<0&&(this.negative=1,t=-t),t<67108864?(this.words=[67108863&t],this.length=1):t<4503599627370496?(this.words=[67108863&t,t/67108864&67108863],this.length=2):(r(t<9007199254740992),this.words=[67108863&t,t/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),e,n)},o.prototype._initArray=function(t,e,n){if(r("number"===typeof t.length),t.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(t.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var n=0;n=e;n-=6)i=s(t,n,n+6),this.words[r]|=i<>>26-o&4194303,o+=24,o>=26&&(o-=26,r++);n+6!==e&&(i=s(t,e,n+6),this.words[r]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,l=0,c=n;c1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var l=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],c=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function f(t){for(var e=new Array(t.bitLength()),n=0;n>>i}return e}function d(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l>>26,h=67108863&u,f=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=f;d++){var p=l-d|0;i=0|t.words[p],o=0|e.words[d],a=i*o+h,c+=a/67108864|0,h=67108863&a}n.words[l]=0|h,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(t=t||10,e=0|e||1,16===t||"hex"===t){n="";for(var i=0,o=0,a=0;a>>24-i&16777215,n=0!==o||a!==this.length-1?l[6-u.length]+u+n:u+n,i+=2,i>=26&&(i-=26,a--)}0!==o&&(n=o.toString(16)+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var f=c[t],d=h[t];n="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),n=p.isZero()?m+n:l[f-m.length]+m+n}this.isZero()&&(n="0"+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,l=new t(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a;for(;s=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],g=8191&v,y=v>>>13,b=0|a[3],w=8191&b,_=b>>>13,x=0|a[4],S=8191&x,M=x>>>13,k=0|a[5],E=8191&k,A=k>>>13,O=0|a[6],C=8191&O,N=O>>>13,T=0|a[7],D=8191&T,I=T>>>13,R=0|a[8],P=8191&R,j=R>>>13,B=0|a[9],$=8191&B,L=B>>>13,F=0|s[0],U=8191&F,V=F>>>13,z=0|s[1],q=8191&z,H=z>>>13,G=0|s[2],W=8191&G,Y=G>>>13,K=0|s[3],Z=8191&K,X=K>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,lt=st>>>13,ct=0|s[8],ht=8191&ct,ft=ct>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;n.negative=t.negative^e.negative,n.length=19,r=Math.imul(h,U),i=Math.imul(h,V),i=i+Math.imul(f,U)|0,o=Math.imul(f,V);var vt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,U),i=Math.imul(p,V),i=i+Math.imul(m,U)|0,o=Math.imul(m,V),r=r+Math.imul(h,q)|0,i=i+Math.imul(h,H)|0,i=i+Math.imul(f,q)|0,o=o+Math.imul(f,H)|0;var gt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,U),i=Math.imul(g,V),i=i+Math.imul(y,U)|0,o=Math.imul(y,V),r=r+Math.imul(p,q)|0,i=i+Math.imul(p,H)|0,i=i+Math.imul(m,q)|0,o=o+Math.imul(m,H)|0,r=r+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0,i=i+Math.imul(f,W)|0,o=o+Math.imul(f,Y)|0;var yt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(w,U),i=Math.imul(w,V),i=i+Math.imul(_,U)|0,o=Math.imul(_,V),r=r+Math.imul(g,q)|0,i=i+Math.imul(g,H)|0,i=i+Math.imul(y,q)|0,o=o+Math.imul(y,H)|0,r=r+Math.imul(p,W)|0,i=i+Math.imul(p,Y)|0,i=i+Math.imul(m,W)|0,o=o+Math.imul(m,Y)|0,r=r+Math.imul(h,Z)|0,i=i+Math.imul(h,X)|0,i=i+Math.imul(f,Z)|0,o=o+Math.imul(f,X)|0;var bt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(S,U),i=Math.imul(S,V),i=i+Math.imul(M,U)|0,o=Math.imul(M,V),r=r+Math.imul(w,q)|0,i=i+Math.imul(w,H)|0,i=i+Math.imul(_,q)|0,o=o+Math.imul(_,H)|0,r=r+Math.imul(g,W)|0,i=i+Math.imul(g,Y)|0,i=i+Math.imul(y,W)|0,o=o+Math.imul(y,Y)|0,r=r+Math.imul(p,Z)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,Z)|0,o=o+Math.imul(m,X)|0,r=r+Math.imul(h,Q)|0,i=i+Math.imul(h,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(E,U),i=Math.imul(E,V),i=i+Math.imul(A,U)|0,o=Math.imul(A,V),r=r+Math.imul(S,q)|0,i=i+Math.imul(S,H)|0,i=i+Math.imul(M,q)|0,o=o+Math.imul(M,H)|0,r=r+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,i=i+Math.imul(_,W)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(g,Z)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,Z)|0,o=o+Math.imul(y,X)|0,r=r+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,r=r+Math.imul(h,nt)|0,i=i+Math.imul(h,rt)|0,i=i+Math.imul(f,nt)|0,o=o+Math.imul(f,rt)|0;var _t=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(C,U),i=Math.imul(C,V),i=i+Math.imul(N,U)|0,o=Math.imul(N,V),r=r+Math.imul(E,q)|0,i=i+Math.imul(E,H)|0,i=i+Math.imul(A,q)|0,o=o+Math.imul(A,H)|0,r=r+Math.imul(S,W)|0,i=i+Math.imul(S,Y)|0,i=i+Math.imul(M,W)|0,o=o+Math.imul(M,Y)|0,r=r+Math.imul(w,Z)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(_,Z)|0,o=o+Math.imul(_,X)|0,r=r+Math.imul(g,Q)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,r=r+Math.imul(p,nt)|0,i=i+Math.imul(p,rt)|0,i=i+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0,r=r+Math.imul(h,ot)|0,i=i+Math.imul(h,at)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,at)|0;var xt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(D,U),i=Math.imul(D,V),i=i+Math.imul(I,U)|0,o=Math.imul(I,V),r=r+Math.imul(C,q)|0,i=i+Math.imul(C,H)|0,i=i+Math.imul(N,q)|0,o=o+Math.imul(N,H)|0,r=r+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,i=i+Math.imul(A,W)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(S,Z)|0,i=i+Math.imul(S,X)|0,i=i+Math.imul(M,Z)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(g,nt)|0,i=i+Math.imul(g,rt)|0,i=i+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0,r=r+Math.imul(p,ot)|0,i=i+Math.imul(p,at)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0,r=r+Math.imul(h,ut)|0,i=i+Math.imul(h,lt)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,lt)|0;var St=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(P,U),i=Math.imul(P,V),i=i+Math.imul(j,U)|0,o=Math.imul(j,V),r=r+Math.imul(D,q)|0,i=i+Math.imul(D,H)|0,i=i+Math.imul(I,q)|0,o=o+Math.imul(I,H)|0,r=r+Math.imul(C,W)|0,i=i+Math.imul(C,Y)|0,i=i+Math.imul(N,W)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(E,Z)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,Z)|0,o=o+Math.imul(A,X)|0,r=r+Math.imul(S,Q)|0,i=i+Math.imul(S,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,r=r+Math.imul(w,nt)|0,i=i+Math.imul(w,rt)|0,i=i+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(g,ot)|0,i=i+Math.imul(g,at)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,r=r+Math.imul(p,ut)|0,i=i+Math.imul(p,lt)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,lt)|0,r=r+Math.imul(h,ht)|0,i=i+Math.imul(h,ft)|0,i=i+Math.imul(f,ht)|0,o=o+Math.imul(f,ft)|0;var Mt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul($,U),i=Math.imul($,V),i=i+Math.imul(L,U)|0,o=Math.imul(L,V),r=r+Math.imul(P,q)|0,i=i+Math.imul(P,H)|0,i=i+Math.imul(j,q)|0,o=o+Math.imul(j,H)|0,r=r+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,i=i+Math.imul(I,W)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(C,Z)|0,i=i+Math.imul(C,X)|0,i=i+Math.imul(N,Z)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(S,nt)|0,i=i+Math.imul(S,rt)|0,i=i+Math.imul(M,nt)|0,o=o+Math.imul(M,rt)|0,r=r+Math.imul(w,ot)|0,i=i+Math.imul(w,at)|0,i=i+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(g,ut)|0,i=i+Math.imul(g,lt)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,lt)|0,r=r+Math.imul(p,ht)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ht)|0,o=o+Math.imul(m,ft)|0,r=r+Math.imul(h,pt)|0,i=i+Math.imul(h,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var kt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul($,q),i=Math.imul($,H),i=i+Math.imul(L,q)|0,o=Math.imul(L,H),r=r+Math.imul(P,W)|0,i=i+Math.imul(P,Y)|0,i=i+Math.imul(j,W)|0,o=o+Math.imul(j,Y)|0,r=r+Math.imul(D,Z)|0,i=i+Math.imul(D,X)|0,i=i+Math.imul(I,Z)|0,o=o+Math.imul(I,X)|0,r=r+Math.imul(C,Q)|0,i=i+Math.imul(C,tt)|0,i=i+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(E,nt)|0,i=i+Math.imul(E,rt)|0,i=i+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(S,ot)|0,i=i+Math.imul(S,at)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,r=r+Math.imul(w,ut)|0,i=i+Math.imul(w,lt)|0,i=i+Math.imul(_,ut)|0,o=o+Math.imul(_,lt)|0,r=r+Math.imul(g,ht)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ht)|0,o=o+Math.imul(y,ft)|0,r=r+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul($,W),i=Math.imul($,Y),i=i+Math.imul(L,W)|0,o=Math.imul(L,Y),r=r+Math.imul(P,Z)|0,i=i+Math.imul(P,X)|0,i=i+Math.imul(j,Z)|0,o=o+Math.imul(j,X)|0,r=r+Math.imul(D,Q)|0,i=i+Math.imul(D,tt)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(C,nt)|0,i=i+Math.imul(C,rt)|0,i=i+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(E,ot)|0,i=i+Math.imul(E,at)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,r=r+Math.imul(S,ut)|0,i=i+Math.imul(S,lt)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,lt)|0,r=r+Math.imul(w,ht)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(_,ht)|0,o=o+Math.imul(_,ft)|0,r=r+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul($,Z),i=Math.imul($,X),i=i+Math.imul(L,Z)|0,o=Math.imul(L,X),r=r+Math.imul(P,Q)|0,i=i+Math.imul(P,tt)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,r=r+Math.imul(D,nt)|0,i=i+Math.imul(D,rt)|0,i=i+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(C,ot)|0,i=i+Math.imul(C,at)|0,i=i+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(E,ut)|0,i=i+Math.imul(E,lt)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,lt)|0,r=r+Math.imul(S,ht)|0,i=i+Math.imul(S,ft)|0,i=i+Math.imul(M,ht)|0,o=o+Math.imul(M,ft)|0,r=r+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(_,pt)|0,o=o+Math.imul(_,mt)|0;var Ot=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul($,Q),i=Math.imul($,tt),i=i+Math.imul(L,Q)|0,o=Math.imul(L,tt),r=r+Math.imul(P,nt)|0,i=i+Math.imul(P,rt)|0,i=i+Math.imul(j,nt)|0,o=o+Math.imul(j,rt)|0,r=r+Math.imul(D,ot)|0,i=i+Math.imul(D,at)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,r=r+Math.imul(C,ut)|0,i=i+Math.imul(C,lt)|0,i=i+Math.imul(N,ut)|0,o=o+Math.imul(N,lt)|0,r=r+Math.imul(E,ht)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,ht)|0,o=o+Math.imul(A,ft)|0,r=r+Math.imul(S,pt)|0,i=i+Math.imul(S,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Ct=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul($,nt),i=Math.imul($,rt),i=i+Math.imul(L,nt)|0,o=Math.imul(L,rt),r=r+Math.imul(P,ot)|0,i=i+Math.imul(P,at)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,r=r+Math.imul(D,ut)|0,i=i+Math.imul(D,lt)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,lt)|0,r=r+Math.imul(C,ht)|0,i=i+Math.imul(C,ft)|0,i=i+Math.imul(N,ht)|0,o=o+Math.imul(N,ft)|0,r=r+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Nt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul($,ot),i=Math.imul($,at),i=i+Math.imul(L,ot)|0,o=Math.imul(L,at),r=r+Math.imul(P,ut)|0,i=i+Math.imul(P,lt)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,lt)|0,r=r+Math.imul(D,ht)|0,i=i+Math.imul(D,ft)|0,i=i+Math.imul(I,ht)|0,o=o+Math.imul(I,ft)|0,r=r+Math.imul(C,pt)|0,i=i+Math.imul(C,mt)|0,i=i+Math.imul(N,pt)|0,o=o+Math.imul(N,mt)|0;var Tt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul($,ut),i=Math.imul($,lt),i=i+Math.imul(L,ut)|0,o=Math.imul(L,lt),r=r+Math.imul(P,ht)|0,i=i+Math.imul(P,ft)|0,i=i+Math.imul(j,ht)|0,o=o+Math.imul(j,ft)|0,r=r+Math.imul(D,pt)|0,i=i+Math.imul(D,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Dt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul($,ht),i=Math.imul($,ft),i=i+Math.imul(L,ht)|0,o=Math.imul(L,ft),r=r+Math.imul(P,pt)|0,i=i+Math.imul(P,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul($,pt),i=Math.imul($,mt),i=i+Math.imul(L,pt)|0,o=Math.imul(L,mt);var Rt=(l+r|0)+((8191&i)<<13)|0;return l=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=vt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=_t,u[6]=xt,u[7]=St,u[8]=Mt,u[9]=kt,u[10]=Et,u[11]=At,u[12]=Ot,u[13]=Ct,u[14]=Nt,u[15]=Tt,u[16]=Dt,u[17]=It,u[18]=Rt,0!==l&&(u[19]=l,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0,i+=a>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function v(t,e,n){var r=new g;return r.mulp(t,e,n)}function g(t,e){this.x=t,this.y=e}Math.imul||(p=d),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?p(this,t,e):r<63?d(this,t,e):r<1024?m(this,t,e):v(this,t,e),n},g.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},g.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=f(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==c||l>=i);l--){var h=0|this.words[l];this.words[l]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,r=this.clone(),i=t,a=0|i.words[i.length-1],s=this._countBits(a);n=26-s,0!==n&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var u,l=r.length-i.length;if("mod"!==e){u=new o(null),u.length=l+1,u.words=new Array(u.length);for(var c=0;c=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);while(0!==r.negative)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:u||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;while(e.isEven()&&n.isEven())e.iushrn(1),n.iushrn(1),++l;var c=n.clone(),h=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1)}for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0){n.iushrn(p);while(p-- >0)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1)}e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,a=new o(1),s=new o(0),u=n.clone();while(e.cmpn(1)>0&&n.cmpn(1)>0){for(var l=0,c=1;0===(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0){e.iushrn(l);while(l-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}for(var h=0,f=1;0===(n.words[0]&f)&&h<26;++h,f<<=1);if(h>0){n.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return i=0===e.cmpn(1)?a:s,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);do{while(e.isEven())e.iushrn(1);while(n.isEven())n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}while(1);return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new M(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function M(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function k(t){M.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),e=n.bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(w,b),w.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},w.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new w;else if("p224"===t)e=new _;else if("p192"===t)e=new x;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return y[t]=e,e},M.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},M.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},M.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},M.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},M.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},M.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},M.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},M.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},M.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},M.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},M.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},M.prototype.isqr=function(t){return this.imul(t,t.clone())},M.prototype.sqr=function(t){return this.mul(t,t)},M.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}var i=this.m.subn(1),a=0;while(!i.isZero()&&0===i.andln(1))a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,l).cmp(u))c.redIAdd(u);var h=this.pow(c,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;while(0!==d.cmp(s)){for(var m=d,v=0;0!==m.cmp(s);v++)m=m.redSqr();r(v=0;i--){for(var c=e.words[i],h=l-1;h>=0;h--){var f=c>>h&1;a!==r[0]&&(a=this.sqr(a)),0!==f||0!==s?(s<<=1,s|=f,u++,(u===n||0===i&&0===h)&&(a=this.mul(a,r[s]),u=0,s=0)):u=0}l=26}return a},M.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},M.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new k(t)},i(k,M),k.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},k.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},k.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},k.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},k.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}}(t,this)},8764:(t,e,n)=>{"use strict"; +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */var i=n(9742),o=n(645),a="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=w,e.INSPECT_MAX_BYTES=50;var s=2147483647;function u(){try{var t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(n){return!1}}function l(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');var e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return p(t)}return h(t,e,n)}function h(t,e,n){if("string"===typeof t)return m(t,e);if(ArrayBuffer.isView(t))return v(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(J(t,ArrayBuffer)||t&&J(t.buffer,ArrayBuffer))return g(t,e,n);if("undefined"!==typeof SharedArrayBuffer&&(J(t,SharedArrayBuffer)||t&&J(t.buffer,SharedArrayBuffer)))return g(t,e,n);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return c.from(r,e,n);var i=y(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function d(t,e,n){return f(t),t<=0?l(t):void 0!==e?"string"===typeof n?l(t).fill(e,n):l(t).fill(e):l(t)}function p(t){return f(t),l(t<0?0:0|b(t))}function m(t,e){if("string"===typeof e&&""!==e||(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);var n=0|_(t,e),r=l(n),i=r.write(t,e);return i!==n&&(r=r.slice(0,i)),r}function v(t){for(var e=t.length<0?0:0|b(t.length),n=l(e),r=0;r=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function w(t){return+t!=t&&(t=0),c.alloc(+t)}function _(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||J(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);var n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return W(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Z(t).length;default:if(i)return r?-1:W(t).length;e=(""+e).toLowerCase(),i=!0}}function x(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return $(this,e,n);case"utf8":case"utf-8":return I(this,e,n);case"ascii":return j(this,e,n);case"latin1":case"binary":return B(this,e,n);case"base64":return D(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function S(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function M(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,Q(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:k(t,e,n,r,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):k(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function k(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var c=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var h=!0,f=0;fi&&(r=i)):r=i;var o=e.length;r>o/2&&(r=o/2);for(var a=0;a239?4:l>223?3:l>191?2:1;if(i+h<=n)switch(h){case 1:l<128&&(c=l);break;case 2:o=t[i+1],128===(192&o)&&(u=(31&l)<<6|63&o,u>127&&(c=u));break;case 3:o=t[i+1],a=t[i+2],128===(192&o)&&128===(192&a)&&(u=(15&l)<<12|(63&o)<<6|63&a,u>2047&&(u<55296||u>57343)&&(c=u));break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&l)<<18|(63&o)<<12|(63&a)<<6|63&s,u>65535&&u<1114112&&(c=u))}null===c?(c=65533,h=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),i+=h}return P(r)}e.kMaxLength=s,c.TYPED_ARRAY_SUPPORT=u(),c.TYPED_ARRAY_SUPPORT||"undefined"===typeof r||"function"!==typeof r.error||r.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,n){return h(t,e,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,n){return d(t,e,n)},c.allocUnsafe=function(t){return p(t)},c.allocUnsafeSlow=function(t){return p(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(J(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),J(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);in&&(t+=" ... "),""},a&&(c.prototype[a]=c.prototype.inspect),c.prototype.compare=function(t,e,n,r,i){if(J(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var o=i-r,a=n-e,s=Math.min(o,a),u=this.slice(r,i),l=t.slice(e,n),h=0;h>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return E(this,t,e,n);case"utf8":case"utf-8":return A(this,t,e,n);case"ascii":return O(this,t,e,n);case"latin1":case"binary":return C(this,t,e,n);case"base64":return N(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function P(t){var e=t.length;if(e<=R)return String.fromCharCode.apply(String,t);var n="",r=0;while(rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function U(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function V(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function z(t,e,n,r,i){return e=+e,n>>>=0,i||V(t,e,n,4,34028234663852886e22,-34028234663852886e22),o.write(t,e,n,r,23,4),n+4}function q(t,e,n,r,i){return e=+e,n>>>=0,i||V(t,e,n,8,17976931348623157e292,-17976931348623157e292),o.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e>>=0,e>>>=0,n||F(t,e,this.length);var r=this[t],i=1,o=0;while(++o>>=0,e>>>=0,n||F(t,e,this.length);var r=this[t+--e],i=1;while(e>0&&(i*=256))r+=this[t+--e]*i;return r},c.prototype.readUInt8=function(t,e){return t>>>=0,e||F(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||F(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||F(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t>>>=0,e>>>=0,n||F(t,e,this.length);var r=this[t],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||F(t,e,this.length);var r=e,i=1,o=this[t+--r];while(r>0&&(i*=256))o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return t>>>=0,e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||F(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||F(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return t>>>=0,e||F(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||F(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||F(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||F(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;U(this,t,e,n,i,0)}var o=1,a=0;this[e]=255&t;while(++a>>=0,n>>>=0,!r){var i=Math.pow(2,8*n)-1;U(this,t,e,n,i,0)}var o=n-1,a=1;this[e+o]=255&t;while(--o>=0&&(a*=256))this[e+o]=t/a&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){var i=Math.pow(2,8*n-1);U(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;this[e]=255&t;while(++o>>=0,!r){var i=Math.pow(2,8*n-1);U(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;this[e+o]=255&t;while(--o>=0&&(a*=256))t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a|0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeFloatLE=function(t,e,n){return z(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return z(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return q(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return q(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--o)t[o+e]=this[o+n];else Uint8Array.prototype.set.call(t,this.subarray(n,r),e);return i},c.prototype.fill=function(t,e,n,r){if("string"===typeof t){if("string"===typeof e?(r=e,e=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===t.length){var i=t.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(t=i)}}else"number"===typeof t?t&=255:"boolean"===typeof t&&(t=Number(t));if(e<0||this.length>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Y(t){for(var e=[],n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function Z(t){return i.toByteArray(G(t))}function X(t,e,n,r){for(var i=0;i=e.length||i>=t.length)break;e[i+n]=t[i]}return i}function J(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function Q(t){return t!==t}var tt=function(){for(var t="0123456789abcdef",e=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)e[r+i]=t[n]+t[i];return e}()},645:(t,e)=>{e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,c=-7,h=n?i-1:0,f=n?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+h>=1?f/u:f*Math.pow(2,1-h),e*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;t[n+d]=255&a,d+=p,a/=256,l-=8);t[n+d-p]|=128*m}},1094:(t,e,n)=>{ +/** + * [js-sha3]{@link https://github.com/emn178/js-sha3} + * + * @version 0.5.7 + * @author Chen, Yi-Cyuan [emn178@gmail.com] + * @copyright Chen, Yi-Cyuan 2015-2016 + * @license MIT + */ +(function(){"use strict";var e="object"===typeof window?window:{},r=!e.JS_SHA3_NO_NODE_JS&&"object"===typeof i&&i.versions&&i.versions.node;r&&(e=n.g);for(var o=!e.JS_SHA3_NO_COMMON_JS&&t.exports,a="0123456789abcdef".split(""),s=[31,7936,2031616,520093696],u=[1,256,65536,16777216],l=[6,1536,393216,100663296],c=[0,8,16,24],h=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],f=[224,256,384,512],d=[128,256],p=["hex","buffer","arrayBuffer","array"],m=function(t,e,n){return function(r){return new A(t,e,t).update(r)[n]()}},v=function(t,e,n){return function(r,i){return new A(t,e,i).update(r)[n]()}},g=function(t,e){var n=m(t,e,"hex");n.create=function(){return new A(t,e,t)},n.update=function(t){return n.create().update(t)};for(var r=0;r>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}A.prototype.update=function(t){var e="string"!==typeof t;e&&t.constructor===ArrayBuffer&&(t=new Uint8Array(t));var n,r,i=t.length,o=this.blocks,a=this.byteCount,s=this.blockCount,u=0,l=this.s;while(u>2]|=t[u]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|63&r)<=57344?(o[n>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<=a){for(this.start=n-a,this.block=o[s],n=0;n>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[n],e=1;e>4&15]+a[15&t]+a[t>>12&15]+a[t>>8&15]+a[t>>20&15]+a[t>>16&15]+a[t>>28&15]+a[t>>24&15];s%e===0&&(O(n),o=0)}return i&&(t=n[o],i>0&&(u+=a[t>>4&15]+a[15&t]),i>1&&(u+=a[t>>12&15]+a[t>>8&15]),i>2&&(u+=a[t>>20&15]+a[t>>16&15])),u},A.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;t=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);var u=new Uint32Array(t);while(a>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;s%n===0&&O(r)}return o&&(t=s<<2,e=r[a],o>0&&(u[t]=255&e),o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u};var O=function(t){var e,n,r,i,o,a,s,u,l,c,f,d,p,m,v,g,y,b,w,_,x,S,M,k,E,A,O,C,N,T,D,I,R,P,j,B,$,L,F,U,V,z,q,H,G,W,Y,K,Z,X,J,Q,tt,et,nt,rt,it,ot,at,st,ut,lt,ct;for(r=0;r<48;r+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],l=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],f=t[7]^t[17]^t[27]^t[37]^t[47],d=t[8]^t[18]^t[28]^t[38]^t[48],p=t[9]^t[19]^t[29]^t[39]^t[49],e=d^(a<<1|s>>>31),n=p^(s<<1|a>>>31),t[0]^=e,t[1]^=n,t[10]^=e,t[11]^=n,t[20]^=e,t[21]^=n,t[30]^=e,t[31]^=n,t[40]^=e,t[41]^=n,e=i^(u<<1|l>>>31),n=o^(l<<1|u>>>31),t[2]^=e,t[3]^=n,t[12]^=e,t[13]^=n,t[22]^=e,t[23]^=n,t[32]^=e,t[33]^=n,t[42]^=e,t[43]^=n,e=a^(c<<1|f>>>31),n=s^(f<<1|c>>>31),t[4]^=e,t[5]^=n,t[14]^=e,t[15]^=n,t[24]^=e,t[25]^=n,t[34]^=e,t[35]^=n,t[44]^=e,t[45]^=n,e=u^(d<<1|p>>>31),n=l^(p<<1|d>>>31),t[6]^=e,t[7]^=n,t[16]^=e,t[17]^=n,t[26]^=e,t[27]^=n,t[36]^=e,t[37]^=n,t[46]^=e,t[47]^=n,e=c^(i<<1|o>>>31),n=f^(o<<1|i>>>31),t[8]^=e,t[9]^=n,t[18]^=e,t[19]^=n,t[28]^=e,t[29]^=n,t[38]^=e,t[39]^=n,t[48]^=e,t[49]^=n,m=t[0],v=t[1],W=t[11]<<4|t[10]>>>28,Y=t[10]<<4|t[11]>>>28,C=t[20]<<3|t[21]>>>29,N=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,z=t[40]<<18|t[41]>>>14,q=t[41]<<18|t[40]>>>14,P=t[2]<<1|t[3]>>>31,j=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,K=t[22]<<10|t[23]>>>22,Z=t[23]<<10|t[22]>>>22,T=t[33]<<13|t[32]>>>19,D=t[32]<<13|t[33]>>>19,lt=t[42]<<2|t[43]>>>30,ct=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,nt=t[4]<<30|t[5]>>>2,B=t[14]<<6|t[15]>>>26,$=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,X=t[34]<<15|t[35]>>>17,J=t[35]<<15|t[34]>>>17,I=t[45]<<29|t[44]>>>3,R=t[44]<<29|t[45]>>>3,k=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,L=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,_=t[36]<<21|t[37]>>>11,x=t[37]<<21|t[36]>>>11,Q=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,H=t[8]<<27|t[9]>>>5,G=t[9]<<27|t[8]>>>5,A=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,at=t[28]<<7|t[29]>>>25,U=t[38]<<8|t[39]>>>24,V=t[39]<<8|t[38]>>>24,S=t[48]<<14|t[49]>>>18,M=t[49]<<14|t[48]>>>18,t[0]=m^~g&b,t[1]=v^~y&w,t[10]=k^~A&C,t[11]=E^~O&N,t[20]=P^~B&L,t[21]=j^~$&F,t[30]=H^~W&K,t[31]=G^~Y&Z,t[40]=et^~rt&ot,t[41]=nt^~it&at,t[2]=g^~b&_,t[3]=y^~w&x,t[12]=A^~C&T,t[13]=O^~N&D,t[22]=B^~L&U,t[23]=$^~F&V,t[32]=W^~K&X,t[33]=Y^~Z&J,t[42]=rt^~ot&st,t[43]=it^~at&ut,t[4]=b^~_&S,t[5]=w^~x&M,t[14]=C^~T&I,t[15]=N^~D&R,t[24]=L^~U&z,t[25]=F^~V&q,t[34]=K^~X&Q,t[35]=Z^~J&tt,t[44]=ot^~st<,t[45]=at^~ut&ct,t[6]=_^~S&m,t[7]=x^~M&v,t[16]=T^~I&k,t[17]=D^~R&E,t[26]=U^~z&P,t[27]=V^~q&j,t[36]=X^~Q&H,t[37]=J^~tt&G,t[46]=st^~lt&et,t[47]=ut^~ct&nt,t[8]=S^~m&g,t[9]=M^~v&y,t[18]=I^~k&A,t[19]=R^~E&O,t[28]=z^~P&B,t[29]=q^~j&$,t[38]=Q^~H&W,t[39]=tt^~G&Y,t[48]=lt^~et&rt,t[49]=ct^~nt&it,t[0]^=h[r],t[1]^=h[r+1]};if(o)t.exports=w;else for(x=0;x<_.length;++x)e[_[x]]=w[_[x]]})()},2587:t=>{"use strict";function e(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,n,r,i){n=n||"&",r=r||"=";var o={};if("string"!==typeof t||0===t.length)return o;var a=/\+/g;t=t.split(n);var s=1e3;i&&"number"===typeof i.maxKeys&&(s=i.maxKeys);var u=t.length;s>0&&u>s&&(u=s);for(var l=0;l=0?(c=p.substr(0,m),h=p.substr(m+1)):(c=p,h=""),f=decodeURIComponent(c),d=decodeURIComponent(h),e(o,f)?Array.isArray(o[f])?o[f].push(d):o[f]=[o[f],d]:o[f]=d}return o}},2361:t=>{"use strict";var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,n,r,i){return n=n||"&",r=r||"=",null===t&&(t=void 0),"object"===typeof t?Object.keys(t).map((function(i){var o=encodeURIComponent(e(i))+r;return Array.isArray(t[i])?t[i].map((function(t){return o+encodeURIComponent(e(t))})).join(n):o+encodeURIComponent(e(t[i]))})).join(n):i?encodeURIComponent(e(i))+r+encodeURIComponent(e(t)):""}},7673:(t,e,n)=>{"use strict";e.decode=e.parse=n(2587),e.encode=e.stringify=n(2361)},1798:(t,e,n)=>{"use strict";var r=65536,o=4294967295;function a(){throw new Error("Secure random number generation is not supported by this browser.\nUse Chrome, Firefox or Internet Explorer 11")}var s=n(9509).Buffer,u=n.g.crypto||n.g.msCrypto;function l(t,e){if(t>o)throw new RangeError("requested too many random bytes");var n=s.allocUnsafe(t);if(t>0)if(t>r)for(var a=0;a{ +/*! safe-buffer. MIT License. Feross Aboukhadijeh */ +var r=n(8764),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,n){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!==typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"===typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},2511:function(t,e,n){var r;/*! https://mths.be/punycode v1.3.2 by @mathias */t=n.nmd(t),function(i){e&&e.nodeType,t&&t.nodeType;var o="object"==typeof n.g&&n.g;o.global!==o&&o.window!==o&&o.self;var a,s=2147483647,u=36,l=1,c=26,h=38,f=700,d=72,p=128,m="-",v=/^xn--/,g=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=u-l,_=Math.floor,x=String.fromCharCode;function S(t){throw RangeError(b[t])}function M(t,e){var n=t.length,r=[];while(n--)r[n]=e(t[n]);return r}function k(t,e){var n=t.split("@"),r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(y,".");var i=t.split("."),o=M(i,e).join(".");return r+o}function E(t){var e,n,r=[],i=0,o=t.length;while(i=55296&&e<=56319&&i65535&&(t-=65536,e+=x(t>>>10&1023|55296),t=56320|1023&t),e+=x(t),e})).join("")}function O(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:u}function C(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function N(t,e,n){var r=0;for(t=n?_(t/f):t>>1,t+=_(t/e);t>w*c>>1;r+=u)t=_(t/w);return _(r+(w+1)*t/(t+h))}function T(t){var e,n,r,i,o,a,h,f,v,g,y=[],b=t.length,w=0,x=p,M=d;for(n=t.lastIndexOf(m),n<0&&(n=0),r=0;r=128&&S("not-basic"),y.push(t.charCodeAt(r));for(i=n>0?n+1:0;i=b&&S("invalid-input"),f=O(t.charCodeAt(i++)),(f>=u||f>_((s-w)/a))&&S("overflow"),w+=f*a,v=h<=M?l:h>=M+c?c:h-M,f_(s/g)&&S("overflow"),a*=g}e=y.length+1,M=N(w-o,e,0==o),_(w/e)>s-x&&S("overflow"),x+=_(w/e),w%=e,y.splice(w++,0,x)}return A(y)}function D(t){var e,n,r,i,o,a,h,f,v,g,y,b,w,M,k,A=[];for(t=E(t),b=t.length,e=p,n=0,o=d,a=0;a=e&&y_((s-n)/w)&&S("overflow"),n+=(h-e)*w,e=h,a=0;as&&S("overflow"),y==e){for(f=n,v=u;;v+=u){if(g=v<=o?l:v>=o+c?c:v-o,f{"use strict";var r=n(2511),i=n(2502);function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}e.DB=S;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,u=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,l=["<",">",'"',"`"," ","\r","\n","\t"],c=["{","}","|","\\","^","`"].concat(l),h=["'"].concat(c),f=["%","/","?",";","#"].concat(h),d=["/","?","#"],p=255,m=/^[+a-z0-9A-Z_-]{0,63}$/,v=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},w=n(7673);function _(t,e,n){if(t&&i.isObject(t)&&t instanceof o)return t;var r=new o;return r.parse(t,e,n),r}function x(t){return i.isString(t)&&_(t),t instanceof o?t.format():o.prototype.format.call(t)}function S(t,e){return _(t,!1,!0).resolve(e)}function M(t,e){return t?_(t,!1,!0).resolveObject(e):e}o.prototype.parse=function(t,e,n){if(!i.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var o=t.indexOf("?"),s=-1!==o&&o127?P+="x":P+=R[j];if(!P.match(m)){var $=D.slice(0,C),L=D.slice(C+1),F=R.match(v);F&&($.push(F[1]),L.unshift(F[2])),L.length&&(_="/"+L.join(".")+_),this.hostname=$.join(".");break}}}this.hostname.length>p?this.hostname="":this.hostname=this.hostname.toLowerCase(),T||(this.hostname=r.toASCII(this.hostname));var U=this.port?":"+this.port:"",V=this.hostname||"";this.host=V+U,this.href+=this.host,T&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==_[0]&&(_="/"+_))}if(!g[M])for(C=0,I=h.length;C0)&&n.host.split("@");k&&(n.auth=k.shift(),n.host=n.hostname=k.shift())}return n.search=t.search,n.query=t.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!S.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var E=S.slice(-1)[0],A=(n.host||t.host||S.length>1)&&("."===E||".."===E)||""===E,O=0,C=S.length;C>=0;C--)E=S[C],"."===E?S.splice(C,1):".."===E?(S.splice(C,1),O++):O&&(S.splice(C,1),O--);if(!_&&!x)for(;O--;O)S.unshift("..");!_||""===S[0]||S[0]&&"/"===S[0].charAt(0)||S.unshift(""),A&&"/"!==S.join("/").substr(-1)&&S.push("");var N=""===S[0]||S[0]&&"/"===S[0].charAt(0);if(M){n.hostname=n.host=N?"":S.length?S.shift():"";k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");k&&(n.auth=k.shift(),n.host=n.hostname=k.shift())}return _=_||n.host&&S.length,_&&!N&&S.unshift(""),S.length?n.pathname=S.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var t=this.host,e=s.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},2502:t=>{"use strict";t.exports={isString:function(t){return"string"===typeof t},isObject:function(t){return"object"===typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},8416:(t,e,n)=>{t.exports=n(41)},6347:(t,e,n)=>{"use strict";var r=n(9053),i=n(8762),o=n(6164),a=n(51),s=n(6672),u=n(9942),l=n(3789),c=n(2604);t.exports=function(t){return new Promise((function(e,n){var h=t.data,f=t.headers;r.isFormData(h)&&delete f["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var p=t.auth.username||"",m=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";f.Authorization="Basic "+btoa(p+":"+m)}var v=s(t.baseURL,t.url);if(d.open(t.method.toUpperCase(),a(v,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d.onreadystatechange=function(){if(d&&4===d.readyState&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var r="getAllResponseHeaders"in d?u(d.getAllResponseHeaders()):null,o=t.responseType&&"text"!==t.responseType?d.response:d.responseText,a={data:o,status:d.status,statusText:d.statusText,headers:r,config:t,request:d};i(e,n,a),d=null}},d.onabort=function(){d&&(n(c("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){n(c("Network Error",t,null,d)),d=null},d.ontimeout=function(){var e="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(e=t.timeoutErrorMessage),n(c(e,t,"ECONNABORTED",d)),d=null},r.isStandardBrowserEnv()){var g=(t.withCredentials||l(v))&&t.xsrfCookieName?o.read(t.xsrfCookieName):void 0;g&&(f[t.xsrfHeaderName]=g)}if("setRequestHeader"in d&&r.forEach(f,(function(t,e){"undefined"===typeof h&&"content-type"===e.toLowerCase()?delete f[e]:d.setRequestHeader(e,t)})),r.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),t.responseType)try{d.responseType=t.responseType}catch(y){if("json"!==t.responseType)throw y}"function"===typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"===typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then((function(t){d&&(d.abort(),n(t),d=null)})),h||(h=null),d.send(h)}))}},41:(t,e,n)=>{"use strict";var r=n(9053),i=n(1330),o=n(2819),a=n(7711),s=n(6450);function u(t){var e=new o(t),n=i(o.prototype.request,e);return r.extend(n,o.prototype,e),r.extend(n,e),n}var l=u(s);l.Axios=o,l.create=function(t){return u(a(l.defaults,t))},l.Cancel=n(7623),l.CancelToken=n(3803),l.isCancel=n(9328),l.all=function(t){return Promise.all(t)},l.spread=n(348),l.isAxiosError=n(839),t.exports=l,t.exports.default=l},7623:t=>{"use strict";function e(t){this.message=t}e.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},e.prototype.__CANCEL__=!0,t.exports=e},3803:(t,e,n)=>{"use strict";var r=n(7623);function i(t){if("function"!==typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise((function(t){e=t}));var n=this;t((function(t){n.reason||(n.reason=new r(t),e(n.reason))}))}i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t,e=new i((function(e){t=e}));return{token:e,cancel:t}},t.exports=i},9328:t=>{"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},2819:(t,e,n)=>{"use strict";var r=n(9053),i=n(51),o=n(3973),a=n(1639),s=n(7711);function u(t){this.defaults=t,this.interceptors={request:new o,response:new o}}u.prototype.request=function(t){"string"===typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},t=s(this.defaults,t),t.method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var e=[a,void 0],n=Promise.resolve(t);this.interceptors.request.forEach((function(t){e.unshift(t.fulfilled,t.rejected)})),this.interceptors.response.forEach((function(t){e.push(t.fulfilled,t.rejected)}));while(e.length)n=n.then(e.shift(),e.shift());return n},u.prototype.getUri=function(t){return t=s(this.defaults,t),i(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")},r.forEach(["delete","get","head","options"],(function(t){u.prototype[t]=function(e,n){return this.request(s(n||{},{method:t,url:e,data:(n||{}).data}))}})),r.forEach(["post","put","patch"],(function(t){u.prototype[t]=function(e,n,r){return this.request(s(r||{},{method:t,url:e,data:n}))}})),t.exports=u},3973:(t,e,n)=>{"use strict";var r=n(9053);function i(){this.handlers=[]}i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){r.forEach(this.handlers,(function(e){null!==e&&t(e)}))},t.exports=i},6672:(t,e,n)=>{"use strict";var r=n(1275),i=n(2345);t.exports=function(t,e){return t&&!r(e)?i(t,e):e}},2604:(t,e,n)=>{"use strict";var r=n(5898);t.exports=function(t,e,n,i,o){var a=new Error(t);return r(a,e,n,i,o)}},1639:(t,e,n)=>{"use strict";var r=n(9053),i=n(2244),o=n(9328),a=n(6450);function s(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){s(t),t.headers=t.headers||{},t.data=i(t.data,t.headers,t.transformRequest),t.headers=r.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),r.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete t.headers[e]}));var e=t.adapter||a.adapter;return e(t).then((function(e){return s(t),e.data=i(e.data,e.headers,t.transformResponse),e}),(function(e){return o(e)||(s(t),e&&e.response&&(e.response.data=i(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)}))}},5898:t=>{"use strict";t.exports=function(t,e,n,r,i){return t.config=e,n&&(t.code=n),t.request=r,t.response=i,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},7711:(t,e,n)=>{"use strict";var r=n(9053);t.exports=function(t,e){e=e||{};var n={},i=["url","method","data"],o=["headers","auth","proxy","params"],a=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],s=["validateStatus"];function u(t,e){return r.isPlainObject(t)&&r.isPlainObject(e)?r.merge(t,e):r.isPlainObject(e)?r.merge({},e):r.isArray(e)?e.slice():e}function l(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=u(void 0,t[i])):n[i]=u(t[i],e[i])}r.forEach(i,(function(t){r.isUndefined(e[t])||(n[t]=u(void 0,e[t]))})),r.forEach(o,l),r.forEach(a,(function(i){r.isUndefined(e[i])?r.isUndefined(t[i])||(n[i]=u(void 0,t[i])):n[i]=u(void 0,e[i])})),r.forEach(s,(function(r){r in e?n[r]=u(t[r],e[r]):r in t&&(n[r]=u(void 0,t[r]))}));var c=i.concat(o).concat(a).concat(s),h=Object.keys(t).concat(Object.keys(e)).filter((function(t){return-1===c.indexOf(t)}));return r.forEach(h,l),n}},8762:(t,e,n)=>{"use strict";var r=n(2604);t.exports=function(t,e,n){var i=n.config.validateStatus;n.status&&i&&!i(n.status)?e(r("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},2244:(t,e,n)=>{"use strict";var r=n(9053);t.exports=function(t,e,n){return r.forEach(n,(function(n){t=n(t,e)})),t}},6450:(t,e,n)=>{"use strict";var r=n(9053),o=n(2854),a={"Content-Type":"application/x-www-form-urlencoded"};function s(t,e){!r.isUndefined(t)&&r.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}function u(){var t;return("undefined"!==typeof XMLHttpRequest||"undefined"!==typeof i&&"[object process]"===Object.prototype.toString.call(i))&&(t=n(6347)),t}var l={adapter:u(),transformRequest:[function(t,e){return o(e,"Accept"),o(e,"Content-Type"),r.isFormData(t)||r.isArrayBuffer(t)||r.isBuffer(t)||r.isStream(t)||r.isFile(t)||r.isBlob(t)?t:r.isArrayBufferView(t)?t.buffer:r.isURLSearchParams(t)?(s(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):r.isObject(t)?(s(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"===typeof t)try{t=JSON.parse(t)}catch(e){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};r.forEach(["delete","get","head"],(function(t){l.headers[t]={}})),r.forEach(["post","put","patch"],(function(t){l.headers[t]=r.merge(a)})),t.exports=l},1330:t=>{"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r{"use strict";var r=n(9053);function i(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var o;if(n)o=n(e);else if(r.isURLSearchParams(e))o=e.toString();else{var a=[];r.forEach(e,(function(t,e){null!==t&&"undefined"!==typeof t&&(r.isArray(t)?e+="[]":t=[t],r.forEach(t,(function(t){r.isDate(t)?t=t.toISOString():r.isObject(t)&&(t=JSON.stringify(t)),a.push(i(e)+"="+i(t))})))})),o=a.join("&")}if(o){var s=t.indexOf("#");-1!==s&&(t=t.slice(0,s)),t+=(-1===t.indexOf("?")?"?":"&")+o}return t}},2345:t=>{"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},6164:(t,e,n)=>{"use strict";var r=n(9053);t.exports=r.isStandardBrowserEnv()?function(){return{write:function(t,e,n,i,o,a){var s=[];s.push(t+"="+encodeURIComponent(e)),r.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),r.isString(i)&&s.push("path="+i),r.isString(o)&&s.push("domain="+o),!0===a&&s.push("secure"),document.cookie=s.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},1275:t=>{"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},839:t=>{"use strict";t.exports=function(t){return"object"===typeof t&&!0===t.isAxiosError}},3789:(t,e,n)=>{"use strict";var r=n(9053);t.exports=r.isStandardBrowserEnv()?function(){var t,e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function i(t){var r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return t=i(window.location.href),function(e){var n=r.isString(e)?i(e):e;return n.protocol===t.protocol&&n.host===t.host}}():function(){return function(){return!0}}()},2854:(t,e,n)=>{"use strict";var r=n(9053);t.exports=function(t,e){r.forEach(t,(function(n,r){r!==e&&r.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[r])}))}},9942:(t,e,n)=>{"use strict";var r=n(9053),i=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,o,a={};return t?(r.forEach(t.split("\n"),(function(t){if(o=t.indexOf(":"),e=r.trim(t.substr(0,o)).toLowerCase(),n=r.trim(t.substr(o+1)),e){if(a[e]&&i.indexOf(e)>=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},348:t=>{"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},9053:(t,e,n)=>{"use strict";var r=n(1330),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return"undefined"===typeof t}function s(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function u(t){return"[object ArrayBuffer]"===i.call(t)}function l(t){return"undefined"!==typeof FormData&&t instanceof FormData}function c(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function h(t){return"string"===typeof t}function f(t){return"number"===typeof t}function d(t){return null!==t&&"object"===typeof t}function p(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function m(t){return"[object Date]"===i.call(t)}function v(t){return"[object File]"===i.call(t)}function g(t){return"[object Blob]"===i.call(t)}function y(t){return"[object Function]"===i.call(t)}function b(t){return d(t)&&y(t.pipe)}function w(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function _(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function S(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n=10;h/=10,l++);return g.e=l,void(g.c=[t])}v=t+""}else{if(!a.test(v=t+""))return r(g,v,p);g.s=45==v.charCodeAt(0)?(v=v.slice(1),-1):1}(l=v.indexOf("."))>-1&&(v=v.replace(".","")),(h=v.search(/e/i))>0?(l<0&&(l=h),l+=+v.slice(h+1),v=v.substring(0,h)):l<0&&(l=v.length)}else{if(_(e,2,j.length,"Base"),v=t+"",10==e)return g=new B(t instanceof B?t:v),U(g,E+g.e+1,A);if(p="number"==typeof t,p){if(0*t!=0)return r(g,v,p,e);if(g.s=1/t<0?(v=v.slice(1),-1):1,B.DEBUG&&v.replace(/^0\.0*|\./,"").length>15)throw Error(c+t);p=!1}else g.s=45===v.charCodeAt(0)?(v=v.slice(1),-1):1;for(i=j.slice(0,e),l=h=0,m=v.length;hl){l=m;continue}}else if(!s&&(v==v.toUpperCase()&&(v=v.toLowerCase())||v==v.toLowerCase()&&(v=v.toUpperCase()))){s=!0,h=-1,l=0;continue}return r(g,t+"",p,e)}v=n(v,e,10,g.s),(l=v.indexOf("."))>-1?v=v.replace(".",""):l=v.length}for(h=0;48===v.charCodeAt(h);h++);for(m=v.length;48===v.charCodeAt(--m););if(v=v.slice(h,++m),v){if(m-=h,p&&B.DEBUG&&m>15&&(t>d||t!==u(t)))throw Error(c+g.s*t);if(l=l-h-1,l>T)g.c=g.e=null;else if(ls){if(--e>0)for(u+=".";e--;u+="0");}else if(e+=o-s,e>0)for(o+1==s&&(u+=".");e--;u+="0");return t.s<0&&i?"-"+u:u}function L(t,e){var n,r,i=0;for(x(t[0])&&(t=t[0]),n=new B(t[0]);++i=10;i/=10,r++);return(n=r+n*f-1)>T?t.c=t.e=null:n=10;l/=10,i++);if(o=e-i,o<0)o+=f,a=e,c=v[d=0],m=c/g[i-a-1]%10|0;else if(d=s((o+1)/f),d>=v.length){if(!r)break t;for(;v.length<=d;v.push(0));c=m=0,i=1,o%=f,a=o-f+1}else{for(c=l=v[d],i=1;l>=10;l/=10,i++);o%=f,a=o-f+i,m=a<0?0:c/g[i-a-1]%10|0}if(r=r||e<0||null!=v[d+1]||(a<0?c:c%g[i-a-1]),r=n<4?(m||r)&&(0==n||n==(t.s<0?3:2)):m>5||5==m&&(4==n||r||6==n&&(o>0?a>0?c/g[i-a]:0:v[d-1])%10&1||n==(t.s<0?8:7)),e<1||!v[0])return v.length=0,r?(e-=t.e+1,v[0]=g[(f-e%f)%f],t.e=-e||0):v[0]=t.e=0,t;if(0==o?(v.length=d,l=1,d--):(v.length=d+1,l=g[f-o],v[d]=a>0?u(c/g[i-a]%g[a])*l:0),r)for(;;){if(0==d){for(o=1,a=v[0];a>=10;a/=10,o++);for(a=v[0]+=l,l=1;a>=10;a/=10,l++);o!=l&&(t.e++,v[0]==h&&(v[0]=1));break}if(v[d]+=l,v[d]!=h)break;v[d--]=0,l=1}for(o=v.length;0===v[--o];v.pop());}t.e>T?t.c=t.e=null:t.e>>11),c>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[h]=r[0],n[h+1]=r[1]):(d.push(c%1e14),h+=2);h=a/2}else{if(!crypto.randomBytes)throw D=!1,Error(l+"crypto unavailable");for(n=crypto.randomBytes(a*=7);h=9e15?crypto.randomBytes(7).copy(n,h):(d.push(c%1e14),h+=7);h=a/7}if(!D)for(;h=10;c/=10,h++);hn-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(r,i,o,a,s){var u,l,c,h,f,d,p,m,v=r.indexOf("."),g=E,y=A;for(v>=0&&(h=R,R=0,r=r.replace(".",""),m=new B(i),d=m.pow(r.length-v),R=h,m.c=n(k(b(d.c),d.e,"0"),10,o,t),m.e=m.c.length),p=n(r,i,o,s?(u=j,t):(u=t,j)),c=h=p.length;0==p[--h];p.pop());if(!p[0])return u.charAt(0);if(v<0?--c:(d.c=p,d.e=c,d.s=a,d=e(d,m,g,y,o),p=d.c,f=d.r,c=d.e),l=c+g+1,v=p[l],h=o/2,f=f||l<0||null!=p[l+1],f=y<4?(null!=v||f)&&(0==y||y==(d.s<0?3:2)):v>h||v==h&&(4==y||f||6==y&&1&p[l-1]||y==(d.s<0?8:7)),l<1||!p[0])r=f?k(u.charAt(1),-g,u.charAt(0)):u.charAt(0);else{if(p.length=l,f)for(--o;++p[--l]>o;)p[l]=0,l||(++c,p=[1].concat(p));for(h=p.length;!p[--h];);for(v=0,r="";v<=h;r+=u.charAt(p[v++]));r=k(r,c,u.charAt(0))}return r}}(),e=function(){function t(t,e,n){var r,i,o,a,s=0,u=t.length,l=e%m,c=e/m|0;for(t=t.slice();u--;)o=t[u]%m,a=t[u]/m|0,r=c*o+a*l,i=l*o+r%m*m+s,s=(i/n|0)+(r/m|0)+c*a,t[u]=i%n;return s&&(t=[s].concat(t)),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]1;t.splice(0,1));}return function(r,i,o,a,s){var l,c,d,p,m,v,g,b,w,_,x,S,M,k,E,A,O,C=r.s==i.s?1:-1,N=r.c,T=i.c;if(!N||!N[0]||!T||!T[0])return new B(r.s&&i.s&&(N?!T||N[0]!=T[0]:T)?N&&0==N[0]||!T?0*C:C/0:NaN);for(b=new B(C),w=b.c=[],c=r.e-i.e,C=o+c+1,s||(s=h,c=y(r.e/f)-y(i.e/f),C=C/f|0),d=0;T[d]==(N[d]||0);d++);if(T[d]>(N[d]||0)&&c--,C<0)w.push(1),p=!0;else{for(k=N.length,A=T.length,d=0,C+=2,m=u(s/(T[0]+1)),m>1&&(T=t(T,m,s),N=t(N,m,s),A=T.length,k=N.length),M=A,_=N.slice(0,A),x=_.length;x=s/2&&E++;do{if(m=0,l=e(T,_,A,x),l<0){if(S=_[0],A!=x&&(S=S*s+(_[1]||0)),m=u(S/E),m>1){m>=s&&(m=s-1),v=t(T,m,s),g=v.length,x=_.length;while(1==e(v,_,g,x))m--,n(v,A=10;C/=10,d++);U(b,o+(b.e=d+c*f-1)+1,a,p)}else b.e=c,b.r=+p;return b}}(),r=function(){var t=/^(-?)0([xbo])(?=\w[\w.]*$)/i,e=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,a,s,u){var c,h=s?a:a.replace(i,"");if(r.test(h))o.s=isNaN(h)?null:h<0?-1:1,o.c=o.e=null;else{if(!s&&(h=h.replace(t,(function(t,e,n){return c="x"==(n=n.toLowerCase())?16:"b"==n?2:8,u&&u!=c?t:e})),u&&(c=u,h=h.replace(e,"$1").replace(n,"0.$1")),a!=h))return new B(h,c);if(B.DEBUG)throw Error(l+"Not a"+(u?" base "+u:"")+" number: "+a);o.c=o.e=o.s=null}}}(),i.absoluteValue=i.abs=function(){var t=new B(this);return t.s<0&&(t.s=1),t},i.comparedTo=function(t,e){return w(this,new B(t,e))},i.decimalPlaces=i.dp=function(t,e){var n,r,i,o=this;if(null!=t)return _(t,0,v),null==e?e=A:_(e,0,8),U(new B(o),t+o.e+1,e);if(!(n=o.c))return null;if(r=((i=n.length-1)-y(this.e/f))*f,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},i.dividedBy=i.div=function(t,n){return e(this,new B(t,n),E,A)},i.dividedToIntegerBy=i.idiv=function(t,n){return e(this,new B(t,n),0,1)},i.exponentiatedBy=i.pow=function(t,e){var n,r,i,a,c,h,d,p,m=this;if(t=new B(t),t.c&&!t.isInteger())throw Error(l+"Exponent not an integer: "+t);if(null!=e&&(e=new B(e)),c=t.e>14,!m.c||!m.c[0]||1==m.c[0]&&!m.e&&1==m.c.length||!t.c||!t.c[0])return p=new B(Math.pow(+m.valueOf(),c?2-S(t):+t)),e?p.mod(e):p;if(h=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new B(NaN);r=!h&&m.isInteger()&&e.isInteger(),r&&(m=m.mod(e))}else{if(t.e>9&&(m.e>0||m.e<-1||(0==m.e?m.c[0]>1||c&&m.c[1]>=24e7:m.c[0]<8e13||c&&m.c[0]<=9999975e7)))return i=m.s<0&&S(t)?-0:0,m.e>-1&&(i=1/i),new B(h?1/i:i);R&&(i=s(R/f+2))}for(c?(n=new B(.5),d=S(t)):d=t%2,h&&(t.s=1),p=new B(o);;){if(d){if(p=p.times(m),!p.c)break;i?p.c.length>i&&(p.c.length=i):r&&(p=p.mod(e))}if(c){if(t=t.times(n),U(t,t.e+1,1),!t.c[0])break;c=t.e>14,d=S(t)}else{if(t=u(t/2),!t)break;d=t%2}m=m.times(m),i?m.c&&m.c.length>i&&(m.c.length=i):r&&(m=m.mod(e))}return r?p:(h&&(p=o.div(p)),e?p.mod(e):i?U(p,R,A,a):p)},i.integerValue=function(t){var e=new B(this);return null==t?t=A:_(t,0,8),U(e,e.e+1,t)},i.isEqualTo=i.eq=function(t,e){return 0===w(this,new B(t,e))},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(t,e){return w(this,new B(t,e))>0},i.isGreaterThanOrEqualTo=i.gte=function(t,e){return 1===(e=w(this,new B(t,e)))||0===e},i.isInteger=function(){return!!this.c&&y(this.e/f)>this.c.length-2},i.isLessThan=i.lt=function(t,e){return w(this,new B(t,e))<0},i.isLessThanOrEqualTo=i.lte=function(t,e){return-1===(e=w(this,new B(t,e)))||0===e},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&0==this.c[0]},i.minus=function(t,e){var n,r,i,o,a=this,s=a.s;if(t=new B(t,e),e=t.s,!s||!e)return new B(NaN);if(s!=e)return t.s=-e,a.plus(t);var u=a.e/f,l=t.e/f,c=a.c,d=t.c;if(!u||!l){if(!c||!d)return c?(t.s=-e,t):new B(d?a:NaN);if(!c[0]||!d[0])return d[0]?(t.s=-e,t):new B(c[0]?a:3==A?-0:0)}if(u=y(u),l=y(l),c=c.slice(),s=u-l){for((o=s<0)?(s=-s,i=c):(l=u,i=d),i.reverse(),e=s;e--;i.push(0));i.reverse()}else for(r=(o=(s=c.length)<(e=d.length))?s:e,s=e=0;e0)for(;e--;c[n++]=0);for(e=h-1;r>s;){if(c[--r]=0;){for(n=0,p=S[i]%w,v=S[i]/w|0,a=u,o=i+a;o>i;)l=x[--a]%w,c=x[a]/w|0,s=v*l+c*p,l=p*l+s%w*w+g[o]+n,n=(l/b|0)+(s/w|0)+v*c,g[o--]=l%b;g[o]=n}return n?++r:g.splice(0,1),F(t,g,r)},i.negated=function(){var t=new B(this);return t.s=-t.s||null,t},i.plus=function(t,e){var n,r=this,i=r.s;if(t=new B(t,e),e=t.s,!i||!e)return new B(NaN);if(i!=e)return t.s=-e,r.minus(t);var o=r.e/f,a=t.e/f,s=r.c,u=t.c;if(!o||!a){if(!s||!u)return new B(i/0);if(!s[0]||!u[0])return u[0]?t:new B(s[0]?r:0*i)}if(o=y(o),a=y(a),s=s.slice(),i=o-a){for(i>0?(a=o,n=u):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for(i=s.length,e=u.length,i-e<0&&(n=u,u=s,s=n,e=i),i=0;e;)i=(s[--e]=s[e]+u[e]+i)/h|0,s[e]=h===s[e]?0:s[e]%h;return i&&(s=[i].concat(s),++a),F(t,s,a)},i.precision=i.sd=function(t,e){var n,r,i,o=this;if(null!=t&&t!==!!t)return _(t,1,v),null==e?e=A:_(e,0,8),U(new B(o),t,e);if(!(n=o.c))return null;if(i=n.length-1,r=i*f+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return t&&o.e+1>r&&(r=o.e+1),r},i.shiftedBy=function(t){return _(t,-d,d),this.times("1e"+t)},i.squareRoot=i.sqrt=function(){var t,n,r,i,o,a=this,s=a.c,u=a.s,l=a.e,c=E+4,h=new B("0.5");if(1!==u||!s||!s[0])return new B(!u||u<0&&(!s||s[0])?NaN:s?a:1/0);if(u=Math.sqrt(+a),0==u||u==1/0?(n=b(s),(n.length+l)%2==0&&(n+="0"),u=Math.sqrt(n),l=y((l+1)/2)-(l<0||l%2),u==1/0?n="1e"+l:(n=u.toExponential(),n=n.slice(0,n.indexOf("e")+1)+l),r=new B(n)):r=new B(u+""),r.c[0])for(l=r.e,u=l+c,u<3&&(u=0);;)if(o=r,r=h.times(o.plus(e(a,o,c,1))),b(o.c).slice(0,u)===(n=b(r.c)).slice(0,u)){if(r.e0&&f>0){for(r=f%o||o,u=h.substr(0,r);r0&&(u+=s+h.slice(r)),c&&(u="-"+u)}n=l?u+P.decimalSeparator+((a=+P.fractionGroupSize)?l.replace(new RegExp("\\d{"+a+"}\\B","g"),"$&"+P.fractionGroupSeparator):l):u}return n},i.toFraction=function(t){var n,r,i,a,s,u,c,h,d,m,v,g,y=this,w=y.c;if(null!=t&&(h=new B(t),!h.isInteger()&&(h.c||1!==h.s)||h.lt(o)))throw Error(l+"Argument "+(h.isInteger()?"out of range: ":"not an integer: ")+t);if(!w)return y.toString();for(r=new B(o),m=i=new B(o),a=d=new B(o),g=b(w),u=r.e=g.length-y.e-1,r.c[0]=p[(c=u%f)<0?f+c:c],t=!t||h.comparedTo(r)>0?u>0?r:m:h,c=T,T=1/0,h=new B(g),d.c[0]=0;;){if(v=e(h,r,0,1),s=i.plus(v.times(a)),1==s.comparedTo(t))break;i=a,a=s,m=d.plus(v.times(s=m)),d=s,r=h.minus(v.times(s=r)),h=s}return s=e(t.minus(i),a,0,1),d=d.plus(s.times(m)),i=i.plus(s.times(a)),d.s=m.s=y.s,u*=2,n=e(m,a,u,A).minus(y).abs().comparedTo(e(d,i,u,A).minus(y).abs())<1?[m.toString(),a.toString()]:[d.toString(),i.toString()],T=c,n},i.toNumber=function(){return+this},i.toPrecision=function(t,e){return null!=t&&_(t,1,v),$(this,t,e,2)},i.toString=function(t){var e,r=this,i=r.s,o=r.e;return null===o?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(e=b(r.c),null==t?e=o<=O||o>=C?M(e,o):k(e,o,"0"):(_(t,2,j.length,"Base"),e=n(k(e,o,"0"),10,t,i,!0)),i<0&&r.c[0]&&(e="-"+e)),e},i.valueOf=i.toJSON=function(){var t,e=this,n=e.e;return null===n?e.toString():(t=b(e.c),t=n<=O||n>=C?M(t,n):k(t,n,"0"),e.s<0?"-"+t:t)},i._isBigNumber=!0,null!=t&&B.set(t),B}function y(t){var e=0|t;return t>0||t===e?e:e-1}function b(t){for(var e,n,r=1,i=t.length,o=t[0]+"";rl^n?1:-1;for(s=(u=i.length)<(l=o.length)?u:l,a=0;ao[a]^n?1:-1;return u==l?0:u>l^n?1:-1}function _(t,e,n,r){if(tn||t!==(t<0?s(t):u(t)))throw Error(l+(r||"Argument")+("number"==typeof t?tn?" out of range: ":" not an integer: ":" not a primitive number: ")+t)}function x(t){return"[object Array]"==Object.prototype.toString.call(t)}function S(t){var e=t.c.length-1;return y(t.e/f)==e&&t.c[e]%2!=0}function M(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function k(t,e,n){var r,i;if(e<0){for(i=n+".";++e;i+=n);t=i+t}else if(r=t.length,++e>r){for(i=n,e-=r;--e;i+=n);t+=i}else e{const r=n(1022);function i(t,e,n){const r=t[e]+t[n];let i=t[e+1]+t[n+1];r>=4294967296&&i++,t[e]=r,t[e+1]=i}function o(t,e,n,r){let i=t[e]+n;n<0&&(i+=4294967296);let o=t[e+1]+r;i>=4294967296&&o++,t[e]=i,t[e+1]=o}function a(t,e){return t[e]^t[e+1]<<8^t[e+2]<<16^t[e+3]<<24}function s(t,e,n,r,a,s){const u=f[a],l=f[a+1],c=f[s],d=f[s+1];i(h,t,e),o(h,t,u,l);let p=h[r]^h[t],m=h[r+1]^h[t+1];h[r]=m,h[r+1]=p,i(h,n,r),p=h[e]^h[n],m=h[e+1]^h[n+1],h[e]=p>>>24^m<<8,h[e+1]=m>>>24^p<<8,i(h,t,e),o(h,t,c,d),p=h[r]^h[t],m=h[r+1]^h[t+1],h[r]=p>>>16^m<<16,h[r+1]=m>>>16^p<<16,i(h,n,r),p=h[e]^h[n],m=h[e+1]^h[n+1],h[e]=m>>>31^p<<1,h[e+1]=p>>>31^m<<1}const u=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),l=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],c=new Uint8Array(l.map((function(t){return 2*t}))),h=new Uint32Array(32),f=new Uint32Array(32);function d(t,e){let n=0;for(n=0;n<16;n++)h[n]=t.h[n],h[n+16]=u[n];for(h[24]=h[24]^t.t,h[25]=h[25]^t.t/4294967296,e&&(h[28]=~h[28],h[29]=~h[29]),n=0;n<32;n++)f[n]=a(t.b,4*n);for(n=0;n<12;n++)s(0,8,16,24,c[16*n+0],c[16*n+1]),s(2,10,18,26,c[16*n+2],c[16*n+3]),s(4,12,20,28,c[16*n+4],c[16*n+5]),s(6,14,22,30,c[16*n+6],c[16*n+7]),s(0,10,20,30,c[16*n+8],c[16*n+9]),s(2,12,22,24,c[16*n+10],c[16*n+11]),s(4,14,16,26,c[16*n+12],c[16*n+13]),s(6,8,18,28,c[16*n+14],c[16*n+15]);for(n=0;n<16;n++)t.h[n]=t.h[n]^h[n]^h[n+16]}function p(t,e){if(0===t||t>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(e&&e.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");const n={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:t};for(let i=0;i<16;i++)n.h[i]=u[i];const r=e?e.length:0;return n.h[0]^=16842752^r<<8^t,e&&(m(n,e),n.c=128),n}function m(t,e){for(let n=0;n>2]>>8*(3&n);return e}function g(t,e,n){n=n||64,t=r.normalizeInput(t);const i=p(n,e);return m(i,t),v(i)}function y(t,e,n){const i=g(t,e,n);return r.toHex(i)}t.exports={blake2b:g,blake2bHex:y,blake2bInit:p,blake2bUpdate:m,blake2bFinal:v}},8855:(t,e,n)=>{const r=n(1022);function i(t,e){return t[e]^t[e+1]<<8^t[e+2]<<16^t[e+3]<<24}function o(t,e,n,r,i,o){l[t]=l[t]+l[e]+i,l[r]=a(l[r]^l[t],16),l[n]=l[n]+l[r],l[e]=a(l[e]^l[n],12),l[t]=l[t]+l[e]+o,l[r]=a(l[r]^l[t],8),l[n]=l[n]+l[r],l[e]=a(l[e]^l[n],7)}function a(t,e){return t>>>e^t<<32-e}const s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),c=new Uint32Array(16);function h(t,e){let n=0;for(n=0;n<8;n++)l[n]=t.h[n],l[n+8]=s[n];for(l[12]^=t.t,l[13]^=t.t/4294967296,e&&(l[14]=~l[14]),n=0;n<16;n++)c[n]=i(t.b,4*n);for(n=0;n<10;n++)o(0,4,8,12,c[u[16*n+0]],c[u[16*n+1]]),o(1,5,9,13,c[u[16*n+2]],c[u[16*n+3]]),o(2,6,10,14,c[u[16*n+4]],c[u[16*n+5]]),o(3,7,11,15,c[u[16*n+6]],c[u[16*n+7]]),o(0,5,10,15,c[u[16*n+8]],c[u[16*n+9]]),o(1,6,11,12,c[u[16*n+10]],c[u[16*n+11]]),o(2,7,8,13,c[u[16*n+12]],c[u[16*n+13]]),o(3,4,9,14,c[u[16*n+14]],c[u[16*n+15]]);for(n=0;n<8;n++)t.h[n]^=l[n]^l[n+8]}function f(t,e){if(!(t>0&&t<=32))throw new Error("Incorrect output length, should be in [1, 32]");const n=e?e.length:0;if(e&&!(n>0&&n<=32))throw new Error("Incorrect key length, should be in [1, 32]");const r={h:new Uint32Array(s),b:new Uint8Array(64),c:0,t:0,outlen:t};return r.h[0]^=16842752^n<<8^t,n>0&&(d(r,e),r.c=64),r}function d(t,e){for(let n=0;n>2]>>8*(3&n)&255;return e}function m(t,e,n){n=n||32,t=r.normalizeInput(t);const i=f(n,e);return d(i,t),p(i)}function v(t,e,n){const i=m(t,e,n);return r.toHex(i)}t.exports={blake2s:m,blake2sHex:v,blake2sInit:f,blake2sUpdate:d,blake2sFinal:p}},1161:(t,e,n)=>{const r=n(7318),i=n(8855);t.exports={blake2b:r.blake2b,blake2bHex:r.blake2bHex,blake2bInit:r.blake2bInit,blake2bUpdate:r.blake2bUpdate,blake2bFinal:r.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},1022:(t,e,n)=>{var i=n(8764)["Buffer"];const o="Input must be an string, Buffer or Uint8Array";function a(t){let e;if(t instanceof Uint8Array)e=t;else if(t instanceof i)e=new Uint8Array(t);else{if("string"!==typeof t)throw new Error(o);e=new Uint8Array(i.from(t,"utf8"))}return e}function s(t){return Array.prototype.map.call(t,(function(t){return(t<16?"0":"")+t.toString(16)})).join("")}function u(t){return(4294967296+t).toString(16).substring(1)}function l(t,e,n){let i="\n"+t+" = ";for(let r=0;r{var r=null;"undefined"!==typeof WebSocket?r=WebSocket:"undefined"!==typeof MozWebSocket?r=MozWebSocket:"undefined"!==typeof n.g?r=n.g.WebSocket||n.g.MozWebSocket:"undefined"!==typeof window?r=window.WebSocket||window.MozWebSocket:"undefined"!==typeof self&&(r=self.WebSocket||self.MozWebSocket),t.exports=r},9992:(t,e,n)=>{"use strict";const r=n(7279),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),u=Symbol("maxAge"),l=Symbol("dispose"),c=Symbol("noDisposeOnSet"),h=Symbol("lruList"),f=Symbol("cache"),d=Symbol("updateAgeOnGet"),p=()=>1;class m{constructor(t){if("number"===typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!==typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[i]=t.max||1/0;const e=t.length||p;if(this[a]="function"!==typeof e?p:e,this[s]=t.stale||!1,t.maxAge&&"number"!==typeof t.maxAge)throw new TypeError("maxAge must be a number");this[u]=t.maxAge||0,this[l]=t.dispose,this[c]=t.noDisposeOnSet||!1,this[d]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!==typeof t||t<0)throw new TypeError("max must be a non-negative number");this[i]=t||1/0,y(this)}get max(){return this[i]}set allowStale(t){this[s]=!!t}get allowStale(){return this[s]}set maxAge(t){if("number"!==typeof t)throw new TypeError("maxAge must be a non-negative number");this[u]=t,y(this)}get maxAge(){return this[u]}set lengthCalculator(t){"function"!==typeof t&&(t=p),t!==this[a]&&(this[a]=t,this[o]=0,this[h].forEach((t=>{t.length=this[a](t.value,t.key),this[o]+=t.length}))),y(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[h].length}rforEach(t,e){e=e||this;for(let n=this[h].tail;null!==n;){const r=n.prev;_(this,t,n,e),n=r}}forEach(t,e){e=e||this;for(let n=this[h].head;null!==n;){const r=n.next;_(this,t,n,e),n=r}}keys(){return this[h].toArray().map((t=>t.key))}values(){return this[h].toArray().map((t=>t.value))}reset(){this[l]&&this[h]&&this[h].length&&this[h].forEach((t=>this[l](t.key,t.value))),this[f]=new Map,this[h]=new r,this[o]=0}dump(){return this[h].map((t=>!g(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[h]}set(t,e,n){if(n=n||this[u],n&&"number"!==typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,s=this[a](e,t);if(this[f].has(t)){if(s>this[i])return b(this,this[f].get(t)),!1;const a=this[f].get(t),u=a.value;return this[l]&&(this[c]||this[l](t,u.value)),u.now=r,u.maxAge=n,u.value=e,this[o]+=s-u.length,u.length=s,this.get(t),y(this),!0}const d=new w(t,e,s,r,n);return d.length>this[i]?(this[l]&&this[l](t,e),!1):(this[o]+=d.length,this[h].unshift(d),this[f].set(t,this[h].head),y(this),!0)}has(t){if(!this[f].has(t))return!1;const e=this[f].get(t).value;return!g(this,e)}get(t){return v(this,t,!0)}peek(t){return v(this,t,!1)}pop(){const t=this[h].tail;return t?(b(this,t),t.value):null}del(t){b(this,this[f].get(t))}load(t){this.reset();const e=Date.now();for(let n=t.length-1;n>=0;n--){const r=t[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const t=i-e;t>0&&this.set(r.k,r.v,t)}}}prune(){this[f].forEach(((t,e)=>v(this,e,!1)))}}const v=(t,e,n)=>{const r=t[f].get(e);if(r){const e=r.value;if(g(t,e)){if(b(t,r),!t[s])return}else n&&(t[d]&&(r.value.now=Date.now()),t[h].unshiftNode(r));return e.value}},g=(t,e)=>{if(!e||!e.maxAge&&!t[u])return!1;const n=Date.now()-e.now;return e.maxAge?n>e.maxAge:t[u]&&n>t[u]},y=t=>{if(t[o]>t[i])for(let e=t[h].tail;t[o]>t[i]&&null!==e;){const n=e.prev;b(t,e),e=n}},b=(t,e)=>{if(e){const n=e.value;t[l]&&t[l](n.key,n.value),t[o]-=n.length,t[f].delete(n.key),t[h].removeNode(e)}};class w{constructor(t,e,n,r,i){this.key=t,this.value=e,this.length=n,this.now=r,this.maxAge=i||0}}const _=(t,e,n,r)=>{let i=n.value;g(t,i)&&(b(t,n),t[s]||(i=void 0)),i&&e.call(r,i.value,i.key,t)};t.exports=m},862:t=>{"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},7279:(t,e,n)=>{"use strict";function r(t){var e=this;if(e instanceof r||(e=new r),e.tail=null,e.head=null,e.length=0,t&&"function"===typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n1)n=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=t(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(t,e){var n,r=this.tail;if(arguments.length>1)n=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=t(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var t=new Array(this.length),e=0,n=this.head;null!==n;e++)t[e]=n.value,n=n.next;return t},r.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,n=this.tail;null!==n;e++)t[e]=n.value,n=n.prev;return t},r.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var n=new r;if(ethis.length&&(e=this.length);for(var i=0,o=this.head;null!==o&&ithis.length&&(e=this.length);for(var i=this.length,o=this.tail;null!==o&&i>e;i--)o=o.prev;for(;null!==o&&i>t;i--,o=o.prev)n.push(o.value);return n},r.prototype.reverse=function(){for(var t=this.head,e=this.tail,n=t;null!==n;n=n.prev){var r=n.prev;n.prev=n.next,n.next=r}return this.head=e,this.tail=t,this};try{n(862)(r)}catch(s){}},2253:(t,e,n)=>{"use strict";function r(t){return"string"===typeof t&&/^[0-9]+$/.test(t)}function i(t){return"string"===typeof t&&/^0x[0-9a-f]+$/i.test(t)}function o(t,e){return!("string"!==typeof t||!/^0x[0-9a-f]*$/i.test(t))&&(e?t.length===2*e+2:t.length%2===0)}function a(t,e){return!(t<0||!Number.isInteger(t))&&(!e||t{"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version="4.0.27-5"},8707:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(4759),i="0x0000000000000000000000000000000000000000";e.AddressZero=i;var o="0x0000000000000000000000000000000000000000000000000000000000000000";e.HashZero=o;var a="Ξ";e.EtherSymbol=a;var s=r.bigNumberify(-1);e.NegativeOne=s;var u=r.bigNumberify(0);e.Zero=u;var l=r.bigNumberify(1);e.One=l;var c=r.bigNumberify(2);e.Two=c;var h=r.bigNumberify("1000000000000000000");e.WeiPerEther=h;var f=r.bigNumberify("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");e.MaxUint256=f},6459:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(3609);e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.MISSING_NEW="MISSING_NEW",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.NUMERIC_FAULT="NUMERIC_FAULT",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION";var o=!1,a=!1;function s(t,n,r){if(a)throw new Error("unknown error");n||(n=e.UNKNOWN_ERROR),r||(r={});var o=[];Object.keys(r).forEach((function(t){try{o.push(t+"="+JSON.stringify(r[t]))}catch(u){o.push(t+"="+JSON.stringify(r[t].toString()))}})),o.push("version="+i.version);var s=t;o.length&&(t+=" ("+o.join(", ")+")");var u=new Error(t);throw u.reason=s,u.code=n,Object.keys(r).forEach((function(t){u[t]=r[t]})),u}function u(t,n){t instanceof n||s("missing new",e.MISSING_NEW,{name:n.name})}function l(t,n,r){r||(r=""),tn&&s("too many arguments"+r,e.UNEXPECTED_ARGUMENT,{count:t,expectedCount:n})}function c(t,n){o&&s("error censorship permanent",e.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),a=!!t,o=!!n}function h(){try{if(["NFD","NFC","NFKD","NFKC"].forEach((function(t){try{"test".normalize(t)}catch(e){throw new Error("missing "+t)}})),String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){s("platform missing String.prototype.normalize",e.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:t.message})}}e.throwError=s,e.checkNew=u,e.checkArgumentCount=l,e.setCensorship=c,e.checkNormalize=h;var f={debug:1,default:2,info:2,warn:3,error:4,off:5},d=f["default"];function p(t){var e=f[t];null!=e?d=e:v("invliad log level - "+t)}function m(t,e){d>f[t]||r.log.apply(r,e)}function v(){for(var t=[],e=0;e2)throw new Error("invalid signature");if(!n[1].match(/^[0-9]+$/))throw new Error("invalid signature gas");e.gas=u.bigNumberify(n[1]),t=n[0]}n=t.split(" returns ");var r=n[0].match(m);if(!r)throw new Error("invalid signature");if(e.name=r[1].trim(),!e.name.match(v))throw new Error('invalid identifier: "'+r[1]+'"');if(V(r[2]).forEach((function(t){e.inputs.push(y(t))})),r[3].split(" ").forEach((function(t){switch(t){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:a.info("unknown modifier: "+t)}})),n.length>1){var i=n[1].match(m);if(""!=i[1].trim()||""!=i[3].trim())throw new Error("unexpected tokens");V(i[2]).forEach((function(t){e.outputs.push(y(t))}))}if("constructor"===e.name){if(e.type="constructor",e.outputs.length)throw new Error("constructor may not have outputs");delete e.name,delete e.outputs}return e}function _(t){return y(t,!0)}function x(t){return H(e.defaultCoerceFunc,t).type}function S(t){return t.name+"("+t.inputs.map((function(t){return x(t)})).join(",")+")"}function M(t){if("string"===typeof t)return t=t.replace(/\s/g," "),t=t.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),t=t.trim(),"event "===t.substring(0,6)?b(t.substring(6).trim()):("function "===t.substring(0,9)&&(t=t.substring(9)),w(t.trim()));throw new Error("unknown signature")}e.parseParamType=_,e.formatParamType=x,e.formatSignature=S,e.parseSignature=M;var k=function(){function t(t,e,n,r,i){this.coerceFunc=t,this.name=e,this.type=n,this.localName=r,this.dynamic=i}return t}(),E=function(t){function e(e){var n=t.call(this,e.coerceFunc,e.name,e.type,void 0,e.dynamic)||this;return h.defineReadOnly(n,"coder",e),n}return r(e,t),e.prototype.encode=function(t){return this.coder.encode(t)},e.prototype.decode=function(t,e){return this.coder.decode(t,e)},e}(k),A=function(t){function e(e,n){return t.call(this,e,"null","",n,!1)||this}return r(e,t),e.prototype.encode=function(t){return l.arrayify([])},e.prototype.decode=function(t,e){if(e>t.length)throw new Error("invalid null");return{consumed:0,value:this.coerceFunc("null",void 0)}},e}(k),O=function(t){function e(e,n,r,i){var o=this,a=(r?"int":"uint")+8*n;return o=t.call(this,e,a,a,i,!1)||this,o.size=n,o.signed=r,o}return r(e,t),e.prototype.encode=function(t){try{var e=u.bigNumberify(t);if(this.signed){var n=o.MaxUint256.maskn(8*this.size-1);if(e.gt(n))throw new Error("out-of-bounds");if(n=n.add(o.One).mul(o.NegativeOne),e.lt(n))throw new Error("out-of-bounds")}else if(e.lt(o.Zero)||e.gt(o.MaxUint256.maskn(8*this.size)))throw new Error("out-of-bounds");return e=e.toTwos(8*this.size).maskn(8*this.size),this.signed&&(e=e.fromTwos(8*this.size).toTwos(256)),l.padZeros(l.arrayify(e),32)}catch(r){a.throwError("invalid number value",a.INVALID_ARGUMENT,{arg:this.localName,coderType:this.name,value:t})}return null},e.prototype.decode=function(t,e){t.length=0?r:"")+"]",s=-1===r||n.dynamic;return o=t.call(this,e,"array",a,i,s)||this,o.coder=n,o.length=r,o}return r(e,t),e.prototype.encode=function(t){Array.isArray(t)||a.throwError("expected array value",a.INVALID_ARGUMENT,{arg:this.localName,coderType:"array",value:t});var e=this.length,n=new Uint8Array(0);-1===e&&(e=t.length,n=C.encode(e)),a.checkArgumentCount(e,t.length," in coder array"+(this.localName?" "+this.localName:""));for(var r=[],i=0;i256||i%8!==0)&&a.throwError("invalid "+r[1]+" bit length",a.INVALID_ARGUMENT,{arg:"param",value:e}),new O(t,i/8,"int"===r[1],e.name)}r=e.type.match(f);if(r){i=parseInt(r[1]);return(0===i||i>32)&&a.throwError("invalid bytes length",a.INVALID_ARGUMENT,{arg:"param",value:e}),new T(t,i,e.name)}r=e.type.match(p);if(r){i=parseInt(r[2]||"-1");return e=h.shallowCopy(e),e.type=r[1],e=h.deepCopy(e),new F(t,H(t,e),i,e.name)}return"tuple"===e.type.substring(0,5)?q(t,e.components,e.name):""===e.type?new A(t,e.name):(a.throwError("invalid type",a.INVALID_ARGUMENT,{arg:"type",value:e.type}),null)}var G=function(){function t(n){a.checkNew(this,t),n||(n=e.defaultCoerceFunc),h.defineReadOnly(this,"coerceFunc",n)}return t.prototype.encode=function(t,e){t.length!==e.length&&a.throwError("types/values length mismatch",a.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});var n=[];return t.forEach((function(t){var e=null;e="string"===typeof t?y(t):t,n.push(H(this.coerceFunc,e))}),this),l.hexlify(new U(this.coerceFunc,n,"_").encode(e))},t.prototype.decode=function(t,e){var n=[];return t.forEach((function(t){var e=null;e="string"===typeof t?y(t):h.deepCopy(t),n.push(H(this.coerceFunc,e))}),this),new U(this.coerceFunc,n,"_").decode(l.arrayify(e),0).value},t}();e.AbiCoder=G,e.defaultAbiCoder=new G},5638:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(5697)),o=n(8458),a=n(918),s=n(6100),u=n(6459);function l(t){"string"===typeof t&&t.match(/^0x[0-9A-Fa-f]{40}$/)||u.throwError("invalid address",u.INVALID_ARGUMENT,{arg:"address",value:t}),t=t.toLowerCase();for(var e=t.substring(2).split(""),n=new Uint8Array(40),r=0;r<40;r++)n[r]=e[r].charCodeAt(0);n=o.arrayify(a.keccak256(n));for(var i=0;i<40;i+=2)n[i>>1]>>4>=8&&(e[i]=e[i].toUpperCase()),(15&n[i>>1])>=8&&(e[i+1]=e[i+1].toUpperCase());return"0x"+e.join("")}var c=9007199254740991;function h(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}for(var f={},d=0;d<10;d++)f[String(d)]=String(d);for(d=0;d<26;d++)f[String.fromCharCode(65+d)]=String(10+d);var p=Math.floor(h(c));function m(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";var e="";t.split("").forEach((function(t){e+=f[t]}));while(e.length>=p){var n=e.substring(0,p);e=parseInt(n,10)%97+e.substring(n.length)}var r=String(98-parseInt(e,10)%97);while(r.length<2)r="0"+r;return r}function v(t,e){void 0===e&&(e=!0);var n=null;if("string"!==typeof t&&u.throwError("invalid address",u.INVALID_ARGUMENT,{arg:"address",value:t}),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e?(n=l(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&n!==t&&u.throwError("bad address checksum",u.INVALID_ARGUMENT,{arg:"address",value:t})):n=t;else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){t.substring(2,4)!==m(t)&&u.throwError("bad icap checksum",u.INVALID_ARGUMENT,{arg:"address",value:t}),n=new i.default.BN(t.substring(4),36).toString(16);while(n.length<40)n="0"+n;n=e?l("0x"+n):"0x"+n}else u.throwError("invalid address",u.INVALID_ARGUMENT,{arg:"address",value:t});return n}function g(t){var e=new i.default.BN(v(t).substring(2),16).toString(36).toUpperCase();while(e.length<30)e="0"+e;return"XE"+m("XE00"+e)+e}function y(t){if(!t.from)throw new Error("missing from address");var e=t.nonce;return v("0x"+a.keccak256(s.encode([v(t.from),o.stripZeros(o.hexlify(e))])).substring(26))}e.getAddress=v,e.getIcapAddress=g,e.getContractAddress=y},4759:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e};Object.defineProperty(e,"__esModule",{value:!0});var o=r(n(5697)),a=n(8458),s=n(8184),u=i(n(6459)),l=new o.default.BN(-1);function c(t){var e=t.toString(16);return"-"===e[0]?e.length%2===0?"-0x0"+e.substring(1):"-0x"+e.substring(1):e.length%2===1?"0x0"+e:"0x"+e}function h(t){return d(m(t))}function f(t){return new p(c(t))}function d(t){var e=t._hex;return"-"===e[0]?new o.default.BN(e.substring(3),16).mul(l):new o.default.BN(e.substring(2),16)}var p=function(){function t(e){if(u.checkNew(this,t),s.setType(this,"BigNumber"),"string"===typeof e)a.isHexString(e)?("0x"==e&&(e="0x0"),s.defineReadOnly(this,"_hex",e)):"-"===e[0]&&a.isHexString(e.substring(1))?s.defineReadOnly(this,"_hex",e):e.match(/^-?[0-9]*$/)?(""==e&&(e="0"),s.defineReadOnly(this,"_hex",c(new o.default.BN(e)))):u.throwError("invalid BigNumber string value",u.INVALID_ARGUMENT,{arg:"value",value:e});else if("number"===typeof e){parseInt(String(e))!==e&&u.throwError("underflow",u.NUMERIC_FAULT,{operation:"setValue",fault:"underflow",value:e,outputValue:parseInt(String(e))});try{s.defineReadOnly(this,"_hex",c(new o.default.BN(e)))}catch(n){u.throwError("overflow",u.NUMERIC_FAULT,{operation:"setValue",fault:"overflow",details:n.message})}}else e instanceof t?s.defineReadOnly(this,"_hex",e._hex):e.toHexString?s.defineReadOnly(this,"_hex",c(h(e.toHexString()))):e._hex&&a.isHexString(e._hex)?s.defineReadOnly(this,"_hex",e._hex):a.isArrayish(e)?s.defineReadOnly(this,"_hex",c(new o.default.BN(a.hexlify(e).substring(2),16))):u.throwError("invalid BigNumber value",u.INVALID_ARGUMENT,{arg:"value",value:e})}return t.prototype.fromTwos=function(t){return f(d(this).fromTwos(t))},t.prototype.toTwos=function(t){return f(d(this).toTwos(t))},t.prototype.abs=function(){return"-"===this._hex[0]?f(d(this).mul(l)):this},t.prototype.add=function(t){return f(d(this).add(h(t)))},t.prototype.sub=function(t){return f(d(this).sub(h(t)))},t.prototype.div=function(t){var e=m(t);return e.isZero()&&u.throwError("division by zero",u.NUMERIC_FAULT,{operation:"divide",fault:"division by zero"}),f(d(this).div(h(t)))},t.prototype.mul=function(t){return f(d(this).mul(h(t)))},t.prototype.mod=function(t){return f(d(this).mod(h(t)))},t.prototype.pow=function(t){return f(d(this).pow(h(t)))},t.prototype.maskn=function(t){return f(d(this).maskn(t))},t.prototype.eq=function(t){return d(this).eq(h(t))},t.prototype.lt=function(t){return d(this).lt(h(t))},t.prototype.lte=function(t){return d(this).lte(h(t))},t.prototype.gt=function(t){return d(this).gt(h(t))},t.prototype.gte=function(t){return d(this).gte(h(t))},t.prototype.isZero=function(){return d(this).isZero()},t.prototype.toNumber=function(){try{return d(this).toNumber()}catch(t){u.throwError("overflow",u.NUMERIC_FAULT,{operation:"setValue",fault:"overflow",details:t.message})}return null},t.prototype.toString=function(){return d(this).toString(10)},t.prototype.toHexString=function(){return this._hex},t.isBigNumber=function(t){return s.isType(t,"BigNumber")},t}();function m(t){return p.isBigNumber(t)?t:new p(t)}e.BigNumber=p,e.bigNumberify=m},8458:function(t,e,n){"use strict";var r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(6459));function o(t){return!!t.toHexString}function a(t){return t.slice||(t.slice=function(){var e=Array.prototype.slice.call(arguments);return a(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function s(t){if(!t||parseInt(String(t.length))!=t.length||"string"===typeof t)return!1;for(var e=0;e=256||parseInt(String(n))!=n)return!1}return!0}function u(t){if(null==t&&i.throwError("cannot convert null value to array",i.INVALID_ARGUMENT,{arg:"value",value:t}),o(t)&&(t=t.toHexString()),"string"===typeof t){var e=t.match(/^(0x)?[0-9a-fA-F]*$/);e||i.throwError("invalid hexidecimal string",i.INVALID_ARGUMENT,{arg:"value",value:t}),"0x"!==e[1]&&i.throwError("hex string must have 0x prefix",i.INVALID_ARGUMENT,{arg:"value",value:t}),t=t.substring(2),t.length%2&&(t="0"+t);for(var n=[],r=0;r=9007199254740991&&i.throwError("out-of-range",i.NUMERIC_FAULT,{operartion:"hexlify",fault:"out-of-safe-range"});var e="";while(t)e=d[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("string"===typeof t){var n=t.match(/^(0x)?[0-9a-fA-F]*$/);return n||i.throwError("invalid hexidecimal string",i.INVALID_ARGUMENT,{arg:"value",value:t}),"0x"!==n[1]&&i.throwError("hex string must have 0x prefix",i.INVALID_ARGUMENT,{arg:"value",value:t}),t.length%2&&(t="0x0"+t.substring(2)),t}if(s(t)){for(var r=[],a=0;a>4]+d[15&u])}return"0x"+r.join("")}return i.throwError("invalid hexlify value",null,{arg:"value",value:t}),"never"}function m(t){return f(t)&&t.length%2===0?(t.length-2)/2:null}function v(t,e,n){return f(t)||i.throwError("invalid hex data",i.INVALID_ARGUMENT,{arg:"value",value:t}),t.length%2!==0&&i.throwError("hex data length must be even",i.INVALID_ARGUMENT,{arg:"value",value:t}),e=2+2*e,null!=n?"0x"+t.substring(e,2+2*n):"0x"+t.substring(e)}function g(t){f(t)||i.throwError("invalid hex string",i.INVALID_ARGUMENT,{arg:"value",value:t});while(t.length>3&&"0x0"===t.substring(0,3))t="0x"+t.substring(3);return t}function y(t,e){f(t)||i.throwError("invalid hex string",i.INVALID_ARGUMENT,{arg:"value",value:t});while(t.length<2*e+2)t="0x0"+t.substring(2);return t}function b(t){return t&&null!=t.r&&null!=t.s}function w(t){var e=0,n="0x",r="0x";if(b(t)){null==t.v&&null==t.recoveryParam&&i.throwError("at least on of recoveryParam or v must be specified",i.INVALID_ARGUMENT,{argument:"signature",value:t}),n=y(t.r,32),r=y(t.s,32),e=t.v,"string"===typeof e&&(e=parseInt(e,16));var o=t.recoveryParam;null==o&&null!=t.v&&(o=1-e%2),e=27+o}else{var a=u(t);if(65!==a.length)throw new Error("invalid signature");n=p(a.slice(0,32)),r=p(a.slice(32,64)),e=a[64],27!==e&&28!==e&&(e=27+e%2)}return{r:n,s:r,recoveryParam:e-27,v:e}}function _(t){return t=w(t),p(l([t.r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}e.hexlify=p,e.hexDataLength=m,e.hexDataSlice=v,e.hexStripZeros=g,e.hexZeroPad=y,e.splitSignature=w,e.joinSignature=_},918:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(747),i=n(8458);function o(t){return"0x"+r.keccak_256(i.arrayify(t))}e.keccak256=o},8184:function(t,e,n){"use strict";var r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(6459));function o(t,e,n){Object.defineProperty(t,e,{enumerable:!0,value:n,writable:!1})}function a(t,e){Object.defineProperty(t,"_ethersType",{configurable:!1,value:e,writable:!1})}function s(t,e){return t&&t._ethersType===e}function u(t){var e={},n=[];return Object.keys(t).forEach((function(r){var i=t[r];i instanceof Promise?n.push(i.then((function(t){return e[r]=t,null}))):e[r]=i})),Promise.all(n).then((function(){return e}))}function l(t,e){t&&"object"===typeof t||i.throwError("invalid object",i.INVALID_ARGUMENT,{argument:"object",value:t}),Object.keys(t).forEach((function(n){e[n]||i.throwError("invalid object key - "+n,i.INVALID_ARGUMENT,{argument:"transaction",value:t,key:n})}))}function c(t){var e={};for(var n in t)e[n]=t[n];return e}e.defineReadOnly=o,e.setType=a,e.isType=s,e.resolveProperties=u,e.checkProperties=l,e.shallowCopy=c;var h={boolean:!0,number:!0,string:!0};function f(t,e){if(void 0===t||null===t||h[typeof t])return t;if(Array.isArray(t)){var n=t.map((function(t){return f(t,e)}));return e&&Object.freeze(n),n}if("object"===typeof t){if(s(t,"BigNumber"))return t;if(s(t,"Description"))return t;if(s(t,"Indexed"))return t;n={};for(var r in t){var i=t[r];void 0!==i&&o(n,r,f(i,e))}return e&&Object.freeze(n),n}if("function"===typeof t)return t;throw new Error("Cannot deepCopy "+typeof t)}function d(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}function p(t){return function(e){d(e,t),o(e,"inherits",p(e))}}e.deepCopy=f,e.inheritable=p},6100:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(8458);function i(t){var e=[];while(t)e.unshift(255&t),t>>=8;return e}function o(t,e,n){for(var r=0,i=0;ie+1+r)throw new Error("invalid rlp")}return{consumed:1+r,result:i}}function l(t,e){if(0===t.length)throw new Error("invalid rlp data");if(t[e]>=248){var n=t[e]-247;if(e+1+n>t.length)throw new Error("too short");var i=o(t,e+1,n);if(e+1+n+i>t.length)throw new Error("to short");return u(t,e,e+1+n,n+i)}if(t[e]>=192){i=t[e]-192;if(e+1+i>t.length)throw new Error("invalid rlp data");return u(t,e,e+1,i)}if(t[e]>=184){n=t[e]-183;if(e+1+n>t.length)throw new Error("invalid rlp data");i=o(t,e+1,n);if(e+1+n+i>t.length)throw new Error("invalid rlp data");var a=r.hexlify(t.slice(e+1+n,e+1+n+i));return{consumed:1+n+i,result:a}}if(t[e]>=128){i=t[e]-128;if(e+1+i>t.length)throw new Error("invlaid rlp data");a=r.hexlify(t.slice(e+1,e+1+i));return{consumed:1+i,result:a}}return{consumed:1,result:r.hexlify(t[e])}}function c(t){var e=r.arrayify(t),n=l(e,0);if(n.consumed!==e.length)throw new Error("invalid rlp data");return n.result}e.encode=s,e.decode=c},1165:(t,e,n)=>{"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(8707),o=n(6459),a=n(8458);function s(t,e){void 0===e&&(e=r.current),e!=r.current&&(o.checkNormalize(),t=t.normalize(e));for(var n=[],i=0;i>6|192),n.push(63&s|128);else if(55296==(64512&s)){i++;var u=t.charCodeAt(i);if(i>=t.length||56320!==(64512&u))throw new Error("invalid utf-8 string");s=65536+((1023&s)<<10)+(1023&u),n.push(s>>18|240),n.push(s>>12&63|128),n.push(s>>6&63|128),n.push(63&s|128)}else n.push(s>>12|224),n.push(s>>6&63|128),n.push(63&s|128)}return a.arrayify(n)}function u(t,e){t=a.arrayify(t);var n="",r=0;while(r>7!==0){var o=null,s=null;if(192===(224&i))o=1,s=127;else if(224===(240&i))o=2,s=2047;else{if(240!==(248&i)){if(!e){if(128===(192&i))throw new Error("invalid utf8 byte sequence; unexpected continuation byte");throw new Error("invalid utf8 byte sequence; invalid prefix")}continue}o=3,s=65535}if(r+o>t.length){if(!e)throw new Error("invalid utf8 byte sequence; too short");for(;r>6!==2)break}else{for(var u=i&(1<<8-o-1)-1,l=0;l1114111){if(!e)throw new Error("invalid utf8 byte sequence; out-of-range")}else if(u>=55296&&u<=57343){if(!e)throw new Error("invalid utf8 byte sequence; utf-16 surrogate")}else u<=65535?n+=String.fromCharCode(u):(u-=65536,n+=String.fromCharCode(55296+(u>>10&1023),56320+(1023&u)));else if(!e)throw new Error("invalid utf8 byte sequence; invalid continuation byte")}}else n+=String.fromCharCode(i)}return n}function l(t){var e=s(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return a.hexlify(a.concat([e,i.HashZero]).slice(0,32))}function c(t){var e=a.arrayify(t);if(32!==e.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==e[31])throw new Error("invalid bytes32 sdtring - no null terminator");var n=31;while(0===e[n-1])n--;return u(e.slice(0,n))}(function(t){t["current"]="",t["NFC"]="NFC",t["NFD"]="NFD",t["NFKC"]="NFKC",t["NFKD"]="NFKD"})(r=e.UnicodeNormalizationForm||(e.UnicodeNormalizationForm={})),e.toUtf8Bytes=s,e.toUtf8String=u,e.formatBytes32String=l,e.parseBytes32String=c},634:function(t,e,n){var r;(function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,u=Math.floor,l="[BigNumber Error] ",c=l+"Number primitive has more than 15 significant digits: ",h=1e14,f=14,d=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],m=1e7,v=1e9;function g(t){var e,n,r,i=B.prototype={constructor:B,toString:null,valueOf:null},o=new B(1),E=20,A=4,O=-7,C=21,N=-1e7,T=1e7,D=!1,I=1,R=0,P={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:" ",fractionGroupSize:0},j="0123456789abcdefghijklmnopqrstuvwxyz";function B(t,e){var i,o,s,l,h,p,m,v,g=this;if(!(g instanceof B))return new B(t,e);if(null==e){if(t instanceof B)return g.s=t.s,g.e=t.e,void(g.c=(t=t.c)?t.slice():t);if(p="number"==typeof t,p&&0*t==0){if(g.s=1/t<0?(t=-t,-1):1,t===~~t){for(l=0,h=t;h>=10;h/=10,l++);return g.e=l,void(g.c=[t])}v=t+""}else{if(!a.test(v=t+""))return r(g,v,p);g.s=45==v.charCodeAt(0)?(v=v.slice(1),-1):1}(l=v.indexOf("."))>-1&&(v=v.replace(".","")),(h=v.search(/e/i))>0?(l<0&&(l=h),l+=+v.slice(h+1),v=v.substring(0,h)):l<0&&(l=v.length)}else{if(_(e,2,j.length,"Base"),v=t+"",10==e)return g=new B(t instanceof B?t:v),U(g,E+g.e+1,A);if(p="number"==typeof t,p){if(0*t!=0)return r(g,v,p,e);if(g.s=1/t<0?(v=v.slice(1),-1):1,B.DEBUG&&v.replace(/^0\.0*|\./,"").length>15)throw Error(c+t);p=!1}else g.s=45===v.charCodeAt(0)?(v=v.slice(1),-1):1;for(i=j.slice(0,e),l=h=0,m=v.length;hl){l=m;continue}}else if(!s&&(v==v.toUpperCase()&&(v=v.toLowerCase())||v==v.toLowerCase()&&(v=v.toUpperCase()))){s=!0,h=-1,l=0;continue}return r(g,t+"",p,e)}v=n(v,e,10,g.s),(l=v.indexOf("."))>-1?v=v.replace(".",""):l=v.length}for(h=0;48===v.charCodeAt(h);h++);for(m=v.length;48===v.charCodeAt(--m););if(v=v.slice(h,++m),v){if(m-=h,p&&B.DEBUG&&m>15&&(t>d||t!==u(t)))throw Error(c+g.s*t);if(l=l-h-1,l>T)g.c=g.e=null;else if(ls){if(--e>0)for(u+=".";e--;u+="0");}else if(e+=o-s,e>0)for(o+1==s&&(u+=".");e--;u+="0");return t.s<0&&i?"-"+u:u}function L(t,e){var n,r,i=0;for(x(t[0])&&(t=t[0]),n=new B(t[0]);++i=10;i/=10,r++);return(n=r+n*f-1)>T?t.c=t.e=null:n=10;l/=10,i++);if(o=e-i,o<0)o+=f,a=e,c=v[d=0],m=c/g[i-a-1]%10|0;else if(d=s((o+1)/f),d>=v.length){if(!r)break t;for(;v.length<=d;v.push(0));c=m=0,i=1,o%=f,a=o-f+1}else{for(c=l=v[d],i=1;l>=10;l/=10,i++);o%=f,a=o-f+i,m=a<0?0:c/g[i-a-1]%10|0}if(r=r||e<0||null!=v[d+1]||(a<0?c:c%g[i-a-1]),r=n<4?(m||r)&&(0==n||n==(t.s<0?3:2)):m>5||5==m&&(4==n||r||6==n&&(o>0?a>0?c/g[i-a]:0:v[d-1])%10&1||n==(t.s<0?8:7)),e<1||!v[0])return v.length=0,r?(e-=t.e+1,v[0]=g[(f-e%f)%f],t.e=-e||0):v[0]=t.e=0,t;if(0==o?(v.length=d,l=1,d--):(v.length=d+1,l=g[f-o],v[d]=a>0?u(c/g[i-a]%g[a])*l:0),r)for(;;){if(0==d){for(o=1,a=v[0];a>=10;a/=10,o++);for(a=v[0]+=l,l=1;a>=10;a/=10,l++);o!=l&&(t.e++,v[0]==h&&(v[0]=1));break}if(v[d]+=l,v[d]!=h)break;v[d--]=0,l=1}for(o=v.length;0===v[--o];v.pop());}t.e>T?t.c=t.e=null:t.e>>11),c>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[h]=r[0],n[h+1]=r[1]):(d.push(c%1e14),h+=2);h=a/2}else{if(!crypto.randomBytes)throw D=!1,Error(l+"crypto unavailable");for(n=crypto.randomBytes(a*=7);h=9e15?crypto.randomBytes(7).copy(n,h):(d.push(c%1e14),h+=7);h=a/7}if(!D)for(;h=10;c/=10,h++);hn-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(r,i,o,a,s){var u,l,c,h,f,d,p,m,v=r.indexOf("."),g=E,y=A;for(v>=0&&(h=R,R=0,r=r.replace(".",""),m=new B(i),d=m.pow(r.length-v),R=h,m.c=n(k(b(d.c),d.e,"0"),10,o,t),m.e=m.c.length),p=n(r,i,o,s?(u=j,t):(u=t,j)),c=h=p.length;0==p[--h];p.pop());if(!p[0])return u.charAt(0);if(v<0?--c:(d.c=p,d.e=c,d.s=a,d=e(d,m,g,y,o),p=d.c,f=d.r,c=d.e),l=c+g+1,v=p[l],h=o/2,f=f||l<0||null!=p[l+1],f=y<4?(null!=v||f)&&(0==y||y==(d.s<0?3:2)):v>h||v==h&&(4==y||f||6==y&&1&p[l-1]||y==(d.s<0?8:7)),l<1||!p[0])r=f?k(u.charAt(1),-g,u.charAt(0)):u.charAt(0);else{if(p.length=l,f)for(--o;++p[--l]>o;)p[l]=0,l||(++c,p=[1].concat(p));for(h=p.length;!p[--h];);for(v=0,r="";v<=h;r+=u.charAt(p[v++]));r=k(r,c,u.charAt(0))}return r}}(),e=function(){function t(t,e,n){var r,i,o,a,s=0,u=t.length,l=e%m,c=e/m|0;for(t=t.slice();u--;)o=t[u]%m,a=t[u]/m|0,r=c*o+a*l,i=l*o+r%m*m+s,s=(i/n|0)+(r/m|0)+c*a,t[u]=i%n;return s&&(t=[s].concat(t)),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]1;t.splice(0,1));}return function(r,i,o,a,s){var l,c,d,p,m,v,g,b,w,_,x,S,M,k,E,A,O,C=r.s==i.s?1:-1,N=r.c,T=i.c;if(!N||!N[0]||!T||!T[0])return new B(r.s&&i.s&&(N?!T||N[0]!=T[0]:T)?N&&0==N[0]||!T?0*C:C/0:NaN);for(b=new B(C),w=b.c=[],c=r.e-i.e,C=o+c+1,s||(s=h,c=y(r.e/f)-y(i.e/f),C=C/f|0),d=0;T[d]==(N[d]||0);d++);if(T[d]>(N[d]||0)&&c--,C<0)w.push(1),p=!0;else{for(k=N.length,A=T.length,d=0,C+=2,m=u(s/(T[0]+1)),m>1&&(T=t(T,m,s),N=t(N,m,s),A=T.length,k=N.length),M=A,_=N.slice(0,A),x=_.length;x=s/2&&E++;do{if(m=0,l=e(T,_,A,x),l<0){if(S=_[0],A!=x&&(S=S*s+(_[1]||0)),m=u(S/E),m>1){m>=s&&(m=s-1),v=t(T,m,s),g=v.length,x=_.length;while(1==e(v,_,g,x))m--,n(v,A=10;C/=10,d++);U(b,o+(b.e=d+c*f-1)+1,a,p)}else b.e=c,b.r=+p;return b}}(),r=function(){var t=/^(-?)0([xbo])(?=\w[\w.]*$)/i,e=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,a,s,u){var c,h=s?a:a.replace(i,"");if(r.test(h))o.s=isNaN(h)?null:h<0?-1:1,o.c=o.e=null;else{if(!s&&(h=h.replace(t,(function(t,e,n){return c="x"==(n=n.toLowerCase())?16:"b"==n?2:8,u&&u!=c?t:e})),u&&(c=u,h=h.replace(e,"$1").replace(n,"0.$1")),a!=h))return new B(h,c);if(B.DEBUG)throw Error(l+"Not a"+(u?" base "+u:"")+" number: "+a);o.c=o.e=o.s=null}}}(),i.absoluteValue=i.abs=function(){var t=new B(this);return t.s<0&&(t.s=1),t},i.comparedTo=function(t,e){return w(this,new B(t,e))},i.decimalPlaces=i.dp=function(t,e){var n,r,i,o=this;if(null!=t)return _(t,0,v),null==e?e=A:_(e,0,8),U(new B(o),t+o.e+1,e);if(!(n=o.c))return null;if(r=((i=n.length-1)-y(this.e/f))*f,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},i.dividedBy=i.div=function(t,n){return e(this,new B(t,n),E,A)},i.dividedToIntegerBy=i.idiv=function(t,n){return e(this,new B(t,n),0,1)},i.exponentiatedBy=i.pow=function(t,e){var n,r,i,a,c,h,d,p,m=this;if(t=new B(t),t.c&&!t.isInteger())throw Error(l+"Exponent not an integer: "+t);if(null!=e&&(e=new B(e)),c=t.e>14,!m.c||!m.c[0]||1==m.c[0]&&!m.e&&1==m.c.length||!t.c||!t.c[0])return p=new B(Math.pow(+m.valueOf(),c?2-S(t):+t)),e?p.mod(e):p;if(h=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new B(NaN);r=!h&&m.isInteger()&&e.isInteger(),r&&(m=m.mod(e))}else{if(t.e>9&&(m.e>0||m.e<-1||(0==m.e?m.c[0]>1||c&&m.c[1]>=24e7:m.c[0]<8e13||c&&m.c[0]<=9999975e7)))return i=m.s<0&&S(t)?-0:0,m.e>-1&&(i=1/i),new B(h?1/i:i);R&&(i=s(R/f+2))}for(c?(n=new B(.5),d=S(t)):d=t%2,h&&(t.s=1),p=new B(o);;){if(d){if(p=p.times(m),!p.c)break;i?p.c.length>i&&(p.c.length=i):r&&(p=p.mod(e))}if(c){if(t=t.times(n),U(t,t.e+1,1),!t.c[0])break;c=t.e>14,d=S(t)}else{if(t=u(t/2),!t)break;d=t%2}m=m.times(m),i?m.c&&m.c.length>i&&(m.c.length=i):r&&(m=m.mod(e))}return r?p:(h&&(p=o.div(p)),e?p.mod(e):i?U(p,R,A,a):p)},i.integerValue=function(t){var e=new B(this);return null==t?t=A:_(t,0,8),U(e,e.e+1,t)},i.isEqualTo=i.eq=function(t,e){return 0===w(this,new B(t,e))},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(t,e){return w(this,new B(t,e))>0},i.isGreaterThanOrEqualTo=i.gte=function(t,e){return 1===(e=w(this,new B(t,e)))||0===e},i.isInteger=function(){return!!this.c&&y(this.e/f)>this.c.length-2},i.isLessThan=i.lt=function(t,e){return w(this,new B(t,e))<0},i.isLessThanOrEqualTo=i.lte=function(t,e){return-1===(e=w(this,new B(t,e)))||0===e},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&0==this.c[0]},i.minus=function(t,e){var n,r,i,o,a=this,s=a.s;if(t=new B(t,e),e=t.s,!s||!e)return new B(NaN);if(s!=e)return t.s=-e,a.plus(t);var u=a.e/f,l=t.e/f,c=a.c,d=t.c;if(!u||!l){if(!c||!d)return c?(t.s=-e,t):new B(d?a:NaN);if(!c[0]||!d[0])return d[0]?(t.s=-e,t):new B(c[0]?a:3==A?-0:0)}if(u=y(u),l=y(l),c=c.slice(),s=u-l){for((o=s<0)?(s=-s,i=c):(l=u,i=d),i.reverse(),e=s;e--;i.push(0));i.reverse()}else for(r=(o=(s=c.length)<(e=d.length))?s:e,s=e=0;e0)for(;e--;c[n++]=0);for(e=h-1;r>s;){if(c[--r]=0;){for(n=0,p=S[i]%w,v=S[i]/w|0,a=u,o=i+a;o>i;)l=x[--a]%w,c=x[a]/w|0,s=v*l+c*p,l=p*l+s%w*w+g[o]+n,n=(l/b|0)+(s/w|0)+v*c,g[o--]=l%b;g[o]=n}return n?++r:g.splice(0,1),F(t,g,r)},i.negated=function(){var t=new B(this);return t.s=-t.s||null,t},i.plus=function(t,e){var n,r=this,i=r.s;if(t=new B(t,e),e=t.s,!i||!e)return new B(NaN);if(i!=e)return t.s=-e,r.minus(t);var o=r.e/f,a=t.e/f,s=r.c,u=t.c;if(!o||!a){if(!s||!u)return new B(i/0);if(!s[0]||!u[0])return u[0]?t:new B(s[0]?r:0*i)}if(o=y(o),a=y(a),s=s.slice(),i=o-a){for(i>0?(a=o,n=u):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for(i=s.length,e=u.length,i-e<0&&(n=u,u=s,s=n,e=i),i=0;e;)i=(s[--e]=s[e]+u[e]+i)/h|0,s[e]=h===s[e]?0:s[e]%h;return i&&(s=[i].concat(s),++a),F(t,s,a)},i.precision=i.sd=function(t,e){var n,r,i,o=this;if(null!=t&&t!==!!t)return _(t,1,v),null==e?e=A:_(e,0,8),U(new B(o),t,e);if(!(n=o.c))return null;if(i=n.length-1,r=i*f+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return t&&o.e+1>r&&(r=o.e+1),r},i.shiftedBy=function(t){return _(t,-d,d),this.times("1e"+t)},i.squareRoot=i.sqrt=function(){var t,n,r,i,o,a=this,s=a.c,u=a.s,l=a.e,c=E+4,h=new B("0.5");if(1!==u||!s||!s[0])return new B(!u||u<0&&(!s||s[0])?NaN:s?a:1/0);if(u=Math.sqrt(+a),0==u||u==1/0?(n=b(s),(n.length+l)%2==0&&(n+="0"),u=Math.sqrt(n),l=y((l+1)/2)-(l<0||l%2),u==1/0?n="1e"+l:(n=u.toExponential(),n=n.slice(0,n.indexOf("e")+1)+l),r=new B(n)):r=new B(u+""),r.c[0])for(l=r.e,u=l+c,u<3&&(u=0);;)if(o=r,r=h.times(o.plus(e(a,o,c,1))),b(o.c).slice(0,u)===(n=b(r.c)).slice(0,u)){if(r.e0&&f>0){for(r=f%o||o,u=h.substr(0,r);r0&&(u+=s+h.slice(r)),c&&(u="-"+u)}n=l?u+P.decimalSeparator+((a=+P.fractionGroupSize)?l.replace(new RegExp("\\d{"+a+"}\\B","g"),"$&"+P.fractionGroupSeparator):l):u}return n},i.toFraction=function(t){var n,r,i,a,s,u,c,h,d,m,v,g,y=this,w=y.c;if(null!=t&&(h=new B(t),!h.isInteger()&&(h.c||1!==h.s)||h.lt(o)))throw Error(l+"Argument "+(h.isInteger()?"out of range: ":"not an integer: ")+t);if(!w)return y.toString();for(r=new B(o),m=i=new B(o),a=d=new B(o),g=b(w),u=r.e=g.length-y.e-1,r.c[0]=p[(c=u%f)<0?f+c:c],t=!t||h.comparedTo(r)>0?u>0?r:m:h,c=T,T=1/0,h=new B(g),d.c[0]=0;;){if(v=e(h,r,0,1),s=i.plus(v.times(a)),1==s.comparedTo(t))break;i=a,a=s,m=d.plus(v.times(s=m)),d=s,r=h.minus(v.times(s=r)),h=s}return s=e(t.minus(i),a,0,1),d=d.plus(s.times(m)),i=i.plus(s.times(a)),d.s=m.s=y.s,u*=2,n=e(m,a,u,A).minus(y).abs().comparedTo(e(d,i,u,A).minus(y).abs())<1?[m.toString(),a.toString()]:[d.toString(),i.toString()],T=c,n},i.toNumber=function(){return+this},i.toPrecision=function(t,e){return null!=t&&_(t,1,v),$(this,t,e,2)},i.toString=function(t){var e,r=this,i=r.s,o=r.e;return null===o?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(e=b(r.c),null==t?e=o<=O||o>=C?M(e,o):k(e,o,"0"):(_(t,2,j.length,"Base"),e=n(k(e,o,"0"),10,t,i,!0)),i<0&&r.c[0]&&(e="-"+e)),e},i.valueOf=i.toJSON=function(){var t,e=this,n=e.e;return null===n?e.toString():(t=b(e.c),t=n<=O||n>=C?M(t,n):k(t,n,"0"),e.s<0?"-"+t:t)},i._isBigNumber=!0,null!=t&&B.set(t),B}function y(t){var e=0|t;return t>0||t===e?e:e-1}function b(t){for(var e,n,r=1,i=t.length,o=t[0]+"";rl^n?1:-1;for(s=(u=i.length)<(l=o.length)?u:l,a=0;ao[a]^n?1:-1;return u==l?0:u>l^n?1:-1}function _(t,e,n,r){if(tn||t!==(t<0?s(t):u(t)))throw Error(l+(r||"Argument")+("number"==typeof t?tn?" out of range: ":" not an integer: ":" not a primitive number: ")+t)}function x(t){return"[object Array]"==Object.prototype.toString.call(t)}function S(t){var e=t.c.length-1;return y(t.e/f)==e&&t.c[e]%2!=0}function M(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function k(t,e,n){var r,i;if(e<0){for(i=n+".";++e;i+=n);t=i+t}else if(r=t.length,++e>r){for(i=n,e-=r;--e;i+=n);t+=i}else e=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function u(t,e,n){var r=s(t,n);return n-1>=e&&(r|=s(t,n-1)<<4),r}function l(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=u(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else{var s=t.length-e;for(r=s%2===0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,u=0,c=n;c1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t){for(var e=new Array(t.bitLength()),n=0;n>>i}return e}function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l>>26,h=67108863&u,f=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=f;d++){var p=l-d|0;i=0|t.words[p],o=0|e.words[d],a=i*o+h,c+=a/67108864|0,h=67108863&a}n.words[l]=0|h,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(t=t||10,e=0|e||1,16===t||"hex"===t){n="";for(var i=0,o=0,a=0;a>>24-i&16777215,n=0!==o||a!==this.length-1?c[6-u.length]+u+n:u+n,i+=2,i>=26&&(i-=26,a--)}0!==o&&(n=o.toString(16)+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=h[t],d=f[t];n="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),n=p.isZero()?m+n:c[l-m.length]+m+n}this.isZero()&&(n="0"+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,l=new t(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a;for(;s=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],g=8191&v,y=v>>>13,b=0|a[3],w=8191&b,_=b>>>13,x=0|a[4],S=8191&x,M=x>>>13,k=0|a[5],E=8191&k,A=k>>>13,O=0|a[6],C=8191&O,N=O>>>13,T=0|a[7],D=8191&T,I=T>>>13,R=0|a[8],P=8191&R,j=R>>>13,B=0|a[9],$=8191&B,L=B>>>13,F=0|s[0],U=8191&F,V=F>>>13,z=0|s[1],q=8191&z,H=z>>>13,G=0|s[2],W=8191&G,Y=G>>>13,K=0|s[3],Z=8191&K,X=K>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,lt=st>>>13,ct=0|s[8],ht=8191&ct,ft=ct>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;n.negative=t.negative^e.negative,n.length=19,r=Math.imul(h,U),i=Math.imul(h,V),i=i+Math.imul(f,U)|0,o=Math.imul(f,V);var vt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,U),i=Math.imul(p,V),i=i+Math.imul(m,U)|0,o=Math.imul(m,V),r=r+Math.imul(h,q)|0,i=i+Math.imul(h,H)|0,i=i+Math.imul(f,q)|0,o=o+Math.imul(f,H)|0;var gt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,U),i=Math.imul(g,V),i=i+Math.imul(y,U)|0,o=Math.imul(y,V),r=r+Math.imul(p,q)|0,i=i+Math.imul(p,H)|0,i=i+Math.imul(m,q)|0,o=o+Math.imul(m,H)|0,r=r+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0,i=i+Math.imul(f,W)|0,o=o+Math.imul(f,Y)|0;var yt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(w,U),i=Math.imul(w,V),i=i+Math.imul(_,U)|0,o=Math.imul(_,V),r=r+Math.imul(g,q)|0,i=i+Math.imul(g,H)|0,i=i+Math.imul(y,q)|0,o=o+Math.imul(y,H)|0,r=r+Math.imul(p,W)|0,i=i+Math.imul(p,Y)|0,i=i+Math.imul(m,W)|0,o=o+Math.imul(m,Y)|0,r=r+Math.imul(h,Z)|0,i=i+Math.imul(h,X)|0,i=i+Math.imul(f,Z)|0,o=o+Math.imul(f,X)|0;var bt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(S,U),i=Math.imul(S,V),i=i+Math.imul(M,U)|0,o=Math.imul(M,V),r=r+Math.imul(w,q)|0,i=i+Math.imul(w,H)|0,i=i+Math.imul(_,q)|0,o=o+Math.imul(_,H)|0,r=r+Math.imul(g,W)|0,i=i+Math.imul(g,Y)|0,i=i+Math.imul(y,W)|0,o=o+Math.imul(y,Y)|0,r=r+Math.imul(p,Z)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,Z)|0,o=o+Math.imul(m,X)|0,r=r+Math.imul(h,Q)|0,i=i+Math.imul(h,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(E,U),i=Math.imul(E,V),i=i+Math.imul(A,U)|0,o=Math.imul(A,V),r=r+Math.imul(S,q)|0,i=i+Math.imul(S,H)|0,i=i+Math.imul(M,q)|0,o=o+Math.imul(M,H)|0,r=r+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,i=i+Math.imul(_,W)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(g,Z)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,Z)|0,o=o+Math.imul(y,X)|0,r=r+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,r=r+Math.imul(h,nt)|0,i=i+Math.imul(h,rt)|0,i=i+Math.imul(f,nt)|0,o=o+Math.imul(f,rt)|0;var _t=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(C,U),i=Math.imul(C,V),i=i+Math.imul(N,U)|0,o=Math.imul(N,V),r=r+Math.imul(E,q)|0,i=i+Math.imul(E,H)|0,i=i+Math.imul(A,q)|0,o=o+Math.imul(A,H)|0,r=r+Math.imul(S,W)|0,i=i+Math.imul(S,Y)|0,i=i+Math.imul(M,W)|0,o=o+Math.imul(M,Y)|0,r=r+Math.imul(w,Z)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(_,Z)|0,o=o+Math.imul(_,X)|0,r=r+Math.imul(g,Q)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,r=r+Math.imul(p,nt)|0,i=i+Math.imul(p,rt)|0,i=i+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0,r=r+Math.imul(h,ot)|0,i=i+Math.imul(h,at)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,at)|0;var xt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(D,U),i=Math.imul(D,V),i=i+Math.imul(I,U)|0,o=Math.imul(I,V),r=r+Math.imul(C,q)|0,i=i+Math.imul(C,H)|0,i=i+Math.imul(N,q)|0,o=o+Math.imul(N,H)|0,r=r+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,i=i+Math.imul(A,W)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(S,Z)|0,i=i+Math.imul(S,X)|0,i=i+Math.imul(M,Z)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(g,nt)|0,i=i+Math.imul(g,rt)|0,i=i+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0,r=r+Math.imul(p,ot)|0,i=i+Math.imul(p,at)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0,r=r+Math.imul(h,ut)|0,i=i+Math.imul(h,lt)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,lt)|0;var St=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(P,U),i=Math.imul(P,V),i=i+Math.imul(j,U)|0,o=Math.imul(j,V),r=r+Math.imul(D,q)|0,i=i+Math.imul(D,H)|0,i=i+Math.imul(I,q)|0,o=o+Math.imul(I,H)|0,r=r+Math.imul(C,W)|0,i=i+Math.imul(C,Y)|0,i=i+Math.imul(N,W)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(E,Z)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,Z)|0,o=o+Math.imul(A,X)|0,r=r+Math.imul(S,Q)|0,i=i+Math.imul(S,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,r=r+Math.imul(w,nt)|0,i=i+Math.imul(w,rt)|0,i=i+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(g,ot)|0,i=i+Math.imul(g,at)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,r=r+Math.imul(p,ut)|0,i=i+Math.imul(p,lt)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,lt)|0,r=r+Math.imul(h,ht)|0,i=i+Math.imul(h,ft)|0,i=i+Math.imul(f,ht)|0,o=o+Math.imul(f,ft)|0;var Mt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul($,U),i=Math.imul($,V),i=i+Math.imul(L,U)|0,o=Math.imul(L,V),r=r+Math.imul(P,q)|0,i=i+Math.imul(P,H)|0,i=i+Math.imul(j,q)|0,o=o+Math.imul(j,H)|0,r=r+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,i=i+Math.imul(I,W)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(C,Z)|0,i=i+Math.imul(C,X)|0,i=i+Math.imul(N,Z)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(S,nt)|0,i=i+Math.imul(S,rt)|0,i=i+Math.imul(M,nt)|0,o=o+Math.imul(M,rt)|0,r=r+Math.imul(w,ot)|0,i=i+Math.imul(w,at)|0,i=i+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(g,ut)|0,i=i+Math.imul(g,lt)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,lt)|0,r=r+Math.imul(p,ht)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ht)|0,o=o+Math.imul(m,ft)|0,r=r+Math.imul(h,pt)|0,i=i+Math.imul(h,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var kt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul($,q),i=Math.imul($,H),i=i+Math.imul(L,q)|0,o=Math.imul(L,H),r=r+Math.imul(P,W)|0,i=i+Math.imul(P,Y)|0,i=i+Math.imul(j,W)|0,o=o+Math.imul(j,Y)|0,r=r+Math.imul(D,Z)|0,i=i+Math.imul(D,X)|0,i=i+Math.imul(I,Z)|0,o=o+Math.imul(I,X)|0,r=r+Math.imul(C,Q)|0,i=i+Math.imul(C,tt)|0,i=i+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(E,nt)|0,i=i+Math.imul(E,rt)|0,i=i+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(S,ot)|0,i=i+Math.imul(S,at)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,r=r+Math.imul(w,ut)|0,i=i+Math.imul(w,lt)|0,i=i+Math.imul(_,ut)|0,o=o+Math.imul(_,lt)|0,r=r+Math.imul(g,ht)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ht)|0,o=o+Math.imul(y,ft)|0,r=r+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul($,W),i=Math.imul($,Y),i=i+Math.imul(L,W)|0,o=Math.imul(L,Y),r=r+Math.imul(P,Z)|0,i=i+Math.imul(P,X)|0,i=i+Math.imul(j,Z)|0,o=o+Math.imul(j,X)|0,r=r+Math.imul(D,Q)|0,i=i+Math.imul(D,tt)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(C,nt)|0,i=i+Math.imul(C,rt)|0,i=i+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(E,ot)|0,i=i+Math.imul(E,at)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,r=r+Math.imul(S,ut)|0,i=i+Math.imul(S,lt)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,lt)|0,r=r+Math.imul(w,ht)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(_,ht)|0,o=o+Math.imul(_,ft)|0,r=r+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul($,Z),i=Math.imul($,X),i=i+Math.imul(L,Z)|0,o=Math.imul(L,X),r=r+Math.imul(P,Q)|0,i=i+Math.imul(P,tt)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,r=r+Math.imul(D,nt)|0,i=i+Math.imul(D,rt)|0,i=i+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(C,ot)|0,i=i+Math.imul(C,at)|0,i=i+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(E,ut)|0,i=i+Math.imul(E,lt)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,lt)|0,r=r+Math.imul(S,ht)|0,i=i+Math.imul(S,ft)|0,i=i+Math.imul(M,ht)|0,o=o+Math.imul(M,ft)|0,r=r+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(_,pt)|0,o=o+Math.imul(_,mt)|0;var Ot=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul($,Q),i=Math.imul($,tt),i=i+Math.imul(L,Q)|0,o=Math.imul(L,tt),r=r+Math.imul(P,nt)|0,i=i+Math.imul(P,rt)|0,i=i+Math.imul(j,nt)|0,o=o+Math.imul(j,rt)|0,r=r+Math.imul(D,ot)|0,i=i+Math.imul(D,at)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,r=r+Math.imul(C,ut)|0,i=i+Math.imul(C,lt)|0,i=i+Math.imul(N,ut)|0,o=o+Math.imul(N,lt)|0,r=r+Math.imul(E,ht)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,ht)|0,o=o+Math.imul(A,ft)|0,r=r+Math.imul(S,pt)|0,i=i+Math.imul(S,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Ct=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul($,nt),i=Math.imul($,rt),i=i+Math.imul(L,nt)|0,o=Math.imul(L,rt),r=r+Math.imul(P,ot)|0,i=i+Math.imul(P,at)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,r=r+Math.imul(D,ut)|0,i=i+Math.imul(D,lt)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,lt)|0,r=r+Math.imul(C,ht)|0,i=i+Math.imul(C,ft)|0,i=i+Math.imul(N,ht)|0,o=o+Math.imul(N,ft)|0,r=r+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Nt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul($,ot),i=Math.imul($,at),i=i+Math.imul(L,ot)|0,o=Math.imul(L,at),r=r+Math.imul(P,ut)|0,i=i+Math.imul(P,lt)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,lt)|0,r=r+Math.imul(D,ht)|0,i=i+Math.imul(D,ft)|0,i=i+Math.imul(I,ht)|0,o=o+Math.imul(I,ft)|0,r=r+Math.imul(C,pt)|0,i=i+Math.imul(C,mt)|0,i=i+Math.imul(N,pt)|0,o=o+Math.imul(N,mt)|0;var Tt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul($,ut),i=Math.imul($,lt),i=i+Math.imul(L,ut)|0,o=Math.imul(L,lt),r=r+Math.imul(P,ht)|0,i=i+Math.imul(P,ft)|0,i=i+Math.imul(j,ht)|0,o=o+Math.imul(j,ft)|0,r=r+Math.imul(D,pt)|0,i=i+Math.imul(D,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Dt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul($,ht),i=Math.imul($,ft),i=i+Math.imul(L,ht)|0,o=Math.imul(L,ft),r=r+Math.imul(P,pt)|0,i=i+Math.imul(P,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul($,pt),i=Math.imul($,mt),i=i+Math.imul(L,pt)|0,o=Math.imul(L,mt);var Rt=(l+r|0)+((8191&i)<<13)|0;return l=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=vt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=_t,u[6]=xt,u[7]=St,u[8]=Mt,u[9]=kt,u[10]=Et,u[11]=At,u[12]=Ot,u[13]=Ct,u[14]=Nt,u[15]=Tt,u[16]=Dt,u[17]=It,u[18]=Rt,0!==l&&(u[19]=l,n.length++),n};function v(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0,i+=a>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function g(t,e,n){var r=new y;return r.mulp(t,e,n)}function y(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?m(this,t,e):r<63?p(this,t,e):r<1024?v(this,t,e):g(this,t,e),n},y.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},y.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=d(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==c||l>=i);l--){var h=0|this.words[l];this.words[l]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,r=this.clone(),i=t,a=0|i.words[i.length-1],s=this._countBits(a);n=26-s,0!==n&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var u,l=r.length-i.length;if("mod"!==e){u=new o(null),u.length=l+1,u.words=new Array(u.length);for(var c=0;c=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);while(0!==r.negative)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:u||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;while(e.isEven()&&n.isEven())e.iushrn(1),n.iushrn(1),++l;var c=n.clone(),h=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1)}for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0){n.iushrn(p);while(p-- >0)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1)}e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,a=new o(1),s=new o(0),u=n.clone();while(e.cmpn(1)>0&&n.cmpn(1)>0){for(var l=0,c=1;0===(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0){e.iushrn(l);while(l-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}for(var h=0,f=1;0===(n.words[0]&f)&&h<26;++h,f<<=1);if(h>0){n.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return i=0===e.cmpn(1)?a:s,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);do{while(e.isEven())e.iushrn(1);while(n.isEven())n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}while(1);return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),e=n.bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},i(_,w),_.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},_.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new _;else if("p224"===t)e=new x;else if("p192"===t)e=new S;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return b[t]=e,e},k.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}var i=this.m.subn(1),a=0;while(!i.isZero()&&0===i.andln(1))a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,l).cmp(u))c.redIAdd(u);var h=this.pow(c,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;while(0!==d.cmp(s)){for(var m=d,v=0;0!==m.cmp(s);v++)m=m.redSqr();r(v=0;i--){for(var c=e.words[i],h=l-1;h>=0;h--){var f=c>>h&1;a!==r[0]&&(a=this.sqr(a)),0!==f||0!==s?(s<<=1,s|=f,u++,(u===n||0===i&&0===h)&&(a=this.mul(a,r[s]),u=0,s=0)):u=0}l=26}return a},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new E(t)},i(E,k),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}}(t,this)},747:(t,e,n)=>{ +/** + * [js-sha3]{@link https://github.com/emn178/js-sha3} + * + * @version 0.5.7 + * @author Chen, Yi-Cyuan [emn178@gmail.com] + * @copyright Chen, Yi-Cyuan 2015-2016 + * @license MIT + */ +(function(){"use strict";var e="object"===typeof window?window:{},r=!e.JS_SHA3_NO_NODE_JS&&"object"===typeof i&&i.versions&&i.versions.node;r&&(e=n.g);for(var o=!e.JS_SHA3_NO_COMMON_JS&&t.exports,a="0123456789abcdef".split(""),s=[31,7936,2031616,520093696],u=[1,256,65536,16777216],l=[6,1536,393216,100663296],c=[0,8,16,24],h=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],f=[224,256,384,512],d=[128,256],p=["hex","buffer","arrayBuffer","array"],m=function(t,e,n){return function(r){return new A(t,e,t).update(r)[n]()}},v=function(t,e,n){return function(r,i){return new A(t,e,i).update(r)[n]()}},g=function(t,e){var n=m(t,e,"hex");n.create=function(){return new A(t,e,t)},n.update=function(t){return n.create().update(t)};for(var r=0;r>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}A.prototype.update=function(t){var e="string"!==typeof t;e&&t.constructor===ArrayBuffer&&(t=new Uint8Array(t));var n,r,i=t.length,o=this.blocks,a=this.byteCount,s=this.blockCount,u=0,l=this.s;while(u>2]|=t[u]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|63&r)<=57344?(o[n>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<=a){for(this.start=n-a,this.block=o[s],n=0;n>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[n],e=1;e>4&15]+a[15&t]+a[t>>12&15]+a[t>>8&15]+a[t>>20&15]+a[t>>16&15]+a[t>>28&15]+a[t>>24&15];s%e===0&&(O(n),o=0)}return i&&(t=n[o],i>0&&(u+=a[t>>4&15]+a[15&t]),i>1&&(u+=a[t>>12&15]+a[t>>8&15]),i>2&&(u+=a[t>>20&15]+a[t>>16&15])),u},A.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;t=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);var u=new Uint32Array(t);while(a>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;s%n===0&&O(r)}return o&&(t=s<<2,e=r[a],o>0&&(u[t]=255&e),o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u};var O=function(t){var e,n,r,i,o,a,s,u,l,c,f,d,p,m,v,g,y,b,w,_,x,S,M,k,E,A,O,C,N,T,D,I,R,P,j,B,$,L,F,U,V,z,q,H,G,W,Y,K,Z,X,J,Q,tt,et,nt,rt,it,ot,at,st,ut,lt,ct;for(r=0;r<48;r+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],l=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],f=t[7]^t[17]^t[27]^t[37]^t[47],d=t[8]^t[18]^t[28]^t[38]^t[48],p=t[9]^t[19]^t[29]^t[39]^t[49],e=d^(a<<1|s>>>31),n=p^(s<<1|a>>>31),t[0]^=e,t[1]^=n,t[10]^=e,t[11]^=n,t[20]^=e,t[21]^=n,t[30]^=e,t[31]^=n,t[40]^=e,t[41]^=n,e=i^(u<<1|l>>>31),n=o^(l<<1|u>>>31),t[2]^=e,t[3]^=n,t[12]^=e,t[13]^=n,t[22]^=e,t[23]^=n,t[32]^=e,t[33]^=n,t[42]^=e,t[43]^=n,e=a^(c<<1|f>>>31),n=s^(f<<1|c>>>31),t[4]^=e,t[5]^=n,t[14]^=e,t[15]^=n,t[24]^=e,t[25]^=n,t[34]^=e,t[35]^=n,t[44]^=e,t[45]^=n,e=u^(d<<1|p>>>31),n=l^(p<<1|d>>>31),t[6]^=e,t[7]^=n,t[16]^=e,t[17]^=n,t[26]^=e,t[27]^=n,t[36]^=e,t[37]^=n,t[46]^=e,t[47]^=n,e=c^(i<<1|o>>>31),n=f^(o<<1|i>>>31),t[8]^=e,t[9]^=n,t[18]^=e,t[19]^=n,t[28]^=e,t[29]^=n,t[38]^=e,t[39]^=n,t[48]^=e,t[49]^=n,m=t[0],v=t[1],W=t[11]<<4|t[10]>>>28,Y=t[10]<<4|t[11]>>>28,C=t[20]<<3|t[21]>>>29,N=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,z=t[40]<<18|t[41]>>>14,q=t[41]<<18|t[40]>>>14,P=t[2]<<1|t[3]>>>31,j=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,K=t[22]<<10|t[23]>>>22,Z=t[23]<<10|t[22]>>>22,T=t[33]<<13|t[32]>>>19,D=t[32]<<13|t[33]>>>19,lt=t[42]<<2|t[43]>>>30,ct=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,nt=t[4]<<30|t[5]>>>2,B=t[14]<<6|t[15]>>>26,$=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,X=t[34]<<15|t[35]>>>17,J=t[35]<<15|t[34]>>>17,I=t[45]<<29|t[44]>>>3,R=t[44]<<29|t[45]>>>3,k=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,L=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,_=t[36]<<21|t[37]>>>11,x=t[37]<<21|t[36]>>>11,Q=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,H=t[8]<<27|t[9]>>>5,G=t[9]<<27|t[8]>>>5,A=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,at=t[28]<<7|t[29]>>>25,U=t[38]<<8|t[39]>>>24,V=t[39]<<8|t[38]>>>24,S=t[48]<<14|t[49]>>>18,M=t[49]<<14|t[48]>>>18,t[0]=m^~g&b,t[1]=v^~y&w,t[10]=k^~A&C,t[11]=E^~O&N,t[20]=P^~B&L,t[21]=j^~$&F,t[30]=H^~W&K,t[31]=G^~Y&Z,t[40]=et^~rt&ot,t[41]=nt^~it&at,t[2]=g^~b&_,t[3]=y^~w&x,t[12]=A^~C&T,t[13]=O^~N&D,t[22]=B^~L&U,t[23]=$^~F&V,t[32]=W^~K&X,t[33]=Y^~Z&J,t[42]=rt^~ot&st,t[43]=it^~at&ut,t[4]=b^~_&S,t[5]=w^~x&M,t[14]=C^~T&I,t[15]=N^~D&R,t[24]=L^~U&z,t[25]=F^~V&q,t[34]=K^~X&Q,t[35]=Z^~J&tt,t[44]=ot^~st<,t[45]=at^~ut&ct,t[6]=_^~S&m,t[7]=x^~M&v,t[16]=T^~I&k,t[17]=D^~R&E,t[26]=U^~z&P,t[27]=V^~q&j,t[36]=X^~Q&H,t[37]=J^~tt&G,t[46]=st^~lt&et,t[47]=ut^~ct&nt,t[8]=S^~m&g,t[9]=M^~v&y,t[18]=I^~k&A,t[19]=R^~E&O,t[28]=z^~P&B,t[29]=q^~j&$,t[38]=Q^~H&W,t[39]=tt^~G&Y,t[48]=lt^~et&rt,t[49]=ct^~nt&it,t[0]^=h[r],t[1]^=h[r+1]};if(o)t.exports=w;else for(x=0;x<_.length;++x)e[_[x]]=w[_[x]]})()},6462:(t,e)=>{"use strict";function n(t){return(e,n)=>(void 0!==e&&a(e,t,n),"")}function r(t){return(e,n)=>(null!==e&&a(e,t,n),"")}Object.defineProperty(e,"__esModule",{value:!0}),e.optional=n,e.nullable=r;class i{constructor(t){this.scheme=t}test(t,e){return a(t,this.scheme,e)}}e.Validator=i;class o extends Error{constructor(t,e){super(e?`${e}: ${t}`:t),this.rawMessage=t,this.context=e}}function a(t,e,n){if(Array.isArray(e)){if(!Array.isArray(t))throw new o("expected array",n||"");t.forEach(((t,r)=>a(t,e[0],n?`${n}.#${r}`:`#${r}`)))}else if(e instanceof Function){const r=e(t,n);if(r)throw new o(r,n||"")}else{if(!(t instanceof Object))throw new o("expected object",n||"");for(const r in e)e.hasOwnProperty(r)&&a(t[r],e[r],n?`${n}.${r}`:r)}return t}e.ValidationError=o,o.prototype.name="ValidationError",e.validate=a},2574:()=>{}},e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return(()=>{n.n=t=>{var e=t&&t.__esModule?()=>t["default"]:()=>t;return n.d(e,{a:e}),e}})(),(()=>{n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})}})(),(()=>{n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"===typeof window)return window}}()})(),(()=>{n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e)})(),(()=>{n.r=t=>{"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}})(),(()=>{n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t)})(),n(4628)})()}))},6130:function(t,e,n){"use strict";n.d(e,{A:function(){return fe}});var r=n(2145),i=n(8926),o=n(8287);class a extends r.AbiCoder{constructor(){super(((t,e)=>t.match(/^u?int/)&&!Array.isArray(e)&&"object"!==typeof e||"BigNumber"===e._ethersType?e.toString():e))}encode(t,e){try{return super.encode(t,e)}catch(n){if(n.reason)throw new Error(n.reason);throw n}}decode(t,e){try{return super.decode(t,e)}catch(n){if(n.reason)throw new Error(n.reason);throw n}}}const s=new a;function u(t){try{return(0,r.formatSignature)(t).replace(/\(tuple\(/g,"((").replace(/,tuple\(/g,",(")}catch(e){if(e.reason)throw new Error(e.reason);throw e}}var l;(function(t){function e(t,e){return s.encode([t],[e])}function n(t,e){return s.decode([t],e)[0]}function r(t,e){return s.encode(t,e)}function a(t,e){const n=s.decode(t,e),r={};return t.forEach(((t,e)=>{r[e]=n[e],t.name&&(r[t.name]=n[e])})),r}t.encodeParameter=e,t.decodeParameter=n,t.encodeParameters=r,t.decodeParameters=a;class l{constructor(t){this.definition=t,this.canonicalName=u(t),this.signature="0x"+(0,i.S)(this.canonicalName).slice(0,4).toString("hex")}encode(...t){return this.signature+r(this.definition.inputs,t).slice(2)}decode(t){return a(this.definition.outputs,t)}}t.Function=l;class c{constructor(t){this.definition=t,this.canonicalName=u(t),this.signature="0x"+(0,i.S)(this.canonicalName).toString("hex")}encode(t){const n=[];this.definition.anonymous||n.push(this.signature);for(const r of this.definition.inputs){if(!r.indexed)continue;const a=t[r.name];if(void 0===a||null===a)n.push(null);else{let t;if(h(r.type))t=e(r.type,a);else if("string"===r.type)t="0x"+(0,i.S)(a).toString("hex");else{if("string"!==typeof a||!/^0x[0-9a-f]+$/i.test(a)||a.length%2!==0)throw new Error(`event.encode: invalid ${r.type} value`);t="0x"+(0,i.S)(o.Buffer.from(a.slice(2),"hex")).toString("hex")}n.push(t)}}return n}decode(t,e){if(this.definition.anonymous||(e=e.slice(1)),this.definition.inputs.filter((t=>t.indexed)).length!==e.length)throw new Error("invalid topics count");const r=s.decode(this.definition.inputs.filter((t=>!t.indexed)),t),i={};return this.definition.inputs.forEach(((t,o)=>{if(t.indexed){const r=e.shift();i[o]=h(t.type)?n(t.type,r):r}else i[o]=r.shift();t.name&&(i[t.name]=i[o])})),i}}function h(t){return"address"===t||"bool"===t||/^(u?int)(\d*)$/.test(t)||/^bytes(\d+)$/.test(t)}t.Event=c})(l||(l={}));const c="0x"+(0,i.S)("Error(string)").toString("hex").slice(0,8),h="0x"+(0,i.S)("Panic(uint256)").toString("hex").slice(0,8);function f(t){try{if(t.startsWith(c))return l.decodeParameter("string","0x"+t.slice(c.length));if(t.startsWith(h)){const e=l.decodeParameter("uint256","0x"+t.slice(h.length));return`Panic(0x${parseInt(e).toString(16).padStart(2,"0")})`}return""}catch(e){return""}}var d=n(4202);function p(t){return"string"===typeof t&&/^[0-9]+$/.test(t)}function m(t){return"string"===typeof t&&/^0x[0-9a-f]+$/i.test(t)}function v(t,e){return!("string"!==typeof t||!/^0x[0-9a-f]*$/i.test(t))&&(e?t.length===2*e+2:t.length%2===0)}function g(t,e){return!(t<0||!Number.isInteger(t))&&(!e||t"block"===t||"time"===t?"":"expected 'block' or 'time'",from:A,to:A},"arg0"),w(t.from<=t.to,"arg0.from: expected <= arg0.to"),r.range=Object.assign({},t),this},order(t){return w("asc"===t||"desc"===t,"arg0: expected 'asc' or 'desc'"),r.order=t,this},cache(t){return i=_(t,[T],"arg0").map((t=>t.toLowerCase())),this},apply(n,o){return _(n,A,"arg0"),w(o>=0&&o<=I&&Number.isInteger(o),`arg1: expected unsigned integer <= ${I}`),r.options.offset=n,r.options.limit=o,"transfer"===e?t.then((t=>t.filterTransferLogs(r,i))):t.then((t=>t.filterEventLogs(r,i)))}}}var P=n(2433),j=n.n(P),B=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))};function $(t){return{sign:(e,n)=>{if("tx"===e)return _(n,[V],"arg1"),L(Promise.resolve(t),n);if("cert"===e)return _(n,{purpose:t=>"agreement"===t||"identification"===t?"":"expected 'agreement' or 'identification'",payload:{type:t=>"text"===t?"":"expected 'text'",content:D}},"arg1"),F(Promise.resolve(t),n);throw new b("arg0: expected 'tx' or 'cert'")}}}function L(t,e){const n={};return{signer(t){return n.signer=_(t,T,"arg0").toLowerCase(),this},gas(t){return n.gas=_(t,A,"arg0"),this},dependsOn(t){return n.dependsOn=_(t,M,"arg0").toLowerCase(),this},link(t){return n.link=_(t,D,"arg0"),this},comment(t){return n.comment=_(t,D,"arg0"),this},delegate(t,e){return w("string"===typeof t,"arg0: expected url string"),_(e,d.optional(T),"arg1"),n.delegator={url:t,signer:e&&e.toLowerCase()},this},accepted(t){return w("function"===typeof t,"arg0: expected function"),n.onAccepted=t,this},request(){const r=e.map((t=>Object.assign(Object.assign({},t),{value:new(j())(t.value).toString(10)})));return(()=>B(this,void 0,void 0,(function*(){try{const e=yield t;return yield e.signTx(r,n)}catch(e){throw new U(e.message)}})))()}}}function F(t,e){const n={};return{signer(t){return n.signer=_(t,T,"arg0").toLowerCase(),this},link(t){return n.link=_(t,D,"arg0"),this},accepted(t){return w("function"===typeof t,"arg0: expected function"),n.onAccepted=t,this},request(){return(()=>B(this,void 0,void 0,(function*(){try{const r=yield t;return yield r.signCert(e,n)}catch(r){throw new U(r.message)}})))()}}}class U extends Error{constructor(t){super(t)}}U.prototype.name="Rejected";const V={to:d.nullable(T),value:C,data:d.optional(x),comment:d.optional(D),abi:d.optional((t=>{if(!(t instanceof Object))return"expected object";try{return new l.Function(t).signature,""}catch(e){return`expected valid ABI (${e.message})`}}))};function z(t,e){return{get address(){return e},get:()=>t.then((t=>t.getAccount(e,t.head.id))),getCode:()=>t.then((t=>t.getCode(e,t.head.id))),getStorage:n=>(n=_(n,M,"arg0").toLowerCase(),t.then((t=>t.getStorage(e,n,t.head.id)))),method:n=>{let r;try{r=new l.Function(JSON.parse(JSON.stringify(n)))}catch(i){throw new b(`arg0: expected valid ABI (${i.message})`)}return q(t,e,r)},event:n=>{let r;try{r=new l.Event(JSON.parse(JSON.stringify(n)))}catch(i){throw new b(`arg0: expected valid ABI (${i.message})`)}return H(t,e,r)}}}function q(t,e,n){let r=0;const i={};let o;return{value(t){return r=_(t,C,"arg0"),this},caller(t){return i.caller=_(t,T,"arg0").toLowerCase(),this},gas(t){return i.gas=_(t,A,"arg0"),this},gasPrice(t){return i.gasPrice=_(t,C,"arg0").toString().toLowerCase(),this},gasPayer(t){return i.gasPayer=_(t,T,"arg0").toLowerCase(),this},cache(t){return o=_(t,[T],"arg0").map((t=>t.toLowerCase())),this},asClause:(...t)=>{const i=(n.definition.inputs||[]).length;w(i===t.length,`args count expected ${i}`);try{const i=n.encode(...t);return{to:e,value:r.toString().toLowerCase(),data:i}}catch(o){throw new b(`args can not be encoded (${o.message})`)}},call(...e){const r=this.asClause(...e);return t.then((t=>t.explain(Object.assign({clauses:[r]},i),t.head.id,o))).then((t=>t[0])).then((t=>{if(t.reverted){const e=f(t.data);return Object.assign(Object.assign({},t),{revertReason:e,decoded:{}})}{const e=n.decode(t.data);return Object.assign(Object.assign({},t),{decoded:e})}}))},transact(...e){const r=this.asClause(...e);return L(t,[Object.assign(Object.assign({},r),{abi:n.definition})])}}}function H(t,e,n){const r=t=>{const r=n.encode(t);return{address:e,topic0:r[0]||void 0,topic1:r[1]||void 0,topic2:r[2]||void 0,topic3:r[3]||void 0,topic4:r[4]||void 0}};return{asCriteria:t=>{try{return r(t)}catch(e){throw new b(`arg0: can not be encoded (${e.message})`)}},filter:e=>{_(e,[{}],"arg0"),0===e.length&&(e=[{}]);const i=e.map(((t,e)=>{try{return r(t)}catch(n){throw new b(`arg0.#${e}: can not be encoded (${n.message})`)}})),o=R(t,"event",i);return{range(t){return o.range(t),this},order(t){return o.order(t),this},cache(t){return o.cache(t),this},apply(t,e){return o.apply(t,e).then((t=>t.map((t=>{const e=n.decode(t.data,t.topics);return Object.assign(Object.assign({},t),{decoded:e})}))))}}}}}function G(t,e){return{get revision(){return e},get:()=>t.getBlock(e)}}function W(t,e){let n=!1;return{get id(){return e},allowPending(){return n=!0,this},get:()=>t.then((t=>t.getTransaction(e,n))),getReceipt:()=>t.then((t=>t.getReceipt(e)))}}var Y=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))};const K=180;function Z(t){let e=Object.assign({},t.head),n=t.genesis.id,r=[];(()=>{Y(this,void 0,void 0,(function*(){for(;;)try{const o=yield t.pollHead();if(o.id!==e.id&&o.number>=e.number){if(0===e.number||(o.number+1)%K===0)try{const e=yield t.getBlock("finalized");e&&e.id!=n&&(n=e.id)}catch(i){}e=Object.assign({},o);const a=r;r=[],a.forEach((t=>t(o)))}else yield new Promise((t=>setTimeout(t,1e3)))}catch(o){break}}))})();const i=t.genesis.timestamp;return{get head(){return e},get progress(){const t=Date.now(),n=1e3*e.timestamp;if(t-n<3e4)return 1;const r=1e3*i,o=(n-r)/(t-r);return o<0?NaN:o},get finalized(){return n},ticker:()=>{let t=e.id;return{next:()=>new Promise((n=>{if(t!==e.id)return n(Object.assign({},e));r.push((t=>{n(Object.assign({},t))}))})).then((e=>(t=e.id,e)))}}}}function X(t,e){const n={};let r;return{caller(t){return n.caller=_(t,T,"arg0").toLowerCase(),this},gas(t){return n.gas=_(t,A,"arg0"),this},gasPrice(t){return n.gasPrice=_(t,C,"arg0").toString().toLowerCase(),this},gasPayer(t){return n.gasPayer=_(t,T,"arg0").toLowerCase(),this},cache(t){return r=_(t,[T],"arg0").map((t=>t.toLowerCase())),this},execute(){const i=e.map((t=>({to:t.to?t.to.toLowerCase():null,value:new(j())(t.value).toString(10),data:(t.data||"0x").toLowerCase()})));return t.then((t=>t.explain(Object.assign({clauses:i},n),t.head.id,r))).then((t=>t.map((t=>{if(t.reverted){const e=f(t.data);return Object.assign(Object.assign({},t),{revertReason:e})}return t}))))}}}var J=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))};function Q(t){const e=Z(t),n=(()=>J(this,void 0,void 0,(function*(){return e.head.number>0||(yield e.ticker().next()),t})))(),r=JSON.parse(JSON.stringify(t.genesis));return{get genesis(){return r},get status(){return{head:e.head,progress:e.progress,finalized:e.finalized}},ticker:()=>e.ticker(),account:t=>(t=_(t,T,"arg0").toLowerCase(),z(n,t)),block:e=>("undefined"===typeof e?e=t.head.id:w("string"===typeof e?v(e,32):g(e,32),"arg0: expected bytes32 or unsigned 32-bit integer"),G(t,"string"===typeof e?e.toLowerCase():e)),transaction:t=>(t=_(t,M,"arg0").toLowerCase(),W(n,t)),filter:(t,e)=>(w("event"===t||"transfer"===t,"arg0: expected 'event' or 'transfer'"),"event"===t?(_(e,[et],"arg1"),R(n,"event",e.map((t=>({address:t.address?t.address.toLowerCase():void 0,topic0:t.topic0?t.topic0.toLowerCase():void 0,topic1:t.topic1?t.topic1.toLowerCase():void 0,topic2:t.topic2?t.topic2.toLowerCase():void 0,topic3:t.topic3?t.topic3.toLowerCase():void 0,topic4:t.topic4?t.topic4.toLowerCase():void 0}))))):(_(e,[nt],"arg1"),R(n,"transfer",e.map((t=>({txOrigin:t.txOrigin?t.txOrigin.toLowerCase():void 0,sender:t.sender?t.sender.toLowerCase():void 0,recipient:t.recipient?t.recipient.toLowerCase():void 0})))))),explain:t=>(_(t,[tt],"arg0"),X(n,t))}}const tt={to:d.nullable(T),value:C,data:d.optional(x)},et={address:d.optional(T),topic0:d.optional(M),topic1:d.optional(M),topic2:d.optional(M),topic3:d.optional(M),topic4:d.optional(M)},nt={sender:d.optional(T),recipient:d.optional(T),txOrigin:d.optional(T)};var rt=n(6763);function it(t,e){const n=(t,n,r)=>{try{d.validate(t,n,r)}catch(i){e?e(i):rt.warn(`Connex-Driver[MALFORMED RESPONSE]: ${i.message}`)}return t},r=n(t.genesis,at,"genesis");return{genesis:r,get head(){return n(t.head,ot,"head")},pollHead(){return t.pollHead().then((t=>n(t,ot,"getHead()")))},getBlock(e){return t.getBlock(e).then((t=>t?n(t,at,"getBlock()"):t))},getTransaction(e,r){return t.getTransaction(e,r).then((t=>t?n(t,st,"getTransaction()"):t))},getReceipt(e){return t.getReceipt(e).then((t=>t?n(t,dt,"getReceipt()"):t))},getAccount(e,r){return t.getAccount(e,r).then((t=>n(t,{balance:N,energy:N,hasCode:O},"getAccount()")))},getCode(e,r){return t.getCode(e,r).then((t=>n(t,{code:x},"getCode()")))},getStorage(e,r,i){return t.getStorage(e,r,i).then((t=>n(t,{value:M},"getStorage()")))},explain(e,r){return t.explain(e,r).then((t=>n(t,[pt],"explain()")))},filterEventLogs(e){return t.filterEventLogs(e).then((t=>n(t,[ct],"filterEventLogs()")))},filterTransferLogs(e){return t.filterTransferLogs(e).then((t=>n(t,[ft],"filterTransferLogs()")))},signTx(e,r){return t.signTx(e,r).then((t=>n(t,{txid:M,signer:T},"signTx()")))},signCert(e,r){return t.signCert(e,r).then((t=>n(t,{annex:{domain:D,timestamp:A,signer:T},signature:t=>v(t,65)?"":"expected 65 bytes"},"signCert()")))}}}const ot={id:M,number:E,timestamp:A,parentID:M,txsFeatures:d.optional(E),gasLimit:A},at={id:M,number:E,size:E,parentID:M,timestamp:A,gasLimit:A,beneficiary:T,gasUsed:A,totalScore:A,txsRoot:M,txsFeatures:d.optional(E),stateRoot:M,receiptsRoot:M,signer:T,com:d.optional(O),isFinalized:d.optional(O),isTrunk:O,transactions:[M]},st={id:M,chainTag:k,blockRef:S,expiration:E,gasPriceCoef:k,gas:A,origin:T,delegator:d.nullable(d.optional(T)),nonce:N,dependsOn:d.nullable(M),size:E,clauses:[{to:d.nullable(T),value:N,data:x}],meta:d.nullable({blockID:M,blockNumber:E,blockTimestamp:A})},ut={blockID:M,blockNumber:E,blockTimestamp:A,txID:M,txOrigin:T,clauseIndex:E},lt={address:T,topics:[M],data:x},ct=Object.assign(Object.assign({},lt),{meta:ut}),ht={sender:T,recipient:T,amount:N},ft=Object.assign(Object.assign({},ht),{meta:ut}),dt={gasUsed:A,gasPayer:T,paid:N,reward:N,reverted:O,outputs:[{contractAddress:d.nullable(T),events:[lt],transfers:[ht]}],meta:{blockID:M,blockNumber:E,blockTimestamp:A,txID:M,txOrigin:T}},pt={data:x,vmError:D,gasUsed:A,reverted:O,revertReason:()=>"",events:[{address:T,topics:[M],data:x}],transfers:[{sender:T,recipient:T,amount:N}]};class mt{constructor(t){this.thor=Q(t),this.vendor=$(t)}static guardDriver(t,e){return it(t,e)}}const vt={main:{number:0,id:"0x00000000851caf3cfdb6e899cf5958bfb1ac3413d346d43539627e6be7ec1b4a",size:170,parentID:"0xffffffff53616c757465202620526573706563742c20457468657265756d2100",timestamp:1530316800,gasLimit:1e7,beneficiary:"0x0000000000000000000000000000000000000000",gasUsed:0,totalScore:0,txsRoot:"0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0",txsFeatures:0,stateRoot:"0x09bfdf9e24dd5cd5b63f3c1b5d58b97ff02ca0490214a021ed7d99b93867839c",receiptsRoot:"0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0",signer:"0x0000000000000000000000000000000000000000",isTrunk:!0,transactions:[]},test:{number:0,id:"0x000000000b2bce3c70bc649a02749e8687721b09ed2e15997f466536b20bb127",size:170,parentID:"0xffffffff00000000000000000000000000000000000000000000000000000000",timestamp:1530014400,gasLimit:1e7,beneficiary:"0x0000000000000000000000000000000000000000",gasUsed:0,totalScore:0,txsRoot:"0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0",txsFeatures:0,stateRoot:"0x4ec3af0acbad1ae467ad569337d2fe8576fe303928d35b8cdd91de47e9ac84bb",receiptsRoot:"0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0",signer:"0x0000000000000000000000000000000000000000",isTrunk:!0,transactions:[]}};var gt=n(3752),yt=n(6763),bt=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))};function wt(t){const e=t.thor,n=t.vendor;return{get thor(){const t={get genesis(){return e.genesis},get status(){const t=e.status;return Object.assign(Object.assign({},t),{head:Object.assign(Object.assign({},t.head),{gasLimit:2e7}),finalized:"0000000000000000000000000000000000000000000000000000000000000000"})},ticker:()=>{const t=e.ticker();return{next:()=>t.next().then((t=>Object.assign(Object.assign({},t),{gasLimit:2e7})))}},account:t=>{const n=e.account(t);return{get address(){return n.address},get:()=>n.get(),getCode:()=>n.getCode(),getStorage:t=>n.getStorage(t),method:t=>_t(n,t,this),event:t=>xt(n,t,this)}},block:t=>e.block(t),transaction:t=>e.transaction(t),filter:(t,n)=>{const r=e.filter(t);return r.criteria(n),{range(t){return r.range(t),this},order(t){return r.order(t),this},cache(){return yt.warn("filter :cache is not supported in compat mode"),this},apply(t,e){return r.apply(t,e)}}},explain:t=>{const n=e.explain();return{caller(t){return n.caller(t),this},gas(t){return n.gas(t),this},gasPrice(t){return n.gasPrice(t),this},gasPayer(t){return yt.warn("gasPayer is not supported in compat mode"),this},cache(){return yt.warn("explainer :cache is not supported in compat mode"),this},execute:()=>n.execute(t)}}};return t},get vendor(){return{sign:(t,e)=>{let r;if("tx"===t){const i=n.sign(t),o={signer(t){return i.signer(t),this},gas(t){return i.gas(t),this},dependsOn(t){return i.dependsOn(t),this},link(t){return i.link(t),this},comment(t){return i.comment(t),this},delegate(t){return gt.D8("string"===typeof t,"arg0: expected url string"),i.delegate((e=>bt(this,void 0,void 0,(function*(){const n=yield fetch(t,{method:"POST",body:JSON.stringify(e),headers:{"Content-Type":"application/json"}});return n.json()})))),this},accepted(t){return r=t,this},request:()=>(r&&r(),i.request(e))};return o}{const i=n.sign(t),o={signer(t){return i.signer(t),this},link(t){return i.link(t),this},accepted(t){return r=t,this},request:()=>(r&&r(),i.request(e))};return o}}}}}}const _t=(t,e,n)=>{const r=new l.Function(JSON.parse(JSON.stringify(e)));let i=0;const o={};return{value(t){return i=gt.t6(t,gt.we,"arg0"),this},caller(t){return o.caller=gt.t6(t,gt.hl,"arg0").toLowerCase(),this},gas(t){return o.gas=gt.t6(t,gt.VV,"arg0"),this},gasPrice(t){return o.gasPrice=gt.t6(t,gt.we,"arg0").toString().toLowerCase(),this},gasPayer(t){return yt.warn("gasPayer is not supported in compat mode"),this},cache(t){return yt.warn("account.method :cache is not supported in compat mode"),this},asClause:(...e)=>{const n=(r.definition.inputs||[]).length;gt.D8(n===e.length,`args count expected ${n}`);try{const n=r.encode(...e);return{to:t.address,value:i.toString().toLowerCase(),data:n}}catch(o){throw new gt.vG(`args can not be encoded (${o.message})`)}},call(...t){const e=this.asClause(...t),i=n.thor.explain([e]);return o.caller&&i.caller(o.caller),o.gas&&i.gas(o.gas),o.gasPrice&&i.gasPrice(o.gasPrice),i.execute().then((t=>{const e=Object.assign(Object.assign({},t[0]),{decoded:{}});return e.reverted||"0x"===e.data||(e.decoded=r.decode(e.data)),e}))},transact(...t){const e=this.asClause(...t);return n.vendor.sign("tx",[e])}}},xt=(t,e,n)=>{const r=new l.Event(JSON.parse(JSON.stringify(e))),i=e=>{const n=r.encode(e);return{address:t.address,topic0:n[0]||void 0,topic1:n[1]||void 0,topic2:n[2]||void 0,topic3:n[3]||void 0,topic4:n[4]||void 0}};return{asCriteria:t=>{try{return i(t)}catch(e){throw new gt.vG(`arg0: can not be encoded (${e.message})`)}},filter(t){gt.t6(t,[{}],"arg0"),0===t.length&&(t=[{}]);const e=t.map(((t,e)=>{try{return i(t)}catch(n){throw new gt.vG(`arg0.#${e}: can not be encoded (${n.message})`)}})),o=n.thor.filter("event",e);return{range(t){return o.range(t),this},order(t){return o.order(t),this},cache(){return yt.warn("account.event :cache is not supported in compat mode"),this},apply(t,e){return o.apply(t,e).then((t=>t.map((t=>{const e=Object.assign(Object.assign({},t),{decoded:{}});return e.decoded=r.decode(e.data,e.topics),e}))))}}}}};class St{constructor(){this.rejectors=new Set}interrupt(){const t=this.rejectors;this.rejectors=new Set,t.forEach((t=>t(new Mt)))}wrap(t){return new Promise(((e,n)=>{const r=this.rejectors;r.add(n),t.then(e).catch(n).then((()=>r.delete(n)))}))}}class Mt extends Error{constructor(){super("promise interrupted")}}Mt.prototype.name="InterruptedError";var kt=n(9749),Et=n(2487),At=n.n(Et),Ot=n(2493),Ct=n.n(Ot);function Nt(...t){const e=Ct().blake2bInit(32);return t.forEach((t=>{o.Buffer.isBuffer(t)?Ct().blake2bUpdate(e,t):Ct().blake2bUpdate(e,o.Buffer.from(t,"utf8"))})),o.Buffer.from(Ct().blake2bFinal(e))}function Tt(t,e){const n=8*t.length;return{contains(r){let i=Nt(r).readUInt32BE(0);const o=i>>>17|i<<15>>>0;for(let a=0;a>>3,a=1<>>0}return!0}}}var Dt=n(8287)["Buffer"],It=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))};const Rt=12;class Pt{constructor(){this.irreversible={blocks:new kt(256),txs:new kt(512),receipts:new kt(512)},this.window=[]}handleNewBlock(t,e,n){while(this.window.length>0){const e=this.window[this.window.length-1];if(e.id===t.id)return;if(e.id===t.parentID)break;this.window.pop()}this.window.push(Object.assign(Object.assign({},t),{bloom:e?Tt(Dt.from(e.bits.slice(2),"hex"),e.k):void 0,block:n,accounts:new Map,txs:new Map,receipts:new Map,tied:new Map}));while(this.window.length>Rt){const t=this.window.shift();t.txs.forEach(((t,e)=>this.irreversible.txs.set(e,t))),t.receipts.forEach(((t,e)=>this.irreversible.receipts.set(e,t))),t.block&&(this.irreversible.blocks.set(t.block.id,t.block),this.irreversible.blocks.set(t.block.number,t.block))}}getBlock(t,e){return It(this,void 0,void 0,(function*(){let n=this.irreversible.blocks.get(t)||null;if(n)return n;const{slot:r}=this.findSlot(t);return r&&r.block?r.block:(n=yield e(),n&&(r&&r.id===n.id&&(r.block=n),this.isIrreversible(n.number)&&(this.irreversible.blocks.set(n.id,n),n.isTrunk&&this.irreversible.blocks.set(n.number,n))),n)}))}getTx(t,e){return It(this,void 0,void 0,(function*(){let n=this.irreversible.txs.get(t)||null;if(n)return n;for(const e of this.window)if(n=e.txs.get(t)||null,n)return n;if(n=yield e(),n&&n.meta){const{slot:e}=this.findSlot(n.meta.blockID);e&&e.txs.set(t,n),this.isIrreversible(n.meta.blockNumber)&&this.irreversible.txs.set(t,n)}return n}))}getReceipt(t,e){return It(this,void 0,void 0,(function*(){let n=this.irreversible.receipts.get(t)||null;if(n)return n;for(const e of this.window)if(n=e.receipts.get(t)||null,n)return n;if(n=yield e(),n){const{slot:e}=this.findSlot(n.meta.blockID);e&&e.receipts.set(t,n),this.isIrreversible(n.meta.blockNumber)&&this.irreversible.receipts.set(t,n)}return n}))}getAccount(t,e,n){return It(this,void 0,void 0,(function*(){const r=this.findSlot(e);for(let e=r.index;e>=0;e--){const n=this.window[e],i=n.accounts.get(t);if(i)return e!==r.index&&r.slot.accounts.set(t,i),i.snapshot(r.slot.timestamp);if(!n.bloom||jt(n.bloom,t))break}const i=yield n();return r.slot&&r.slot.accounts.set(t,new $t(i,r.slot.timestamp)),i}))}getTied(t,e,n,r){return It(this,void 0,void 0,(function*(){const i=this.findSlot(e);for(let e=i.index;e>=0;e--){const n=this.window[e],o=n.tied.get(t);if(o)return e!==i.index&&i.slot.tied.set(t,o),o;if(!n.bloom||!r)break;if(r.some((t=>jt(n.bloom,t))))break}const o=yield n();return i.slot&&i.slot.tied.set(t,o),o}))}findSlot(t){const e=this.window.findIndex((e=>e.id===t||e.number===t));return e>=0?{slot:this.window[e],index:e}:{index:e}}isIrreversible(t){return this.window.length>0&&t0!==t));return n=r<0?Dt.alloc(0):n.slice(r),t.contains(n)}const Bt=5e9;class $t{constructor(t,e){this.obj=t,this.initTimestamp=e}snapshot(t){return Object.assign(Object.assign({},this.obj),{energy:this.energyAt(t)})}energyAt(t){return tsetTimeout(e,t)))}var Ft=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))};class Ut{constructor(t,e,n){this.net=t,this.genesis=e,this.headResolvers=[],this.int=new St,this.cache=new Pt,this.pendingRequests={},this.head=n||{id:e.id,number:e.number,timestamp:e.timestamp,parentID:e.parentID,txsFeatures:e.txsFeatures,gasLimit:e.gasLimit},this.headTrackerLoop()}close(){this.int.interrupt()}pollHead(){return this.int.wrap(new Promise((t=>{this.headResolvers.push((()=>t(this.head)))})))}getBlock(t){return this.cache.getBlock(t,(()=>this.httpGet(`blocks/${t}`)))}getTransaction(t,e){return this.cache.getTx(t,(()=>{const n={head:this.head.id};return e&&(n.pending="true"),this.httpGet(`transactions/${t}`,n)}))}getReceipt(t){return this.cache.getReceipt(t,(()=>this.httpGet(`transactions/${t}/receipt`,{head:this.head.id})))}getAccount(t,e){return this.cache.getAccount(t,e,(()=>this.httpGet(`accounts/${t}`,{revision:e})))}getCode(t,e){return this.cache.getTied(`code-${t}`,e,(()=>this.httpGet(`accounts/${t}/code`,{revision:e})))}getStorage(t,e,n){return this.cache.getTied(`storage-${t}-${e}`,n,(()=>this.httpGet(`accounts/${t}/storage/${e}`,{revision:n})))}explain(t,e,n){const r=`explain-${Nt(JSON.stringify(t)).toString("hex")}`;return this.cache.getTied(r,e,(()=>this.httpPost("accounts/*",t,{revision:e})),n)}filterEventLogs(t,e){const n=`event-${Nt(JSON.stringify(t)).toString("hex")}`;return this.cache.getTied(n,this.head.id,(()=>this.httpPost("logs/event",t)),e)}filterTransferLogs(t,e){const n=`transfer-${Nt(JSON.stringify(t)).toString("hex")}`;return this.cache.getTied(n,this.head.id,(()=>this.httpPost("logs/transfer",t)),e)}signTx(t,e){throw new Error("signer not implemented")}signCert(t,e){throw new Error("signer not implemented")}mergeRequest(t,...e){const n=JSON.stringify(e),r=this.pendingRequests[n];return r||(this.pendingRequests[n]=(()=>Ft(this,void 0,void 0,(function*(){try{return yield t()}finally{delete this.pendingRequests[n]}})))())}httpGet(t,e){return this.mergeRequest((()=>this.net.http("GET",t,{query:e,validateResponseHeader:this.headerValidator})),t,e||"")}httpPost(t,e,n){return this.mergeRequest((()=>this.net.http("POST",t,{query:n,body:e,validateResponseHeader:this.headerValidator})),t,n||"",e||"")}get headerValidator(){return t=>{const e=t["x-genesis-id"];if(e&&e!==this.genesis.id)throw new Error("responded 'x-genesis-id' not matched")}}emitNewHead(){const t=this.headResolvers;this.headResolvers=[],t.forEach((t=>t()))}headTrackerLoop(){return Ft(this,void 0,void 0,(function*(){for(;;){let n=!1;try{const t=yield this.int.wrap(this.httpGet("blocks/best"));t.id!==this.head.id&&t.number>=this.head.number&&(this.head={id:t.id,number:t.number,timestamp:t.timestamp,parentID:t.parentID,txsFeatures:t.txsFeatures,gasLimit:t.gasLimit},this.cache.handleNewBlock(this.head,void 0,t),this.emitNewHead(),Date.now()-1e3*this.head.timestamp<6e4&&(n=!0))}catch(t){if(t instanceof Mt)break}if(n)try{yield this.trackWs()}catch(t){if(t instanceof Mt)break}try{yield this.int.wrap(Lt(8e3))}catch(e){break}}}))}trackWs(){return Ft(this,void 0,void 0,(function*(){const t=`subscriptions/beat2?pos=${this.head.parentID}`,e=this.net.openWebSocketReader(t);try{for(;;){const t=yield this.int.wrap(e.read()),n=JSON.parse(t);!n.obsolete&&n.id!==this.head.id&&n.number>=this.head.number&&(this.head={id:n.id,number:n.number,timestamp:n.timestamp,parentID:n.parentID,txsFeatures:n.txsFeatures,gasLimit:n.gasLimit},this.cache.handleNewBlock(this.head,{k:n.k,bits:n.bloom}),this.emitNewHead())}}finally{e.close()}}))}}var Vt=n(2505),zt=n.n(Vt),qt=n(169);class Ht{constructor(t,e=3e4){this.timeout=e,this.callbacks=[],this.ws=new qt(t),this.ws.onmessage=t=>{try{const e=this.callbacks;this.callbacks=[],e.forEach((e=>e(t.data)))}catch(e){this.setError(e),this.ws.close()}},this.ws.onerror=t=>{this.setError(t.error),this.ws.close()},this.ws.onclose=()=>{this.setError(new Error("closed"))}}read(){return new Promise(((t,e)=>{if(this.error)return e(this.error);const n=setTimeout((()=>{e(new Error("ws read timeout"))}),this.timeout);this.callbacks.push(((r,i)=>{if(clearTimeout(n),i)return e(i);t(r)}))}))}close(){this.ws.close()}setError(t){if(!this.error){this.error=t;const e=this.callbacks;this.callbacks=[],e.forEach((e=>e(null,t)))}}}var Gt=n(8835),Wt=n(1568),Yt=n(1083),Kt=function(t,e,n,r){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{u(r.next(t))}catch(e){o(e)}}function s(t){try{u(r["throw"](t))}catch(e){o(e)}}function u(t){t.done?n(t.value):i(t.value).then(a,s)}u((r=r.apply(t,e||[])).next())}))};class Zt{constructor(t,e=3e4,n=3e4){this.baseURL=t,this.wsTimeout=n,this.axios=zt().create({httpAgent:new Wt.Agent({keepAlive:!0}),httpsAgent:new Yt.Agent({keepAlive:!0}),baseURL:t,timeout:e})}http(t,e,n){return Kt(this,void 0,void 0,(function*(){n=n||{};try{const r=yield this.axios.request({method:t,url:e,data:n.body,headers:n.headers,params:n.query});return n.validateResponseHeader&&n.validateResponseHeader(r.headers),r.data}catch(r){if(r.isAxiosError)throw Xt(r);throw new Error(`${t} ${(0,Gt.resolve)(this.baseURL,e)}: ${r.message}`)}}))}openWebSocketReader(t){const e=(0,Gt.resolve)(this.baseURL,t).replace(/^http:/i,"ws:").replace(/^https:/i,"wss:");return new Ht(e,this.wsTimeout)}}function Xt(t){if(t.response){const e=t.response;if("string"===typeof e.data){let n=e.data.trim();return n.length>50&&(n=n.slice(0,50)+"..."),new Error(`${e.status} ${t.config.method} ${t.config.url}: ${n}`)}return new Error(`${e.status} ${t.config.method} ${t.config.url}`)}return new Error(`${t.config.method} ${t.config.url}: ${t.message}`)}const Jt={};function Qt(t,e){let n=Jt[t];if(!n){const r=document.createElement("script");Jt[t]=n=new Promise(((t,n)=>{r.onload=()=>t(window[e]),r.onerror=t=>n(new Error(t.toString()))})),r.src=t,document.body.appendChild(r)}return n}var te=n(3209),ee=n.n(te);const ne="https://unpkg.com/@vechain/connex-wallet-buddy@0.1",re="ConnexWalletBuddy";class ie{constructor(t,e){this.signer=this.initSigner(t,e)}get genesis(){throw new Error("not implemented")}get head(){throw new Error("not implemented")}pollHead(){throw new Error("not implemented")}getBlock(t){throw new Error("not implemented")}getTransaction(t,e){throw new Error("not implemented")}getReceipt(t){throw new Error("not implemented")}getAccount(t,e){throw new Error("not implemented")}getCode(t,e){throw new Error("not implemented")}getStorage(t,e,n){throw new Error("not implemented")}explain(t,e,n){throw new Error("not implemented")}filterEventLogs(t){throw new Error("not implemented")}filterTransferLogs(t){throw new Error("not implemented")}signTx(t,e){return this.signer.then((n=>n.signTx(t,e)))}signCert(t,e){return this.signer.then((n=>n.signCert(t,e)))}initSigner(t,e){return e?Promise.resolve(window.vechain.newConnexSigner(t)):Qt(ne,re).then((e=>e.create(t,(()=>ee()(16).toString("hex")),(t=>Nt(t).toString("hex")))))}}class oe extends Ut{constructor(t,e,n){super(new Zt(t),e),this.vd=new ie(e.id,n)}signTx(t,e){return this.vd.signTx(t,e)}signCert(t,e){return this.vd.signCert(t,e)}}const ae={};function se(t,e,n){const r=Nt(JSON.stringify({node:t,genesis:e,useExtension:n})).toString("hex");let i=ae[r];return i||(ae[r]=i=new oe(t,e,n)),i}function ue(t){if(t=t||"main","string"===typeof t){const e=vt[t];if(!e)throw new Error("invalid network");return e}return t}function le(t){if(t=t||"main",/^0x[0-9a-f]{64}$/.test(t))return t;const e=vt[t];if(e)return e.id;throw new Error("invalid genesis id")}class ce{constructor(t,e){if(t=le(t),!e||!e.noV1Compat)try{const e=window.connex;if(e&&e.thor.genesis.id===t&&/^1\./.test(e.version))return wt(e).vendor}catch(o){}const n=!(e&&e.noExtension)&&!!window.vechain,r=new ie(t,n),i=$(r);return{get sign(){return i.sign.bind(i)}}}}class he{constructor(t){const e=ue(t.network);if(!t.noV1Compat)try{const t=window.connex;if(t&&t.thor.genesis.id===e.id&&/^1\./.test(t.version))return wt(t)}catch(o){}const n=!t.noExtension&&!!window.vechain,r=se(t.node,e,n),i=new mt(r);return{get thor(){return i.thor},get vendor(){return i.vendor}}}}he.Vendor=ce;var fe=he},34:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.version="4.0.27-5"},4960:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(2616),i="0x0000000000000000000000000000000000000000";e.AddressZero=i;var o="0x0000000000000000000000000000000000000000000000000000000000000000";e.HashZero=o;var a="Ξ";e.EtherSymbol=a;var s=r.bigNumberify(-1);e.NegativeOne=s;var u=r.bigNumberify(0);e.Zero=u;var l=r.bigNumberify(1);e.One=l;var c=r.bigNumberify(2);e.Two=c;var h=r.bigNumberify("1000000000000000000");e.WeiPerEther=h;var f=r.bigNumberify("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");e.MaxUint256=f},8814:function(t,e,n){"use strict";var r=n(6763);Object.defineProperty(e,"__esModule",{value:!0});var i=n(34);e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.MISSING_NEW="MISSING_NEW",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.NUMERIC_FAULT="NUMERIC_FAULT",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION";var o=!1,a=!1;function s(t,n,r){if(a)throw new Error("unknown error");n||(n=e.UNKNOWN_ERROR),r||(r={});var o=[];Object.keys(r).forEach((function(t){try{o.push(t+"="+JSON.stringify(r[t]))}catch(u){o.push(t+"="+JSON.stringify(r[t].toString()))}})),o.push("version="+i.version);var s=t;o.length&&(t+=" ("+o.join(", ")+")");var u=new Error(t);throw u.reason=s,u.code=n,Object.keys(r).forEach((function(t){u[t]=r[t]})),u}function u(t,n){t instanceof n||s("missing new",e.MISSING_NEW,{name:n.name})}function l(t,n,r){r||(r=""),tn&&s("too many arguments"+r,e.UNEXPECTED_ARGUMENT,{count:t,expectedCount:n})}function c(t,n){o&&s("error censorship permanent",e.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),a=!!t,o=!!n}function h(){try{if(["NFD","NFC","NFKD","NFKC"].forEach((function(t){try{"test".normalize(t)}catch(e){throw new Error("missing "+t)}})),String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){s("platform missing String.prototype.normalize",e.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:t.message})}}e.throwError=s,e.checkNew=u,e.checkArgumentCount=l,e.setCensorship=c,e.checkNormalize=h;var f={debug:1,default:2,info:2,warn:3,error:4,off:5},d=f["default"];function p(t){var e=f[t];null!=e?d=e:v("invliad log level - "+t)}function m(t,e){d>f[t]||r.log.apply(r,e)}function v(){for(var t=[],e=0;e2)throw new Error("invalid signature");if(!n[1].match(/^[0-9]+$/))throw new Error("invalid signature gas");e.gas=u.bigNumberify(n[1]),t=n[0]}n=t.split(" returns ");var r=n[0].match(m);if(!r)throw new Error("invalid signature");if(e.name=r[1].trim(),!e.name.match(v))throw new Error('invalid identifier: "'+r[1]+'"');if(V(r[2]).forEach((function(t){e.inputs.push(y(t))})),r[3].split(" ").forEach((function(t){switch(t){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:a.info("unknown modifier: "+t)}})),n.length>1){var i=n[1].match(m);if(""!=i[1].trim()||""!=i[3].trim())throw new Error("unexpected tokens");V(i[2]).forEach((function(t){e.outputs.push(y(t))}))}if("constructor"===e.name){if(e.type="constructor",e.outputs.length)throw new Error("constructor may not have outputs");delete e.name,delete e.outputs}return e}function _(t){return y(t,!0)}function x(t){return H(e.defaultCoerceFunc,t).type}function S(t){return t.name+"("+t.inputs.map((function(t){return x(t)})).join(",")+")"}function M(t){if("string"===typeof t)return t=t.replace(/\s/g," "),t=t.replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," "),t=t.trim(),"event "===t.substring(0,6)?b(t.substring(6).trim()):("function "===t.substring(0,9)&&(t=t.substring(9)),w(t.trim()));throw new Error("unknown signature")}e.parseParamType=_,e.formatParamType=x,e.formatSignature=S,e.parseSignature=M;var k=function(){function t(t,e,n,r,i){this.coerceFunc=t,this.name=e,this.type=n,this.localName=r,this.dynamic=i}return t}(),E=function(t){function e(e){var n=t.call(this,e.coerceFunc,e.name,e.type,void 0,e.dynamic)||this;return h.defineReadOnly(n,"coder",e),n}return r(e,t),e.prototype.encode=function(t){return this.coder.encode(t)},e.prototype.decode=function(t,e){return this.coder.decode(t,e)},e}(k),A=function(t){function e(e,n){return t.call(this,e,"null","",n,!1)||this}return r(e,t),e.prototype.encode=function(t){return l.arrayify([])},e.prototype.decode=function(t,e){if(e>t.length)throw new Error("invalid null");return{consumed:0,value:this.coerceFunc("null",void 0)}},e}(k),O=function(t){function e(e,n,r,i){var o=this,a=(r?"int":"uint")+8*n;return o=t.call(this,e,a,a,i,!1)||this,o.size=n,o.signed=r,o}return r(e,t),e.prototype.encode=function(t){try{var e=u.bigNumberify(t);if(this.signed){var n=o.MaxUint256.maskn(8*this.size-1);if(e.gt(n))throw new Error("out-of-bounds");if(n=n.add(o.One).mul(o.NegativeOne),e.lt(n))throw new Error("out-of-bounds")}else if(e.lt(o.Zero)||e.gt(o.MaxUint256.maskn(8*this.size)))throw new Error("out-of-bounds");return e=e.toTwos(8*this.size).maskn(8*this.size),this.signed&&(e=e.fromTwos(8*this.size).toTwos(256)),l.padZeros(l.arrayify(e),32)}catch(r){a.throwError("invalid number value",a.INVALID_ARGUMENT,{arg:this.localName,coderType:this.name,value:t})}return null},e.prototype.decode=function(t,e){t.length=0?r:"")+"]",s=-1===r||n.dynamic;return o=t.call(this,e,"array",a,i,s)||this,o.coder=n,o.length=r,o}return r(e,t),e.prototype.encode=function(t){Array.isArray(t)||a.throwError("expected array value",a.INVALID_ARGUMENT,{arg:this.localName,coderType:"array",value:t});var e=this.length,n=new Uint8Array(0);-1===e&&(e=t.length,n=C.encode(e)),a.checkArgumentCount(e,t.length," in coder array"+(this.localName?" "+this.localName:""));for(var r=[],i=0;i256||i%8!==0)&&a.throwError("invalid "+r[1]+" bit length",a.INVALID_ARGUMENT,{arg:"param",value:e}),new O(t,i/8,"int"===r[1],e.name)}r=e.type.match(f);if(r){i=parseInt(r[1]);return(0===i||i>32)&&a.throwError("invalid bytes length",a.INVALID_ARGUMENT,{arg:"param",value:e}),new T(t,i,e.name)}r=e.type.match(p);if(r){i=parseInt(r[2]||"-1");return e=h.shallowCopy(e),e.type=r[1],e=h.deepCopy(e),new F(t,H(t,e),i,e.name)}return"tuple"===e.type.substring(0,5)?q(t,e.components,e.name):""===e.type?new A(t,e.name):(a.throwError("invalid type",a.INVALID_ARGUMENT,{arg:"type",value:e.type}),null)}var G=function(){function t(n){a.checkNew(this,t),n||(n=e.defaultCoerceFunc),h.defineReadOnly(this,"coerceFunc",n)}return t.prototype.encode=function(t,e){t.length!==e.length&&a.throwError("types/values length mismatch",a.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});var n=[];return t.forEach((function(t){var e=null;e="string"===typeof t?y(t):t,n.push(H(this.coerceFunc,e))}),this),l.hexlify(new U(this.coerceFunc,n,"_").encode(e))},t.prototype.decode=function(t,e){var n=[];return t.forEach((function(t){var e=null;e="string"===typeof t?y(t):h.deepCopy(t),n.push(H(this.coerceFunc,e))}),this),new U(this.coerceFunc,n,"_").decode(l.arrayify(e),0).value},t}();e.AbiCoder=G,e.defaultAbiCoder=new G},2839:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(9404)),o=n(304),a=n(1780),s=n(7173),u=n(8814);function l(t){"string"===typeof t&&t.match(/^0x[0-9A-Fa-f]{40}$/)||u.throwError("invalid address",u.INVALID_ARGUMENT,{arg:"address",value:t}),t=t.toLowerCase();for(var e=t.substring(2).split(""),n=new Uint8Array(40),r=0;r<40;r++)n[r]=e[r].charCodeAt(0);n=o.arrayify(a.keccak256(n));for(var i=0;i<40;i+=2)n[i>>1]>>4>=8&&(e[i]=e[i].toUpperCase()),(15&n[i>>1])>=8&&(e[i+1]=e[i+1].toUpperCase());return"0x"+e.join("")}var c=9007199254740991;function h(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}for(var f={},d=0;d<10;d++)f[String(d)]=String(d);for(d=0;d<26;d++)f[String.fromCharCode(65+d)]=String(10+d);var p=Math.floor(h(c));function m(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";var e="";t.split("").forEach((function(t){e+=f[t]}));while(e.length>=p){var n=e.substring(0,p);e=parseInt(n,10)%97+e.substring(n.length)}var r=String(98-parseInt(e,10)%97);while(r.length<2)r="0"+r;return r}function v(t,e){void 0===e&&(e=!0);var n=null;if("string"!==typeof t&&u.throwError("invalid address",u.INVALID_ARGUMENT,{arg:"address",value:t}),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e?(n=l(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&n!==t&&u.throwError("bad address checksum",u.INVALID_ARGUMENT,{arg:"address",value:t})):n=t;else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){t.substring(2,4)!==m(t)&&u.throwError("bad icap checksum",u.INVALID_ARGUMENT,{arg:"address",value:t}),n=new i.default.BN(t.substring(4),36).toString(16);while(n.length<40)n="0"+n;n=e?l("0x"+n):"0x"+n}else u.throwError("invalid address",u.INVALID_ARGUMENT,{arg:"address",value:t});return n}function g(t){var e=new i.default.BN(v(t).substring(2),16).toString(36).toUpperCase();while(e.length<30)e="0"+e;return"XE"+m("XE00"+e)+e}function y(t){if(!t.from)throw new Error("missing from address");var e=t.nonce;return v("0x"+a.keccak256(s.encode([v(t.from),o.stripZeros(o.hexlify(e))])).substring(26))}e.getAddress=v,e.getIcapAddress=g,e.getContractAddress=y},2616:function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},i=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e};Object.defineProperty(e,"__esModule",{value:!0});var o=r(n(9404)),a=n(304),s=n(974),u=i(n(8814)),l=new o.default.BN(-1);function c(t){var e=t.toString(16);return"-"===e[0]?e.length%2===0?"-0x0"+e.substring(1):"-0x"+e.substring(1):e.length%2===1?"0x0"+e:"0x"+e}function h(t){return d(m(t))}function f(t){return new p(c(t))}function d(t){var e=t._hex;return"-"===e[0]?new o.default.BN(e.substring(3),16).mul(l):new o.default.BN(e.substring(2),16)}var p=function(){function t(e){if(u.checkNew(this,t),s.setType(this,"BigNumber"),"string"===typeof e)a.isHexString(e)?("0x"==e&&(e="0x0"),s.defineReadOnly(this,"_hex",e)):"-"===e[0]&&a.isHexString(e.substring(1))?s.defineReadOnly(this,"_hex",e):e.match(/^-?[0-9]*$/)?(""==e&&(e="0"),s.defineReadOnly(this,"_hex",c(new o.default.BN(e)))):u.throwError("invalid BigNumber string value",u.INVALID_ARGUMENT,{arg:"value",value:e});else if("number"===typeof e){parseInt(String(e))!==e&&u.throwError("underflow",u.NUMERIC_FAULT,{operation:"setValue",fault:"underflow",value:e,outputValue:parseInt(String(e))});try{s.defineReadOnly(this,"_hex",c(new o.default.BN(e)))}catch(n){u.throwError("overflow",u.NUMERIC_FAULT,{operation:"setValue",fault:"overflow",details:n.message})}}else e instanceof t?s.defineReadOnly(this,"_hex",e._hex):e.toHexString?s.defineReadOnly(this,"_hex",c(h(e.toHexString()))):e._hex&&a.isHexString(e._hex)?s.defineReadOnly(this,"_hex",e._hex):a.isArrayish(e)?s.defineReadOnly(this,"_hex",c(new o.default.BN(a.hexlify(e).substring(2),16))):u.throwError("invalid BigNumber value",u.INVALID_ARGUMENT,{arg:"value",value:e})}return t.prototype.fromTwos=function(t){return f(d(this).fromTwos(t))},t.prototype.toTwos=function(t){return f(d(this).toTwos(t))},t.prototype.abs=function(){return"-"===this._hex[0]?f(d(this).mul(l)):this},t.prototype.add=function(t){return f(d(this).add(h(t)))},t.prototype.sub=function(t){return f(d(this).sub(h(t)))},t.prototype.div=function(t){var e=m(t);return e.isZero()&&u.throwError("division by zero",u.NUMERIC_FAULT,{operation:"divide",fault:"division by zero"}),f(d(this).div(h(t)))},t.prototype.mul=function(t){return f(d(this).mul(h(t)))},t.prototype.mod=function(t){return f(d(this).mod(h(t)))},t.prototype.pow=function(t){return f(d(this).pow(h(t)))},t.prototype.maskn=function(t){return f(d(this).maskn(t))},t.prototype.eq=function(t){return d(this).eq(h(t))},t.prototype.lt=function(t){return d(this).lt(h(t))},t.prototype.lte=function(t){return d(this).lte(h(t))},t.prototype.gt=function(t){return d(this).gt(h(t))},t.prototype.gte=function(t){return d(this).gte(h(t))},t.prototype.isZero=function(){return d(this).isZero()},t.prototype.toNumber=function(){try{return d(this).toNumber()}catch(t){u.throwError("overflow",u.NUMERIC_FAULT,{operation:"setValue",fault:"overflow",details:t.message})}return null},t.prototype.toString=function(){return d(this).toString(10)},t.prototype.toHexString=function(){return this._hex},t.isBigNumber=function(t){return s.isType(t,"BigNumber")},t}();function m(t){return p.isBigNumber(t)?t:new p(t)}e.BigNumber=p,e.bigNumberify=m},304:function(t,e,n){"use strict";var r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(8814));function o(t){return!!t.toHexString}function a(t){return t.slice||(t.slice=function(){var e=Array.prototype.slice.call(arguments);return a(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function s(t){if(!t||parseInt(String(t.length))!=t.length||"string"===typeof t)return!1;for(var e=0;e=256||parseInt(String(n))!=n)return!1}return!0}function u(t){if(null==t&&i.throwError("cannot convert null value to array",i.INVALID_ARGUMENT,{arg:"value",value:t}),o(t)&&(t=t.toHexString()),"string"===typeof t){var e=t.match(/^(0x)?[0-9a-fA-F]*$/);e||i.throwError("invalid hexidecimal string",i.INVALID_ARGUMENT,{arg:"value",value:t}),"0x"!==e[1]&&i.throwError("hex string must have 0x prefix",i.INVALID_ARGUMENT,{arg:"value",value:t}),t=t.substring(2),t.length%2&&(t="0"+t);for(var n=[],r=0;r=9007199254740991&&i.throwError("out-of-range",i.NUMERIC_FAULT,{operartion:"hexlify",fault:"out-of-safe-range"});var e="";while(t)e=d[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("string"===typeof t){var n=t.match(/^(0x)?[0-9a-fA-F]*$/);return n||i.throwError("invalid hexidecimal string",i.INVALID_ARGUMENT,{arg:"value",value:t}),"0x"!==n[1]&&i.throwError("hex string must have 0x prefix",i.INVALID_ARGUMENT,{arg:"value",value:t}),t.length%2&&(t="0x0"+t.substring(2)),t}if(s(t)){for(var r=[],a=0;a>4]+d[15&u])}return"0x"+r.join("")}return i.throwError("invalid hexlify value",null,{arg:"value",value:t}),"never"}function m(t){return f(t)&&t.length%2===0?(t.length-2)/2:null}function v(t,e,n){return f(t)||i.throwError("invalid hex data",i.INVALID_ARGUMENT,{arg:"value",value:t}),t.length%2!==0&&i.throwError("hex data length must be even",i.INVALID_ARGUMENT,{arg:"value",value:t}),e=2+2*e,null!=n?"0x"+t.substring(e,2+2*n):"0x"+t.substring(e)}function g(t){f(t)||i.throwError("invalid hex string",i.INVALID_ARGUMENT,{arg:"value",value:t});while(t.length>3&&"0x0"===t.substring(0,3))t="0x"+t.substring(3);return t}function y(t,e){f(t)||i.throwError("invalid hex string",i.INVALID_ARGUMENT,{arg:"value",value:t});while(t.length<2*e+2)t="0x0"+t.substring(2);return t}function b(t){return t&&null!=t.r&&null!=t.s}function w(t){var e=0,n="0x",r="0x";if(b(t)){null==t.v&&null==t.recoveryParam&&i.throwError("at least on of recoveryParam or v must be specified",i.INVALID_ARGUMENT,{argument:"signature",value:t}),n=y(t.r,32),r=y(t.s,32),e=t.v,"string"===typeof e&&(e=parseInt(e,16));var o=t.recoveryParam;null==o&&null!=t.v&&(o=1-e%2),e=27+o}else{var a=u(t);if(65!==a.length)throw new Error("invalid signature");n=p(a.slice(0,32)),r=p(a.slice(32,64)),e=a[64],27!==e&&28!==e&&(e=27+e%2)}return{r:n,s:r,recoveryParam:e-27,v:e}}function _(t){return t=w(t),p(l([t.r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}e.hexlify=p,e.hexDataLength=m,e.hexDataSlice=v,e.hexStripZeros=g,e.hexZeroPad=y,e.splitSignature=w,e.joinSignature=_},1780:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1176),i=n(304);function o(t){return"0x"+r.keccak_256(i.arrayify(t))}e.keccak256=o},974:function(t,e,n){"use strict";var r=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e["default"]=t,e};Object.defineProperty(e,"__esModule",{value:!0});var i=r(n(8814));function o(t,e,n){Object.defineProperty(t,e,{enumerable:!0,value:n,writable:!1})}function a(t,e){Object.defineProperty(t,"_ethersType",{configurable:!1,value:e,writable:!1})}function s(t,e){return t&&t._ethersType===e}function u(t){var e={},n=[];return Object.keys(t).forEach((function(r){var i=t[r];i instanceof Promise?n.push(i.then((function(t){return e[r]=t,null}))):e[r]=i})),Promise.all(n).then((function(){return e}))}function l(t,e){t&&"object"===typeof t||i.throwError("invalid object",i.INVALID_ARGUMENT,{argument:"object",value:t}),Object.keys(t).forEach((function(n){e[n]||i.throwError("invalid object key - "+n,i.INVALID_ARGUMENT,{argument:"transaction",value:t,key:n})}))}function c(t){var e={};for(var n in t)e[n]=t[n];return e}e.defineReadOnly=o,e.setType=a,e.isType=s,e.resolveProperties=u,e.checkProperties=l,e.shallowCopy=c;var h={boolean:!0,number:!0,string:!0};function f(t,e){if(void 0===t||null===t||h[typeof t])return t;if(Array.isArray(t)){var n=t.map((function(t){return f(t,e)}));return e&&Object.freeze(n),n}if("object"===typeof t){if(s(t,"BigNumber"))return t;if(s(t,"Description"))return t;if(s(t,"Indexed"))return t;n={};for(var r in t){var i=t[r];void 0!==i&&o(n,r,f(i,e))}return e&&Object.freeze(n),n}if("function"===typeof t)return t;throw new Error("Cannot deepCopy "+typeof t)}function d(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}function p(t){return function(e){d(e,t),o(e,"inherits",p(e))}}e.deepCopy=f,e.inheritable=p},7173:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(304);function i(t){var e=[];while(t)e.unshift(255&t),t>>=8;return e}function o(t,e,n){for(var r=0,i=0;ie+1+r)throw new Error("invalid rlp")}return{consumed:1+r,result:i}}function l(t,e){if(0===t.length)throw new Error("invalid rlp data");if(t[e]>=248){var n=t[e]-247;if(e+1+n>t.length)throw new Error("too short");var i=o(t,e+1,n);if(e+1+n+i>t.length)throw new Error("to short");return u(t,e,e+1+n,n+i)}if(t[e]>=192){i=t[e]-192;if(e+1+i>t.length)throw new Error("invalid rlp data");return u(t,e,e+1,i)}if(t[e]>=184){n=t[e]-183;if(e+1+n>t.length)throw new Error("invalid rlp data");i=o(t,e+1,n);if(e+1+n+i>t.length)throw new Error("invalid rlp data");var a=r.hexlify(t.slice(e+1+n,e+1+n+i));return{consumed:1+n+i,result:a}}if(t[e]>=128){i=t[e]-128;if(e+1+i>t.length)throw new Error("invlaid rlp data");a=r.hexlify(t.slice(e+1,e+1+i));return{consumed:1+i,result:a}}return{consumed:1,result:r.hexlify(t[e])}}function c(t){var e=r.arrayify(t),n=l(e,0);if(n.consumed!==e.length)throw new Error("invalid rlp data");return n.result}e.encode=s,e.decode=c},1380:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,i=n(4960),o=n(8814),a=n(304);function s(t,e){void 0===e&&(e=r.current),e!=r.current&&(o.checkNormalize(),t=t.normalize(e));for(var n=[],i=0;i>6|192),n.push(63&s|128);else if(55296==(64512&s)){i++;var u=t.charCodeAt(i);if(i>=t.length||56320!==(64512&u))throw new Error("invalid utf-8 string");s=65536+((1023&s)<<10)+(1023&u),n.push(s>>18|240),n.push(s>>12&63|128),n.push(s>>6&63|128),n.push(63&s|128)}else n.push(s>>12|224),n.push(s>>6&63|128),n.push(63&s|128)}return a.arrayify(n)}function u(t,e){t=a.arrayify(t);var n="",r=0;while(r>7!==0){var o=null,s=null;if(192===(224&i))o=1,s=127;else if(224===(240&i))o=2,s=2047;else{if(240!==(248&i)){if(!e){if(128===(192&i))throw new Error("invalid utf8 byte sequence; unexpected continuation byte");throw new Error("invalid utf8 byte sequence; invalid prefix")}continue}o=3,s=65535}if(r+o>t.length){if(!e)throw new Error("invalid utf8 byte sequence; too short");for(;r>6!==2)break}else{for(var u=i&(1<<8-o-1)-1,l=0;l1114111){if(!e)throw new Error("invalid utf8 byte sequence; out-of-range")}else if(u>=55296&&u<=57343){if(!e)throw new Error("invalid utf8 byte sequence; utf-16 surrogate")}else u<=65535?n+=String.fromCharCode(u):(u-=65536,n+=String.fromCharCode(55296+(u>>10&1023),56320+(1023&u)));else if(!e)throw new Error("invalid utf8 byte sequence; invalid continuation byte")}}else n+=String.fromCharCode(i)}return n}function l(t){var e=s(t);if(e.length>31)throw new Error("bytes32 string must be less than 32 bytes");return a.hexlify(a.concat([e,i.HashZero]).slice(0,32))}function c(t){var e=a.arrayify(t);if(32!==e.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==e[31])throw new Error("invalid bytes32 sdtring - no null terminator");var n=31;while(0===e[n-1])n--;return u(e.slice(0,n))}(function(t){t["current"]="",t["NFC"]="NFC",t["NFD"]="NFD",t["NFKC"]="NFKC",t["NFKD"]="NFKD"})(r=e.UnicodeNormalizationForm||(e.UnicodeNormalizationForm={})),e.toUtf8Bytes=s,e.toUtf8String=u,e.formatBytes32String=l,e.parseBytes32String=c},1394:function(t,e,n){"use strict";n.d(e,{H:function(){return a}});const r=n(3682),i=["rgb(244, 67, 54)","rgb(233, 30, 99)","rgb(156, 39, 176)","rgb(103, 58, 183)","rgb(63, 81, 181)","rgb(33, 150, 243)","rgb(3, 169, 244)","rgb(0, 188, 212)","rgb(0, 150, 136)","rgb(76, 175, 80)","rgb(139, 195, 74)","rgb(205, 220, 57)","rgb(255, 193, 7)","rgb(255, 152, 0)","rgb(255, 87, 34)"],o=function(t){if(0===t.length)return 0;let e=0;for(let n=0;n{const t=Math.floor(e.length*a.random());return e.splice(t,1)[0]},u=``,l="";let c="";const h=3,f=[35,40,45,50,55,60],d=[0,10,20,30,40,50,60,70,80,90,100],p=[30,40,50,60,70];for(let r=0;r`}return`${l}${u}${c}`}},1656:function(t,e,n){"use strict";function r(t,e,n,r,i,o,a,s){var u,l="function"===typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),r&&(l.functional=!0),o&&(l._scopeId="data-v-"+o),a?(u=function(t){t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,t||"undefined"===typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=u):i&&(u=s?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var h=l.beforeCreate;l.beforeCreate=h?[].concat(h,u):[u]}return{exports:t,options:l}}n.d(e,{A:function(){return r}})},4148:function(t,e,n){"use strict";var r=n(5606),i=n(6763);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}function a(t,e){for(var n=0;n1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;i1?n-1:0),i=1;it.length)&&(n=t.length),t.substring(n-e.length,n)===e}function O(t,e){if(e=Math.floor(e),0==t.length||0==e)return"";var n=t.length*e;e=Math.floor(Math.log(e)/Math.log(2));while(e)t+=t,e--;return t+=t.substring(0,n-t.length),t}var C="",N="",T="",D="",I={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"},R=10;function P(t){var e=Object.keys(t),n=Object.create(Object.getPrototypeOf(t));return e.forEach((function(e){n[e]=t[e]})),Object.defineProperty(n,"message",{value:t.message}),n}function j(t){return M(t,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function B(t,e,n){var i="",o="",a=0,s="",u=!1,l=j(t),c=l.split("\n"),h=j(e).split("\n"),f=0,d="";if("strictEqual"===n&&"object"===x(t)&&"object"===x(e)&&null!==t&&null!==e&&(n="strictEqualObject"),1===c.length&&1===h.length&&c[0]!==h[0]){var p=c[0].length+h[0].length;if(p<=R){if(("object"!==x(t)||null===t)&&("object"!==x(e)||null===e)&&(0!==t||0!==e))return"".concat(I[n],"\n\n")+"".concat(c[0]," !== ").concat(h[0],"\n")}else if("strictEqualObject"!==n){var m=r.stderr&&r.stderr.isTTY?r.stderr.columns:80;if(p2&&(d="\n ".concat(O(" ",f),"^"),f=0)}}}var v=c[c.length-1],g=h[h.length-1];while(v===g){if(f++<2?s="\n ".concat(v).concat(s):i=v,c.pop(),h.pop(),0===c.length||0===h.length)break;v=c[c.length-1],g=h[h.length-1]}var y=Math.max(c.length,h.length);if(0===y){var b=l.split("\n");if(b.length>30){b[26]="".concat(C,"...").concat(D);while(b.length>27)b.pop()}return"".concat(I.notIdentical,"\n\n").concat(b.join("\n"),"\n")}f>3&&(s="\n".concat(C,"...").concat(D).concat(s),u=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var w=0,_=I[n]+"\n".concat(N,"+ actual").concat(D," ").concat(T,"- expected").concat(D),S=" ".concat(C,"...").concat(D," Lines skipped");for(f=0;f1&&f>2&&(M>4?(o+="\n".concat(C,"...").concat(D),u=!0):M>3&&(o+="\n ".concat(h[f-2]),w++),o+="\n ".concat(h[f-1]),w++),a=f,i+="\n".concat(T,"-").concat(D," ").concat(h[f]),w++;else if(h.length1&&f>2&&(M>4?(o+="\n".concat(C,"...").concat(D),u=!0):M>3&&(o+="\n ".concat(c[f-2]),w++),o+="\n ".concat(c[f-1]),w++),a=f,o+="\n".concat(N,"+").concat(D," ").concat(c[f]),w++;else{var k=h[f],E=c[f],P=E!==k&&(!A(E,",")||E.slice(0,-1)!==k);P&&A(k,",")&&k.slice(0,-1)===E&&(P=!1,E+=","),P?(M>1&&f>2&&(M>4?(o+="\n".concat(C,"...").concat(D),u=!0):M>3&&(o+="\n ".concat(c[f-2]),w++),o+="\n ".concat(c[f-1]),w++),a=f,o+="\n".concat(N,"+").concat(D," ").concat(E),i+="\n".concat(T,"-").concat(D," ").concat(k),w+=2):(o+=i,i="",1!==M&&0!==f||(o+="\n ".concat(E),w++))}if(w>20&&f30){d[26]="".concat(C,"...").concat(D);while(d.length>27)d.pop()}e=1===d.length?n.call(this,"".concat(f," ").concat(d[0])):n.call(this,"".concat(f,"\n\n").concat(d.join("\n"),"\n"))}else{var v=j(l),g="",y=I[a];"notDeepEqual"===a||"notEqual"===a?(v="".concat(I[a],"\n\n").concat(v),v.length>1024&&(v="".concat(v.slice(0,1021),"..."))):(g="".concat(j(c)),v.length>512&&(v="".concat(v.slice(0,509),"...")),g.length>512&&(g="".concat(g.slice(0,509),"...")),"deepEqual"===a||"equal"===a?v="".concat(y,"\n\n").concat(v,"\n\nshould equal\n\n"):g=" ".concat(a," ").concat(g)),e=n.call(this,"".concat(v).concat(g))}return Error.stackTraceLimit=h,e.generatedMessage=!o,Object.defineProperty(m(e),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),e.code="ERR_ASSERTION",e.actual=l,e.expected=c,e.operator=a,Error.captureStackTrace&&Error.captureStackTrace(m(e),u),e.stack,e.name="AssertionError",p(e)}return l(i,[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:e,value:function(t,e){return M(this,o(o({},e),{},{customInspect:!1,depth:0}))}}]),i}(v(Error),M.custom);t.exports=$},9597:function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e){for(var n=0;n2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}function _(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function x(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function S(t,e,n){return"number"!==typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}b("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),b("ERR_INVALID_ARG_TYPE",(function(t,e,i){var o,a;if(void 0===v&&(v=n(4148)),v("string"===typeof t,"'name' must be a string"),"string"===typeof e&&_(e,"not ")?(o="must not be",e=e.replace(/^not /,"")):o="must be",x(t," argument"))a="The ".concat(t," ").concat(o," ").concat(w(e,"type"));else{var s=S(t,".")?"property":"argument";a='The "'.concat(t,'" ').concat(s," ").concat(o," ").concat(w(e,"type"))}return a+=". Received type ".concat(r(i)),a}),TypeError),b("ERR_INVALID_ARG_VALUE",(function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===g&&(g=n(537));var i=g.inspect(e);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(t,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),b("ERR_INVALID_RETURN_VALUE",(function(t,e,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(t,' to be returned from the "').concat(e,'"')+" function but got ".concat(i,".")}),TypeError),b("ERR_MISSING_ARGS",(function(){for(var t=arguments.length,e=new Array(t),r=0;r0,"At least one arg needs to be specified");var i="The ",o=e.length;switch(e=e.map((function(t){return'"'.concat(t,'"')})),o){case 1:i+="".concat(e[0]," argument");break;case 2:i+="".concat(e[0]," and ").concat(e[1]," arguments");break;default:i+=e.slice(0,o-1).join(", "),i+=", and ".concat(e[o-1]," arguments");break}return"".concat(i," must be specified")}),TypeError),t.exports.codes=y},2299:function(t,e,n){"use strict";function r(t,e){return u(t)||s(t,e)||o(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,e){if(t){if("string"===typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n10)return!0;for(var e=0;e57)return!0}return 10===t.length&&t>=Math.pow(2,32)}function B(t){return Object.keys(t).filter(j).concat(p(t).filter(Object.prototype.propertyIsEnumerable.bind(t)))} +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */function $(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],(function(t){h.headers[t]={}})),i.forEach(["post","put","patch"],(function(t){h.headers[t]=i.merge(s)})),t.exports=h},9012:function(t){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),r=0;r=0)return;a[e]="set-cookie"===e?(a[e]?a[e]:[]).concat([n]):a[e]?a[e]+", "+n:n}})),a):a}},7980:function(t){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},4841:function(t,e,n){"use strict";var r=n(6763),i=n(4198),o={};["object","boolean","number","function","string","symbol"].forEach((function(t,e){o[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}}));var a={},s=i.version.split(".");function u(t,e){for(var n=e?e.split("."):s,r=t.split("."),i=0;i<3;i++){if(n[i]>r[i])return!0;if(n[i]0){var o=r[i],a=e[o];if(a){var s=t[o],u=void 0===s||a(s,o,t);if(!0!==u)throw new TypeError("option "+o+" must be "+u)}else if(!0!==n)throw Error("Unknown option "+o)}}o.transitional=function(t,e,n){var o=e&&u(e);function s(t,e){return"[Axios v"+i.version+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return function(n,i,u){if(!1===t)throw new Error(s(i," has been removed in "+e));return o&&!a[i]&&(a[i]=!0,r.warn(s(i," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,i,u)}},t.exports={isOlderVersion:u,assertOptions:l,validators:o}},9516:function(t,e,n){"use strict";var r=n(9012),i=Object.prototype.toString;function o(t){return"[object Array]"===i.call(t)}function a(t){return"undefined"===typeof t}function s(t){return null!==t&&!a(t)&&null!==t.constructor&&!a(t.constructor)&&"function"===typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function u(t){return"[object ArrayBuffer]"===i.call(t)}function l(t){return"undefined"!==typeof FormData&&t instanceof FormData}function c(t){var e;return e="undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer,e}function h(t){return"string"===typeof t}function f(t){return"number"===typeof t}function d(t){return null!==t&&"object"===typeof t}function p(t){if("[object Object]"!==i.call(t))return!1;var e=Object.getPrototypeOf(t);return null===e||e===Object.prototype}function m(t){return"[object Date]"===i.call(t)}function v(t){return"[object File]"===i.call(t)}function g(t){return"[object Blob]"===i.call(t)}function y(t){return"[object Function]"===i.call(t)}function b(t){return d(t)&&y(t.pipe)}function w(t){return"undefined"!==typeof URLSearchParams&&t instanceof URLSearchParams}function _(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function x(){return("undefined"===typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!==typeof window&&"undefined"!==typeof document)}function S(t,e){if(null!==t&&"undefined"!==typeof t)if("object"!==typeof t&&(t=[t]),o(t))for(var n=0,r=t.length;n0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");-1===n&&(n=e);var r=n===e?0:4-n%4;return[n,r]}function l(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r}function c(t,e,n){return 3*(e+n)/4-n}function h(t){var e,n,o=u(t),a=o[0],s=o[1],l=new i(c(t,a,s)),h=0,f=s>0?a-4:a;for(n=0;n>16&255,l[h++]=e>>8&255,l[h++]=255&e;return 2===s&&(e=r[t.charCodeAt(n)]<<2|r[t.charCodeAt(n+1)]>>4,l[h++]=255&e),1===s&&(e=r[t.charCodeAt(n)]<<10|r[t.charCodeAt(n+1)]<<4|r[t.charCodeAt(n+2)]>>2,l[h++]=e>>8&255,l[h++]=255&e),l}function f(t){return n[t>>18&63]+n[t>>12&63]+n[t>>6&63]+n[63&t]}function d(t,e,n){for(var r,i=[],o=e;ou?u:s+a));return 1===i?(e=t[r-1],o.push(n[e>>2]+n[e<<4&63]+"==")):2===i&&(e=(t[r-2]<<8)+t[r-1],o.push(n[e>>10]+n[e>>4&63]+n[e<<2&63]+"=")),o.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},1594:function(t,e,n){var r;(function(i){"use strict";var o,a=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,s=Math.ceil,u=Math.floor,l="[BigNumber Error] ",c=l+"Number primitive has more than 15 significant digits: ",h=1e14,f=14,d=9007199254740991,p=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13],m=1e7,v=1e9;function g(t){var e,n,r,i=j.prototype={constructor:j,toString:null,valueOf:null},o=new j(1),k=20,E=4,A=-7,O=21,C=-1e7,N=1e7,T=!1,D=1,I=0,R={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:" ",suffix:""},P="0123456789abcdefghijklmnopqrstuvwxyz";function j(t,e){var i,o,s,l,h,p,m,v,g=this;if(!(g instanceof j))return new j(t,e);if(null==e){if(t instanceof j)return g.s=t.s,g.e=t.e,void(g.c=(t=t.c)?t.slice():t);if(p="number"==typeof t,p&&0*t==0){if(g.s=1/t<0?(t=-t,-1):1,t===~~t){for(l=0,h=t;h>=10;h/=10,l++);return g.e=l,void(g.c=[t])}v=String(t)}else{if(v=String(t),!a.test(v))return r(g,v,p);g.s=45==v.charCodeAt(0)?(v=v.slice(1),-1):1}(l=v.indexOf("."))>-1&&(v=v.replace(".","")),(h=v.search(/e/i))>0?(l<0&&(l=h),l+=+v.slice(h+1),v=v.substring(0,h)):l<0&&(l=v.length)}else{if(_(e,2,P.length,"Base"),v=String(t),10==e)return g=new j(t instanceof j?t:v),F(g,k+g.e+1,E);if(p="number"==typeof t,p){if(0*t!=0)return r(g,v,p,e);if(g.s=1/t<0?(v=v.slice(1),-1):1,j.DEBUG&&v.replace(/^0\.0*|\./,"").length>15)throw Error(c+t);p=!1}else g.s=45===v.charCodeAt(0)?(v=v.slice(1),-1):1;for(i=P.slice(0,e),l=h=0,m=v.length;hl){l=m;continue}}else if(!s&&(v==v.toUpperCase()&&(v=v.toLowerCase())||v==v.toLowerCase()&&(v=v.toUpperCase()))){s=!0,h=-1,l=0;continue}return r(g,String(t),p,e)}v=n(v,e,10,g.s),(l=v.indexOf("."))>-1?v=v.replace(".",""):l=v.length}for(h=0;48===v.charCodeAt(h);h++);for(m=v.length;48===v.charCodeAt(--m););if(v=v.slice(h,++m),v){if(m-=h,p&&j.DEBUG&&m>15&&(t>d||t!==u(t)))throw Error(c+g.s*t);if(l=l-h-1,l>N)g.c=g.e=null;else if(l=O)?S(u,a):M(u,a,"0");else if(t=F(new j(t),e,n),o=t.e,u=b(t.c),s=u.length,1==r||2==r&&(e<=o||o<=A)){for(;ss){if(--e>0)for(u+=".";e--;u+="0");}else if(e+=o-s,e>0)for(o+1==s&&(u+=".");e--;u+="0");return t.s<0&&i?"-"+u:u}function $(t,e){for(var n,r=1,i=new j(t[0]);r=10;i/=10,r++);return(n=r+n*f-1)>N?t.c=t.e=null:n=10;l/=10,i++);if(o=e-i,o<0)o+=f,a=e,c=v[d=0],m=c/g[i-a-1]%10|0;else if(d=s((o+1)/f),d>=v.length){if(!r)break t;for(;v.length<=d;v.push(0));c=m=0,i=1,o%=f,a=o-f+1}else{for(c=l=v[d],i=1;l>=10;l/=10,i++);o%=f,a=o-f+i,m=a<0?0:c/g[i-a-1]%10|0}if(r=r||e<0||null!=v[d+1]||(a<0?c:c%g[i-a-1]),r=n<4?(m||r)&&(0==n||n==(t.s<0?3:2)):m>5||5==m&&(4==n||r||6==n&&(o>0?a>0?c/g[i-a]:0:v[d-1])%10&1||n==(t.s<0?8:7)),e<1||!v[0])return v.length=0,r?(e-=t.e+1,v[0]=g[(f-e%f)%f],t.e=-e||0):v[0]=t.e=0,t;if(0==o?(v.length=d,l=1,d--):(v.length=d+1,l=g[f-o],v[d]=a>0?u(c/g[i-a]%g[a])*l:0),r)for(;;){if(0==d){for(o=1,a=v[0];a>=10;a/=10,o++);for(a=v[0]+=l,l=1;a>=10;a/=10,l++);o!=l&&(t.e++,v[0]==h&&(v[0]=1));break}if(v[d]+=l,v[d]!=h)break;v[d--]=0,l=1}for(o=v.length;0===v[--o];v.pop());}t.e>N?t.c=t.e=null:t.e=O?S(e,n):M(e,n,"0"),t.s<0?"-"+e:e)}return j.clone=g,j.ROUND_UP=0,j.ROUND_DOWN=1,j.ROUND_CEIL=2,j.ROUND_FLOOR=3,j.ROUND_HALF_UP=4,j.ROUND_HALF_DOWN=5,j.ROUND_HALF_EVEN=6,j.ROUND_HALF_CEIL=7,j.ROUND_HALF_FLOOR=8,j.EUCLID=9,j.config=j.set=function(t){var e,n;if(null!=t){if("object"!=typeof t)throw Error(l+"Object expected: "+t);if(t.hasOwnProperty(e="DECIMAL_PLACES")&&(n=t[e],_(n,0,v,e),k=n),t.hasOwnProperty(e="ROUNDING_MODE")&&(n=t[e],_(n,0,8,e),E=n),t.hasOwnProperty(e="EXPONENTIAL_AT")&&(n=t[e],n&&n.pop?(_(n[0],-v,0,e),_(n[1],0,v,e),A=n[0],O=n[1]):(_(n,-v,v,e),A=-(O=n<0?-n:n))),t.hasOwnProperty(e="RANGE"))if(n=t[e],n&&n.pop)_(n[0],-v,-1,e),_(n[1],1,v,e),C=n[0],N=n[1];else{if(_(n,-v,v,e),!n)throw Error(l+e+" cannot be zero: "+n);C=-(N=n<0?-n:n)}if(t.hasOwnProperty(e="CRYPTO")){if(n=t[e],n!==!!n)throw Error(l+e+" not true or false: "+n);if(n){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw T=!n,Error(l+"crypto unavailable");T=n}else T=n}if(t.hasOwnProperty(e="MODULO_MODE")&&(n=t[e],_(n,0,9,e),D=n),t.hasOwnProperty(e="POW_PRECISION")&&(n=t[e],_(n,0,v,e),I=n),t.hasOwnProperty(e="FORMAT")){if(n=t[e],"object"!=typeof n)throw Error(l+e+" not an object: "+n);R=n}if(t.hasOwnProperty(e="ALPHABET")){if(n=t[e],"string"!=typeof n||/^.$|[+-.\s]|(.).*\1/.test(n))throw Error(l+e+" invalid: "+n);P=n}}return{DECIMAL_PLACES:k,ROUNDING_MODE:E,EXPONENTIAL_AT:[A,O],RANGE:[C,N],CRYPTO:T,MODULO_MODE:D,POW_PRECISION:I,FORMAT:R,ALPHABET:P}},j.isBigNumber=function(t){return t instanceof j||t&&!0===t._isBigNumber||!1},j.maximum=j.max=function(){return $(arguments,i.lt)},j.minimum=j.min=function(){return $(arguments,i.gt)},j.random=function(){var t=9007199254740992,e=Math.random()*t&2097151?function(){return u(Math.random()*t)}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(t){var n,r,i,a,c,h=0,d=[],m=new j(o);if(null==t?t=k:_(t,0,v),a=s(t/f),T)if(crypto.getRandomValues){for(n=crypto.getRandomValues(new Uint32Array(a*=2));h>>11),c>=9e15?(r=crypto.getRandomValues(new Uint32Array(2)),n[h]=r[0],n[h+1]=r[1]):(d.push(c%1e14),h+=2);h=a/2}else{if(!crypto.randomBytes)throw T=!1,Error(l+"crypto unavailable");for(n=crypto.randomBytes(a*=7);h=9e15?crypto.randomBytes(7).copy(n,h):(d.push(c%1e14),h+=7);h=a/7}if(!T)for(;h=10;c/=10,h++);hn-1&&(null==a[i+1]&&(a[i+1]=0),a[i+1]+=a[i]/n|0,a[i]%=n)}return a.reverse()}return function(r,i,o,a,s){var u,l,c,h,f,d,p,m,v=r.indexOf("."),g=k,y=E;for(v>=0&&(h=I,I=0,r=r.replace(".",""),m=new j(i),d=m.pow(r.length-v),I=h,m.c=n(M(b(d.c),d.e,"0"),10,o,t),m.e=m.c.length),p=n(r,i,o,s?(u=P,t):(u=t,P)),c=h=p.length;0==p[--h];p.pop());if(!p[0])return u.charAt(0);if(v<0?--c:(d.c=p,d.e=c,d.s=a,d=e(d,m,g,y,o),p=d.c,f=d.r,c=d.e),l=c+g+1,v=p[l],h=o/2,f=f||l<0||null!=p[l+1],f=y<4?(null!=v||f)&&(0==y||y==(d.s<0?3:2)):v>h||v==h&&(4==y||f||6==y&&1&p[l-1]||y==(d.s<0?8:7)),l<1||!p[0])r=f?M(u.charAt(1),-g,u.charAt(0)):u.charAt(0);else{if(p.length=l,f)for(--o;++p[--l]>o;)p[l]=0,l||(++c,p=[1].concat(p));for(h=p.length;!p[--h];);for(v=0,r="";v<=h;r+=u.charAt(p[v++]));r=M(r,c,u.charAt(0))}return r}}(),e=function(){function t(t,e,n){var r,i,o,a,s=0,u=t.length,l=e%m,c=e/m|0;for(t=t.slice();u--;)o=t[u]%m,a=t[u]/m|0,r=c*o+a*l,i=l*o+r%m*m+s,s=(i/n|0)+(r/m|0)+c*a,t[u]=i%n;return s&&(t=[s].concat(t)),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]1;t.splice(0,1));}return function(r,i,o,a,s){var l,c,d,p,m,v,g,b,w,_,x,S,M,k,E,A,O,C=r.s==i.s?1:-1,N=r.c,T=i.c;if(!N||!N[0]||!T||!T[0])return new j(r.s&&i.s&&(N?!T||N[0]!=T[0]:T)?N&&0==N[0]||!T?0*C:C/0:NaN);for(b=new j(C),w=b.c=[],c=r.e-i.e,C=o+c+1,s||(s=h,c=y(r.e/f)-y(i.e/f),C=C/f|0),d=0;T[d]==(N[d]||0);d++);if(T[d]>(N[d]||0)&&c--,C<0)w.push(1),p=!0;else{for(k=N.length,A=T.length,d=0,C+=2,m=u(s/(T[0]+1)),m>1&&(T=t(T,m,s),N=t(N,m,s),A=T.length,k=N.length),M=A,_=N.slice(0,A),x=_.length;x=s/2&&E++;do{if(m=0,l=e(T,_,A,x),l<0){if(S=_[0],A!=x&&(S=S*s+(_[1]||0)),m=u(S/E),m>1){m>=s&&(m=s-1),v=t(T,m,s),g=v.length,x=_.length;while(1==e(v,_,g,x))m--,n(v,A=10;C/=10,d++);F(b,o+(b.e=d+c*f-1)+1,a,p)}else b.e=c,b.r=+p;return b}}(),r=function(){var t=/^(-?)0([xbo])(?=\w[\w.]*$)/i,e=/^([^.]+)\.$/,n=/^\.([^.]+)$/,r=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(o,a,s,u){var c,h=s?a:a.replace(i,"");if(r.test(h))o.s=isNaN(h)?null:h<0?-1:1,o.c=o.e=null;else{if(!s&&(h=h.replace(t,(function(t,e,n){return c="x"==(n=n.toLowerCase())?16:"b"==n?2:8,u&&u!=c?t:e})),u&&(c=u,h=h.replace(e,"$1").replace(n,"0.$1")),a!=h))return new j(h,c);if(j.DEBUG)throw Error(l+"Not a"+(u?" base "+u:"")+" number: "+a);o.c=o.e=o.s=null}}}(),i.absoluteValue=i.abs=function(){var t=new j(this);return t.s<0&&(t.s=1),t},i.comparedTo=function(t,e){return w(this,new j(t,e))},i.decimalPlaces=i.dp=function(t,e){var n,r,i,o=this;if(null!=t)return _(t,0,v),null==e?e=E:_(e,0,8),F(new j(o),t+o.e+1,e);if(!(n=o.c))return null;if(r=((i=n.length-1)-y(this.e/f))*f,i=n[i])for(;i%10==0;i/=10,r--);return r<0&&(r=0),r},i.dividedBy=i.div=function(t,n){return e(this,new j(t,n),k,E)},i.dividedToIntegerBy=i.idiv=function(t,n){return e(this,new j(t,n),0,1)},i.exponentiatedBy=i.pow=function(t,e){var n,r,i,a,c,h,d,p,m,v=this;if(t=new j(t),t.c&&!t.isInteger())throw Error(l+"Exponent not an integer: "+U(t));if(null!=e&&(e=new j(e)),h=t.e>14,!v.c||!v.c[0]||1==v.c[0]&&!v.e&&1==v.c.length||!t.c||!t.c[0])return m=new j(Math.pow(+U(v),h?2-x(t):+U(t))),e?m.mod(e):m;if(d=t.s<0,e){if(e.c?!e.c[0]:!e.s)return new j(NaN);r=!d&&v.isInteger()&&e.isInteger(),r&&(v=v.mod(e))}else{if(t.e>9&&(v.e>0||v.e<-1||(0==v.e?v.c[0]>1||h&&v.c[1]>=24e7:v.c[0]<8e13||h&&v.c[0]<=9999975e7)))return a=v.s<0&&x(t)?-0:0,v.e>-1&&(a=1/a),new j(d?1/a:a);I&&(a=s(I/f+2))}for(h?(n=new j(.5),d&&(t.s=1),p=x(t)):(i=Math.abs(+U(t)),p=i%2),m=new j(o);;){if(p){if(m=m.times(v),!m.c)break;a?m.c.length>a&&(m.c.length=a):r&&(m=m.mod(e))}if(i){if(i=u(i/2),0===i)break;p=i%2}else if(t=t.times(n),F(t,t.e+1,1),t.e>14)p=x(t);else{if(i=+U(t),0===i)break;p=i%2}v=v.times(v),a?v.c&&v.c.length>a&&(v.c.length=a):r&&(v=v.mod(e))}return r?m:(d&&(m=o.div(m)),e?m.mod(e):a?F(m,I,E,c):m)},i.integerValue=function(t){var e=new j(this);return null==t?t=E:_(t,0,8),F(e,e.e+1,t)},i.isEqualTo=i.eq=function(t,e){return 0===w(this,new j(t,e))},i.isFinite=function(){return!!this.c},i.isGreaterThan=i.gt=function(t,e){return w(this,new j(t,e))>0},i.isGreaterThanOrEqualTo=i.gte=function(t,e){return 1===(e=w(this,new j(t,e)))||0===e},i.isInteger=function(){return!!this.c&&y(this.e/f)>this.c.length-2},i.isLessThan=i.lt=function(t,e){return w(this,new j(t,e))<0},i.isLessThanOrEqualTo=i.lte=function(t,e){return-1===(e=w(this,new j(t,e)))||0===e},i.isNaN=function(){return!this.s},i.isNegative=function(){return this.s<0},i.isPositive=function(){return this.s>0},i.isZero=function(){return!!this.c&&0==this.c[0]},i.minus=function(t,e){var n,r,i,o,a=this,s=a.s;if(t=new j(t,e),e=t.s,!s||!e)return new j(NaN);if(s!=e)return t.s=-e,a.plus(t);var u=a.e/f,l=t.e/f,c=a.c,d=t.c;if(!u||!l){if(!c||!d)return c?(t.s=-e,t):new j(d?a:NaN);if(!c[0]||!d[0])return d[0]?(t.s=-e,t):new j(c[0]?a:3==E?-0:0)}if(u=y(u),l=y(l),c=c.slice(),s=u-l){for((o=s<0)?(s=-s,i=c):(l=u,i=d),i.reverse(),e=s;e--;i.push(0));i.reverse()}else for(r=(o=(s=c.length)<(e=d.length))?s:e,s=e=0;e0)for(;e--;c[n++]=0);for(e=h-1;r>s;){if(c[--r]=0;){for(n=0,p=S[i]%w,v=S[i]/w|0,a=u,o=i+a;o>i;)l=x[--a]%w,c=x[a]/w|0,s=v*l+c*p,l=p*l+s%w*w+g[o]+n,n=(l/b|0)+(s/w|0)+v*c,g[o--]=l%b;g[o]=n}return n?++r:g.splice(0,1),L(t,g,r)},i.negated=function(){var t=new j(this);return t.s=-t.s||null,t},i.plus=function(t,e){var n,r=this,i=r.s;if(t=new j(t,e),e=t.s,!i||!e)return new j(NaN);if(i!=e)return t.s=-e,r.minus(t);var o=r.e/f,a=t.e/f,s=r.c,u=t.c;if(!o||!a){if(!s||!u)return new j(i/0);if(!s[0]||!u[0])return u[0]?t:new j(s[0]?r:0*i)}if(o=y(o),a=y(a),s=s.slice(),i=o-a){for(i>0?(a=o,n=u):(i=-i,n=s),n.reverse();i--;n.push(0));n.reverse()}for(i=s.length,e=u.length,i-e<0&&(n=u,u=s,s=n,e=i),i=0;e;)i=(s[--e]=s[e]+u[e]+i)/h|0,s[e]=h===s[e]?0:s[e]%h;return i&&(s=[i].concat(s),++a),L(t,s,a)},i.precision=i.sd=function(t,e){var n,r,i,o=this;if(null!=t&&t!==!!t)return _(t,1,v),null==e?e=E:_(e,0,8),F(new j(o),t,e);if(!(n=o.c))return null;if(i=n.length-1,r=i*f+1,i=n[i]){for(;i%10==0;i/=10,r--);for(i=n[0];i>=10;i/=10,r++);}return t&&o.e+1>r&&(r=o.e+1),r},i.shiftedBy=function(t){return _(t,-d,d),this.times("1e"+t)},i.squareRoot=i.sqrt=function(){var t,n,r,i,o,a=this,s=a.c,u=a.s,l=a.e,c=k+4,h=new j("0.5");if(1!==u||!s||!s[0])return new j(!u||u<0&&(!s||s[0])?NaN:s?a:1/0);if(u=Math.sqrt(+U(a)),0==u||u==1/0?(n=b(s),(n.length+l)%2==0&&(n+="0"),u=Math.sqrt(+n),l=y((l+1)/2)-(l<0||l%2),u==1/0?n="1e"+l:(n=u.toExponential(),n=n.slice(0,n.indexOf("e")+1)+l),r=new j(n)):r=new j(u+""),r.c[0])for(l=r.e,u=l+c,u<3&&(u=0);;)if(o=r,r=h.times(o.plus(e(a,o,c,1))),b(o.c).slice(0,u)===(n=b(r.c)).slice(0,u)){if(r.e0&&m>0){for(o=m%s||s,h=p.substr(0,o);o0&&(h+=c+p.slice(o)),d&&(h="-"+h)}r=f?h+(n.decimalSeparator||"")+((u=+n.fractionGroupSize)?f.replace(new RegExp("\\d{"+u+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):f):h}return(n.prefix||"")+r+(n.suffix||"")},i.toFraction=function(t){var n,r,i,a,s,u,c,h,d,m,v,g,y=this,w=y.c;if(null!=t&&(c=new j(t),!c.isInteger()&&(c.c||1!==c.s)||c.lt(o)))throw Error(l+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+U(c));if(!w)return new j(y);for(n=new j(o),d=r=new j(o),i=h=new j(o),g=b(w),s=n.e=g.length-y.e-1,n.c[0]=p[(u=s%f)<0?f+u:u],t=!t||c.comparedTo(n)>0?s>0?n:d:c,u=N,N=1/0,c=new j(g),h.c[0]=0;;){if(m=e(c,n,0,1),a=r.plus(m.times(i)),1==a.comparedTo(t))break;r=i,i=a,d=h.plus(m.times(a=d)),h=a,n=c.minus(m.times(a=n)),c=a}return a=e(t.minus(r),i,0,1),h=h.plus(a.times(d)),r=r.plus(a.times(i)),h.s=d.s=y.s,s*=2,v=e(d,i,s,E).minus(y).abs().comparedTo(e(h,r,s,E).minus(y).abs())<1?[d,i]:[h,r],N=u,v},i.toNumber=function(){return+U(this)},i.toPrecision=function(t,e){return null!=t&&_(t,1,v),B(this,t,e,2)},i.toString=function(t){var e,r=this,i=r.s,o=r.e;return null===o?i?(e="Infinity",i<0&&(e="-"+e)):e="NaN":(null==t?e=o<=A||o>=O?S(b(r.c),o):M(b(r.c),o,"0"):10===t?(r=F(new j(r),k+o+1,E),e=M(b(r.c),r.e,"0")):(_(t,2,P.length,"Base"),e=n(M(b(r.c),o,"0"),10,t,i,!0)),i<0&&r.c[0]&&(e="-"+e)),e},i.valueOf=i.toJSON=function(){return U(this)},i._isBigNumber=!0,"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator&&(i[Symbol.toStringTag]="BigNumber",i[Symbol.for("nodejs.util.inspect.custom")]=i.valueOf),null!=t&&j.set(t),j}function y(t){var e=0|t;return t>0||t===e?e:e-1}function b(t){for(var e,n,r=1,i=t.length,o=t[0]+"";rl^n?1:-1;for(s=(u=i.length)<(l=o.length)?u:l,a=0;ao[a]^n?1:-1;return u==l?0:u>l^n?1:-1}function _(t,e,n,r){if(tn||t!==(t<0?s(t):u(t)))throw Error(l+(r||"Argument")+("number"==typeof t?tn?" out of range: ":" not an integer: ":" not a primitive number: ")+String(t))}function x(t){var e=t.c.length-1;return y(t.e/f)==e&&t.c[e]%2!=0}function S(t,e){return(t.length>1?t.charAt(0)+"."+t.slice(1):t)+(e<0?"e":"e+")+e}function M(t,e,n){var r,i;if(e<0){for(i=n+".";++e;i+=n);t=i+t}else if(r=t.length,++e>r){for(i=n,e-=r;--e;i+=n);t+=i}else e=4294967296&&i++,t[e]=r,t[e+1]=i}function o(t,e,n,r){let i=t[e]+n;n<0&&(i+=4294967296);let o=t[e+1]+r;i>=4294967296&&o++,t[e]=i,t[e+1]=o}function a(t,e){return t[e]^t[e+1]<<8^t[e+2]<<16^t[e+3]<<24}function s(t,e,n,r,a,s){const u=f[a],l=f[a+1],c=f[s],d=f[s+1];i(h,t,e),o(h,t,u,l);let p=h[r]^h[t],m=h[r+1]^h[t+1];h[r]=m,h[r+1]=p,i(h,n,r),p=h[e]^h[n],m=h[e+1]^h[n+1],h[e]=p>>>24^m<<8,h[e+1]=m>>>24^p<<8,i(h,t,e),o(h,t,c,d),p=h[r]^h[t],m=h[r+1]^h[t+1],h[r]=p>>>16^m<<16,h[r+1]=m>>>16^p<<16,i(h,n,r),p=h[e]^h[n],m=h[e+1]^h[n+1],h[e]=m>>>31^p<<1,h[e+1]=p>>>31^m<<1}const u=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),l=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],c=new Uint8Array(l.map((function(t){return 2*t}))),h=new Uint32Array(32),f=new Uint32Array(32);function d(t,e){let n=0;for(n=0;n<16;n++)h[n]=t.h[n],h[n+16]=u[n];for(h[24]=h[24]^t.t,h[25]=h[25]^t.t/4294967296,e&&(h[28]=~h[28],h[29]=~h[29]),n=0;n<32;n++)f[n]=a(t.b,4*n);for(n=0;n<12;n++)s(0,8,16,24,c[16*n+0],c[16*n+1]),s(2,10,18,26,c[16*n+2],c[16*n+3]),s(4,12,20,28,c[16*n+4],c[16*n+5]),s(6,14,22,30,c[16*n+6],c[16*n+7]),s(0,10,20,30,c[16*n+8],c[16*n+9]),s(2,12,22,24,c[16*n+10],c[16*n+11]),s(4,14,16,26,c[16*n+12],c[16*n+13]),s(6,8,18,28,c[16*n+14],c[16*n+15]);for(n=0;n<16;n++)t.h[n]=t.h[n]^h[n]^h[n+16]}const p=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function m(t,e,n,r){if(0===t||t>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(e&&e.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(n&&16!==n.length)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(r&&16!==r.length)throw new Error("Illegal personal, expected Uint8Array with length is 16");const i={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:t};p.fill(0),p[0]=t,e&&(p[1]=e.length),p[2]=1,p[3]=1,n&&p.set(n,32),r&&p.set(r,48);for(let o=0;o<16;o++)i.h[o]=u[o]^a(p,4*o);return e&&(v(i,e),i.c=128),i}function v(t,e){for(let n=0;n>2]>>8*(3&n);return e}function y(t,e,n,i,o){n=n||64,t=r.normalizeInput(t),i&&(i=r.normalizeInput(i)),o&&(o=r.normalizeInput(o));const a=m(n,e,i,o);return v(a,t),g(a)}function b(t,e,n,i,o){const a=y(t,e,n,i,o);return r.toHex(a)}t.exports={blake2b:y,blake2bHex:b,blake2bInit:m,blake2bUpdate:v,blake2bFinal:g}},1843:function(t,e,n){const r=n(829);function i(t,e){return t[e]^t[e+1]<<8^t[e+2]<<16^t[e+3]<<24}function o(t,e,n,r,i,o){l[t]=l[t]+l[e]+i,l[r]=a(l[r]^l[t],16),l[n]=l[n]+l[r],l[e]=a(l[e]^l[n],12),l[t]=l[t]+l[e]+o,l[r]=a(l[r]^l[t],8),l[n]=l[n]+l[r],l[e]=a(l[e]^l[n],7)}function a(t,e){return t>>>e^t<<32-e}const s=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),u=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),l=new Uint32Array(16),c=new Uint32Array(16);function h(t,e){let n=0;for(n=0;n<8;n++)l[n]=t.h[n],l[n+8]=s[n];for(l[12]^=t.t,l[13]^=t.t/4294967296,e&&(l[14]=~l[14]),n=0;n<16;n++)c[n]=i(t.b,4*n);for(n=0;n<10;n++)o(0,4,8,12,c[u[16*n+0]],c[u[16*n+1]]),o(1,5,9,13,c[u[16*n+2]],c[u[16*n+3]]),o(2,6,10,14,c[u[16*n+4]],c[u[16*n+5]]),o(3,7,11,15,c[u[16*n+6]],c[u[16*n+7]]),o(0,5,10,15,c[u[16*n+8]],c[u[16*n+9]]),o(1,6,11,12,c[u[16*n+10]],c[u[16*n+11]]),o(2,7,8,13,c[u[16*n+12]],c[u[16*n+13]]),o(3,4,9,14,c[u[16*n+14]],c[u[16*n+15]]);for(n=0;n<8;n++)t.h[n]^=l[n]^l[n+8]}function f(t,e){if(!(t>0&&t<=32))throw new Error("Incorrect output length, should be in [1, 32]");const n=e?e.length:0;if(e&&!(n>0&&n<=32))throw new Error("Incorrect key length, should be in [1, 32]");const r={h:new Uint32Array(s),b:new Uint8Array(64),c:0,t:0,outlen:t};return r.h[0]^=16842752^n<<8^t,n>0&&(d(r,e),r.c=64),r}function d(t,e){for(let n=0;n>2]>>8*(3&n)&255;return e}function m(t,e,n){n=n||32,t=r.normalizeInput(t);const i=f(n,e);return d(i,t),p(i)}function v(t,e,n){const i=m(t,e,n);return r.toHex(i)}t.exports={blake2s:m,blake2sHex:v,blake2sInit:f,blake2sUpdate:d,blake2sFinal:p}},2493:function(t,e,n){const r=n(4156),i=n(1843);t.exports={blake2b:r.blake2b,blake2bHex:r.blake2bHex,blake2bInit:r.blake2bInit,blake2bUpdate:r.blake2bUpdate,blake2bFinal:r.blake2bFinal,blake2s:i.blake2s,blake2sHex:i.blake2sHex,blake2sInit:i.blake2sInit,blake2sUpdate:i.blake2sUpdate,blake2sFinal:i.blake2sFinal}},829:function(t,e,n){var r=n(6763);const i="Input must be an string, Buffer or Uint8Array";function o(t){let e;if(t instanceof Uint8Array)e=t;else{if("string"!==typeof t)throw new Error(i);{const n=new TextEncoder;e=n.encode(t)}}return e}function a(t){return Array.prototype.map.call(t,(function(t){return(t<16?"0":"")+t.toString(16)})).join("")}function s(t){return(4294967296+t).toString(16).substring(1)}function u(t,e,n){let i="\n"+t+" = ";for(let r=0;r=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function u(t,e,n){var r=s(t,n);return n-1>=e&&(r|=s(t,n-1)<<4),r}function l(t,e,n,r){for(var i=0,o=Math.min(t.length,n),a=e;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(t){return t instanceof o||null!==t&&"object"===typeof t&&t.constructor.wordSize===o.wordSize&&Array.isArray(t.words)},o.max=function(t,e){return t.cmp(e)>0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"===typeof t)return this._initNumber(t,e,n);if("object"===typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36),t=t.toString().replace(/\s+/g,"");var i=0;"-"===t[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,s+=24,s>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=u(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else{var s=t.length-e;for(r=s%2===0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8}this.strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,u=0,c=n;c1&&0===this.words[this.length-1])this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(t){for(var e=new Array(t.bitLength()),n=0;n>>i}return e}function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var l=1;l>>26,h=67108863&u,f=Math.min(l,e.length-1),d=Math.max(0,l-t.length+1);d<=f;d++){var p=l-d|0;i=0|t.words[p],o=0|e.words[d],a=i*o+h,c+=a/67108864|0,h=67108863&a}n.words[l]=0|h,u=0|c}return 0!==u?n.words[l]=0|u:n.length--,n.strip()}o.prototype.toString=function(t,e){var n;if(t=t||10,e=0|e||1,16===t||"hex"===t){n="";for(var i=0,o=0,a=0;a>>24-i&16777215,n=0!==o||a!==this.length-1?c[6-u.length]+u+n:u+n,i+=2,i>=26&&(i-=26,a--)}0!==o&&(n=o.toString(16)+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=h[t],d=f[t];n="";var p=this.clone();p.negative=0;while(!p.isZero()){var m=p.modn(d).toString(t);p=p.idivn(d),n=p.isZero()?m+n:c[l-m.length]+m+n}this.isZero()&&(n="0"+n);while(n.length%e!==0)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(t,e){return r("undefined"!==typeof a),this.toArrayLike(a,t,e)},o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===e,l=new t(o),c=this.clone();if(u){for(s=0;!c.isZero();s++)a=c.andln(255),c.iushrn(8),l[s]=a;for(;s=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0===(8191&e)&&(n+=13,e>>>=13),0===(127&e)&&(n+=7,e>>>=7),0===(15&e)&&(n+=4,e>>>=4),0===(3&e)&&(n+=2,e>>>=2),0===(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"===typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"===typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,d=0|a[1],p=8191&d,m=d>>>13,v=0|a[2],g=8191&v,y=v>>>13,b=0|a[3],w=8191&b,_=b>>>13,x=0|a[4],S=8191&x,M=x>>>13,k=0|a[5],E=8191&k,A=k>>>13,O=0|a[6],C=8191&O,N=O>>>13,T=0|a[7],D=8191&T,I=T>>>13,R=0|a[8],P=8191&R,j=R>>>13,B=0|a[9],$=8191&B,L=B>>>13,F=0|s[0],U=8191&F,V=F>>>13,z=0|s[1],q=8191&z,H=z>>>13,G=0|s[2],W=8191&G,Y=G>>>13,K=0|s[3],Z=8191&K,X=K>>>13,J=0|s[4],Q=8191&J,tt=J>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,lt=st>>>13,ct=0|s[8],ht=8191&ct,ft=ct>>>13,dt=0|s[9],pt=8191&dt,mt=dt>>>13;n.negative=t.negative^e.negative,n.length=19,r=Math.imul(h,U),i=Math.imul(h,V),i=i+Math.imul(f,U)|0,o=Math.imul(f,V);var vt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(p,U),i=Math.imul(p,V),i=i+Math.imul(m,U)|0,o=Math.imul(m,V),r=r+Math.imul(h,q)|0,i=i+Math.imul(h,H)|0,i=i+Math.imul(f,q)|0,o=o+Math.imul(f,H)|0;var gt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,U),i=Math.imul(g,V),i=i+Math.imul(y,U)|0,o=Math.imul(y,V),r=r+Math.imul(p,q)|0,i=i+Math.imul(p,H)|0,i=i+Math.imul(m,q)|0,o=o+Math.imul(m,H)|0,r=r+Math.imul(h,W)|0,i=i+Math.imul(h,Y)|0,i=i+Math.imul(f,W)|0,o=o+Math.imul(f,Y)|0;var yt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(yt>>>26)|0,yt&=67108863,r=Math.imul(w,U),i=Math.imul(w,V),i=i+Math.imul(_,U)|0,o=Math.imul(_,V),r=r+Math.imul(g,q)|0,i=i+Math.imul(g,H)|0,i=i+Math.imul(y,q)|0,o=o+Math.imul(y,H)|0,r=r+Math.imul(p,W)|0,i=i+Math.imul(p,Y)|0,i=i+Math.imul(m,W)|0,o=o+Math.imul(m,Y)|0,r=r+Math.imul(h,Z)|0,i=i+Math.imul(h,X)|0,i=i+Math.imul(f,Z)|0,o=o+Math.imul(f,X)|0;var bt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(S,U),i=Math.imul(S,V),i=i+Math.imul(M,U)|0,o=Math.imul(M,V),r=r+Math.imul(w,q)|0,i=i+Math.imul(w,H)|0,i=i+Math.imul(_,q)|0,o=o+Math.imul(_,H)|0,r=r+Math.imul(g,W)|0,i=i+Math.imul(g,Y)|0,i=i+Math.imul(y,W)|0,o=o+Math.imul(y,Y)|0,r=r+Math.imul(p,Z)|0,i=i+Math.imul(p,X)|0,i=i+Math.imul(m,Z)|0,o=o+Math.imul(m,X)|0,r=r+Math.imul(h,Q)|0,i=i+Math.imul(h,tt)|0,i=i+Math.imul(f,Q)|0,o=o+Math.imul(f,tt)|0;var wt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(E,U),i=Math.imul(E,V),i=i+Math.imul(A,U)|0,o=Math.imul(A,V),r=r+Math.imul(S,q)|0,i=i+Math.imul(S,H)|0,i=i+Math.imul(M,q)|0,o=o+Math.imul(M,H)|0,r=r+Math.imul(w,W)|0,i=i+Math.imul(w,Y)|0,i=i+Math.imul(_,W)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(g,Z)|0,i=i+Math.imul(g,X)|0,i=i+Math.imul(y,Z)|0,o=o+Math.imul(y,X)|0,r=r+Math.imul(p,Q)|0,i=i+Math.imul(p,tt)|0,i=i+Math.imul(m,Q)|0,o=o+Math.imul(m,tt)|0,r=r+Math.imul(h,nt)|0,i=i+Math.imul(h,rt)|0,i=i+Math.imul(f,nt)|0,o=o+Math.imul(f,rt)|0;var _t=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(_t>>>26)|0,_t&=67108863,r=Math.imul(C,U),i=Math.imul(C,V),i=i+Math.imul(N,U)|0,o=Math.imul(N,V),r=r+Math.imul(E,q)|0,i=i+Math.imul(E,H)|0,i=i+Math.imul(A,q)|0,o=o+Math.imul(A,H)|0,r=r+Math.imul(S,W)|0,i=i+Math.imul(S,Y)|0,i=i+Math.imul(M,W)|0,o=o+Math.imul(M,Y)|0,r=r+Math.imul(w,Z)|0,i=i+Math.imul(w,X)|0,i=i+Math.imul(_,Z)|0,o=o+Math.imul(_,X)|0,r=r+Math.imul(g,Q)|0,i=i+Math.imul(g,tt)|0,i=i+Math.imul(y,Q)|0,o=o+Math.imul(y,tt)|0,r=r+Math.imul(p,nt)|0,i=i+Math.imul(p,rt)|0,i=i+Math.imul(m,nt)|0,o=o+Math.imul(m,rt)|0,r=r+Math.imul(h,ot)|0,i=i+Math.imul(h,at)|0,i=i+Math.imul(f,ot)|0,o=o+Math.imul(f,at)|0;var xt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(D,U),i=Math.imul(D,V),i=i+Math.imul(I,U)|0,o=Math.imul(I,V),r=r+Math.imul(C,q)|0,i=i+Math.imul(C,H)|0,i=i+Math.imul(N,q)|0,o=o+Math.imul(N,H)|0,r=r+Math.imul(E,W)|0,i=i+Math.imul(E,Y)|0,i=i+Math.imul(A,W)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(S,Z)|0,i=i+Math.imul(S,X)|0,i=i+Math.imul(M,Z)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(w,Q)|0,i=i+Math.imul(w,tt)|0,i=i+Math.imul(_,Q)|0,o=o+Math.imul(_,tt)|0,r=r+Math.imul(g,nt)|0,i=i+Math.imul(g,rt)|0,i=i+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0,r=r+Math.imul(p,ot)|0,i=i+Math.imul(p,at)|0,i=i+Math.imul(m,ot)|0,o=o+Math.imul(m,at)|0,r=r+Math.imul(h,ut)|0,i=i+Math.imul(h,lt)|0,i=i+Math.imul(f,ut)|0,o=o+Math.imul(f,lt)|0;var St=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(P,U),i=Math.imul(P,V),i=i+Math.imul(j,U)|0,o=Math.imul(j,V),r=r+Math.imul(D,q)|0,i=i+Math.imul(D,H)|0,i=i+Math.imul(I,q)|0,o=o+Math.imul(I,H)|0,r=r+Math.imul(C,W)|0,i=i+Math.imul(C,Y)|0,i=i+Math.imul(N,W)|0,o=o+Math.imul(N,Y)|0,r=r+Math.imul(E,Z)|0,i=i+Math.imul(E,X)|0,i=i+Math.imul(A,Z)|0,o=o+Math.imul(A,X)|0,r=r+Math.imul(S,Q)|0,i=i+Math.imul(S,tt)|0,i=i+Math.imul(M,Q)|0,o=o+Math.imul(M,tt)|0,r=r+Math.imul(w,nt)|0,i=i+Math.imul(w,rt)|0,i=i+Math.imul(_,nt)|0,o=o+Math.imul(_,rt)|0,r=r+Math.imul(g,ot)|0,i=i+Math.imul(g,at)|0,i=i+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0,r=r+Math.imul(p,ut)|0,i=i+Math.imul(p,lt)|0,i=i+Math.imul(m,ut)|0,o=o+Math.imul(m,lt)|0,r=r+Math.imul(h,ht)|0,i=i+Math.imul(h,ft)|0,i=i+Math.imul(f,ht)|0,o=o+Math.imul(f,ft)|0;var Mt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul($,U),i=Math.imul($,V),i=i+Math.imul(L,U)|0,o=Math.imul(L,V),r=r+Math.imul(P,q)|0,i=i+Math.imul(P,H)|0,i=i+Math.imul(j,q)|0,o=o+Math.imul(j,H)|0,r=r+Math.imul(D,W)|0,i=i+Math.imul(D,Y)|0,i=i+Math.imul(I,W)|0,o=o+Math.imul(I,Y)|0,r=r+Math.imul(C,Z)|0,i=i+Math.imul(C,X)|0,i=i+Math.imul(N,Z)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(E,Q)|0,i=i+Math.imul(E,tt)|0,i=i+Math.imul(A,Q)|0,o=o+Math.imul(A,tt)|0,r=r+Math.imul(S,nt)|0,i=i+Math.imul(S,rt)|0,i=i+Math.imul(M,nt)|0,o=o+Math.imul(M,rt)|0,r=r+Math.imul(w,ot)|0,i=i+Math.imul(w,at)|0,i=i+Math.imul(_,ot)|0,o=o+Math.imul(_,at)|0,r=r+Math.imul(g,ut)|0,i=i+Math.imul(g,lt)|0,i=i+Math.imul(y,ut)|0,o=o+Math.imul(y,lt)|0,r=r+Math.imul(p,ht)|0,i=i+Math.imul(p,ft)|0,i=i+Math.imul(m,ht)|0,o=o+Math.imul(m,ft)|0,r=r+Math.imul(h,pt)|0,i=i+Math.imul(h,mt)|0,i=i+Math.imul(f,pt)|0,o=o+Math.imul(f,mt)|0;var kt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul($,q),i=Math.imul($,H),i=i+Math.imul(L,q)|0,o=Math.imul(L,H),r=r+Math.imul(P,W)|0,i=i+Math.imul(P,Y)|0,i=i+Math.imul(j,W)|0,o=o+Math.imul(j,Y)|0,r=r+Math.imul(D,Z)|0,i=i+Math.imul(D,X)|0,i=i+Math.imul(I,Z)|0,o=o+Math.imul(I,X)|0,r=r+Math.imul(C,Q)|0,i=i+Math.imul(C,tt)|0,i=i+Math.imul(N,Q)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(E,nt)|0,i=i+Math.imul(E,rt)|0,i=i+Math.imul(A,nt)|0,o=o+Math.imul(A,rt)|0,r=r+Math.imul(S,ot)|0,i=i+Math.imul(S,at)|0,i=i+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,r=r+Math.imul(w,ut)|0,i=i+Math.imul(w,lt)|0,i=i+Math.imul(_,ut)|0,o=o+Math.imul(_,lt)|0,r=r+Math.imul(g,ht)|0,i=i+Math.imul(g,ft)|0,i=i+Math.imul(y,ht)|0,o=o+Math.imul(y,ft)|0,r=r+Math.imul(p,pt)|0,i=i+Math.imul(p,mt)|0,i=i+Math.imul(m,pt)|0,o=o+Math.imul(m,mt)|0;var Et=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul($,W),i=Math.imul($,Y),i=i+Math.imul(L,W)|0,o=Math.imul(L,Y),r=r+Math.imul(P,Z)|0,i=i+Math.imul(P,X)|0,i=i+Math.imul(j,Z)|0,o=o+Math.imul(j,X)|0,r=r+Math.imul(D,Q)|0,i=i+Math.imul(D,tt)|0,i=i+Math.imul(I,Q)|0,o=o+Math.imul(I,tt)|0,r=r+Math.imul(C,nt)|0,i=i+Math.imul(C,rt)|0,i=i+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(E,ot)|0,i=i+Math.imul(E,at)|0,i=i+Math.imul(A,ot)|0,o=o+Math.imul(A,at)|0,r=r+Math.imul(S,ut)|0,i=i+Math.imul(S,lt)|0,i=i+Math.imul(M,ut)|0,o=o+Math.imul(M,lt)|0,r=r+Math.imul(w,ht)|0,i=i+Math.imul(w,ft)|0,i=i+Math.imul(_,ht)|0,o=o+Math.imul(_,ft)|0,r=r+Math.imul(g,pt)|0,i=i+Math.imul(g,mt)|0,i=i+Math.imul(y,pt)|0,o=o+Math.imul(y,mt)|0;var At=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul($,Z),i=Math.imul($,X),i=i+Math.imul(L,Z)|0,o=Math.imul(L,X),r=r+Math.imul(P,Q)|0,i=i+Math.imul(P,tt)|0,i=i+Math.imul(j,Q)|0,o=o+Math.imul(j,tt)|0,r=r+Math.imul(D,nt)|0,i=i+Math.imul(D,rt)|0,i=i+Math.imul(I,nt)|0,o=o+Math.imul(I,rt)|0,r=r+Math.imul(C,ot)|0,i=i+Math.imul(C,at)|0,i=i+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(E,ut)|0,i=i+Math.imul(E,lt)|0,i=i+Math.imul(A,ut)|0,o=o+Math.imul(A,lt)|0,r=r+Math.imul(S,ht)|0,i=i+Math.imul(S,ft)|0,i=i+Math.imul(M,ht)|0,o=o+Math.imul(M,ft)|0,r=r+Math.imul(w,pt)|0,i=i+Math.imul(w,mt)|0,i=i+Math.imul(_,pt)|0,o=o+Math.imul(_,mt)|0;var Ot=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,r=Math.imul($,Q),i=Math.imul($,tt),i=i+Math.imul(L,Q)|0,o=Math.imul(L,tt),r=r+Math.imul(P,nt)|0,i=i+Math.imul(P,rt)|0,i=i+Math.imul(j,nt)|0,o=o+Math.imul(j,rt)|0,r=r+Math.imul(D,ot)|0,i=i+Math.imul(D,at)|0,i=i+Math.imul(I,ot)|0,o=o+Math.imul(I,at)|0,r=r+Math.imul(C,ut)|0,i=i+Math.imul(C,lt)|0,i=i+Math.imul(N,ut)|0,o=o+Math.imul(N,lt)|0,r=r+Math.imul(E,ht)|0,i=i+Math.imul(E,ft)|0,i=i+Math.imul(A,ht)|0,o=o+Math.imul(A,ft)|0,r=r+Math.imul(S,pt)|0,i=i+Math.imul(S,mt)|0,i=i+Math.imul(M,pt)|0,o=o+Math.imul(M,mt)|0;var Ct=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul($,nt),i=Math.imul($,rt),i=i+Math.imul(L,nt)|0,o=Math.imul(L,rt),r=r+Math.imul(P,ot)|0,i=i+Math.imul(P,at)|0,i=i+Math.imul(j,ot)|0,o=o+Math.imul(j,at)|0,r=r+Math.imul(D,ut)|0,i=i+Math.imul(D,lt)|0,i=i+Math.imul(I,ut)|0,o=o+Math.imul(I,lt)|0,r=r+Math.imul(C,ht)|0,i=i+Math.imul(C,ft)|0,i=i+Math.imul(N,ht)|0,o=o+Math.imul(N,ft)|0,r=r+Math.imul(E,pt)|0,i=i+Math.imul(E,mt)|0,i=i+Math.imul(A,pt)|0,o=o+Math.imul(A,mt)|0;var Nt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul($,ot),i=Math.imul($,at),i=i+Math.imul(L,ot)|0,o=Math.imul(L,at),r=r+Math.imul(P,ut)|0,i=i+Math.imul(P,lt)|0,i=i+Math.imul(j,ut)|0,o=o+Math.imul(j,lt)|0,r=r+Math.imul(D,ht)|0,i=i+Math.imul(D,ft)|0,i=i+Math.imul(I,ht)|0,o=o+Math.imul(I,ft)|0,r=r+Math.imul(C,pt)|0,i=i+Math.imul(C,mt)|0,i=i+Math.imul(N,pt)|0,o=o+Math.imul(N,mt)|0;var Tt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul($,ut),i=Math.imul($,lt),i=i+Math.imul(L,ut)|0,o=Math.imul(L,lt),r=r+Math.imul(P,ht)|0,i=i+Math.imul(P,ft)|0,i=i+Math.imul(j,ht)|0,o=o+Math.imul(j,ft)|0,r=r+Math.imul(D,pt)|0,i=i+Math.imul(D,mt)|0,i=i+Math.imul(I,pt)|0,o=o+Math.imul(I,mt)|0;var Dt=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul($,ht),i=Math.imul($,ft),i=i+Math.imul(L,ht)|0,o=Math.imul(L,ft),r=r+Math.imul(P,pt)|0,i=i+Math.imul(P,mt)|0,i=i+Math.imul(j,pt)|0,o=o+Math.imul(j,mt)|0;var It=(l+r|0)+((8191&i)<<13)|0;l=(o+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul($,pt),i=Math.imul($,mt),i=i+Math.imul(L,pt)|0,o=Math.imul(L,mt);var Rt=(l+r|0)+((8191&i)<<13)|0;return l=(o+(i>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,u[0]=vt,u[1]=gt,u[2]=yt,u[3]=bt,u[4]=wt,u[5]=_t,u[6]=xt,u[7]=St,u[8]=Mt,u[9]=kt,u[10]=Et,u[11]=At,u[12]=Ot,u[13]=Ct,u[14]=Nt,u[15]=Tt,u[16]=Dt,u[17]=It,u[18]=Rt,0!==l&&(u[19]=l,n.length++),n};function v(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0,i+=a>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}function g(t,e,n){var r=new y;return r.mulp(t,e,n)}function y(t,e){this.x=t,this.y=e}Math.imul||(m=p),o.prototype.mulTo=function(t,e){var n,r=this.length+t.length;return n=10===this.length&&10===t.length?m(this,t,e):r<63?p(this,t,e):r<1024?v(this,t,e):g(this,t,e),n},y.prototype.makeRBT=function(t){for(var e=new Array(t),n=o.prototype._countBits(t)-1,r=0;r>=1;return r},y.prototype.permute=function(t,e,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*e;a>=26,e+=i/67108864|0,e+=o>>>26,this.words[n]=67108863&o}return 0!==e&&(this.words[n]=e,this.length++),this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=d(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,l=0;l=0&&(0!==c||l>=i);l--){var h=0|this.words[l];this.words[l]=c<<26-o|h>>>o,c=h&s}return u&&0!==c&&(u.words[u.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"===typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"===typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(t,e){var n=this.length-t.length,r=this.clone(),i=t,a=0|i.words[i.length-1],s=this._countBits(a);n=26-s,0!==n&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var u,l=r.length-i.length;if("mod"!==e){u=new o(null),u.length=l+1,u.words=new Array(u.length);for(var c=0;c=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);while(0!==r.negative)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);u&&(u.words[f]=d)}return u&&u.strip(),r.strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:u||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modn=function(t){r(t<=67108863);for(var e=(1<<26)%t,n=0,i=this.length-1;i>=0;i--)n=(e*n+(0|this.words[i]))%t;return n},o.prototype.idivn=function(t){r(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*e;this.words[n]=i/t|0,e=i%t}return this.strip()},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i=new o(1),a=new o(0),s=new o(0),u=new o(1),l=0;while(e.isEven()&&n.isEven())e.iushrn(1),n.iushrn(1),++l;var c=n.clone(),h=e.clone();while(!e.isZero()){for(var f=0,d=1;0===(e.words[0]&d)&&f<26;++f,d<<=1);if(f>0){e.iushrn(f);while(f-- >0)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(h)),i.iushrn(1),a.iushrn(1)}for(var p=0,m=1;0===(n.words[0]&m)&&p<26;++p,m<<=1);if(p>0){n.iushrn(p);while(p-- >0)(s.isOdd()||u.isOdd())&&(s.iadd(c),u.isub(h)),s.iushrn(1),u.iushrn(1)}e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(l)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();var i,a=new o(1),s=new o(0),u=n.clone();while(e.cmpn(1)>0&&n.cmpn(1)>0){for(var l=0,c=1;0===(e.words[0]&c)&&l<26;++l,c<<=1);if(l>0){e.iushrn(l);while(l-- >0)a.isOdd()&&a.iadd(u),a.iushrn(1)}for(var h=0,f=1;0===(n.words[0]&f)&&h<26;++h,f<<=1);if(h>0){n.iushrn(h);while(h-- >0)s.isOdd()&&s.iadd(u),s.iushrn(1)}e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return i=0===e.cmpn(1)?a:s,i.cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);do{while(e.isEven())e.iushrn(1);while(n.isEven())n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}while(1);return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"===typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new k(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var b={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function _(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function x(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function S(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(t){if("string"===typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){k.call(this,t),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),n=this.imulK(n),n=n.iadd(this.tmp),e=n.bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},i(_,w),_.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},_.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(b[t])return b[t];var e;if("k256"===t)e=new _;else if("p224"===t)e=new x;else if("p192"===t)e=new S;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new M}return b[t]=e,e},k.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},k.prototype._verify2=function(t,e){r(0===(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},k.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},k.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},k.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},k.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},k.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},k.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},k.prototype.isqr=function(t){return this.imul(t,t.clone())},k.prototype.sqr=function(t){return this.mul(t,t)},k.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2===1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}var i=this.m.subn(1),a=0;while(!i.isZero()&&0===i.andln(1))a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();c=new o(2*c*c).toRed(this);while(0!==this.pow(c,l).cmp(u))c.redIAdd(u);var h=this.pow(c,i),f=this.pow(t,i.addn(1).iushrn(1)),d=this.pow(t,i),p=a;while(0!==d.cmp(s)){for(var m=d,v=0;0!==m.cmp(s);v++)m=m.redSqr();r(v=0;i--){for(var c=e.words[i],h=l-1;h>=0;h--){var f=c>>h&1;a!==r[0]&&(a=this.sqr(a)),0!==f||0!==s?(s<<=1,s|=f,u++,(u===n||0===i&&0===h)&&(a=this.mul(a,r[s]),u=0,s=0)):u=0}l=26}return a},k.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},k.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new E(t)},i(E,k),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(t){var e=this.imod(t._invmp(this.m).mul(this.r2));return e._forceRed(this)}}(t,this)},4915:function(t,e,n){"use strict";function r(t){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function a(t){for(var e=1;e0?1:0}n.d(e,{Ay:function(){return Uf}});var m=Math.sign||p;function v(t,e){var n=e.split(".").reduce((function(t,e){return t?t[e]:null}),t);return n}function g(t,e,n){if(!t)return-1;if(!n||"function"!==typeof n)return t.indexOf(e);for(var r=0;r2&&void 0!==arguments[2]&&arguments[2];if(r||!Object.assign){var o=function(t){return y(n[t])&&null!==e&&e.hasOwnProperty(t)&&y(e[t])},s=Object.getOwnPropertyNames(n).map((function(a){return i({},a,o(a)?t(e[a],n[a],r):n[a])})).reduce((function(t,e){return a({},t,{},e)}),{});return a({},e,{},s)}return Object.assign(e,n)},w=b,_={Android:function(){return"undefined"!==typeof window&&window.navigator.userAgent.match(/Android/i)},BlackBerry:function(){return"undefined"!==typeof window&&window.navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return"undefined"!==typeof window&&window.navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return"undefined"!==typeof window&&window.navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return"undefined"!==typeof window&&window.navigator.userAgent.match(/IEMobile/i)},any:function(){return _.Android()||_.BlackBerry()||_.iOS()||_.Opera()||_.Windows()}};function x(t){"undefined"!==typeof t.remove?t.remove():"undefined"!==typeof t.parentNode&&null!==t.parentNode&&t.parentNode.removeChild(t)}function S(t){var e=document.createElement("div");e.style.position="absolute",e.style.left="0px",e.style.top="0px";var n=document.createElement("div");return e.appendChild(n),n.appendChild(t),document.body.appendChild(e),e}function M(t,e){var n=JSON.parse(JSON.stringify(t)),r=function(t){return function(e,n){return t.map((function(t){var r=1;return"-"===t[0]&&(r=-1,t=t.substring(1)),e[t]>n[t]?r:e[t]1&&void 0!==arguments[1])||arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;void 0!==t&&(this.selected=t,this.$emit("select",this.selected,r),null!==this.selected&&(this.newValue=this.clearOnSelect?"":this.getValue(this.selected),this.setHovered(null)),n&&this.$nextTick((function(){e.isActive=!1})),this.checkValidity())},selectFirstOption:function(t){var e=this;this.$nextTick((function(){t.length?(e.openOnFocus||""!==e.newValue&&e.hovered!==t[0])&&e.setHovered(t[0]):e.setHovered(null)}))},enterPressed:function(t){null!==this.hovered&&this.setSelected(this.hovered,!this.keepOpen,t)},tabPressed:function(t){null!==this.hovered?this.setSelected(this.hovered,!this.keepOpen,t):this.isActive=!1},clickedOutside:function(t){this.whiteList.indexOf(t.target)<0&&(this.isActive=!1)},getValue:function(t){if(null!==t)return"undefined"!==typeof this.customFormatter?this.customFormatter(t):"object"===r(t)?v(t,this.field):t},checkIfReachedTheEndOfScroll:function(t){t.clientHeight!==t.scrollHeight&&t.scrollTop+t.clientHeight>=t.scrollHeight&&this.$emit("infinite-scroll")},calcDropdownInViewportVertical:function(){var t=this;this.$nextTick((function(){if(void 0!==t.$refs.dropdown){var e=t.$refs.dropdown.getBoundingClientRect();t.isListInViewportVertically=e.top>=0&&e.bottom<=(window.innerHeight||document.documentElement.clientHeight),t.appendToBody&&t.updateAppendToBody()}}))},keyArrows:function(t){var e="down"===t?1:-1;if(this.isActive){var n=this.data.indexOf(this.hovered)+e;n=n>this.data.length-1?this.data.length:n,n=n<0?0:n,this.setHovered(this.data[n]);var r=this.$refs.dropdown.querySelector(".dropdown-content"),i=r.querySelectorAll("a.dropdown-item:not(.is-disabled)")[n];if(!i)return;var o=r.scrollTop,a=r.scrollTop+r.clientHeight-i.clientHeight;i.offsetTop=a&&(r.scrollTop=i.offsetTop-r.clientHeight+i.clientHeight)}else this.isActive=!0},focused:function(t){this.getValue(this.selected)===this.newValue&&this.$el.querySelector("input").select(),this.openOnFocus&&(this.isActive=!0,this.keepFirst&&this.selectFirstOption(this.data)),this.hasFocus=!0,this.$emit("focus",t)},onBlur:function(t){this.hasFocus=!1,this.$emit("blur",t)},onInput:function(t){var e=this.getValue(this.selected);e&&e===this.newValue||(this.$emit("typing",this.newValue),this.checkValidity())},rightIconClick:function(t){this.clearable?(this.newValue="",this.openOnFocus&&this.$el.focus()):this.$emit("icon-right-click",t)},checkValidity:function(){var t=this;this.useHtml5Validation&&this.$nextTick((function(){t.checkHtml5Validity()}))},updateAppendToBody:function(){var t=this.$refs.dropdown,e=this.$refs.input.$el;if(t&&e){var n=this.$data._bodyEl;n.classList.forEach((function(t){return n.classList.remove(t)})),n.classList.add("autocomplete"),n.classList.add("control"),this.expandend&&n.classList.add("is-expandend");var r=e.getBoundingClientRect(),i=r.top+window.scrollY,o=r.left+window.scrollX;this.isOpenedTop?i-=t.clientHeight:i+=e.clientHeight,this.style={position:"absolute",top:"".concat(i,"px"),left:"".concat(o,"px"),width:"".concat(e.clientWidth,"px"),maxWidth:"".concat(e.clientWidth,"px"),zIndex:"99"}}}},created:function(){"undefined"!==typeof window&&(document.addEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.addEventListener("resize",this.calcDropdownInViewportVertical))},mounted:function(){var t=this;if(this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){var e=this.$refs.dropdown.querySelector(".dropdown-content");e.addEventListener("scroll",(function(){return t.checkIfReachedTheEndOfScroll(e)}))}this.appendToBody&&(this.$data._bodyEl=S(this.$refs.dropdown),this.updateAppendToBody())},beforeDestroy:function(){if("undefined"!==typeof window&&(document.removeEventListener("click",this.clickedOutside),"auto"===this.dropdownPosition&&window.removeEventListener("resize",this.calcDropdownInViewportVertical)),this.checkInfiniteScroll&&this.$refs.dropdown&&this.$refs.dropdown.querySelector(".dropdown-content")){var t=this.$refs.dropdown.querySelector(".dropdown-content");t.removeEventListener("scroll",this.checkIfReachedTheEndOfScroll)}this.appendToBody&&x(this.$data._bodyEl)}};const rt=nt;var it=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"autocomplete control",class:{"is-expanded":t.expanded}},[n("b-input",t._b({ref:"input",attrs:{type:"text",size:t.size,loading:t.loading,rounded:t.rounded,icon:t.icon,"icon-right":t.newIconRight,"icon-right-clickable":t.newIconRightClickable,"icon-pack":t.iconPack,maxlength:t.maxlength,autocomplete:t.newAutocomplete,"use-html5-validation":!1},on:{input:t.onInput,focus:t.focused,blur:t.onBlur,"icon-right-click":t.rightIconClick,"icon-click":function(e){return t.$emit("icon-click",e)}},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"]))return null;e.preventDefault(),t.isActive=!1},keydown:[function(e){return!("button"in e)&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:t.tabPressed(e)},function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.enterPressed(e))},function(e){if(!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"]))return null;e.preventDefault(),t.keyArrows("up")},function(e){if(!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"]))return null;e.preventDefault(),t.keyArrows("down")}]},model:{value:t.newValue,callback:function(e){t.newValue=e},expression:"newValue"}},"b-input",t.$attrs,!1)),t._v(" "),n("transition",{attrs:{name:"fade"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive&&(t.data.length>0||t.hasEmptySlot||t.hasHeaderSlot),expression:"isActive && (data.length > 0 || hasEmptySlot || hasHeaderSlot)"}],ref:"dropdown",staticClass:"dropdown-menu",class:{"is-opened-top":t.isOpenedTop&&!t.appendToBody},style:t.style},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"dropdown-content",style:t.contentStyle},[t.hasHeaderSlot?n("div",{staticClass:"dropdown-item"},[t._t("header")],2):t._e(),t._v(" "),t._l(t.data,(function(e,r){return n("a",{key:r,staticClass:"dropdown-item",class:{"is-hovered":e===t.hovered},on:{click:function(n){t.setSelected(e,void 0,n)}}},[t.hasDefaultSlot?t._t("default",null,{option:e,index:r}):n("span",[t._v("\r\n "+t._s(t.getValue(e,!0))+"\r\n ")])],2)})),t._v(" "),0===t.data.length&&t.hasEmptySlot?n("div",{staticClass:"dropdown-item is-disabled"},[t._t("empty")],2):t._e(),t._v(" "),t.hasFooterSlot?n("div",{staticClass:"dropdown-item"},[t._t("footer")],2):t._e()],2)])])],1)},ot=[];const at=void 0,st=void 0,ut=void 0,lt=!1;var ct=N({render:it,staticRenderFns:ot},at,rt,st,lt,ut,void 0,void 0),ht={install:function(t){D(t,ct)}};T(ht);var ft=ht,dt={name:"BButton",components:i({},G.name,G),inheritAttrs:!1,props:{type:[String,Object],size:String,label:String,iconPack:String,iconLeft:String,iconRight:String,rounded:{type:Boolean,default:function(){return E.defaultButtonRounded}},loading:Boolean,outlined:Boolean,expanded:Boolean,inverted:Boolean,focused:Boolean,active:Boolean,hovered:Boolean,selected:Boolean,nativeType:{type:String,default:"button",validator:function(t){return["button","submit","reset"].indexOf(t)>=0}},tag:{type:String,default:"button",validator:function(t){return E.defaultLinkTags.indexOf(t)>=0}}},computed:{computedTag:function(){return void 0!==this.$attrs.disabled&&!1!==this.$attrs.disabled?"button":this.tag},iconSize:function(){return this.size&&"is-medium"!==this.size?"is-large"===this.size?"is-medium":this.size:"is-small"}}};const pt=dt;var mt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.computedTag,t._g(t._b({tag:"component",staticClass:"button",class:[t.size,t.type,{"is-rounded":t.rounded,"is-loading":t.loading,"is-outlined":t.outlined,"is-fullwidth":t.expanded,"is-inverted":t.inverted,"is-focused":t.focused,"is-active":t.active,"is-hovered":t.hovered,"is-selected":t.selected}],attrs:{type:t.nativeType}},"component",t.$attrs,!1),t.$listeners),[t.iconLeft?n("b-icon",{attrs:{pack:t.iconPack,icon:t.iconLeft,size:t.iconSize}}):t._e(),t._v(" "),t.label?n("span",[t._v(t._s(t.label))]):t.$slots.default?n("span",[t._t("default")],2):t._e(),t._v(" "),t.iconRight?n("b-icon",{attrs:{pack:t.iconPack,icon:t.iconRight,size:t.iconSize}}):t._e()],1)},vt=[];const gt=void 0,yt=void 0,bt=void 0,wt=!1;var _t=N({render:mt,staticRenderFns:vt},gt,pt,yt,wt,bt,void 0,void 0),xt={install:function(t){D(t,_t)}};T(xt);var St=xt,Mt={name:"BCarousel",components:i({},G.name,G),props:{value:{type:Number,default:0},animated:{type:String,default:"slide"},interval:Number,hasDrag:{type:Boolean,default:!0},autoplay:{type:Boolean,default:!0},pauseHover:{type:Boolean,default:!0},pauseInfo:{type:Boolean,default:!0},pauseInfoType:{type:String,default:"is-white"},pauseText:{type:String,default:"Pause"},arrow:{type:Boolean,default:!0},arrowBoth:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},repeat:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:function(){return E.defaultIconPrev}},iconNext:{type:String,default:function(){return E.defaultIconNext}},indicator:{type:Boolean,default:!0},indicatorBackground:Boolean,indicatorCustom:Boolean,indicatorCustomSize:{type:String,default:"is-small"},indicatorInside:{type:Boolean,default:!0},indicatorMode:{type:String,default:"click"},indicatorPosition:{type:String,default:"is-bottom"},indicatorStyle:{type:String,default:"is-dots"},overlay:Boolean,progress:Boolean,progressType:{type:String,default:"is-primary"},withCarouselList:Boolean},data:function(){return{_isCarousel:!0,activeItem:this.value,carouselItems:[],isPause:!1,dragX:0,timer:null}},computed:{indicatorClasses:function(){return[{"has-background":this.indicatorBackground,"has-custom":this.indicatorCustom,"is-inside":this.indicatorInside},this.indicatorCustom&&this.indicatorCustomSize,this.indicatorInside&&this.indicatorPosition]}},watch:{value:function(t){t1&&void 0!==arguments[1])||arguments[1];this.activeItem!==t&&(this.activeItem50&&(n<0?this.next():this.prev()),t.touches&&this.startTimer()}}},mounted:function(){this.activeItem=0&&this.$parent.carouselItems.splice(t,1)}};const Rt=It;var Pt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.transition}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"carousel-item"},[t._t("default")],2)])},jt=[];const Bt=void 0,$t=void 0,Lt=void 0,Ft=!1;var Ut=N({render:Pt,staticRenderFns:jt},Bt,Rt,$t,Ft,Lt,void 0,void 0),Vt={name:"BCarouselList",components:i({},G.name,G),props:{config:{type:Object,default:function(){return{}}},data:{type:Array,default:function(){return[]}},value:{type:Number,default:0},hasDrag:{type:Boolean,default:!0},hasGrayscale:Boolean,hasOpacity:Boolean,repeat:Boolean,itemsToShow:{type:Number,default:4},itemsToList:{type:Number,default:1},asIndicator:Boolean,arrow:{type:Boolean,default:!0},arrowHover:{type:Boolean,default:!0},iconPack:String,iconSize:String,iconPrev:{type:String,default:function(){return E.defaultIconPrev}},iconNext:{type:String,default:function(){return E.defaultIconNext}},refresh:Boolean},data:function(){return{activeItem:this.value,breakpoints:{},delta:0,dragging:!1,hold:0,itemWidth:0,settings:{}}},computed:{listClass:function(){return[{"has-grayscale":this.settings.hasGrayscale||this.hasGrayscale,"has-opacity":this.settings.hasOpacity||this.hasOpacity,"is-dragging":this.dragging}]},itemStyle:function(){return"width: ".concat(this.itemWidth,"px;")},transformStyle:function(){var t=this.delta+this.activeItem*this.itemWidth*1,e=this.dragging?-t:-Math.abs(t);return"transform: translateX(".concat(e,"px);")},total:function(){return this.data.length-1}},watch:{value:function(t){this.switchTo(t)},refresh:function(t){t&&this.asIndicator&&this.getWidth()},$props:{handler:function(t){this.initConfig(),this.update()},deep:!0}},methods:{initConfig:function(){this.breakpoints=this.config.breakpoints,this.settings=w(this.$props,this.config,!0)},getWidth:function(){var t=this.$el.getBoundingClientRect();this.itemWidth=t.width/this.settings.itemsToShow},update:function(){this.breakpoints&&this.updateConfig(),this.getWidth()},updateConfig:function(){var t,e=this,n=Object.keys(this.breakpoints).sort((function(t,e){return e-t}));n.some((function(n){if(t=window.matchMedia("(min-width: ".concat(n,"px)")).matches,t)return e.settings=e.config.breakpoints[n],!0})),t||(this.settings=this.config)},switchTo:function(t){if(!(t<0||this.activeItem===t||!this.repeat&&t>this.total)){var e=this.repeat&&t>this.total?0:t;this.activeItem=e,this.$emit("switch",e)}},next:function(){this.switchTo(this.activeItem+this.itemsToList)},prev:function(){this.switchTo(this.activeItem-this.itemsToList)},checkArrow:function(t){if(this.repeat||this.activeItem!==t)return!0},checkAsIndicator:function(t,e){if(this.asIndicator){var n=(new Date).getTime();!e.touches&&n-this.hold>200||this.switchTo(t)}},dragStart:function(t){!this.hasDrag||0!==t.button&&"touchstart"!==t.type||(this.hold=(new Date).getTime(),this.dragging=!0,this.dragStartX=t.touches?t.touches[0].clientX:t.clientX,window.addEventListener(t.touches?"touchmove":"mousemove",this.dragMove),window.addEventListener(t.touches?"touchend":"mouseup",this.dragEnd))},dragMove:function(t){this.dragEndX=t.touches?t.touches[0].clientX:t.clientX;var e=this.dragEndX-this.dragStartX;this.delta=e<0?Math.abs(e):-Math.abs(e),t.touches||t.preventDefault()},dragEnd:function(t){var e=1*m(this.delta),n=Math.round(Math.abs(this.delta/this.itemWidth)+.15);this.switchTo(this.activeItem+e*n),this.dragging=!1,this.delta=0,window.removeEventListener(t.touches?"touchmove":"mousemove",this.dragMove),window.removeEventListener(t.touches?"touchend":"mouseup",this.dragEnd)}},created:function(){this.initConfig(),"undefined"!==typeof window&&window.addEventListener("resize",this.update)},mounted:function(){var t=this;this.$nextTick((function(){t.update()}))},beforeDestroy:function(){"undefined"!==typeof window&&window.removeEventListener("resize",this.update)}};const zt=Vt;var qt=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"carousel-list",class:{"has-shadow":t.activeItem>0},on:{mousedown:function(e){return e.stopPropagation(),e.preventDefault(),t.dragStart(e)},touchstart:t.dragStart}},[n("div",{staticClass:"carousel-slides",class:t.listClass,style:t.transformStyle},t._l(t.data,(function(e,r){return n("div",{key:r,staticClass:"carousel-slide",class:{"is-active":t.activeItem===r},style:t.itemStyle,on:{click:function(e){t.checkAsIndicator(r,e)}}},[t._t("item",[n("figure",{staticClass:"image"},[n("img",{attrs:{src:e.image,title:e.title}})])],{list:e,index:r,active:t.activeItem})],2)}))),t._v(" "),t.arrow?n("div",{staticClass:"carousel-arrow",class:{"is-hovered":t.arrowHover}},[n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.activeItem>0,expression:"activeItem > 0"}],staticClass:"has-icons-left",attrs:{pack:t.iconPack,icon:t.iconPrev,size:t.iconSize,both:""},nativeOn:{click:function(e){return e.preventDefault(),t.prev(e)}}}),t._v(" "),n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.checkArrow(t.total),expression:"checkArrow(total)"}],staticClass:"has-icons-right",attrs:{pack:t.iconPack,icon:t.iconNext,size:t.iconSize,both:""},nativeOn:{click:function(e){return e.preventDefault(),t.next(e)}}})],1):t._e()])},Ht=[];const Gt=void 0,Wt=void 0,Yt=void 0,Kt=!1;var Zt=N({render:qt,staticRenderFns:Ht},Gt,zt,Wt,Kt,Yt,void 0,void 0),Xt={install:function(t){D(t,Dt),D(t,Ut),D(t,Zt)}};T(Xt);var Jt=Xt,Qt={props:{value:[String,Number,Boolean,Function,Object,Array],nativeValue:[String,Number,Boolean,Function,Object,Array],type:String,disabled:Boolean,required:Boolean,name:String,size:String},data:function(){return{newValue:this.value}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){this.newValue=t,this.$emit("input",t)}}},watch:{value:function(t){this.newValue=t}},methods:{focus:function(){this.$refs.input.focus()}}},te={name:"BCheckbox",mixins:[Qt],props:{indeterminate:Boolean,trueValue:{type:[String,Number,Boolean,Function,Object,Array],default:!0},falseValue:{type:[String,Number,Boolean,Function,Object,Array],default:!1}}};const ee=te;var ne=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{ref:"label",staticClass:"b-checkbox checkbox",class:[t.size,{"is-disabled":t.disabled}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault(),t.$refs.label.click()}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",disabled:t.disabled,required:t.required,name:t.name,"true-value":t.trueValue,"false-value":t.falseValue},domProps:{indeterminate:t.indeterminate,value:t.nativeValue,checked:Array.isArray(t.computedValue)?t._i(t.computedValue,t.nativeValue)>-1:t._q(t.computedValue,t.trueValue)},on:{click:function(t){t.stopPropagation()},change:function(e){var n=t.computedValue,r=e.target,i=r.checked?t.trueValue:t.falseValue;if(Array.isArray(n)){var o=t.nativeValue,a=t._i(n,o);r.checked?a<0&&(t.computedValue=n.concat([o])):a>-1&&(t.computedValue=n.slice(0,a).concat(n.slice(a+1)))}else t.computedValue=i}}}),t._v(" "),n("span",{staticClass:"check",class:t.type}),t._v(" "),n("span",{staticClass:"control-label"},[t._t("default")],2)])},re=[];const ie=void 0,oe=void 0,ae=void 0,se=!1;var ue=N({render:ne,staticRenderFns:re},ie,ee,oe,se,ae,void 0,void 0),le={name:"BCheckboxButton",mixins:[Qt],props:{type:{type:String,default:"is-primary"},expanded:Boolean},data:function(){return{isFocused:!1}},computed:{checked:function(){return Array.isArray(this.newValue)?this.newValue.indexOf(this.nativeValue)>=0:this.newValue===this.nativeValue}}};const ce=le;var he=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:{"is-expanded":t.expanded}},[n("label",{ref:"label",staticClass:"b-checkbox checkbox button",class:[t.checked?t.type:null,t.size,{"is-disabled":t.disabled,"is-focused":t.isFocused}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault(),t.$refs.label.click()}}},[t._t("default"),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"checkbox",disabled:t.disabled,required:t.required,name:t.name},domProps:{value:t.nativeValue,checked:Array.isArray(t.computedValue)?t._i(t.computedValue,t.nativeValue)>-1:t.computedValue},on:{click:function(t){t.stopPropagation()},focus:function(e){t.isFocused=!0},blur:function(e){t.isFocused=!1},change:function(e){var n=t.computedValue,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=t.nativeValue,a=t._i(n,o);r.checked?a<0&&(t.computedValue=n.concat([o])):a>-1&&(t.computedValue=n.slice(0,a).concat(n.slice(a+1)))}else t.computedValue=i}}})],2)])},fe=[];const de=void 0,pe=void 0,me=void 0,ve=!1;var ge=N({render:he,staticRenderFns:fe},de,ce,pe,ve,me,void 0,void 0),ye={install:function(t){D(t,ue),D(t,ge)}};T(ye);var be=ye,we={name:"BCollapse",props:{open:{type:Boolean,default:!0},animation:{type:String,default:"fade"},ariaId:{type:String,default:""},position:{type:String,default:"is-top",validator:function(t){return["is-top","is-bottom"].indexOf(t)>-1}}},data:function(){return{isOpen:this.open}},watch:{open:function(t){this.isOpen=t}},methods:{toggle:function(){this.isOpen=!this.isOpen,this.$emit("update:open",this.isOpen),this.$emit(this.isOpen?"open":"close")}},render:function(t){var e=t("div",{staticClass:"collapse-trigger",on:{click:this.toggle}},this.$scopedSlots.trigger?[this.$scopedSlots.trigger({open:this.isOpen})]:[this.$slots.trigger]),n=t("transition",{props:{name:this.animation}},[t("div",{staticClass:"collapse-content",attrs:{id:this.ariaId,"aria-expanded":this.isOpen},directives:[{name:"show",value:this.isOpen}]},this.$slots.default)]);return t("div",{staticClass:"collapse"},"is-top"===this.position?[e,n]:[n,e])}};const _e=we,xe=void 0,Se=void 0,Me=void 0,ke=void 0;var Ee=N({},xe,_e,Se,ke,Me,void 0,void 0),Ae={install:function(t){D(t,Ee)}};T(Ae);var Oe,Ce=Ae,Ne="AM",Te="PM",De="24",Ie="12",Re=function(t,e){var n=t.getHours(),r=t.getMinutes(),i=t.getSeconds(),o="";return e.hourFormat===Ie&&(o=" "+(n<12?Ne:Te),n>12?n-=12:0===n&&(n=12)),e.pad(n)+":"+e.pad(r)+(e.enableSeconds?":"+e.pad(i):"")+o},Pe=function(t,e){if(t){var n=!1;if(e.hourFormat===Ie){var r=t.split(" ");t=r[0],n=r[1]===Ne}var i=t.split(":"),o=parseInt(i[0],10),a=parseInt(i[1],10),s=e.enableSeconds?parseInt(i[2],10):0;if(isNaN(o)||o<0||o>23||e.hourFormat===Ie&&(o<1||o>12)||isNaN(a)||a<0||a>59)return null;var u=null;return e.computedValue&&!isNaN(e.computedValue)?u=new Date(e.computedValue):(u=e.timeCreator(),u.setMilliseconds(0)),u.setSeconds(s),u.setMinutes(a),e.hourFormat===Ie&&(n&&12===o?o=0:n||12===o||(o+=12)),u.setHours(o),new Date(u.getTime())}return null},je={mixins:[R],inheritAttrs:!1,props:{value:Date,inline:Boolean,minTime:Date,maxTime:Date,placeholder:String,editable:Boolean,disabled:Boolean,hourFormat:{type:String,default:De,validator:function(t){return t===De||t===Ie}},incrementHours:{type:Number,default:1},incrementMinutes:{type:Number,default:1},incrementSeconds:{type:Number,default:1},timeFormatter:{type:Function,default:function(t,e){return"function"===typeof E.defaultTimeFormatter?E.defaultTimeFormatter(t):Re(t,e)}},timeParser:{type:Function,default:function(t,e){return"function"===typeof E.defaultTimeParser?E.defaultTimeParser(t):Pe(t,e)}},mobileNative:{type:Boolean,default:function(){return E.defaultTimepickerMobileNative}},timeCreator:{type:Function,default:function(){return"function"===typeof E.defaultTimeCreator?E.defaultTimeCreator():new Date}},position:String,unselectableTimes:Array,openOnFocus:Boolean,enableSeconds:Boolean,defaultMinutes:Number,defaultSeconds:Number,focusable:{type:Boolean,default:!0},tzOffset:{type:Number,default:0},appendToBody:Boolean},data:function(){return{dateSelected:this.value,hoursSelected:null,minutesSelected:null,secondsSelected:null,meridienSelected:null,_elementRef:"input",AM:Ne,PM:Te,HOUR_FORMAT_24:De,HOUR_FORMAT_12:Ie}},computed:{computedValue:{get:function(){return this.dateSelected},set:function(t){this.dateSelected=t,this.$emit("input",this.dateSelected)}},hours:function(){if(!this.incrementHours||this.incrementHours<1)throw new Error("Hour increment cannot be null or less than 1.");for(var t=[],e=this.isHourFormat24?24:12,n=0;n=12?Te:Ne)},value:{handler:function(t){this.updateInternalState(t),!this.isValid&&this.$refs.input.checkHtml5Validity()},immediate:!0}},methods:{onMeridienChange:function(t){null!==this.hoursSelected&&(t===Te?this.hoursSelected+=12:t===Ne&&(this.hoursSelected-=12)),this.updateDateSelected(this.hoursSelected,this.minutesSelected,this.enableSeconds?this.secondsSelected:0,t)},onHoursChange:function(t){this.minutesSelected||"undefined"===typeof this.defaultMinutes||(this.minutesSelected=this.defaultMinutes),this.secondsSelected||"undefined"===typeof this.defaultSeconds||(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(parseInt(t,10),this.minutesSelected,this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onMinutesChange:function(t){!this.secondsSelected&&this.defaultSeconds&&(this.secondsSelected=this.defaultSeconds),this.updateDateSelected(this.hoursSelected,parseInt(t,10),this.enableSeconds?this.secondsSelected:0,this.meridienSelected)},onSecondsChange:function(t){this.updateDateSelected(this.hoursSelected,this.minutesSelected,parseInt(t,10),this.meridienSelected)},updateDateSelected:function(t,e,n,r){if(null!=t&&null!=e&&(!this.isHourFormat24&&null!==r||this.isHourFormat24)){var i=null;this.computedValue&&!isNaN(this.computedValue)?i=new Date(this.computedValue):(i=this.timeCreator(),i.setMilliseconds(0)),i.setHours(t),i.setMinutes(e),i.setSeconds(n),this.computedValue=new Date(i.getTime())}},updateInternalState:function(t){t?(this.hoursSelected=t.getHours(),this.minutesSelected=t.getMinutes(),this.secondsSelected=t.getSeconds(),this.meridienSelected=t.getHours()>=12?Te:Ne):(this.hoursSelected=null,this.minutesSelected=null,this.secondsSelected=null,this.meridienSelected=Ne),this.dateSelected=t},isHourDisabled:function(t){var e=this,n=!1;if(this.minTime){var r=this.minTime.getHours(),i=this.minutes.every((function(n){return e.isMinuteDisabledForHour(t,n.value)}));n=to}if(this.unselectableTimes&&!n){var a=this.unselectableTimes.filter((function(n){return e.enableSeconds&&null!==e.secondsSelected?n.getHours()===t&&n.getMinutes()===e.minutesSelected&&n.getSeconds()===e.secondsSelected:null!==e.minutesSelected?n.getHours()===t&&n.getMinutes()===e.minutesSelected:n.getHours()===t}));n=a.length>0}return n},isMinuteDisabledForHour:function(t,e){var n=!1;if(this.minTime){var r=this.minTime.getHours(),i=this.minTime.getMinutes();n=t===r&&ea}return n},isMinuteDisabled:function(t){var e=this,n=!1;if(null!==this.hoursSelected&&(n=!!this.isHourDisabled(this.hoursSelected)||this.isMinuteDisabledForHour(this.hoursSelected,t),this.unselectableTimes&&!n)){var r=this.unselectableTimes.filter((function(n){return e.enableSeconds&&null!==e.secondsSelected?n.getHours()===e.hoursSelected&&n.getMinutes()===t&&n.getSeconds()===e.secondsSelected:n.getHours()===e.hoursSelected&&n.getMinutes()===t}));n=r.length>0}return n},isSecondDisabled:function(t){var e=this,n=!1;if(null!==this.minutesSelected){if(this.isMinuteDisabled(this.minutesSelected))n=!0;else{if(this.minTime){var r=this.minTime.getHours(),i=this.minTime.getMinutes(),o=this.minTime.getSeconds();n=this.hoursSelected===r&&this.minutesSelected===i&&tu}}if(this.unselectableTimes&&!n){var l=this.unselectableTimes.filter((function(n){return n.getHours()===e.hoursSelected&&n.getMinutes()===e.minutesSelected&&n.getSeconds()===t}));n=l.length>0}}return n},onChange:function(t){var e=this.timeParser(t,this);this.updateInternalState(e),e&&!isNaN(e)?this.computedValue=e:(this.computedValue=null,this.$refs.input.newValue=this.computedValue)},toggle:function(t){this.$refs.dropdown&&(this.$refs.dropdown.isActive="boolean"===typeof t?t:!this.$refs.dropdown.isActive)},close:function(){this.toggle(!1)},handleOnFocus:function(){this.onFocus(),this.openOnFocus&&this.toggle(!0)},formatHHMMSS:function(t){var e=new Date(t);if(t&&!isNaN(e)){var n=e.getHours(),r=e.getMinutes(),i=e.getSeconds();return this.formatNumber(n,!0)+":"+this.formatNumber(r,!0)+":"+this.formatNumber(i,!0)}return""},onChangeNativePicker:function(t){var e=t.target.value;if(e){var n=null;this.computedValue&&!isNaN(this.computedValue)?n=new Date(this.computedValue):(n=new Date,n.setMilliseconds(0));var r=e.split(":");n.setHours(parseInt(r[0],10)),n.setMinutes(parseInt(r[1],10)),n.setSeconds(r[2]?parseInt(r[2],10):0),this.computedValue=new Date(n.getTime())}else this.computedValue=null},formatNumber:function(t,e){return this.isHourFormat24||e?this.pad(t):t},pad:function(t){return(t<10?"0":"")+t},formatValue:function(t){return t&&!isNaN(t)?this.timeFormatter(t,this):null},keyPress:function(t){this.$refs.dropdown&&this.$refs.dropdown.isActive&&27===t.keyCode&&this.toggle(!1)},onActiveChange:function(t){t||this.onBlur()}},created:function(){"undefined"!==typeof window&&document.addEventListener("keyup",this.keyPress)},beforeDestroy:function(){"undefined"!==typeof window&&document.removeEventListener("keyup",this.keyPress)}},Be=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?e?t.querySelectorAll('*[tabindex="-1"]'):t.querySelectorAll('a[href]:not([tabindex="-1"]),\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n *[tabindex]:not([tabindex="-1"]),\n *[contenteditable]'):null},$e=function(t,e){var n=e.value,r=void 0===n||n;if(r){var i=Be(t),o=Be(t,!0);i&&i.length>0&&(Oe=function(e){i=Be(t),o=Be(t,!0);var n=i[0],r=i[i.length-1];e.target===n&&e.shiftKey&&"Tab"===e.key?(e.preventDefault(),r.focus()):(e.target===r||Array.from(o).indexOf(e.target)>=0)&&!e.shiftKey&&"Tab"===e.key&&(e.preventDefault(),n.focus())},t.addEventListener("keydown",Oe))}},Le=function(t){t.removeEventListener("keydown",Oe)},Fe={bind:$e,unbind:Le},Ue=["escape","outside"],Ve={name:"BDropdown",directives:{trapFocus:Fe},props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},disabled:Boolean,hoverable:Boolean,inline:Boolean,scrollable:Boolean,maxHeight:{type:[String,Number],default:200},position:{type:String,validator:function(t){return["is-top-right","is-top-left","is-bottom-left","is-bottom-right"].indexOf(t)>-1}},mobileModal:{type:Boolean,default:function(){return E.defaultDropdownMobileModal}},ariaRole:{type:String,validator:function(t){return["menu","list","dialog"].indexOf(t)>-1},default:null},animation:{type:String,default:"fade"},multiple:Boolean,trapFocus:{type:Boolean,default:function(){return E.defaultTrapFocus}},closeOnClick:{type:Boolean,default:!0},canClose:{type:[Array,Boolean],default:!0},expanded:Boolean,appendToBody:Boolean,appendToBodyCopyParent:Boolean},data:function(){return{selected:this.value,style:{},isActive:!1,isHoverable:this.hoverable,_isDropdown:!0,_bodyEl:void 0}},computed:{rootClasses:function(){return[this.position,{"is-disabled":this.disabled,"is-hoverable":this.hoverable,"is-inline":this.inline,"is-active":this.isActive||this.inline,"is-mobile-modal":this.isMobileModal,"is-expanded":this.expanded}]},isMobileModal:function(){return this.mobileModal&&!this.inline&&!this.hoverable},cancelOptions:function(){return"boolean"===typeof this.canClose?this.canClose?Ue:[]:this.canClose},contentStyle:function(){return{maxHeight:this.scrollable?void 0===this.maxHeight?null:isNaN(this.maxHeight)?this.maxHeight:this.maxHeight+"px":null,overflow:this.scrollable?"auto":null}}},watch:{value:function(t){this.selected=t},isActive:function(t){var e=this;this.$emit("active-change",t),this.appendToBody&&this.$nextTick((function(){e.updateAppendToBody()}))}},methods:{selectItem:function(t){if(this.multiple){if(this.selected){var e=this.selected.indexOf(t);-1===e?this.selected.push(t):this.selected.splice(e,1)}else this.selected=[t];this.$emit("change",this.selected)}else this.selected!==t&&(this.selected=t,this.$emit("change",this.selected));this.$emit("input",this.selected),this.multiple||(this.isActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1))},isInWhiteList:function(t){if(t===this.$refs.dropdownMenu)return!0;if(t===this.$refs.trigger)return!0;if(void 0!==this.$refs.dropdownMenu){var e=this.$refs.dropdownMenu.querySelectorAll("*"),n=!0,r=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;if(t===s)return!0}}catch(m){r=!0,i=m}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}}if(void 0!==this.$refs.trigger){var u=this.$refs.trigger.querySelectorAll("*"),l=!0,c=!1,h=void 0;try{for(var f,d=u[Symbol.iterator]();!(l=(f=d.next()).done);l=!0){var p=f.value;if(t===p)return!0}}catch(m){c=!0,h=m}finally{try{l||null==d.return||d.return()}finally{if(c)throw h}}}return!1},clickedOutside:function(t){this.cancelOptions.indexOf("outside")<0||this.inline||this.isInWhiteList(t.target)||(this.isActive=!1)},keyPress:function(t){if(this.isActive&&27===t.keyCode){if(this.cancelOptions.indexOf("escape")<0)return;this.isActive=!1}},toggle:function(){var t=this;this.disabled||(this.isActive?this.isActive=!this.isActive:this.$nextTick((function(){var e=!t.isActive;t.isActive=e,setTimeout((function(){return t.isActive=e}))})))},checkHoverable:function(){this.hoverable&&(this.isHoverable=!0)},updateAppendToBody:function(){var t=this.$refs.dropdownMenu,e=this.$refs.trigger;if(t&&e){var n=this.$data._bodyEl.children[0];if(n.classList.forEach((function(t){return n.classList.remove(t)})),n.classList.add("dropdown"),n.classList.add("dropdown-menu-animation"),this.$vnode&&this.$vnode.data&&this.$vnode.data.staticClass&&n.classList.add(this.$vnode.data.staticClass),this.rootClasses.forEach((function(t){if(t&&"object"===r(t))for(var e in t)t[e]&&n.classList.add(e)})),this.appendToBodyCopyParent){var i=this.$refs.dropdown.parentNode,o=this.$data._bodyEl;o.classList.forEach((function(t){return o.classList.remove(t)})),i.classList.forEach((function(t){o.classList.add(t)}))}var a=e.getBoundingClientRect(),s=a.top+window.scrollY,u=a.left+window.scrollX;!this.position||this.position.indexOf("bottom")>=0?s+=e.clientHeight:s-=t.clientHeight,this.position&&this.position.indexOf("left")>=0&&(u-=t.clientWidth-e.clientWidth),this.style={position:"absolute",top:"".concat(s,"px"),left:"".concat(u,"px"),zIndex:"99"}}}},mounted:function(){this.appendToBody&&(this.$data._bodyEl=S(this.$refs.dropdownMenu),this.updateAppendToBody())},created:function(){"undefined"!==typeof window&&(document.addEventListener("click",this.clickedOutside),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){"undefined"!==typeof window&&(document.removeEventListener("click",this.clickedOutside),document.removeEventListener("keyup",this.keyPress)),this.appendToBody&&x(this.$data._bodyEl)}};const ze=Ve;var qe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{ref:"dropdown",staticClass:"dropdown dropdown-menu-animation",class:t.rootClasses},[t.inline?t._e():n("div",{ref:"trigger",staticClass:"dropdown-trigger",attrs:{role:"button","aria-haspopup":"true"},on:{click:t.toggle,mouseenter:t.checkHoverable}},[t._t("trigger",null,{active:t.isActive})],2),t._v(" "),n("transition",{attrs:{name:t.animation}},[t.isMobileModal?n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"background",attrs:{"aria-hidden":!t.isActive}}):t._e()]),t._v(" "),n("transition",{attrs:{name:t.animation}},[n("div",{directives:[{name:"show",rawName:"v-show",value:!t.disabled&&(t.isActive||t.isHoverable)||t.inline,expression:"(!disabled && (isActive || isHoverable)) || inline"},{name:"trap-focus",rawName:"v-trap-focus",value:t.trapFocus,expression:"trapFocus"}],ref:"dropdownMenu",staticClass:"dropdown-menu",style:t.style,attrs:{"aria-hidden":!t.isActive}},[n("div",{staticClass:"dropdown-content",style:t.contentStyle,attrs:{role:t.ariaRole}},[t._t("default")],2)])])],1)},He=[];const Ge=void 0,We=void 0,Ye=void 0,Ke=!1;var Ze=N({render:qe,staticRenderFns:He},Ge,ze,We,Ke,Ye,void 0,void 0),Xe={name:"BDropdownItem",props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},separator:Boolean,disabled:Boolean,custom:Boolean,focusable:{type:Boolean,default:!0},paddingless:Boolean,hasLink:Boolean,ariaRole:{type:String,default:""}},computed:{anchorClasses:function(){return{"is-disabled":this.$parent.disabled||this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive}},itemClasses:function(){return{"dropdown-item":!this.hasLink,"is-disabled":this.disabled,"is-paddingless":this.paddingless,"is-active":this.isActive,"has-link":this.hasLink}},ariaRoleItem:function(){return"menuitem"===this.ariaRole||"listitem"===this.ariaRole?this.ariaRole:null},isClickable:function(){return!this.$parent.disabled&&!this.separator&&!this.disabled&&!this.custom},isActive:function(){return null!==this.$parent.selected&&(this.$parent.multiple?this.$parent.selected.indexOf(this.value)>=0:this.value===this.$parent.selected)},isFocusable:function(){return!this.hasLink&&this.focusable}},methods:{selectItem:function(){this.isClickable&&(this.$parent.selectItem(this.value),this.$emit("click"))}},created:function(){if(!this.$parent.$data._isDropdown)throw this.$destroy(),new Error("You should wrap bDropdownItem on a bDropdown")}};const Je=Xe;var Qe=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.separator?n("hr",{staticClass:"dropdown-divider"}):t.custom||t.hasLink?n("div",{class:t.itemClasses,attrs:{role:t.ariaRoleItem,tabindex:t.isFocusable?0:null},on:{click:t.selectItem}},[t._t("default")],2):n("a",{staticClass:"dropdown-item",class:t.anchorClasses,attrs:{role:t.ariaRoleItem,tabindex:t.isFocusable?0:null},on:{click:t.selectItem}},[t._t("default")],2)},tn=[];const en=void 0,nn=void 0,rn=void 0,on=!1;var an=N({render:Qe,staticRenderFns:tn},en,Je,nn,on,rn,void 0,void 0),sn={name:"BFieldBody",props:{message:{type:[String,Array]},type:{type:[String,Object]}},render:function(t){var e=this,n=!0;return t("div",{attrs:{class:"field-body"}},this.$slots.default.map((function(r){return r.tag?(n&&(i=e.message,n=!1),t("b-field",{attrs:{type:e.type,message:i}},[r])):r;var i})))}};const un=sn,ln=void 0,cn=void 0,hn=void 0,fn=void 0;var dn=N({},ln,un,cn,fn,hn,void 0,void 0),pn={name:"BField",components:i({},dn.name,dn),props:{type:[String,Object],label:String,labelFor:String,message:[String,Array,Object],grouped:Boolean,groupMultiline:Boolean,position:String,expanded:Boolean,horizontal:Boolean,addons:{type:Boolean,default:!0},customClass:String,labelPosition:{type:String,default:function(){return E.defaultFieldLabelPosition}}},data:function(){return{newType:this.type,newMessage:this.message,fieldLabelSize:null,_isField:!0}},computed:{rootClasses:function(){return[this.newPosition,{"is-expanded":this.expanded,"is-grouped-multiline":this.groupMultiline,"is-horizontal":this.horizontal,"is-floating-in-label":this.hasLabel&&!this.horizontal&&"inside"===this.labelPosition,"is-floating-label":this.hasLabel&&!this.horizontal&&"on-border"===this.labelPosition},this.numberInputClasses]},newPosition:function(){if(void 0!==this.position){var t=this.position.split("-");if(!(t.length<1)){var e=this.grouped?"is-grouped-":"has-addons-";return this.position?e+t[1]:void 0}}},formattedMessage:function(){if("string"===typeof this.newMessage)return[this.newMessage];var t=[];if(Array.isArray(this.newMessage))this.newMessage.forEach((function(e){if("string"===typeof e)t.push(e);else for(var n in e)e[n]&&t.push(n)}));else for(var e in this.newMessage)this.newMessage[e]&&t.push(e);return t.filter((function(t){if(t)return t}))},hasLabel:function(){return this.label||this.$slots.label},hasMessage:function(){return this.newMessage||this.$slots.message},numberInputClasses:function(){if(this.$slots.default){var t=this.$slots.default.filter((function(t){return t.tag&&t.tag.toLowerCase().indexOf("numberinput")>=0}))[0];if(t){var e=["has-numberinput"],n=t.componentOptions.propsData.controlsPosition,r=t.componentOptions.propsData.size;return n&&e.push("has-numberinput-".concat(n)),r&&e.push("has-numberinput-".concat(r)),e}}return null}},watch:{type:function(t){this.newType=t},message:function(t){this.newMessage=t}},methods:{fieldType:function(){if(this.grouped)return"is-grouped";var t=0;return this.$slots.default&&(t=this.$slots.default.reduce((function(t,e){return e.tag?t+1:t}),0)),t>1&&this.addons&&!this.horizontal?"has-addons":void 0}},mounted:function(){if(this.horizontal){var t=this.$el.querySelectorAll(".input, .select, .button, .textarea, .b-slider");t.length>0&&(this.fieldLabelSize="is-normal")}}};const mn=pn;var vn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"field",class:[t.rootClasses,t.fieldType()]},[t.horizontal?n("div",{staticClass:"field-label",class:[t.customClass,t.fieldLabelSize]},[t.hasLabel?n("label",{staticClass:"label",class:t.customClass,attrs:{for:t.labelFor}},[t.$slots.label?t._t("label"):[t._v(t._s(t.label))]],2):t._e()]):[t.hasLabel?n("label",{staticClass:"label",class:t.customClass,attrs:{for:t.labelFor}},[t.$slots.label?t._t("label"):[t._v(t._s(t.label))]],2):t._e()],t._v(" "),t.horizontal?n("b-field-body",{attrs:{message:t.newMessage?t.formattedMessage:"",type:t.newType}},[t._t("default")],2):[t._t("default")],t._v(" "),t.hasMessage&&!t.horizontal?n("p",{staticClass:"help",class:t.newType},[t.$slots.message?t._t("message"):[t._l(t.formattedMessage,(function(e,r){return[t._v("\r\n "+t._s(e)+"\r\n "),r+1=this.countPerRing},calcHandAngle:function(t){var e=this.degreesPerUnit*(t-this.min);return this.isInnerRing(t)&&(e-=360),e},calcHandScale:function(t){return this.isInnerRing(t)?this.innerRadius/this.outerRadius:1},onMouseDown:function(t){t.preventDefault(),this.isDragging=!0,this.onDragMove(t)},onMouseUp:function(){this.isDragging=!1,this.isDisabled(this.inputValue)||this.$emit("change",this.inputValue)},onDragMove:function(t){if(t.preventDefault(),this.isDragging||"click"===t.type){var e=this.$refs.clock.getBoundingClientRect(),n=e.width,r=e.top,i=e.left,o="touches"in t?t.touches[0]:t,a=o.clientX,s=o.clientY,u={x:n/2,y:-n/2},l={x:a-i,y:r-s},c=Math.round(this.coordToAngle(u,l)+360)%360,h=this.double&&this.euclidean(u,l)<(this.outerRadius+this.innerRadius)/2-16,f=Math.round(c/this.degreesPerUnit)+this.min+(h?this.countPerRing:0);c>=360-this.degreesPerUnit/2&&(f=h?this.max:this.min),this.update(f)}},update:function(t){this.inputValue===t||this.isDisabled(t)||(this.prevAngle=this.handRotateAngle,this.inputValue=t,this.$emit("input",t))}}};const En=kn;var An=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-clockpicker-face",on:{mousedown:t.onMouseDown,mouseup:t.onMouseUp,mousemove:t.onDragMove,touchstart:t.onMouseDown,touchend:t.onMouseUp,touchmove:t.onDragMove}},[n("div",{ref:"clock",staticClass:"b-clockpicker-face-outer-ring"},[n("div",{staticClass:"b-clockpicker-face-hand",style:t.handStyle}),t._v(" "),t._l(t.faceNumbers,(function(e,r){return n("span",{key:r,staticClass:"b-clockpicker-face-number",class:t.getFaceNumberClasses(e),style:{transform:t.getNumberTranslate(e.value)}},[n("span",[t._v(t._s(e.label))])])}))],2)])},On=[];const Cn=void 0,Nn=void 0,Tn=void 0,Dn=!1;var In,Rn=N({render:An,staticRenderFns:On},Cn,En,Nn,Dn,Tn,void 0,void 0),Pn=12,jn={name:"BClockpicker",components:(In={},i(In,Rn.name,Rn),i(In,et.name,et),i(In,xn.name,xn),i(In,G.name,G),i(In,Ze.name,Ze),i(In,an.name,an),In),mixins:[je],props:{pickerSize:{type:Number,default:290},hourFormat:{type:String,default:"12",validator:function(t){return"24"===t||"12"===t}},incrementMinutes:{type:Number,default:5},autoSwitch:{type:Boolean,default:!0},type:{type:String,default:"is-primary"},hoursLabel:{type:String,default:function(){return E.defaultClockpickerHoursLabel||"Hours"}},minutesLabel:{type:String,default:function(){return E.defaultClockpickerMinutesLabel||"Min"}}},data:function(){return{isSelectingHour:!0,isDragging:!1,_isClockpicker:!0}},computed:{hoursDisplay:function(){if(null==this.hoursSelected)return"--";if(this.isHourFormat24)return this.pad(this.hoursSelected);var t=this.hoursSelected;return this.meridienSelected===this.PM&&(t-=12),0===t&&(t=12),t},minutesDisplay:function(){return null==this.minutesSelected?"--":this.pad(this.minutesSelected)},minFaceValue:function(){return this.isSelectingHour&&!this.isHourFormat24&&this.meridienSelected===this.PM?12:0},maxFaceValue:function(){return this.isSelectingHour?this.isHourFormat24||this.meridienSelected!==this.AM?23:11:59},faceSize:function(){return this.pickerSize-2*Pn},faceDisabledValues:function(){return this.isSelectingHour?this.isHourDisabled:this.isMinuteDisabled}},methods:{onClockInput:function(t){this.isSelectingHour?(this.hoursSelected=t,this.onHoursChange(t)):(this.minutesSelected=t,this.onMinutesChange(t))},onClockChange:function(t){this.autoSwitch&&this.isSelectingHour&&(this.isSelectingHour=!this.isSelectingHour)},onMeridienClick:function(t){this.meridienSelected!==t&&(this.meridienSelected=t,this.onMeridienChange(t))}}};const Bn=jn;var $n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-clockpicker control",class:[t.size,t.type,{"is-expanded":t.expanded}]},[!t.isMobile||t.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:t.position,disabled:t.disabled,inline:t.inline,"append-to-body":t.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":t.onActiveChange}},[t.inline?t._e():n("b-input",t._b({ref:"input",attrs:{slot:"trigger",autocomplete:"off",value:t.formatValue(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,loading:t.loading,disabled:t.disabled,readonly:!t.editable,rounded:t.rounded,"use-html5-validation":t.useHtml5Validation},on:{focus:t.handleOnFocus,blur:function(e){t.onBlur()&&t.checkHtml5Validity()}},nativeOn:{click:function(e){e.stopPropagation(),t.toggle(!0)},keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.toggle(!0)},change:function(e){return t.onChangeNativePicker(e)}},slot:"trigger"},"b-input",t.$attrs,!1)),t._v(" "),n("div",{staticClass:"card",attrs:{disabled:t.disabled,custom:""}},[t.inline?n("header",{staticClass:"card-header"},[n("div",{staticClass:"b-clockpicker-header card-header-title"},[n("div",{staticClass:"b-clockpicker-time"},[n("span",{staticClass:"b-clockpicker-btn",class:{active:t.isSelectingHour},on:{click:function(e){t.isSelectingHour=!0}}},[t._v(t._s(t.hoursDisplay))]),t._v(" "),n("span",[t._v(":")]),t._v(" "),n("span",{staticClass:"b-clockpicker-btn",class:{active:!t.isSelectingHour},on:{click:function(e){t.isSelectingHour=!1}}},[t._v(t._s(t.minutesDisplay))])]),t._v(" "),t.isHourFormat24?t._e():n("div",{staticClass:"b-clockpicker-period"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:t.meridienSelected==t.AM},on:{click:function(e){t.onMeridienClick(t.AM)}}},[t._v("am")]),t._v(" "),n("div",{staticClass:"b-clockpicker-btn",class:{active:t.meridienSelected==t.PM},on:{click:function(e){t.onMeridienClick(t.PM)}}},[t._v("pm")])])])]):t._e(),t._v(" "),n("div",{staticClass:"card-content"},[n("div",{staticClass:"b-clockpicker-body",style:{width:t.faceSize+"px",height:t.faceSize+"px"}},[t.inline?t._e():n("div",{staticClass:"b-clockpicker-time"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:t.isSelectingHour},on:{click:function(e){t.isSelectingHour=!0}}},[t._v(t._s(t.hoursLabel))]),t._v(" "),n("span",{staticClass:"b-clockpicker-btn",class:{active:!t.isSelectingHour},on:{click:function(e){t.isSelectingHour=!1}}},[t._v(t._s(t.minutesLabel))])]),t._v(" "),t.isHourFormat24||t.inline?t._e():n("div",{staticClass:"b-clockpicker-period"},[n("div",{staticClass:"b-clockpicker-btn",class:{active:t.meridienSelected==t.AM},on:{click:function(e){t.onMeridienClick(t.AM)}}},[t._v(t._s(t.AM))]),t._v(" "),n("div",{staticClass:"b-clockpicker-btn",class:{active:t.meridienSelected==t.PM},on:{click:function(e){t.onMeridienClick(t.PM)}}},[t._v(t._s(t.PM))])]),t._v(" "),n("b-clockpicker-face",{attrs:{"picker-size":t.faceSize,min:t.minFaceValue,max:t.maxFaceValue,"face-numbers":t.isSelectingHour?t.hours:t.minutes,"disabled-values":t.faceDisabledValues,double:t.isSelectingHour&&t.isHourFormat24,value:t.isSelectingHour?t.hoursSelected:t.minutesSelected},on:{input:t.onClockInput,change:t.onClockChange}})],1)]),t._v(" "),void 0!==t.$slots.default&&t.$slots.default.length?n("footer",{staticClass:"b-clockpicker-footer card-footer"},[t._t("default")],2):t._e()])],1):n("b-input",t._b({ref:"input",attrs:{type:"time",autocomplete:"off",value:t.formatHHMMSS(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,loading:t.loading,max:t.formatHHMMSS(t.maxTime),min:t.formatHHMMSS(t.minTime),disabled:t.disabled,readonly:!1,"use-html5-validation":t.useHtml5Validation},on:{focus:t.handleOnFocus,blur:function(e){t.onBlur()&&t.checkHtml5Validity()}},nativeOn:{click:function(e){e.stopPropagation(),t.toggle(!0)},keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.toggle(!0)},change:function(e){return t.onChangeNativePicker(e)}}},"b-input",t.$attrs,!1))],1)},Ln=[];const Fn=void 0,Un=void 0,Vn=void 0,zn=!1;var qn=N({render:$n,staticRenderFns:Ln},Fn,Bn,Un,zn,Vn,void 0,void 0),Hn={install:function(t){D(t,qn)}};T(Hn);var Gn=Hn,Wn={name:"BSelect",components:i({},G.name,G),mixins:[R],inheritAttrs:!1,props:{value:{type:[String,Number,Boolean,Object,Array,Function],default:null},placeholder:String,multiple:Boolean,nativeSize:[String,Number]},data:function(){return{selected:this.value,_elementRef:"select"}},computed:{computedValue:{get:function(){return this.selected},set:function(t){this.selected=t,this.$emit("input",t),!this.isValid&&this.checkHtml5Validity()}},spanClasses:function(){return[this.size,this.statusType,{"is-fullwidth":this.expanded,"is-loading":this.loading,"is-multiple":this.multiple,"is-rounded":this.rounded,"is-empty":null===this.selected}]}},watch:{value:function(t){this.selected=t,!this.isValid&&this.checkHtml5Validity()}}};const Yn=Wn;var Kn=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:{"is-expanded":t.expanded,"has-icons-left":t.icon}},[n("span",{staticClass:"select",class:t.spanClasses},[n("select",t._b({directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"select",attrs:{multiple:t.multiple,size:t.nativeSize},on:{blur:function(e){t.$emit("blur",e)&&t.checkHtml5Validity()},focus:function(e){t.$emit("focus",e)},change:function(e){var n=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){var e="_value"in t?t._value:t.value;return e}));t.computedValue=e.target.multiple?n:n[0]}}},"select",t.$attrs,!1),[t.placeholder?[null==t.computedValue?n("option",{attrs:{disabled:"",hidden:""},domProps:{value:null}},[t._v("\r\n "+t._s(t.placeholder)+"\r\n ")]):t._e()]:t._e(),t._v(" "),t._t("default")],2)]),t._v(" "),t.icon?n("b-icon",{staticClass:"is-left",attrs:{icon:t.icon,pack:t.iconPack,size:t.iconSize}}):t._e()],1)},Zn=[];const Xn=void 0,Jn=void 0,Qn=void 0,tr=!1;var er=N({render:Kn,staticRenderFns:Zn},Xn,Yn,Jn,tr,Qn,void 0,void 0),nr={name:"BDatepickerTableRow",props:{selectedDate:{type:[Date,Array]},hoveredDateRange:Array,day:{type:Number},week:{type:Array,required:!0},month:{type:Number,required:!0},minDate:Date,maxDate:Date,disabled:Boolean,unselectableDates:Array,unselectableDaysOfWeek:Array,selectableDates:Array,events:Array,indicators:String,dateCreator:Function,nearbyMonthDays:Boolean,nearbySelectableMonthDays:Boolean,showWeekNumber:{type:Boolean,default:function(){return!1}},range:Boolean,multiple:Boolean,rulesForFirstWeek:{type:Number,default:function(){return 4}},firstDayOfWeek:Number},watch:{day:{handler:function(t){var e=this,n="day-".concat(t);this.$refs[n]&&this.$refs[n].length>0&&this.$nextTick((function(){e.$refs[n][0]&&e.$refs[n][0].focus()}))},immediate:!0}},methods:{firstWeekOffset:function(t,e,n){var r=7+e-n,i=new Date(t,0,r),o=(7+i.getDay()-e)%7;return-o+r-1},daysInYear:function(t){return this.isLeapYear(t)?366:365},isLeapYear:function(t){return t%4===0&&t%100!==0||t%400===0},getSetDayOfYear:function(t){return Math.round((t-new Date(t.getFullYear(),0,1))/864e5)+1},weeksInYear:function(t,e,n){var r=this.firstWeekOffset(t,e,n),i=this.firstWeekOffset(t+1,e,n);return(this.daysInYear(t)-r+i)/7},getWeekNumber:function(t){var e,n,r=this.firstDayOfWeek,i=this.rulesForFirstWeek,o=this.firstWeekOffset(t.getFullYear(),r,i),a=Math.floor((this.getSetDayOfYear(t)-o-1)/7)+1;return a<1?(n=t.getFullYear()-1,e=a+this.weeksInYear(n,r,i)):a>this.weeksInYear(t.getFullYear(),r,i)?(e=a-this.weeksInYear(t.getFullYear(),r,i),n=t.getFullYear()+1):(n=t.getFullYear(),e=a),e},selectableDate:function(t){var e=[];if(this.minDate&&e.push(t>=this.minDate),this.maxDate&&e.push(t<=this.maxDate),this.nearbyMonthDays&&!this.nearbySelectableMonthDays&&e.push(t.getMonth()===this.month),this.selectableDates)for(var n=0;ne[0]&&tt?(this.selectedEndDate=this.selectedBeginDate,this.selectedBeginDate=t):this.selectedEndDate=t,this.$emit("range-end",t),this.$emit("input",[this.selectedBeginDate,this.selectedEndDate])):(this.selectedBeginDate=t,this.$emit("range-start",t))},handleSelectMultipleDates:function(t){var e=this.multipleSelectedDates.filter((function(e){return e.getDate()===t.getDate()&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}));e.length?this.multipleSelectedDates=this.multipleSelectedDates.filter((function(e){return e.getDate()!==t.getDate()||e.getFullYear()!==t.getFullYear()||e.getMonth()!==t.getMonth()})):this.multipleSelectedDates.push(t),this.$emit("input",this.multipleSelectedDates)},weekBuilder:function(t,e,n){for(var r=new Date(n,e),i=[],o=new Date(n,e,t).getDay(),a=o>=this.firstDayOfWeek?o-this.firstDayOfWeek:7-this.firstDayOfWeek+o,s=1,u=0;u=this.minDate),this.maxDate&&e.push(t<=this.maxDate),this.nearbyMonthDays&&!this.nearbySelectableMonthDays&&e.push(t.getMonth()===this.focused.month),this.selectableDates)for(var n=0;n0&&this.$nextTick((function(){e.$refs[n][0]&&e.$refs[n][0].focus()}))},deep:!0,immediate:!0}},methods:{selectMultipleDates:function(t){var e=this.multipleSelectedDates.filter((function(e){return e.getDate()===t.getDate()&&e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()}));e.length?this.multipleSelectedDates=this.multipleSelectedDates.filter((function(e){return e.getDate()!==t.getDate()||e.getFullYear()!==t.getFullYear()||e.getMonth()!==t.getMonth()})):this.multipleSelectedDates.push(t),this.$emit("input",this.multipleSelectedDates)},selectableDate:function(t){var e=[];if(this.minDate&&e.push(t>=this.minDate),this.maxDate&&e.push(t<=this.maxDate),e.push(t.getFullYear()===this.focused.year),this.selectableDates)for(var n=0;n=0}},nearbyMonthDays:{type:Boolean,default:function(){return E.defaultDatepickerNearbyMonthDays}},nearbySelectableMonthDays:{type:Boolean,default:function(){return E.defaultDatepickerNearbySelectableMonthDays}},showWeekNumber:{type:Boolean,default:function(){return E.defaultDatepickerShowWeekNumber}},rulesForFirstWeek:{type:Number,default:function(){return 4}},range:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},mobileModal:{type:Boolean,default:function(){return E.defaultDatepickerMobileModal}},focusable:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:function(){return E.defaultTrapFocus}},appendToBody:Boolean,ariaNextLabel:String,ariaPreviousLabel:String},data:function(){var t=(Array.isArray(this.value)?this.value[0]:this.value)||this.focusedDate||this.dateCreator();return{dateSelected:this.value,focusedDateData:{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()},_elementRef:"input",_isDatepicker:!0}},computed:{computedValue:{get:function(){return this.dateSelected},set:function(t){var e=this;this.updateInternalState(t),this.multiple||this.togglePicker(!1),this.$emit("input",t),this.useHtml5Validation&&this.$nextTick((function(){e.checkHtml5Validity()}))}},listOfMonths:function(){var t=0,e=12;return this.minDate&&this.focusedDateData.year===this.minDate.getFullYear()&&(t=this.minDate.getMonth()),this.maxDate&&this.focusedDateData.year===this.maxDate.getFullYear()&&(e=this.maxDate.getMonth()),this.monthNames.map((function(n,r){return{name:n,index:r,disabled:re}}))},listOfYears:function(){var t=this.focusedDateData.year+this.yearsRange[1];this.maxDate&&this.maxDate.getFullYear()e&&(e=Math.min(this.minDate.getFullYear(),this.focusedDateData.year));for(var n=[],r=e;r<=t;r++)n.push(r);return n.reverse()},showPrev:function(){if(!this.minDate)return!1;if(this.isTypeMonth)return this.focusedDateData.year<=this.minDate.getFullYear();var t=new Date(this.focusedDateData.year,this.focusedDateData.month),e=new Date(this.minDate.getFullYear(),this.minDate.getMonth());return t<=e},showNext:function(){if(!this.maxDate)return!1;if(this.isTypeMonth)return this.focusedDateData.year>=this.maxDate.getFullYear();var t=new Date(this.focusedDateData.year,this.focusedDateData.month),e=new Date(this.maxDate.getFullYear(),this.maxDate.getMonth());return t>=e},isMobile:function(){return this.mobileNative&&_.any()},isTypeMonth:function(){return"month"===this.type},ariaRole:function(){if(!this.inline)return"dialog"}},watch:{value:function(t){this.updateInternalState(t),this.multiple||this.togglePicker(!1)},focusedDate:function(t){t&&(this.focusedDateData={day:t.getDate(),month:t.getMonth(),year:t.getFullYear()})},"focusedDateData.month":function(t){this.$emit("change-month",t)},"focusedDateData.year":function(t){this.$emit("change-year",t)}},methods:{onChange:function(t){var e=this.dateParser(t,this);!e||isNaN(e)&&(!Array.isArray(e)||2!==e.length||isNaN(e[0])||isNaN(e[1]))?(this.computedValue=null,this.$refs.input.newValue=this.computedValue):this.computedValue=e},formatValue:function(t){if(Array.isArray(t)){var e=Array.isArray(t)&&t.every((function(t){return!isNaN(t)}));return e?this.dateFormatter(t,this):null}return t&&!isNaN(t)?this.dateFormatter(t,this):null},prev:function(){this.disabled||(this.isTypeMonth?this.focusedDateData.year-=1:this.focusedDateData.month>0?this.focusedDateData.month-=1:(this.focusedDateData.month=11,this.focusedDateData.year-=1))},next:function(){this.disabled||(this.isTypeMonth?this.focusedDateData.year+=1:this.focusedDateData.month<11?this.focusedDateData.month+=1:(this.focusedDateData.month=0,this.focusedDateData.year+=1))},formatNative:function(t){return this.isTypeMonth?this.formatYYYYMM(t):this.formatYYYYMMDD(t)},formatYYYYMMDD:function(t){var e=new Date(t);if(t&&!isNaN(e)){var n=e.getFullYear(),r=e.getMonth()+1,i=e.getDate();return n+"-"+(r<10?"0":"")+r+"-"+(i<10?"0":"")+i}return""},formatYYYYMM:function(t){var e=new Date(t);if(t&&!isNaN(e)){var n=e.getFullYear(),r=e.getMonth()+1;return n+"-"+(r<10?"0":"")+r}return""},onChangeNativePicker:function(t){var e=t.target.value,n=e?e.split("-"):[];if(3===n.length){var r=parseInt(n[0],10),i=parseInt(n[1])-1,o=parseInt(n[2]);this.computedValue=new Date(r,i,o)}else this.computedValue=null},updateInternalState:function(t){var e=Array.isArray(t)?t.length?t[0]:this.dateCreator():t||this.dateCreator();this.focusedDateData={day:e.getDate(),month:e.getMonth(),year:e.getFullYear()},this.dateSelected=t},togglePicker:function(t){this.$refs.dropdown&&this.closeOnClick&&(this.$refs.dropdown.isActive="boolean"===typeof t?t:!this.$refs.dropdown.isActive)},handleOnFocus:function(t){this.onFocus(t),this.openOnFocus&&this.togglePicker(!0)},toggle:function(){if(this.mobileNative&&this.isMobile){var t=this.$refs.input.$refs.input;return t.focus(),void t.click()}this.$refs.dropdown.toggle()},onInputClick:function(t){this.$refs.dropdown.isActive&&t.stopPropagation()},keyPress:function(t){this.$refs.dropdown&&this.$refs.dropdown.isActive&&27===t.keyCode&&this.togglePicker(!1)},onActiveChange:function(t){t||this.onBlur()},changeFocus:function(t){this.focusedDateData={day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}},created:function(){"undefined"!==typeof window&&document.addEventListener("keyup",this.keyPress)},beforeDestroy:function(){"undefined"!==typeof window&&document.removeEventListener("keyup",this.keyPress)}};const Rr=Ir;var Pr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"datepicker control",class:[t.size,{"is-expanded":t.expanded}]},[!t.isMobile||t.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:t.position,disabled:t.disabled,inline:t.inline,"mobile-modal":t.mobileModal,"trap-focus":t.trapFocus,"aria-role":t.ariaRole,"aria-modal":!t.inline,"append-to-body":t.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":t.onActiveChange}},[t.inline?t._e():n("b-input",t._b({ref:"input",attrs:{slot:"trigger",autocomplete:"off",value:t.formatValue(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,rounded:t.rounded,loading:t.loading,disabled:t.disabled,readonly:!t.editable,"use-html5-validation":!1},on:{focus:t.handleOnFocus},nativeOn:{click:function(e){return t.onInputClick(e)},keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.togglePicker(!0)},change:function(e){t.onChange(e.target.value)}},slot:"trigger"},"b-input",t.$attrs,!1)),t._v(" "),n("b-dropdown-item",{class:{"dropdown-horizonal-timepicker":t.horizontalTimePicker},attrs:{disabled:t.disabled,focusable:t.focusable,custom:""}},[n("div",[n("header",{staticClass:"datepicker-header"},[void 0!==t.$slots.header&&t.$slots.header.length?[t._t("header")]:n("div",{staticClass:"pagination field is-centered",class:t.size},[n("a",{directives:[{name:"show",rawName:"v-show",value:!t.showPrev&&!t.disabled,expression:"!showPrev && !disabled"}],staticClass:"pagination-previous",attrs:{role:"button",href:"#",disabled:t.disabled,"aria-label":t.ariaPreviousLabel},on:{click:function(e){return e.preventDefault(),t.prev(e)},keydown:[function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.prev(e))},function(e){return!("button"in e)&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:(e.preventDefault(),t.prev(e))}]}},[n("b-icon",{attrs:{icon:t.iconPrev,pack:t.iconPack,both:"",type:"is-primary is-clickable"}})],1),t._v(" "),n("a",{directives:[{name:"show",rawName:"v-show",value:!t.showNext&&!t.disabled,expression:"!showNext && !disabled"}],staticClass:"pagination-next",attrs:{role:"button",href:"#",disabled:t.disabled,"aria-label":t.ariaNextLabel},on:{click:function(e){return e.preventDefault(),t.next(e)},keydown:[function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),t.next(e))},function(e){return!("button"in e)&&t._k(e.keyCode,"space",32,e.key,[" ","Spacebar"])?null:(e.preventDefault(),t.next(e))}]}},[n("b-icon",{attrs:{icon:t.iconNext,pack:t.iconPack,both:"",type:"is-primary is-clickable"}})],1),t._v(" "),n("div",{staticClass:"pagination-list"},[n("b-field",[t.isTypeMonth?t._e():n("b-select",{attrs:{disabled:t.disabled,size:t.size},model:{value:t.focusedDateData.month,callback:function(e){t.$set(t.focusedDateData,"month",e)},expression:"focusedDateData.month"}},t._l(t.listOfMonths,(function(e){return n("option",{key:e.name,attrs:{disabled:e.disabled},domProps:{value:e.index}},[t._v("\r\n "+t._s(e.name)+"\r\n ")])}))),t._v(" "),n("b-select",{attrs:{disabled:t.disabled,size:t.size},model:{value:t.focusedDateData.year,callback:function(e){t.$set(t.focusedDateData,"year",e)},expression:"focusedDateData.year"}},t._l(t.listOfYears,(function(e){return n("option",{key:e,domProps:{value:e}},[t._v("\r\n "+t._s(e)+"\r\n ")])})))],1)],1)])],2),t._v(" "),t.isTypeMonth?n("div",[n("b-datepicker-month",{attrs:{"month-names":t.monthNames,"min-date":t.minDate,"max-date":t.maxDate,focused:t.focusedDateData,disabled:t.disabled,"unselectable-dates":t.unselectableDates,"unselectable-days-of-week":t.unselectableDaysOfWeek,"selectable-dates":t.selectableDates,events:t.events,indicators:t.indicators,"date-creator":t.dateCreator,multiple:t.multiple},on:{"update:focused":function(e){t.focusedDateData=e},close:function(e){t.togglePicker(!1)},"change-focus":t.changeFocus},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}})],1):n("div",{staticClass:"datepicker-content",class:{"content-horizonal-timepicker":t.horizontalTimePicker}},[n("b-datepicker-table",{attrs:{"day-names":t.dayNames,"month-names":t.monthNames,"first-day-of-week":t.firstDayOfWeek,"rules-for-first-week":t.rulesForFirstWeek,"min-date":t.minDate,"max-date":t.maxDate,focused:t.focusedDateData,disabled:t.disabled,"unselectable-dates":t.unselectableDates,"unselectable-days-of-week":t.unselectableDaysOfWeek,"selectable-dates":t.selectableDates,events:t.events,indicators:t.indicators,"date-creator":t.dateCreator,"type-month":t.isTypeMonth,"nearby-month-days":t.nearbyMonthDays,"nearby-selectable-month-days":t.nearbySelectableMonthDays,"show-week-number":t.showWeekNumber,range:t.range,multiple:t.multiple},on:{"update:focused":function(e){t.focusedDateData=e},"range-start":function(e){return t.$emit("range-start",e)},"range-end":function(e){return t.$emit("range-end",e)},close:function(e){t.togglePicker(!1)}},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}})],1)]),t._v(" "),void 0!==t.$slots.default&&t.$slots.default.length?n("footer",{staticClass:"datepicker-footer",class:{"footer-horizontal-timepicker":t.horizontalTimePicker}},[t._t("default")],2):t._e()])],1):n("b-input",t._b({ref:"input",attrs:{type:t.isTypeMonth?"month":"date",autocomplete:"off",value:t.formatNative(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,rounded:t.rounded,loading:t.loading,max:t.formatNative(t.maxDate),min:t.formatNative(t.minDate),disabled:t.disabled,readonly:!1,"use-html5-validation":!1},on:{focus:t.onFocus,blur:t.onBlur},nativeOn:{change:function(e){return t.onChangeNativePicker(e)}}},"b-input",t.$attrs,!1))],1)},jr=[];const Br=void 0,$r=void 0,Lr=void 0,Fr=!1;var Ur=N({render:Pr,staticRenderFns:jr},Br,Rr,$r,Fr,Lr,void 0,void 0),Vr={install:function(t){D(t,Ur)}};T(Vr);var zr,qr=Vr,Hr={name:"BTimepicker",components:(zr={},i(zr,et.name,et),i(zr,xn.name,xn),i(zr,er.name,er),i(zr,G.name,G),i(zr,Ze.name,Ze),i(zr,an.name,an),zr),mixins:[je],inheritAttrs:!1,data:function(){return{_isTimepicker:!0}},computed:{nativeStep:function(){if(this.enableSeconds)return"1"}}};const Gr=Hr;var Wr=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"timepicker control",class:[t.size,{"is-expanded":t.expanded}]},[!t.isMobile||t.inline?n("b-dropdown",{ref:"dropdown",attrs:{position:t.position,disabled:t.disabled,inline:t.inline,"append-to-body":t.appendToBody,"append-to-body-copy-parent":""},on:{"active-change":t.onActiveChange}},[t.inline?t._e():n("b-input",t._b({ref:"input",attrs:{slot:"trigger",autocomplete:"off",value:t.formatValue(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,loading:t.loading,disabled:t.disabled,readonly:!t.editable,rounded:t.rounded,"use-html5-validation":t.useHtml5Validation},on:{focus:t.handleOnFocus},nativeOn:{keyup:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;t.toggle(!0)},change:function(e){t.onChange(e.target.value)}},slot:"trigger"},"b-input",t.$attrs,!1)),t._v(" "),n("b-dropdown-item",{attrs:{disabled:t.disabled,focusable:t.focusable,custom:""}},[n("b-field",{attrs:{grouped:"",position:"is-centered"}},[n("b-select",{attrs:{disabled:t.disabled,placeholder:"00"},nativeOn:{change:function(e){t.onHoursChange(e.target.value)}},model:{value:t.hoursSelected,callback:function(e){t.hoursSelected=e},expression:"hoursSelected"}},t._l(t.hours,(function(e){return n("option",{key:e.value,attrs:{disabled:t.isHourDisabled(e.value)},domProps:{value:e.value}},[t._v("\r\n "+t._s(e.label)+"\r\n ")])}))),t._v(" "),n("span",{staticClass:"control is-colon"},[t._v(":")]),t._v(" "),n("b-select",{attrs:{disabled:t.disabled,placeholder:"00"},nativeOn:{change:function(e){t.onMinutesChange(e.target.value)}},model:{value:t.minutesSelected,callback:function(e){t.minutesSelected=e},expression:"minutesSelected"}},t._l(t.minutes,(function(e){return n("option",{key:e.value,attrs:{disabled:t.isMinuteDisabled(e.value)},domProps:{value:e.value}},[t._v("\r\n "+t._s(e.label)+"\r\n ")])}))),t._v(" "),t.enableSeconds?[n("span",{staticClass:"control is-colon"},[t._v(":")]),t._v(" "),n("b-select",{attrs:{disabled:t.disabled,placeholder:"00"},nativeOn:{change:function(e){t.onSecondsChange(e.target.value)}},model:{value:t.secondsSelected,callback:function(e){t.secondsSelected=e},expression:"secondsSelected"}},t._l(t.seconds,(function(e){return n("option",{key:e.value,attrs:{disabled:t.isSecondDisabled(e.value)},domProps:{value:e.value}},[t._v("\r\n "+t._s(e.label)+"\r\n ")])})))]:t._e(),t._v(" "),t.isHourFormat24?t._e():n("b-select",{attrs:{disabled:t.disabled},nativeOn:{change:function(e){t.onMeridienChange(e.target.value)}},model:{value:t.meridienSelected,callback:function(e){t.meridienSelected=e},expression:"meridienSelected"}},t._l(t.meridiens,(function(e){return n("option",{key:e,domProps:{value:e}},[t._v("\r\n "+t._s(e)+"\r\n ")])})))],2),t._v(" "),void 0!==t.$slots.default&&t.$slots.default.length?n("footer",{staticClass:"timepicker-footer"},[t._t("default")],2):t._e()],1)],1):n("b-input",t._b({ref:"input",attrs:{type:"time",step:t.nativeStep,autocomplete:"off",value:t.formatHHMMSS(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,rounded:t.rounded,loading:t.loading,max:t.formatHHMMSS(t.maxTime),min:t.formatHHMMSS(t.minTime),disabled:t.disabled,readonly:!1,"use-html5-validation":t.useHtml5Validation},on:{focus:t.handleOnFocus,blur:function(e){t.onBlur()&&t.checkHtml5Validity()}},nativeOn:{change:function(e){t.onChange(e.target.value)}}},"b-input",t.$attrs,!1))],1)},Yr=[];const Kr=void 0,Zr=void 0,Xr=void 0,Jr=!1;var Qr,ti=N({render:Wr,staticRenderFns:Yr},Kr,Gr,Zr,Jr,Xr,void 0,void 0),ei={name:"BDatetimepicker",components:(Qr={},i(Qr,Ur.name,Ur),i(Qr,ti.name,ti),Qr),mixins:[R],inheritAttrs:!1,props:{value:{type:Date},editable:{type:Boolean,default:!1},placeholder:String,horizontalTimePicker:Boolean,disabled:Boolean,icon:String,iconPack:String,inline:Boolean,openOnFocus:Boolean,position:String,mobileNative:{type:Boolean,default:!0},minDatetime:Date,maxDatetime:Date,datetimeFormatter:{type:Function},datetimeParser:{type:Function},datetimeCreator:{type:Function,default:function(t){return"function"===typeof E.defaultDatetimeCreator?E.defaultDatetimeCreator(t):t}},datepicker:Object,timepicker:Object,tzOffset:{type:Number,default:0},focusable:{type:Boolean,default:!0},appendToBody:Boolean},data:function(){return{newValue:this.adjustValue(this.value)}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){if(t){var e=new Date(t.getTime());this.newValue?t.getDate()===this.newValue.getDate()&&t.getMonth()===this.newValue.getMonth()&&t.getFullYear()===this.newValue.getFullYear()||0!==t.getHours()||0!==t.getMinutes()||0!==t.getSeconds()||e.setHours(this.newValue.getHours(),this.newValue.getMinutes(),this.newValue.getSeconds(),0):e=this.datetimeCreator(t),this.minDatetime&&ethis.adjustValue(this.maxDatetime)&&(e=this.adjustValue(this.maxDatetime)),this.newValue=new Date(e.getTime())}else this.newValue=this.adjustValue(this.value);var n=this.adjustValue(this.newValue,!0);this.$emit("input",n)}},isMobileNative:function(){return this.mobileNative&&0===this.tzOffset},isMobile:function(){return this.isMobileNative&&_.any()},minDate:function(){if(!this.minDatetime)return this.datepicker?this.adjustValue(this.datepicker.minDate):null;var t=this.adjustValue(this.minDatetime);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},maxDate:function(){if(!this.maxDatetime)return this.datepicker?this.adjustValue(this.datepicker.maxDate):null;var t=this.adjustValue(this.maxDatetime);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)},minTime:function(){if(!this.minDatetime||null===this.newValue||"undefined"===typeof this.newValue)return this.timepicker?this.adjustValue(this.timepicker.minTime):null;var t=this.adjustValue(this.minDatetime);return t.getFullYear()===this.newValue.getFullYear()&&t.getMonth()===this.newValue.getMonth()&&t.getDate()===this.newValue.getDate()?t:void 0},maxTime:function(){if(!this.maxDatetime||null===this.newValue||"undefined"===typeof this.newValue)return this.timepicker?this.adjustValue(this.timepicker.maxTime):null;var t=this.adjustValue(this.maxDatetime);return t.getFullYear()===this.newValue.getFullYear()&&t.getMonth()===this.newValue.getMonth()&&t.getDate()===this.newValue.getDate()?t:void 0},datepickerSize:function(){return this.datepicker&&this.datepicker.size?this.datepicker.size:this.size},timepickerSize:function(){return this.timepicker&&this.timepicker.size?this.timepicker.size:this.size},timepickerDisabled:function(){return this.timepicker&&this.timepicker.disabled?this.timepicker.disabled:this.disabled}},watch:{value:function(t){this.newValue=this.adjustValue(this.value)},tzOffset:function(t){this.newValue=this.adjustValue(this.value)}},methods:{adjustValue:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t?e?new Date(t.getTime()-6e4*this.tzOffset):new Date(t.getTime()+6e4*this.tzOffset):t},defaultDatetimeParser:function(t){return"function"===typeof this.datetimeParser?this.datetimeParser(t):"function"===typeof E.defaultDatetimeParser?E.defaultDatetimeParser(t):new Date(Date.parse(t))},defaultDatetimeFormatter:function(t){if("function"===typeof this.datetimeFormatter)return this.datetimeFormatter(t);if("function"===typeof E.defaultDatetimeFormatter)return E.defaultDatetimeFormatter(t);if(this.$refs.timepicker){var e=new Date(t.getFullYear(),t.getMonth(),t.getDate(),12);return e.toLocaleDateString()+" "+this.$refs.timepicker.timeFormatter(t,this.$refs.timepicker)}return null},onChangeNativePicker:function(t){var e=t.target.value,n=e?e.split(/\D/):[];if(n.length>=5){var r=parseInt(n[0],10),i=parseInt(n[1],10)-1,o=parseInt(n[2],10),a=parseInt(n[3],10),s=parseInt(n[4],10);this.computedValue=new Date(r,i,o,a,s)}else this.computedValue=null},formatNative:function(t){var e=new Date(t);if(t&&!isNaN(e)){var n=e.getFullYear(),r=e.getMonth()+1,i=e.getDate(),o=e.getHours(),a=e.getMinutes(),s=e.getSeconds();return n+"-"+(r<10?"0":"")+r+"-"+(i<10?"0":"")+i+"T"+(o<10?"0":"")+o+":"+(a<10?"0":"")+a+":"+(s<10?"0":"")+s}return""},toggle:function(){this.$refs.datepicker.toggle()}},mounted:function(){this.isMobile&&!this.inline||this.newValue&&this.$refs.datepicker.$forceUpdate()}};const ni=ei;var ri=function(){var t=this,e=t.$createElement,n=t._self._c||e;return!t.isMobile||t.inline?n("b-datepicker",t._b({ref:"datepicker",attrs:{"open-on-focus":t.openOnFocus,position:t.position,loading:t.loading,inline:t.inline,editable:t.editable,expanded:t.expanded,"close-on-click":!1,"date-formatter":t.defaultDatetimeFormatter,"date-parser":t.defaultDatetimeParser,"min-date":t.minDate,"max-date":t.maxDate,icon:t.icon,"icon-pack":t.iconPack,size:t.datepickerSize,placeholder:t.placeholder,"horizontal-time-picker":t.horizontalTimePicker,range:!1,disabled:t.disabled,"mobile-native":t.isMobileNative,focusable:t.focusable,"append-to-body":t.appendToBody},on:{focus:t.onFocus,blur:t.onBlur,"change-month":function(e){t.$emit("change-month",e)},"change-year":function(e){t.$emit("change-year",e)}},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}},"b-datepicker",t.datepicker,!1),[n("nav",{staticClass:"level is-mobile"},[void 0!==t.$slots.left?n("div",{staticClass:"level-item has-text-centered"},[t._t("left")],2):t._e(),t._v(" "),n("div",{staticClass:"level-item has-text-centered"},[n("b-timepicker",t._b({ref:"timepicker",attrs:{inline:"",editable:t.editable,"min-time":t.minTime,"max-time":t.maxTime,size:t.timepickerSize,disabled:t.timepickerDisabled,focusable:t.focusable,"mobile-native":t.isMobileNative},model:{value:t.computedValue,callback:function(e){t.computedValue=e},expression:"computedValue"}},"b-timepicker",t.timepicker,!1))],1),t._v(" "),void 0!==t.$slots.right?n("div",{staticClass:"level-item has-text-centered"},[t._t("right")],2):t._e()])]):n("b-input",t._b({ref:"input",attrs:{type:"datetime-local",autocomplete:"off",value:t.formatNative(t.computedValue),placeholder:t.placeholder,size:t.size,icon:t.icon,"icon-pack":t.iconPack,rounded:t.rounded,loading:t.loading,max:t.formatNative(t.maxDate),min:t.formatNative(t.minDate),disabled:t.disabled,readonly:!1,"use-html5-validation":t.useHtml5Validation},on:{focus:t.onFocus,blur:t.onBlur},nativeOn:{change:function(e){return t.onChangeNativePicker(e)}}},"b-input",t.$attrs,!1))},ii=[];const oi=void 0,ai=void 0,si=void 0,ui=!1;var li=N({render:ri,staticRenderFns:ii},oi,ni,ai,ui,si,void 0,void 0),ci={install:function(t){D(t,li)}};T(ci);var hi=ci,fi={name:"BModal",directives:{trapFocus:Fe},props:{active:Boolean,component:[Object,Function],content:String,programmatic:Boolean,props:Object,events:Object,width:{type:[String,Number],default:960},hasModalCard:Boolean,animation:{type:String,default:"zoom-out"},canCancel:{type:[Array,Boolean],default:function(){return E.defaultModalCanCancel}},onCancel:{type:Function,default:function(){}},scroll:{type:String,default:function(){return E.defaultModalScroll?E.defaultModalScroll:"clip"},validator:function(t){return["clip","keep"].indexOf(t)>=0}},fullScreen:Boolean,trapFocus:{type:Boolean,default:function(){return E.defaultTrapFocus}},customClass:String,ariaRole:{type:String,validator:function(t){return["dialog","alertdialog"].indexOf(t)>=0}},ariaModal:Boolean,destroyOnHide:{type:Boolean,default:!0}},data:function(){return{isActive:this.active||!1,savedScrollTop:null,newWidth:"number"===typeof this.width?this.width+"px":this.width,animating:!0,destroyed:!this.active}},computed:{cancelOptions:function(){return"boolean"===typeof this.canCancel?this.canCancel?E.defaultModalCanCancel:[]:this.canCancel},showX:function(){return this.cancelOptions.indexOf("x")>=0},customStyle:function(){return this.fullScreen?null:{maxWidth:this.newWidth}}},watch:{active:function(t){this.isActive=t},isActive:function(t){var e=this;t&&(this.destroyed=!1),this.handleScroll(),this.$nextTick((function(){t&&e.$el&&e.$el.focus&&e.$el.focus()}))}},methods:{handleScroll:function(){"undefined"!==typeof window&&("clip"!==this.scroll?(this.savedScrollTop=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop,this.isActive?document.body.classList.add("is-noscroll"):document.body.classList.remove("is-noscroll"),this.isActive?document.body.style.top="-".concat(this.savedScrollTop,"px"):(document.documentElement.scrollTop=this.savedScrollTop,document.body.style.top=null,this.savedScrollTop=null)):this.isActive?document.documentElement.classList.add("is-clipped"):document.documentElement.classList.remove("is-clipped"))},cancel:function(t){this.cancelOptions.indexOf(t)<0||(this.onCancel.apply(null,arguments),this.close())},close:function(){var t=this;this.$emit("close"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout((function(){t.$destroy(),x(t.$el)}),150))},keyPress:function(t){this.isActive&&27===t.keyCode&&this.cancel("escape")},afterEnter:function(){this.animating=!1},beforeLeave:function(){this.animating=!0},afterLeave:function(){this.destroyOnHide&&(this.destroyed=!0)}},created:function(){"undefined"!==typeof window&&document.addEventListener("keyup",this.keyPress)},beforeMount:function(){this.programmatic&&document.body.appendChild(this.$el)},mounted:function(){this.programmatic?this.isActive=!0:this.isActive&&this.handleScroll()},beforeDestroy:function(){if("undefined"!==typeof window){document.removeEventListener("keyup",this.keyPress),document.documentElement.classList.remove("is-clipped");var t=this.savedScrollTop?this.savedScrollTop:document.documentElement.scrollTop;document.body.classList.remove("is-noscroll"),document.documentElement.scrollTop=t,document.body.style.top=null}}};const di=fi;var pi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation},on:{"after-enter":t.afterEnter,"before-leave":t.beforeLeave,"after-leave":t.afterLeave}},[t.destroyed?t._e():n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"},{name:"trap-focus",rawName:"v-trap-focus",value:t.trapFocus,expression:"trapFocus"}],staticClass:"modal is-active",class:[{"is-full-screen":t.fullScreen},t.customClass],attrs:{tabindex:"-1",role:t.ariaRole,"aria-modal":t.ariaModal}},[n("div",{staticClass:"modal-background",on:{click:function(e){t.cancel("outside")}}}),t._v(" "),n("div",{staticClass:"animation-content",class:{"modal-content":!t.hasModalCard},style:t.customStyle},[t.component?n(t.component,t._g(t._b({tag:"component",on:{close:t.close}},"component",t.props,!1),t.events)):t.content?n("div",{domProps:{innerHTML:t._s(t.content)}}):t._t("default"),t._v(" "),t.showX?n("button",{directives:[{name:"show",rawName:"v-show",value:!t.animating,expression:"!animating"}],staticClass:"modal-close is-large",attrs:{type:"button"},on:{click:function(e){t.cancel("x")}}}):t._e()],2)])])},mi=[];const vi=void 0,gi=void 0,yi=void 0,bi=!1;var wi=N({render:pi,staticRenderFns:mi},vi,di,gi,bi,yi,void 0,void 0),_i={name:"BDialog",components:i({},G.name,G),directives:{trapFocus:Fe},extends:wi,props:{title:String,message:String,icon:String,iconPack:String,hasIcon:Boolean,type:{type:String,default:"is-primary"},size:String,confirmText:{type:String,default:function(){return E.defaultDialogConfirmText?E.defaultDialogConfirmText:"OK"}},cancelText:{type:String,default:function(){return E.defaultDialogCancelText?E.defaultDialogCancelText:"Cancel"}},hasInput:Boolean,inputAttrs:{type:Object,default:function(){return{}}},onConfirm:{type:Function,default:function(){}},closeOnConfirm:{type:Boolean,default:!0},container:{type:String,default:function(){return E.defaultContainerElement}},focusOn:{type:String,default:"confirm"},trapFocus:{type:Boolean,default:function(){return E.defaultTrapFocus}},ariaRole:{type:String,validator:function(t){return["dialog","alertdialog"].indexOf(t)>=0}},ariaModal:Boolean},data:function(){var t=this.hasInput&&this.inputAttrs.value||"";return{prompt:t,isActive:!1,validationMessage:""}},computed:{dialogClass:function(){return[this.size,{"has-custom-container":null!==this.container}]},iconByType:function(){switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}},showCancel:function(){return this.cancelOptions.indexOf("button")>=0}},methods:{confirm:function(){var t=this;if(void 0!==this.$refs.input&&!this.$refs.input.checkValidity())return this.validationMessage=this.$refs.input.validationMessage,void this.$nextTick((function(){return t.$refs.input.select()}));this.onConfirm(this.prompt,this),this.closeOnConfirm&&this.close()},close:function(){var t=this;this.isActive=!1,setTimeout((function(){t.$destroy(),x(t.$el)}),150)}},beforeMount:function(){var t=this;"undefined"!==typeof window&&this.$nextTick((function(){var e=document.querySelector(t.container)||document.body;e.appendChild(t.$el)}))},mounted:function(){var t=this;this.isActive=!0,"undefined"===typeof this.inputAttrs.required&&this.$set(this.inputAttrs,"required",!0),this.$nextTick((function(){t.hasInput?t.$refs.input.focus():"cancel"===t.focusOn&&t.showCancel?t.$refs.cancelButton.focus():t.$refs.confirmButton.focus()}))}};const xi=_i;var Si=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation}},[t.isActive?n("div",{directives:[{name:"trap-focus",rawName:"v-trap-focus",value:t.trapFocus,expression:"trapFocus"}],staticClass:"dialog modal is-active",class:t.dialogClass,attrs:{role:t.ariaRole,"aria-modal":t.ariaModal}},[n("div",{staticClass:"modal-background",on:{click:function(e){t.cancel("outside")}}}),t._v(" "),n("div",{staticClass:"modal-card animation-content"},[t.title?n("header",{staticClass:"modal-card-head"},[n("p",{staticClass:"modal-card-title"},[t._v(t._s(t.title))])]):t._e(),t._v(" "),n("section",{staticClass:"modal-card-body",class:{"is-titleless":!t.title,"is-flex":t.hasIcon}},[n("div",{staticClass:"media"},[t.hasIcon&&(t.icon||t.iconByType)?n("div",{staticClass:"media-left"},[n("b-icon",{attrs:{icon:t.icon?t.icon:t.iconByType,pack:t.iconPack,type:t.type,both:!t.icon,size:"is-large"}})],1):t._e(),t._v(" "),n("div",{staticClass:"media-content"},[n("p",{domProps:{innerHTML:t._s(t.message)}}),t._v(" "),t.hasInput?n("div",{staticClass:"field"},[n("div",{staticClass:"control"},["checkbox"===t.inputAttrs.type?n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":t.validationMessage},attrs:{type:"checkbox"},domProps:{checked:Array.isArray(t.prompt)?t._i(t.prompt,null)>-1:t.prompt},on:{keyup:function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.confirm(e)},change:function(e){var n=t.prompt,r=e.target,i=!!r.checked;if(Array.isArray(n)){var o=null,a=t._i(n,o);r.checked?a<0&&(t.prompt=n.concat([o])):a>-1&&(t.prompt=n.slice(0,a).concat(n.slice(a+1)))}else t.prompt=i}}},"input",t.inputAttrs,!1)):"radio"===t.inputAttrs.type?n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":t.validationMessage},attrs:{type:"radio"},domProps:{checked:t._q(t.prompt,null)},on:{keyup:function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.confirm(e)},change:function(e){t.prompt=null}}},"input",t.inputAttrs,!1)):n("input",t._b({directives:[{name:"model",rawName:"v-model",value:t.prompt,expression:"prompt"}],ref:"input",staticClass:"input",class:{"is-danger":t.validationMessage},attrs:{type:t.inputAttrs.type},domProps:{value:t.prompt},on:{keyup:function(e){return!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.confirm(e)},input:function(e){e.target.composing||(t.prompt=e.target.value)}}},"input",t.inputAttrs,!1))]),t._v(" "),n("p",{staticClass:"help is-danger"},[t._v(t._s(t.validationMessage))])]):t._e()])])]),t._v(" "),n("footer",{staticClass:"modal-card-foot"},[t.showCancel?n("button",{ref:"cancelButton",staticClass:"button",on:{click:function(e){t.cancel("button")}}},[t._v(t._s(t.cancelText))]):t._e(),t._v(" "),n("button",{ref:"confirmButton",staticClass:"button",class:t.type,on:{click:t.confirm}},[t._v(t._s(t.confirmText))])])])]):t._e()])},Mi=[];const ki=void 0,Ei=void 0,Ai=void 0,Oi=!1;var Ci,Ni=N({render:Si,staticRenderFns:Mi},ki,xi,Ei,Oi,Ai,void 0,void 0);function Ti(t){var e="undefined"!==typeof window&&window.Vue?window.Vue:Ci||k,n=e.extend(Ni);return new n({el:document.createElement("div"),propsData:t})}var Di={alert:function(t){"string"===typeof t&&(t={message:t});var e={canCancel:!1},n=w(e,t);return Ti(n)},confirm:function(t){var e={},n=w(e,t);return Ti(n)},prompt:function(t){var e={hasInput:!0,confirmText:"Done"},n=w(e,t);return Ti(n)}},Ii={install:function(t){Ci=t,D(t,Ni),I(t,"dialog",Di)}};T(Ii);var Ri=Ii,Pi={install:function(t){D(t,Ze),D(t,an)}};T(Pi);var ji=Pi,Bi={install:function(t){D(t,xn)}};T(Bi);var $i=Bi,Li={install:function(t){D(t,G)}};T(Li);var Fi=Li,Ui={install:function(t){D(t,et)}};T(Ui);var Vi=Ui,zi="undefined"===typeof window,qi=zi?Object:window.HTMLElement,Hi=zi?Object:window.File,Gi={name:"BLoading",props:{active:Boolean,programmatic:Boolean,container:[Object,Function,qi],isFullPage:{type:Boolean,default:!0},animation:{type:String,default:"fade"},canCancel:{type:Boolean,default:!1},onCancel:{type:Function,default:function(){}}},data:function(){return{isActive:this.active||!1,displayInFullPage:this.isFullPage}},watch:{active:function(t){this.isActive=t},isFullPage:function(t){this.displayInFullPage=t}},methods:{cancel:function(){this.canCancel&&this.isActive&&this.close()},close:function(){var t=this;this.onCancel.apply(null,arguments),this.$emit("close"),this.$emit("update:active",!1),this.programmatic&&(this.isActive=!1,setTimeout((function(){t.$destroy(),x(t.$el)}),150))},keyPress:function(t){27===t.keyCode&&this.cancel()}},created:function(){"undefined"!==typeof window&&document.addEventListener("keyup",this.keyPress)},beforeMount:function(){this.programmatic&&(this.container?(this.displayInFullPage=!1,this.$emit("update:is-full-page",!1),this.container.appendChild(this.$el)):document.body.appendChild(this.$el))},mounted:function(){this.programmatic&&(this.isActive=!0)},beforeDestroy:function(){"undefined"!==typeof window&&document.removeEventListener("keyup",this.keyPress)}};const Wi=Gi;var Yi=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation}},[t.isActive?n("div",{staticClass:"loading-overlay is-active",class:{"is-full-page":t.displayInFullPage}},[n("div",{staticClass:"loading-background",on:{click:t.cancel}}),t._v(" "),t._t("default",[n("div",{staticClass:"loading-icon"})])],2):t._e()])},Ki=[];const Zi=void 0,Xi=void 0,Ji=void 0,Qi=!1;var to,eo=N({render:Yi,staticRenderFns:Ki},Zi,Wi,Xi,Qi,Ji,void 0,void 0),no={open:function(t){var e={programmatic:!0},n=w(e,t),r="undefined"!==typeof window&&window.Vue?window.Vue:to||k,i=r.extend(eo);return new i({el:document.createElement("div"),propsData:n})}},ro={install:function(t){to=t,D(t,eo),I(t,"loading",no)}};T(ro);var io=ro,oo={name:"BMenu",props:{accordion:{type:Boolean,default:!0},activable:{type:Boolean,default:!0}},data:function(){return{_isMenu:!0}}};const ao=oo;var so=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"menu"},[t._t("default")],2)},uo=[];const lo=void 0,co=void 0,ho=void 0,fo=!1;var po=N({render:so,staticRenderFns:uo},lo,ao,co,fo,ho,void 0,void 0),mo={name:"BMenuList",functional:!0,props:{label:String,icon:String,iconPack:String,ariaRole:{type:String,default:""}},render:function(t,e){var n=null,r=e.slots();(e.props.label||r.label)&&(n=t("p",{attrs:{class:"menu-label"}},e.props.label?e.props.icon?[t("b-icon",{props:{icon:e.props.icon,pack:e.props.iconPack,size:"is-small"}}),t("span",{},e.props.label)]:e.props.label:r.label));var i=t("ul",{attrs:{class:"menu-list",role:"menu"===e.props.ariaRole?e.props.ariaRole:null}},r.default);return n?[n,i]:i}};const vo=mo,go=void 0,yo=void 0,bo=void 0,wo=void 0;var _o=N({},go,vo,yo,wo,bo,void 0,void 0),xo={name:"BMenuItem",components:i({},G.name,G),inheritAttrs:!1,props:{label:String,active:Boolean,expanded:Boolean,disabled:Boolean,iconPack:String,icon:String,animation:{type:String,default:"slide"},tag:{type:String,default:"a",validator:function(t){return E.defaultLinkTags.indexOf(t)>=0}},ariaRole:{type:String,default:""}},data:function(){return{newActive:this.active,newExpanded:this.expanded}},computed:{ariaRoleMenu:function(){return"menuitem"===this.ariaRole?this.ariaRole:null}},watch:{active:function(t){this.newActive=t},expanded:function(t){this.newExpanded=t}},methods:{onClick:function(t){if(!this.disabled){var e=this.getMenu();this.reset(this.$parent,e),this.newExpanded=!this.newExpanded,this.$emit("update:expanded",this.newActive),e&&e.activable&&(this.newActive=!0,this.$emit("update:active",this.newActive))}},reset:function(t,e){var n=this,r=t.$children.filter((function(t){return t.name===n.name}));r.forEach((function(r){r!==n&&(n.reset(r,e),(!t.$data._isMenu||t.$data._isMenu&&t.accordion)&&(r.newExpanded=!1,r.$emit("update:expanded",r.newActive)),e&&e.activable&&(r.newActive=!1,r.$emit("update:active",r.newActive)))}))},getMenu:function(){var t=this.$parent;while(t&&!t.$data._isMenu)t=t.$parent;return t}}};const So=xo;var Mo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("li",{attrs:{role:t.ariaRoleMenu}},[n(t.tag,t._g(t._b({tag:"component",class:{"is-active":t.newActive,"is-disabled":t.disabled},on:{click:function(e){t.onClick(e)}}},"component",t.$attrs,!1),t.$listeners),[t.icon?n("b-icon",{attrs:{icon:t.icon,pack:t.iconPack,size:"is-small"}}):t._e(),t._v(" "),t.label?n("span",[t._v(t._s(t.label))]):t._t("label",null,{expanded:t.newExpanded,active:t.newActive})],2),t._v(" "),t.$slots.default?[n("transition",{attrs:{name:t.animation}},[n("ul",{directives:[{name:"show",rawName:"v-show",value:t.newExpanded,expression:"newExpanded"}]},[t._t("default")],2)])]:t._e()],2)},ko=[];const Eo=void 0,Ao=void 0,Oo=void 0,Co=!1;var No=N({render:Mo,staticRenderFns:ko},Eo,So,Ao,Co,Oo,void 0,void 0),To={install:function(t){D(t,po),D(t,_o),D(t,No)}};T(To);var Do=To,Io={components:i({},G.name,G),props:{active:{type:Boolean,default:!0},title:String,closable:{type:Boolean,default:!0},message:String,type:String,hasIcon:Boolean,size:String,icon:String,iconPack:String,iconSize:String,autoClose:{type:Boolean,default:!1},duration:{type:Number,default:2e3}},data:function(){return{isActive:this.active}},watch:{active:function(t){this.isActive=t},isActive:function(t){t?this.setAutoClose():this.timer&&clearTimeout(this.timer)}},computed:{computedIcon:function(){if(this.icon)return this.icon;switch(this.type){case"is-info":return"information";case"is-success":return"check-circle";case"is-warning":return"alert";case"is-danger":return"alert-circle";default:return null}}},methods:{close:function(){this.isActive=!1,this.$emit("close"),this.$emit("update:active",!1)},setAutoClose:function(){var t=this;this.autoClose&&(this.timer=setTimeout((function(){t.isActive&&t.close()}),this.duration))}},mounted:function(){this.setAutoClose()}},Ro={name:"BMessage",mixins:[Io],props:{ariaCloseLabel:String},data:function(){return{newIconSize:this.iconSize||this.size||"is-large"}}};const Po=Ro;var jo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:"fade"}},[t.isActive?n("article",{staticClass:"message",class:[t.type,t.size]},[t.title?n("header",{staticClass:"message-header"},[n("p",[t._v(t._s(t.title))]),t._v(" "),t.closable?n("button",{staticClass:"delete",attrs:{type:"button","aria-label":t.ariaCloseLabel},on:{click:t.close}}):t._e()]):t._e(),t._v(" "),n("section",{staticClass:"message-body"},[n("div",{staticClass:"media"},[t.computedIcon&&t.hasIcon?n("div",{staticClass:"media-left"},[n("b-icon",{class:t.type,attrs:{icon:t.computedIcon,pack:t.iconPack,both:"",size:t.newIconSize}})],1):t._e(),t._v(" "),n("div",{staticClass:"media-content"},[t._t("default")],2)])])]):t._e()])},Bo=[];const $o=void 0,Lo=void 0,Fo=void 0,Uo=!1;var Vo=N({render:jo,staticRenderFns:Bo},$o,Po,Lo,Uo,Fo,void 0,void 0),zo={install:function(t){D(t,Vo)}};T(zo);var qo,Ho=zo,Go={open:function(t){var e;"string"===typeof t&&(t={content:t});var n={programmatic:!0};t.parent&&(e=t.parent,delete t.parent);var r=w(n,t),i="undefined"!==typeof window&&window.Vue?window.Vue:qo||k,o=i.extend(wi);return new o({parent:e,el:document.createElement("div"),propsData:r})}},Wo={install:function(t){qo=t,D(t,wi),I(t,"modal",Go)}};T(Wo);var Yo=Wo,Ko={props:{type:{type:String,default:"is-dark"},message:String,duration:Number,queue:{type:Boolean,default:void 0},position:{type:String,default:"is-top",validator:function(t){return["is-top-right","is-top","is-top-left","is-bottom-right","is-bottom","is-bottom-left"].indexOf(t)>-1}},container:String},data:function(){return{isActive:!1,parentTop:null,parentBottom:null,newContainer:this.container||E.defaultContainerElement}},computed:{correctParent:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return this.parentTop;case"is-bottom-right":case"is-bottom":case"is-bottom-left":return this.parentBottom}},transition:function(){switch(this.position){case"is-top-right":case"is-top":case"is-top-left":return{enter:"fadeInDown",leave:"fadeOut"};case"is-bottom-right":case"is-bottom":case"is-bottom-left":return{enter:"fadeInUp",leave:"fadeOut"}}}},methods:{shouldQueue:function(){var t=void 0!==this.queue?this.queue:E.defaultNoticeQueue;return!!t&&(this.parentTop.childElementCount>0||this.parentBottom.childElementCount>0)},close:function(){var t=this;clearTimeout(this.timer),this.isActive=!1,this.$emit("close"),setTimeout((function(){t.$destroy(),x(t.$el)}),150)},showNotice:function(){var t=this;this.shouldQueue()?setTimeout((function(){return t.showNotice()}),250):(this.correctParent.insertAdjacentElement("afterbegin",this.$el),this.isActive=!0,this.indefinite||(this.timer=setTimeout((function(){return t.close()}),this.newDuration)))},setupContainer:function(){if(this.parentTop=document.querySelector((this.newContainer?this.newContainer:"body")+">.notices.is-top"),this.parentBottom=document.querySelector((this.newContainer?this.newContainer:"body")+">.notices.is-bottom"),!this.parentTop||!this.parentBottom){this.parentTop||(this.parentTop=document.createElement("div"),this.parentTop.className="notices is-top"),this.parentBottom||(this.parentBottom=document.createElement("div"),this.parentBottom.className="notices is-bottom");var t=document.querySelector(this.newContainer)||document.body;t.appendChild(this.parentTop),t.appendChild(this.parentBottom),this.newContainer&&(this.parentTop.classList.add("has-custom-container"),this.parentBottom.classList.add("has-custom-container"))}}},beforeMount:function(){this.setupContainer()},mounted:function(){this.showNotice()}},Zo={name:"BNotification",mixins:[Io],props:{position:String,ariaCloseLabel:String,animation:{type:String,default:"fade"}}};const Xo=Zo;var Jo=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{name:t.animation}},[n("article",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"notification",class:[t.type,t.position]},[t.closable?n("button",{staticClass:"delete",attrs:{type:"button","aria-label":t.ariaCloseLabel},on:{click:t.close}}):t._e(),t._v(" "),n("div",{staticClass:"media"},[t.computedIcon&&t.hasIcon?n("div",{staticClass:"media-left"},[n("b-icon",{attrs:{icon:t.computedIcon,pack:t.iconPack,both:"",size:"is-large","aria-hidden":""}})],1):t._e(),t._v(" "),n("div",{staticClass:"media-content"},[t.message?n("p",{staticClass:"text",domProps:{innerHTML:t._s(t.message)}}):t._t("default")],2)])])])},Qo=[];const ta=void 0,ea=void 0,na=void 0,ra=!1;var ia=N({render:Jo,staticRenderFns:Qo},ta,Xo,ea,ra,na,void 0,void 0),oa={name:"BNotificationNotice",mixins:[Ko],props:{indefinite:{type:Boolean,default:!1}},data:function(){return{newDuration:this.duration||E.defaultNotificationDuration}}};const aa=oa;var sa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("b-notification",t._b({on:{close:t.close}},"b-notification",t.$options.propsData,!1))},ua=[];const la=void 0,ca=void 0,ha=void 0,fa=!1;var da,pa=N({render:sa,staticRenderFns:ua},la,aa,ca,fa,ha,void 0,void 0),ma={open:function(t){var e;"string"===typeof t&&(t={message:t});var n={position:E.defaultNotificationPosition||"is-top-right"};t.parent&&(e=t.parent,delete t.parent);var r=w(n,t),i="undefined"!==typeof window&&window.Vue?window.Vue:da||k,o=i.extend(pa);return new o({parent:e,el:document.createElement("div"),propsData:r})}},va={install:function(t){da=t,D(t,ia),I(t,"notification",ma)}};T(va);var ga=va,ya={name:"NavbarBurger",props:{isOpened:{type:Boolean,default:!1}}};const ba=ya;var wa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("a",t._g({staticClass:"navbar-burger burger",class:{"is-active":t.isOpened},attrs:{role:"button","aria-label":"menu","aria-expanded":t.isOpened}},t.$listeners),[n("span",{attrs:{"aria-hidden":"true"}}),t._v(" "),n("span",{attrs:{"aria-hidden":"true"}}),t._v(" "),n("span",{attrs:{"aria-hidden":"true"}})])},_a=[];const xa=void 0,Sa=void 0,Ma=void 0,ka=!1;var Ea=N({render:wa,staticRenderFns:_a},xa,ba,Sa,ka,Ma,void 0,void 0),Aa="undefined"!==typeof window&&("ontouchstart"in window||navigator.msMaxTouchPoints>0),Oa=Aa?["touchstart","click"]:["click"],Ca=[];function Na(t){var e="function"===typeof t;if(!e&&"object"!==r(t))throw new Error("v-click-outside: Binding value should be a function or an object, typeof ".concat(t," given"));return{handler:e?t:t.handler,middleware:t.middleware||function(t){return t},events:t.events||Oa}}function Ta(t){var e=t.el,n=t.event,r=t.handler,i=t.middleware,o=n.target!==e&&!e.contains(n.target);o&&i(n,e)&&r(n,e)}function Da(t,e){var n=e.value,r=Na(n),i=r.handler,o=r.middleware,a=r.events,s={el:t,eventHandlers:a.map((function(e){return{event:e,handler:function(e){return Ta({event:e,el:t,handler:i,middleware:o})}}}))};s.eventHandlers.forEach((function(t){var e=t.event,n=t.handler;return document.addEventListener(e,n)})),Ca.push(s)}function Ia(t,e){var n=e.value,r=Na(n),i=r.handler,o=r.middleware,a=r.events,s=Ca.filter((function(e){return e.el===t}))[0];s.eventHandlers.forEach((function(t){var e=t.event,n=t.handler;return document.removeEventListener(e,n)})),s.eventHandlers=a.map((function(e){return{event:e,handler:function(e){return Ta({event:e,el:t,handler:i,middleware:o})}}})),s.eventHandlers.forEach((function(t){var e=t.event,n=t.handler;return document.addEventListener(e,n)}))}function Ra(t){var e=Ca.filter((function(e){return e.el===t}))[0];e.eventHandlers.forEach((function(t){var e=t.event,n=t.handler;return document.removeEventListener(e,n)}))}var Pa={bind:Da,update:Ia,unbind:Ra,instances:Ca},ja="is-fixed-top",Ba="has-navbar-fixed-top",$a="has-spaced-navbar-fixed-top",La="is-fixed-bottom",Fa="has-navbar-fixed-bottom",Ua="has-spaced-navbar-fixed-bottom",Va=function(t){return!!t},za={name:"BNavbar",components:{NavbarBurger:Ea},directives:{clickOutside:Pa},props:{type:[String,Object],transparent:{type:Boolean,default:!1},fixedTop:{type:Boolean,default:!1},fixedBottom:{type:Boolean,default:!1},isActive:{type:Boolean,default:!1},wrapperClass:{type:String},closeOnClick:{type:Boolean,default:!0},mobileBurger:{type:Boolean,default:!0},spaced:Boolean,shadow:Boolean},data:function(){return{internalIsActive:this.isActive,_isNavBar:!0}},computed:{isOpened:function(){return this.internalIsActive},computedClasses:function(){var t;return[this.type,(t={},i(t,ja,this.fixedTop),i(t,La,this.fixedBottom),i(t,"is-spaced",this.spaced),i(t,"has-shadow",this.shadow),i(t,"is-transparent",this.transparent),t)]}},watch:{isActive:{handler:function(t){this.internalIsActive=t},immediate:!0},fixedTop:{handler:function(t){this.checkIfFixedPropertiesAreColliding(),t?(this.setBodyClass(Ba),this.spaced&&this.setBodyClass($a)):(this.removeBodyClass(Ba),this.removeBodyClass($a))},immediate:!0},fixedBottom:{handler:function(t){this.checkIfFixedPropertiesAreColliding(),t?(this.setBodyClass(Fa),this.spaced&&this.setBodyClass(Ua)):(this.removeBodyClass(Fa),this.removeBodyClass(Ua))},immediate:!0}},methods:{toggleActive:function(){this.internalIsActive=!this.internalIsActive,this.emitUpdateParentEvent()},closeMenu:function(){this.closeOnClick&&(this.internalIsActive=!1,this.emitUpdateParentEvent())},emitUpdateParentEvent:function(){this.$emit("update:isActive",this.internalIsActive)},setBodyClass:function(t){"undefined"!==typeof window&&document.body.classList.add(t)},removeBodyClass:function(t){"undefined"!==typeof window&&document.body.classList.remove(t)},checkIfFixedPropertiesAreColliding:function(){var t=this.fixedTop&&this.fixedBottom;if(t)throw new Error("You should choose if the BNavbar is fixed bottom or fixed top, but not both")},genNavbar:function(t){var e=[this.genNavbarBrandNode(t),this.genNavbarSlotsNode(t)];if(!Va(this.wrapperClass))return this.genNavbarSlots(t,e);var n=t("div",{class:this.wrapperClass},e);return this.genNavbarSlots(t,[n])},genNavbarSlots:function(t,e){return t("nav",{staticClass:"navbar",class:this.computedClasses,attrs:{role:"navigation","aria-label":"main navigation"},directives:[{name:"click-outside",value:this.closeMenu}]},e)},genNavbarBrandNode:function(t){return t("div",{class:"navbar-brand"},[this.$slots.brand,this.genBurgerNode(t)])},genBurgerNode:function(t){if(this.mobileBurger){var e=t("navbar-burger",{props:{isOpened:this.isOpened},on:{click:this.toggleActive}}),n=!!this.$scopedSlots.burger;return n?this.$scopedSlots.burger({isOpened:this.isOpened,toggleActive:this.toggleActive}):e}},genNavbarSlotsNode:function(t){return t("div",{staticClass:"navbar-menu",class:{"is-active":this.isOpened}},[this.genMenuPosition(t,"start"),this.genMenuPosition(t,"end")])},genMenuPosition:function(t,e){return t("div",{staticClass:"navbar-".concat(e)},this.$slots[e])}},beforeDestroy:function(){if(this.fixedTop){var t=this.spaced?$a:Ba;this.removeBodyClass(t)}else if(this.fixedBottom){var e=this.spaced?Ua:Fa;this.removeBodyClass(e)}},render:function(t,e){return this.genNavbar(t)}};const qa=za,Ha=void 0,Ga=void 0,Wa=void 0,Ya=void 0;var Ka=N({},Ha,qa,Ga,Ya,Wa,void 0,void 0),Za=["div","span"],Xa={name:"BNavbarItem",inheritAttrs:!1,props:{tag:{type:String,default:"a"},active:Boolean},methods:{keyPress:function(t){27===t.keyCode&&this.closeMenuRecursive(this,["NavBar"])},handleClickEvent:function(t){var e=Za.some((function(e){return e===t.target.localName}));if(!e){var n=this.closeMenuRecursive(this,["NavbarDropdown","NavBar"]);n.$data._isNavbarDropdown&&this.closeMenuRecursive(n,["NavBar"])}},closeMenuRecursive:function(t,e){if(!t.$parent)return null;var n=e.reduce((function(e,n){return t.$parent.$data["_is".concat(n)]?(t.$parent.closeMenu(),t.$parent):e}),null);return n||this.closeMenuRecursive(t.$parent,e)}},mounted:function(){"undefined"!==typeof window&&(this.$el.addEventListener("click",this.handleClickEvent),document.addEventListener("keyup",this.keyPress))},beforeDestroy:function(){"undefined"!==typeof window&&(this.$el.removeEventListener("click",this.handleClickEvent),document.removeEventListener("keyup",this.keyPress))}};const Ja=Xa;var Qa=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.tag,t._g(t._b({tag:"component",staticClass:"navbar-item",class:{"is-active":t.active}},"component",t.$attrs,!1),t.$listeners),[t._t("default")],2)},ts=[];const es=void 0,ns=void 0,rs=void 0,is=!1;var os=N({render:Qa,staticRenderFns:ts},es,Ja,ns,is,rs,void 0,void 0),as={name:"BNavbarDropdown",directives:{clickOutside:Pa},props:{label:String,hoverable:Boolean,active:Boolean,right:Boolean,arrowless:Boolean,boxed:Boolean,closeOnClick:{type:Boolean,default:!0},collapsible:Boolean},data:function(){return{newActive:this.active,isHoverable:this.hoverable,_isNavbarDropdown:!0}},watch:{active:function(t){this.newActive=t}},methods:{showMenu:function(){this.newActive=!0},closeMenu:function(){this.newActive=!this.closeOnClick,this.hoverable&&this.closeOnClick&&(this.isHoverable=!1)},checkHoverable:function(){this.hoverable&&(this.isHoverable=!0)}}};const ss=as;var us=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:t.closeMenu,expression:"closeMenu"}],staticClass:"navbar-item has-dropdown",class:{"is-hoverable":t.isHoverable,"is-active":t.newActive},on:{mouseenter:t.checkHoverable}},[n("a",{staticClass:"navbar-link",class:{"is-arrowless":t.arrowless,"is-active":t.newActive&&t.collapsible},attrs:{role:"menuitem","aria-haspopup":"true",href:"#"},on:{click:function(e){e.preventDefault(),t.newActive=!t.newActive}}},[t.label?[t._v(t._s(t.label))]:t._t("label")],2),t._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:!t.collapsible||t.collapsible&&t.newActive,expression:"!collapsible || (collapsible && newActive)"}],staticClass:"navbar-dropdown",class:{"is-right":t.right,"is-boxed":t.boxed}},[t._t("default")],2)])},ls=[];const cs=void 0,hs=void 0,fs=void 0,ds=!1;var ps=N({render:us,staticRenderFns:ls},cs,ss,hs,ds,fs,void 0,void 0),ms={install:function(t){D(t,Ka),D(t,os),D(t,ps)}};T(ms);var vs,gs=ms,ys={name:"BNumberinput",components:(vs={},i(vs,G.name,G),i(vs,et.name,et),vs),mixins:[R],inheritAttrs:!1,props:{value:Number,min:[Number,String],max:[Number,String],step:[Number,String],disabled:Boolean,type:{type:String,default:"is-primary"},editable:{type:Boolean,default:!0},controls:{type:Boolean,default:!0},controlsRounded:{type:Boolean,default:!1},controlsPosition:String},data:function(){return{newValue:isNaN(this.value)?parseFloat(this.min)||0:this.value,newStep:this.step||1,_elementRef:"input"}},computed:{computedValue:{get:function(){return this.newValue},set:function(t){var e=t;""===t&&(e=parseFloat(this.min)||null),this.newValue=e,this.$emit("input",e),!this.isValid&&this.$refs.input.checkHtml5Validity()}},fieldClasses:function(){return[{"has-addons":"compact"===this.controlsPosition},{"is-grouped":"compact"!==this.controlsPosition},{"is-expanded":this.expanded}]},buttonClasses:function(){return[this.type,this.size,{"is-rounded":this.controlsRounded}]},minNumber:function(){return"string"===typeof this.min?parseFloat(this.min):this.min},maxNumber:function(){return"string"===typeof this.max?parseFloat(this.max):this.max},stepNumber:function(){return"string"===typeof this.newStep?parseFloat(this.newStep):this.newStep},disabledMin:function(){return this.computedValue-this.stepNumberthis.maxNumber},stepDecimals:function(){var t=this.stepNumber.toString(),e=t.indexOf(".");return e>=0?t.substring(e+1).length:0}},watch:{value:function(t){this.newValue=t}},methods:{decrement:function(){if("undefined"===typeof this.minNumber||this.computedValue-this.stepNumber>=this.minNumber){var t=this.computedValue-this.stepNumber;this.computedValue=parseFloat(t.toFixed(this.stepDecimals))}},increment:function(){if("undefined"===typeof this.maxNumber||this.computedValue+this.stepNumber<=this.maxNumber){var t=this.computedValue+this.stepNumber;this.computedValue=parseFloat(t.toFixed(this.stepDecimals))}},onControlClick:function(t,e){0===t.detail&&"click"!==t.type&&(e?this.increment():this.decrement())},onStartLongPress:function(t,e){var n=this;0!==t.button&&"touchstart"!==t.type||(this._$intervalTime=new Date,clearInterval(this._$intervalRef),this._$intervalRef=setInterval((function(){e?n.increment():n.decrement()}),250))},onStopLongPress:function(t){if(this._$intervalRef){var e=new Date;e-this._$intervalTime<250&&(t?this.increment():this.decrement()),clearInterval(this._$intervalRef),this._$intervalRef=null}}}};const bs=ys;var ws=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-numberinput field",class:t.fieldClasses},[t.controls?n("p",{staticClass:"control",on:{mouseup:function(e){t.onStopLongPress(!1)},mouseleave:function(e){t.onStopLongPress(!1)},touchend:function(e){t.onStopLongPress(!1)},touchcancel:function(e){t.onStopLongPress(!1)}}},[n("button",{staticClass:"button",class:t.buttonClasses,attrs:{type:"button",disabled:t.disabled||t.disabledMin},on:{mousedown:function(e){t.onStartLongPress(e,!1)},touchstart:function(e){e.preventDefault(),t.onStartLongPress(e,!1)},click:function(e){t.onControlClick(e,!1)}}},[n("b-icon",{attrs:{icon:"minus",both:"",pack:t.iconPack,size:t.iconSize}})],1)]):t._e(),t._v(" "),n("b-input",t._b({ref:"input",attrs:{type:"number",step:t.newStep,max:t.max,min:t.min,size:t.size,disabled:t.disabled,readonly:!t.editable,loading:t.loading,rounded:t.rounded,icon:t.icon,"icon-pack":t.iconPack,autocomplete:t.autocomplete,expanded:t.expanded,"use-html5-validation":t.useHtml5Validation},on:{focus:function(e){t.$emit("focus",e)},blur:function(e){t.$emit("blur",e)}},model:{value:t.computedValue,callback:function(e){t.computedValue=t._n(e)},expression:"computedValue"}},"b-input",t.$attrs,!1)),t._v(" "),t.controls?n("p",{staticClass:"control",on:{mouseup:function(e){t.onStopLongPress(!0)},mouseleave:function(e){t.onStopLongPress(!0)},touchend:function(e){t.onStopLongPress(!0)},touchcancel:function(e){t.onStopLongPress(!0)}}},[n("button",{staticClass:"button",class:t.buttonClasses,attrs:{type:"button",disabled:t.disabled||t.disabledMax},on:{mousedown:function(e){t.onStartLongPress(e,!0)},touchstart:function(e){e.preventDefault(),t.onStartLongPress(e,!0)},click:function(e){t.onControlClick(e,!0)}}},[n("b-icon",{attrs:{icon:"plus",both:"",pack:t.iconPack,size:t.iconSize}})],1)]):t._e()],1)},_s=[];const xs=void 0,Ss=void 0,Ms=void 0,ks=!1;var Es=N({render:ws,staticRenderFns:_s},xs,bs,Ss,ks,Ms,void 0,void 0),As={install:function(t){D(t,Es)}};T(As);var Os=As,Cs={name:"BPaginationButton",props:{page:{type:Object,required:!0},tag:{type:String,default:"a",validator:function(t){return E.defaultLinkTags.indexOf(t)>=0}},disabled:{type:Boolean,default:!1}},computed:{href:function(){if("a"===this.tag)return"#"},isDisabled:function(){return this.disabled||this.page.disabled}}};const Ns=Cs;var Ts=function(){var t,e=this,n=e.$createElement,r=e._self._c||n;return r(e.tag,e._b({tag:"component",staticClass:"pagination-link",class:(t={"is-current":e.page.isCurrent},t[e.page.class]=!0,t),attrs:{role:"button",href:e.href,disabled:e.isDisabled,"aria-label":e.page["aria-label"],"aria-current":e.page.isCurrent},on:{click:function(t){return t.preventDefault(),e.page.click(t)}}},"component",e.$attrs,!1),[e._t("default",[e._v(e._s(e.page.number))])],2)},Ds=[];const Is=void 0,Rs=void 0,Ps=void 0,js=!1;var Bs,$s=N({render:Ts,staticRenderFns:Ds},Is,Ns,Rs,js,Ps,void 0,void 0),Ls={name:"BPagination",components:(Bs={},i(Bs,G.name,G),i(Bs,$s.name,$s),Bs),props:{total:[Number,String],perPage:{type:[Number,String],default:20},current:{type:[Number,String],default:1},rangeBefore:{type:[Number,String],default:1},rangeAfter:{type:[Number,String],default:1},size:String,simple:Boolean,rounded:Boolean,order:String,iconPack:String,iconPrev:{type:String,default:function(){return E.defaultIconPrev}},iconNext:{type:String,default:function(){return E.defaultIconNext}},ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String},computed:{rootClasses:function(){return[this.order,this.size,{"is-simple":this.simple,"is-rounded":this.rounded}]},beforeCurrent:function(){return parseInt(this.rangeBefore)},afterCurrent:function(){return parseInt(this.rangeAfter)},pageCount:function(){return Math.ceil(this.total/this.perPage)},firstItem:function(){var t=this.current*this.perPage-this.perPage+1;return t>=0?t:0},hasPrev:function(){return this.current>1},hasFirst:function(){return this.current>=2+this.beforeCurrent},hasFirstEllipsis:function(){return this.current>=this.beforeCurrent+4},hasLast:function(){return this.current<=this.pageCount-(1+this.afterCurrent)},hasLastEllipsis:function(){return this.currentt&&this.last()}},methods:{prev:function(t){this.changePage(this.current-1,t)},next:function(t){this.changePage(this.current+1,t)},first:function(t){this.changePage(1,t)},last:function(t){this.changePage(this.pageCount,t)},changePage:function(t,e){this.current===t||t<1||t>this.pageCount||(this.$emit("change",t),this.$emit("update:current",t),e&&e.target&&this.$nextTick((function(){return e.target.focus()})))},getPage:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{number:t,isCurrent:this.current===t,click:function(n){return e.changePage(t,n)},disabled:n.disabled||!1,class:n.class||"","aria-label":n["aria-label"]||this.getAriaPageLabel(t,this.current===t)}},getAriaPageLabel:function(t,e){return!this.ariaPageLabel||e&&this.ariaCurrentLabel?this.ariaPageLabel&&e&&this.ariaCurrentLabel?this.ariaCurrentLabel+", "+this.ariaPageLabel+" "+t+".":null:this.ariaPageLabel+" "+t+"."}}};const Fs=Ls;var Us=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("nav",{staticClass:"pagination",class:t.rootClasses},[t.$scopedSlots.previous?t._t("previous",[n("b-icon",{attrs:{icon:t.iconPrev,pack:t.iconPack,both:"","aria-hidden":"true"}})],{page:t.getPage(t.current-1,{disabled:!t.hasPrev,class:"pagination-previous","aria-label":t.ariaPreviousLabel})}):n("BPaginationButton",{staticClass:"pagination-previous",attrs:{disabled:!t.hasPrev,page:t.getPage(t.current-1)}},[n("b-icon",{attrs:{icon:t.iconPrev,pack:t.iconPack,both:"","aria-hidden":"true"}})],1),t._v(" "),t.$scopedSlots.next?t._t("next",[n("b-icon",{attrs:{icon:t.iconNext,pack:t.iconPack,both:"","aria-hidden":"true"}})],{page:t.getPage(t.current+1,{disabled:!t.hasNext,class:"pagination-next","aria-label":t.ariaNextLabel})}):n("BPaginationButton",{staticClass:"pagination-next",attrs:{disabled:!t.hasNext,page:t.getPage(t.current+1)}},[n("b-icon",{attrs:{icon:t.iconNext,pack:t.iconPack,both:"","aria-hidden":"true"}})],1),t._v(" "),t.simple?n("small",{staticClass:"info"},[1==t.perPage?[t._v("\r\n "+t._s(t.firstItem)+" / "+t._s(t.total)+"\r\n ")]:[t._v("\r\n "+t._s(t.firstItem)+"-"+t._s(Math.min(t.current*t.perPage,t.total))+" / "+t._s(t.total)+"\r\n ")]],2):n("ul",{staticClass:"pagination-list"},[t.hasFirst?n("li",[t.$scopedSlots.default?t._t("default",null,{page:t.getPage(1)}):n("BPaginationButton",{attrs:{page:t.getPage(1)}})],2):t._e(),t._v(" "),t.hasFirstEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[t._v("…")])]):t._e(),t._v(" "),t._l(t.pagesInRange,(function(e){return n("li",{key:e.number},[t.$scopedSlots.default?t._t("default",null,{page:e}):n("BPaginationButton",{attrs:{page:e}})],2)})),t._v(" "),t.hasLastEllipsis?n("li",[n("span",{staticClass:"pagination-ellipsis"},[t._v("…")])]):t._e(),t._v(" "),t.hasLast?n("li",[t.$scopedSlots.default?t._t("default",null,{page:t.getPage(t.pageCount)}):n("BPaginationButton",{attrs:{page:t.getPage(t.pageCount)}})],2):t._e()],2)],2)},Vs=[];const zs=void 0,qs=void 0,Hs=void 0,Gs=!1;var Ws=N({render:Us,staticRenderFns:Vs},zs,Fs,qs,Gs,Hs,void 0,void 0),Ys={install:function(t){D(t,Ws),D(t,$s)}};T(Ys);var Ks=Ys,Zs={name:"BProgress",props:{type:{type:[String,Object],default:"is-darkgrey"},size:String,value:{type:Number,default:void 0},max:{type:Number,default:100},showValue:{type:Boolean,default:!1},format:{type:String,default:"raw",validator:function(t){return["raw","percent"].indexOf(t)>=0}},precision:{type:Number,default:2},keepTrailingZeroes:{type:Boolean,default:!1}},computed:{isIndeterminate:function(){return void 0===this.value||null===this.value},newType:function(){return[this.size,this.type]},newValue:function(){if(void 0!==this.value&&null!==this.value&&!isNaN(this.value)){if("percent"===this.format){var t=this.toFixed(100*this.value/this.max);return"".concat(t,"%")}var e=this.toFixed(this.value);return e}}},watch:{value:function(t){this.setValue(t)}},methods:{setValue:function(t){this.isIndeterminate?this.$refs.progress.removeAttribute("value"):this.$refs.progress.setAttribute("value",t)},toFixed:function(t){var e=(+"".concat(Math.round(+"".concat(t,"e").concat(this.precision)),"e").concat(-this.precision)).toFixed(this.precision);return this.keepTrailingZeroes||(e=e.replace(/\.?0+$/,"")),e}},mounted:function(){this.setValue(this.value)}};const Xs=Zs;var Js=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"progress-wrapper"},[n("progress",{ref:"progress",staticClass:"progress",class:t.newType,attrs:{max:t.max}},[t._v(t._s(t.newValue))]),t._v(" "),t.showValue?n("p",{staticClass:"progress-value"},[t._t("default",[t._v(t._s(t.newValue))])],2):t._e()])},Qs=[];const tu=void 0,eu=void 0,nu=void 0,ru=!1;var iu=N({render:Js,staticRenderFns:Qs},tu,Xs,eu,ru,nu,void 0,void 0),ou={install:function(t){D(t,iu)}};T(ou);var au=ou,su={name:"BRadio",mixins:[Qt]};const uu=su;var lu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{ref:"label",staticClass:"b-radio radio",class:[t.size,{"is-disabled":t.disabled}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault(),t.$refs.label.click()}}},[n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"radio",disabled:t.disabled,required:t.required,name:t.name},domProps:{value:t.nativeValue,checked:t._q(t.computedValue,t.nativeValue)},on:{click:function(t){t.stopPropagation()},change:function(e){t.computedValue=t.nativeValue}}}),t._v(" "),n("span",{staticClass:"check",class:t.type}),t._v(" "),n("span",{staticClass:"control-label"},[t._t("default")],2)])},cu=[];const hu=void 0,fu=void 0,du=void 0,pu=!1;var mu=N({render:lu,staticRenderFns:cu},hu,uu,fu,pu,du,void 0,void 0),vu={name:"BRadioButton",mixins:[Qt],props:{type:{type:String,default:"is-primary"},expanded:Boolean},data:function(){return{isFocused:!1}}};const gu=vu;var yu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"control",class:{"is-expanded":t.expanded}},[n("label",{ref:"label",staticClass:"b-radio radio button",class:[t.newValue===t.nativeValue?t.type:null,t.size,{"is-disabled":t.disabled,"is-focused":t.isFocused}],attrs:{disabled:t.disabled},on:{click:t.focus,keydown:function(e){if(!("button"in e)&&t._k(e.keyCode,"enter",13,e.key,"Enter"))return null;e.preventDefault(),t.$refs.label.click()}}},[t._t("default"),t._v(" "),n("input",{directives:[{name:"model",rawName:"v-model",value:t.computedValue,expression:"computedValue"}],ref:"input",attrs:{type:"radio",disabled:t.disabled,required:t.required,name:t.name},domProps:{value:t.nativeValue,checked:t._q(t.computedValue,t.nativeValue)},on:{click:function(t){t.stopPropagation()},focus:function(e){t.isFocused=!0},blur:function(e){t.isFocused=!1},change:function(e){t.computedValue=t.nativeValue}}})],2)])},bu=[];const wu=void 0,_u=void 0,xu=void 0,Su=!1;var Mu=N({render:yu,staticRenderFns:bu},wu,gu,_u,Su,xu,void 0,void 0),ku={install:function(t){D(t,mu),D(t,Mu)}};T(ku);var Eu=ku,Au={name:"BRate",components:i({},G.name,G),props:{value:{type:Number,default:0},max:{type:Number,default:5},icon:{type:String,default:"star"},iconPack:String,size:String,spaced:Boolean,rtl:Boolean,disabled:Boolean,showScore:Boolean,showText:Boolean,customText:String,texts:Array},data:function(){return{newValue:this.value,hoverValue:0}},computed:{halfStyle:function(){return"width:".concat(this.valueDecimal,"%")},showMe:function(){var t="";return this.showScore?(t=this.disabled?this.value:this.newValue,0===t&&(t="")):this.showText&&(t=this.texts[Math.ceil(this.newValue)-1]),t},valueDecimal:function(){return 100*this.value-100*Math.floor(this.value)}},watch:{value:function(t){this.newValue=t}},methods:{resetNewValue:function(){this.disabled||(this.hoverValue=0)},previewRate:function(t,e){this.disabled||(this.hoverValue=t,e.stopPropagation())},confirmValue:function(t){this.disabled||(this.newValue=t,this.$emit("change",this.newValue),this.$emit("input",this.newValue))},checkHalf:function(t){var e=this.disabled&&this.valueDecimal>0&&t-1this.value;return e},rateClass:function(t){var e="",n=0!==this.hoverValue?this.hoverValue:this.newValue;return t<=n?e="set-on":this.disabled&&Math.ceil(this.value)===t&&(e="set-half"),e}}};const Ou=Au;var Cu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"rate",class:{"is-disabled":t.disabled,"is-spaced":t.spaced,"is-rtl":t.rtl}},[t._l(t.max,(function(e,r){return n("div",{key:r,staticClass:"rate-item",class:t.rateClass(e),on:{mousemove:function(n){t.previewRate(e,n)},mouseleave:t.resetNewValue,click:function(n){n.preventDefault(),t.confirmValue(e)}}},[n("b-icon",{attrs:{pack:t.iconPack,icon:t.icon,size:t.size}}),t._v(" "),t.checkHalf(e)?n("b-icon",{staticClass:"is-half",style:t.halfStyle,attrs:{pack:t.iconPack,icon:t.icon,size:t.size}}):t._e()],1)})),t._v(" "),t.showText||t.showScore||t.customText?n("div",{staticClass:"rate-text",class:t.size},[n("span",[t._v(t._s(t.showMe))]),t._v(" "),t.customText&&!t.showText?n("span",[t._v(t._s(t.customText))]):t._e()]):t._e()],2)},Nu=[];const Tu=void 0,Du=void 0,Iu=void 0,Ru=!1;var Pu=N({render:Cu,staticRenderFns:Nu},Tu,Ou,Du,Ru,Iu,void 0,void 0),ju={install:function(t){D(t,Pu)}};T(ju);var Bu=ju,$u={install:function(t){D(t,er)}};T($u);var Lu=$u,Fu={name:"BSkeleton",functional:!0,props:{active:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:[Number,String],height:[Number,String],circle:Boolean,rounded:{type:Boolean,default:!0},count:{type:Number,default:1},size:String},render:function(t,e){if(e.props.active){for(var n=[],r=e.props.width,i=e.props.height,o=0;o=0}},fullheight:Boolean,fullwidth:Boolean,right:Boolean,mobile:{type:String},reduce:Boolean,expandOnHover:Boolean,expandOnHoverFixed:Boolean,canCancel:{type:[Array,Boolean],default:function(){return["escape","outside"]}},onCancel:{type:Function,default:function(){}}},data:function(){return{isOpen:this.open,transitionName:null,animating:!0}},computed:{rootClasses:function(){return[this.type,{"is-fixed":this.isFixed,"is-static":this.isStatic,"is-absolute":this.isAbsolute,"is-fullheight":this.fullheight,"is-fullwidth":this.fullwidth,"is-right":this.right,"is-mini":this.reduce,"is-mini-expand":this.expandOnHover,"is-mini-expand-fixed":this.expandOnHover&&this.expandOnHoverFixed,"is-mini-mobile":"reduce"===this.mobile,"is-hidden-mobile":"hide"===this.mobile,"is-fullwidth-mobile":"fullwidth"===this.mobile}]},cancelOptions:function(){return"boolean"===typeof this.canCancel?this.canCancel?["escape","outside"]:[]:this.canCancel},isStatic:function(){return"static"===this.position},isFixed:function(){return"fixed"===this.position},isAbsolute:function(){return"absolute"===this.position},whiteList:function(){var t=[];if(t.push(this.$refs.sidebarContent),void 0!==this.$refs.sidebarContent){var e=this.$refs.sidebarContent.querySelectorAll("*"),n=!0,r=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;t.push(s)}}catch(u){r=!0,i=u}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}}return t}},watch:{open:{handler:function(t){this.isOpen=t;var e=this.right?!t:t;this.transitionName=e?"slide-next":"slide-prev"},immediate:!0}},methods:{keyPress:function(t){this.isFixed&&this.isOpen&&27===t.keyCode&&this.cancel("escape")},cancel:function(t){this.cancelOptions.indexOf(t)<0||this.isStatic||(this.onCancel.apply(null,arguments),this.close())},close:function(){this.isOpen=!1,this.$emit("close"),this.$emit("update:open",!1)},clickedOutside:function(t){this.isFixed&&this.isOpen&&!this.animating&&this.whiteList.indexOf(t.target)<0&&this.cancel("outside")},beforeEnter:function(){this.animating=!0},afterEnter:function(){this.animating=!1}},created:function(){"undefined"!==typeof window&&(document.addEventListener("keyup",this.keyPress),document.addEventListener("click",this.clickedOutside))},mounted:function(){"undefined"!==typeof window&&this.isFixed&&document.body.appendChild(this.$el)},beforeDestroy:function(){"undefined"!==typeof window&&(document.removeEventListener("keyup",this.keyPress),document.removeEventListener("click",this.clickedOutside)),this.isFixed&&x(this.$el)}};const Zu=Ku;var Xu=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-sidebar"},[t.overlay&&t.isOpen?n("div",{staticClass:"sidebar-background"}):t._e(),t._v(" "),n("transition",{attrs:{name:t.transitionName},on:{"before-enter":t.beforeEnter,"after-enter":t.afterEnter}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}],ref:"sidebarContent",staticClass:"sidebar-content",class:t.rootClasses},[t._t("default")],2)])],1)},Ju=[];const Qu=void 0,tl=void 0,el=void 0,nl=!1;var rl=N({render:Xu,staticRenderFns:Ju},Qu,Zu,tl,nl,el,void 0,void 0),il={install:function(t){D(t,rl)}};T(il);var ol=il,al={name:"BTooltip",props:{active:{type:Boolean,default:!0},type:String,label:String,position:{type:String,default:"is-top",validator:function(t){return["is-top","is-bottom","is-left","is-right"].indexOf(t)>-1}},always:Boolean,animated:Boolean,square:Boolean,dashed:Boolean,multilined:Boolean,size:{type:String,default:"is-medium"},delay:Number},computed:{newType:function(){return this.type||E.defaultTooltipType},newAnimated:function(){return this.animated||E.defaultTooltipAnimated},newDelay:function(){return this.delay||E.defaultTooltipDelay}}};const sl=al;var ul=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("span",{class:[t.newType,t.position,t.size,{"b-tooltip":t.active,"is-square":t.square,"is-animated":t.newAnimated,"is-always":t.always,"is-multiline":t.multilined,"is-dashed":t.dashed}],style:{"transition-delay":t.newDelay+"ms"},attrs:{"data-label":t.label}},[t._t("default")],2)},ll=[];const cl=void 0,hl=void 0,fl=void 0,dl=!1;var pl=N({render:ul,staticRenderFns:ll},cl,sl,hl,dl,fl,void 0,void 0),ml={name:"BSliderThumb",components:i({},pl.name,pl),inheritAttrs:!1,props:{value:{type:Number,default:0},type:{type:String,default:""},tooltip:{type:Boolean,default:!0},customFormatter:Function},data:function(){return{isFocused:!1,dragging:!1,startX:0,startPosition:0,newPosition:null,oldValue:this.value}},computed:{disabled:function(){return this.$parent.disabled},max:function(){return this.$parent.max},min:function(){return this.$parent.min},step:function(){return this.$parent.step},precision:function(){return this.$parent.precision},currentPosition:function(){return"".concat((this.value-this.min)/(this.max-this.min)*100,"%")},wrapperStyle:function(){return{left:this.currentPosition}},tooltipLabel:function(){return"undefined"!==typeof this.customFormatter?this.customFormatter(this.value):this.value.toString()}},methods:{onFocus:function(){this.isFocused=!0},onBlur:function(){this.isFocused=!1},onButtonDown:function(t){this.disabled||(t.preventDefault(),this.onDragStart(t),"undefined"!==typeof window&&(document.addEventListener("mousemove",this.onDragging),document.addEventListener("touchmove",this.onDragging),document.addEventListener("mouseup",this.onDragEnd),document.addEventListener("touchend",this.onDragEnd),document.addEventListener("contextmenu",this.onDragEnd)))},onLeftKeyDown:function(){this.disabled||this.value===this.min||(this.newPosition=parseFloat(this.currentPosition)-this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onRightKeyDown:function(){this.disabled||this.value===this.max||(this.newPosition=parseFloat(this.currentPosition)+this.step/(this.max-this.min)*100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onHomeKeyDown:function(){this.disabled||this.value===this.min||(this.newPosition=0,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onEndKeyDown:function(){this.disabled||this.value===this.max||(this.newPosition=100,this.setPosition(this.newPosition),this.$parent.emitValue("change"))},onDragStart:function(t){this.dragging=!0,this.$emit("dragstart"),"touchstart"===t.type&&(t.clientX=t.touches[0].clientX),this.startX=t.clientX,this.startPosition=parseFloat(this.currentPosition),this.newPosition=this.startPosition},onDragging:function(t){if(this.dragging){"touchmove"===t.type&&(t.clientX=t.touches[0].clientX);var e=(t.clientX-this.startX)/this.$parent.sliderSize()*100;this.newPosition=this.startPosition+e,this.setPosition(this.newPosition)}},onDragEnd:function(){this.dragging=!1,this.$emit("dragend"),this.value!==this.oldValue&&this.$parent.emitValue("change"),this.setPosition(this.newPosition),"undefined"!==typeof window&&(document.removeEventListener("mousemove",this.onDragging),document.removeEventListener("touchmove",this.onDragging),document.removeEventListener("mouseup",this.onDragEnd),document.removeEventListener("touchend",this.onDragEnd),document.removeEventListener("contextmenu",this.onDragEnd))},setPosition:function(t){if(null!==t&&!isNaN(t)){t<0?t=0:t>100&&(t=100);var e=100/((this.max-this.min)/this.step),n=Math.round(t/e),r=n*e/100*(this.max-this.min)+this.min;r=parseFloat(r.toFixed(this.precision)),this.$emit("input",r),this.dragging||r===this.oldValue||(this.oldValue=r)}}}};const vl=ml;var gl=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-slider-thumb-wrapper",class:{"is-dragging":t.dragging},style:t.wrapperStyle},[n("b-tooltip",{attrs:{label:t.tooltipLabel,type:t.type,always:t.dragging||t.isFocused,active:!t.disabled&&t.tooltip}},[n("div",t._b({staticClass:"b-slider-thumb",attrs:{tabindex:!t.disabled&&0},on:{mousedown:t.onButtonDown,touchstart:t.onButtonDown,focus:t.onFocus,blur:t.onBlur,keydown:[function(e){return!("button"in e)&&t._k(e.keyCode,"left",37,e.key,["Left","ArrowLeft"])||"button"in e&&0!==e.button?null:(e.preventDefault(),t.onLeftKeyDown(e))},function(e){return!("button"in e)&&t._k(e.keyCode,"right",39,e.key,["Right","ArrowRight"])||"button"in e&&2!==e.button?null:(e.preventDefault(),t.onRightKeyDown(e))},function(e){return!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.onLeftKeyDown(e))},function(e){return!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.onRightKeyDown(e))},function(e){return!("button"in e)&&t._k(e.keyCode,"home",void 0,e.key,void 0)?null:(e.preventDefault(),t.onHomeKeyDown(e))},function(e){return!("button"in e)&&t._k(e.keyCode,"end",void 0,e.key,void 0)?null:(e.preventDefault(),t.onEndKeyDown(e))}]}},"div",t.$attrs,!1))])],1)},yl=[];const bl=void 0,wl=void 0,_l=void 0,xl=!1;var Sl=N({render:gl,staticRenderFns:yl},bl,vl,wl,xl,_l,void 0,void 0),Ml={name:"BSliderTick",props:{value:{type:Number,default:0}},computed:{position:function(){var t=(this.value-this.$parent.min)/(this.$parent.max-this.$parent.min)*100;return t>=0&&t<=100?t:0},hidden:function(){return this.value===this.$parent.min||this.value===this.$parent.max}},methods:{getTickStyle:function(t){return{left:t+"%"}}},created:function(){if(!this.$parent.$data._isSlider)throw this.$destroy(),new Error("You should wrap bSliderTick on a bSlider")}};const kl=Ml;var El=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-slider-tick",class:{"is-tick-hidden":t.hidden},style:t.getTickStyle(t.position)},[t.$slots.default?n("span",{staticClass:"b-slider-tick-label"},[t._t("default")],2):t._e()])},Al=[];const Ol=void 0,Cl=void 0,Nl=void 0,Tl=!1;var Dl,Il=N({render:El,staticRenderFns:Al},Ol,kl,Cl,Tl,Nl,void 0,void 0),Rl={name:"BSlider",components:(Dl={},i(Dl,Sl.name,Sl),i(Dl,Il.name,Il),Dl),props:{value:{type:[Number,Array],default:0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:Number,default:1},type:{type:String,default:"is-primary"},size:String,ticks:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!0},tooltipType:String,rounded:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},lazy:{type:Boolean,default:!1},customFormatter:Function,ariaLabel:[String,Array],biggerSliderFocus:{type:Boolean,default:!1}},data:function(){return{value1:null,value2:null,dragging:!1,isRange:!1,_isSlider:!0}},computed:{newTooltipType:function(){return this.tooltipType?this.tooltipType:this.type},tickValues:function(){if(!this.ticks||this.min>this.max||0===this.step)return[];for(var t=[],e=this.min+this.step;ethis.max))if(Array.isArray(t)){this.isRange=!0;var e="number"!==typeof t[0]||isNaN(t[0])?this.min:Math.min(Math.max(this.min,t[0]),this.max),n="number"!==typeof t[1]||isNaN(t[1])?this.max:Math.max(Math.min(this.max,t[1]),this.min);this.value1=this.isThumbReversed?n:e,this.value2=this.isThumbReversed?e:n}else this.isRange=!1,this.value1=isNaN(t)?this.min:Math.min(this.max,Math.max(this.min,t)),this.value2=null},onInternalValueUpdate:function(){this.isRange&&(this.isThumbReversed=this.value1>this.value2),this.lazy&&this.dragging||this.emitValue("input"),this.dragging&&this.emitValue("dragging")},sliderSize:function(){return this.$refs.slider.getBoundingClientRect().width},onSliderClick:function(t){if(!this.disabled&&!this.isTrackClickDisabled){var e=this.$refs.slider.getBoundingClientRect().left,n=(t.clientX-e)/this.sliderSize()*100,r=this.min+n*(this.max-this.min)/100,i=Math.abs(r-this.value1);if(this.isRange){var o=Math.abs(r-this.value2);if(i<=o){if(i-1},default:"bottom"},rounded:{type:Boolean,default:!0},mobileMode:{type:String,validator:function(t){return["minimalist","compact"].indexOf(t)>-1},default:"minimalist"},ariaNextLabel:String,ariaPreviousLabel:String},data:function(){return{activeStep:0,defaultSlots:[],contentHeight:0,isTransitioning:!1,_isSteps:!0}},computed:{wrapperClasses:function(){return[this.size,i({"is-vertical":this.vertical},this.position,this.position&&this.vertical)]},mainClasses:function(){return[this.type,i({"has-label-right":"right"===this.labelPosition,"has-label-left":"left"===this.labelPosition,"is-animated":this.animated,"is-rounded":this.rounded},"mobile-".concat(this.mobileMode),null!==this.mobileMode)]},stepItems:function(){return this.defaultSlots.filter((function(t){return t.componentInstance&&t.componentInstance.$data&&t.componentInstance.$data._isStepItem})).map((function(t){return t.componentInstance}))},reversedStepItems:function(){return this.stepItems.slice().reverse()},firstVisibleStepIndex:function(){return this.stepItems.map((function(t,e){return t.visible})).indexOf(!0)},hasPrev:function(){return this.firstVisibleStepIndex>=0&&this.activeStep>this.firstVisibleStepIndex},lastVisibleStepIndex:function(){var t=this.reversedStepItems.map((function(t,e){return t.visible})).indexOf(!0);return t>=0?this.stepItems.length-1-t:t},hasNext:function(){return this.lastVisibleStepIndex>=0&&this.activeStep0&&this.changeStep(this.activeStep-1)}},methods:{refreshSlots:function(){this.defaultSlots=this.$slots.default||[]},changeStep:function(t){if(this.activeStep!==t){if(t>this.stepItems.length)throw new Error("The index you trying to set is bigger than the steps length");this.activeStepe:t.clickable},stepClick:function(t){this.$emit("input",this.getValueByIndex(t)),this.changeStep(t)},prev:function(){var t=this;if(this.hasPrev){var e=this.reversedStepItems.map((function(e,n){return t.stepItems.length-1-n=0&&(e=this.stepItems.length-1-e),this.$emit("input",this.getValueByIndex(e)),this.changeStep(e)}},next:function(){var t=this;if(this.hasNext){var e=this.stepItems.map((function(e,n){return n>t.activeStep&&e.visible})).indexOf(!0);this.$emit("input",this.getValueByIndex(e)),this.changeStep(e)}},getIndexByValue:function(t){var e=this.stepItems.map((function(t){return t.$options.propsData?t.$options.propsData.value:void 0})).indexOf(t);return e>=0?e:t},getValueByIndex:function(t){var e=this.stepItems[t].$options.propsData;return e&&e.value?e.value:t}},mounted:function(){this.activeStep=this.getIndexByValue(this.value||0),this.activeStepr}]},[n("a",{staticClass:"step-link",class:{"is-clickable":t.isItemClickable(e,r)},on:{click:function(n){t.isItemClickable(e,r)&&t.stepClick(r)}}},[n("div",{staticClass:"step-marker"},[e.icon?n("b-icon",{attrs:{icon:e.icon,pack:e.iconPack,size:t.size}}):e.step?n("span",[t._v(t._s(e.step))]):t._e()],1),t._v(" "),n("div",{staticClass:"step-details"},[n("span",{staticClass:"step-title"},[t._v(t._s(e.label))])])])])})))]),t._v(" "),n("section",{staticClass:"step-content",class:{"is-transitioning":t.isTransitioning}},[t._t("default")],2),t._v(" "),t._t("navigation",[t.hasNavigation?n("nav",{staticClass:"step-navigation"},[n("a",{staticClass:"pagination-previous",attrs:{role:"button",disabled:t.navigationProps.previous.disabled,"aria-label":t.ariaPreviousLabel},on:{click:function(e){return e.preventDefault(),t.navigationProps.previous.action(e)}}},[n("b-icon",{attrs:{icon:t.iconPrev,pack:t.iconPack,both:"","aria-hidden":"true"}})],1),t._v(" "),n("a",{staticClass:"pagination-next",attrs:{role:"button",disabled:t.navigationProps.next.disabled,"aria-label":t.ariaNextLabel},on:{click:function(e){return e.preventDefault(),t.navigationProps.next.action(e)}}},[n("b-icon",{attrs:{icon:t.iconNext,pack:t.iconPack,both:"","aria-hidden":"true"}})],1)]):t._e()],{previous:t.navigationProps.previous,next:t.navigationProps.next})],2)},lc=[];const cc=void 0,hc=void 0,fc=void 0,dc=!1;var pc=N({render:uc,staticRenderFns:lc},cc,sc,hc,dc,fc,void 0,void 0),mc={name:"BStepItem",props:{step:[String,Number],label:String,type:[String,Object],icon:String,iconPack:String,clickable:{type:Boolean,default:void 0},visible:{type:Boolean,default:!0},value:[String,Number]},data:function(){return{isActive:!1,transitionName:null,_isStepItem:!0}},methods:{activate:function(t,e){this.transitionName=e-1:t._q(t.computedValue,t.trueValue)},on:{click:function(t){t.stopPropagation()},change:function(e){var n=t.computedValue,r=e.target,i=r.checked?t.trueValue:t.falseValue;if(Array.isArray(n)){var o=t.nativeValue,a=t._i(n,o);r.checked?a<0&&(t.computedValue=n.concat([o])):a>-1&&(t.computedValue=n.slice(0,a).concat(n.slice(a+1)))}else t.computedValue=i}}}),t._v(" "),n("span",{staticClass:"check",class:[{"is-elastic":t.isMouseDown&&!t.disabled},t.passiveType&&t.passiveType+"-passive",t.type]}),t._v(" "),n("span",{staticClass:"control-label"},[t._t("default")],2)])},Ac=[];const Oc=void 0,Cc=void 0,Nc=void 0,Tc=!1;var Dc=N({render:Ec,staticRenderFns:Ac},Oc,kc,Cc,Tc,Nc,void 0,void 0),Ic={install:function(t){D(t,Dc)}};T(Ic);var Rc,Pc=Ic,jc={name:"BTableMobileSort",components:(Rc={},i(Rc,er.name,er),i(Rc,G.name,G),Rc),props:{currentSortColumn:Object,sortMultipleData:Array,isAsc:Boolean,columns:Array,placeholder:String,iconPack:String,sortIcon:{type:String,default:"arrow-up"},sortIconSize:{type:String,default:"is-small"},sortMultiple:{type:Boolean,default:!1}},data:function(){return{sortMultipleSelect:"",mobileSort:this.currentSortColumn,defaultEvent:{shiftKey:!0,altKey:!0,ctrlKey:!0},ignoreSort:!1}},computed:{showPlaceholder:function(){var t=this;return!this.columns||!this.columns.some((function(e){return e===t.mobileSort}))}},watch:{sortMultipleSelect:function(t){this.ignoreSort?this.ignoreSort=!1:this.$emit("sort",t,this.defaultEvent)},mobileSort:function(t){this.currentSortColumn!==t&&this.$emit("sort",t,this.defaultEvent)},currentSortColumn:function(t){this.mobileSort=t}},methods:{removePriority:function(){var t=this;this.$emit("removePriority",this.sortMultipleSelect),this.ignoreSort=!0;var e=this.sortMultipleData.filter((function(e){return e.field!==t.sortMultipleSelect.field})).map((function(t){return t.field}));this.sortMultipleSelect=this.columns.filter((function(t){return e.includes(t.field)}))[0]},getSortingObjectOfColumn:function(t){return this.sortMultipleData.filter((function(e){return e.field===t.field}))[0]},columnIsDesc:function(t){var e=this.getSortingObjectOfColumn(t);return!e||!(!e.order||"desc"!==e.order)},getLabel:function(t){var e=this.getSortingObjectOfColumn(t);return e?t.label+"("+(this.sortMultipleData.indexOf(e)+1)+")":t.label},sort:function(){this.$emit("sort",this.sortMultiple?this.sortMultipleSelect:this.mobileSort,this.defaultEvent)}}};const Bc=jc;var $c=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"field table-mobile-sort"},[n("div",{staticClass:"field has-addons"},[t.sortMultiple?n("b-select",{attrs:{expanded:""},model:{value:t.sortMultipleSelect,callback:function(e){t.sortMultipleSelect=e},expression:"sortMultipleSelect"}},t._l(t.columns,(function(e,r){return e.sortable?n("option",{key:r,domProps:{value:e}},[t._v("\r\n "+t._s(t.getLabel(e))+"\r\n "),t.getSortingObjectOfColumn(e)?[t.columnIsDesc(e)?[t._v("\r\n ↓\r\n ")]:[t._v("\r\n ↑\r\n ")]]:t._e()],2):t._e()}))):n("b-select",{attrs:{expanded:""},model:{value:t.mobileSort,callback:function(e){t.mobileSort=e},expression:"mobileSort"}},[t.placeholder?[n("option",{directives:[{name:"show",rawName:"v-show",value:t.showPlaceholder,expression:"showPlaceholder"}],attrs:{selected:"",disabled:"",hidden:""},domProps:{value:{}}},[t._v("\r\n "+t._s(t.placeholder)+"\r\n ")])]:t._e(),t._v(" "),t._l(t.columns,(function(e,r){return e.sortable?n("option",{key:r,domProps:{value:e}},[t._v("\r\n "+t._s(e.label)+"\r\n ")]):t._e()}))],2),t._v(" "),n("div",{staticClass:"control"},[t.sortMultiple&&t.sortMultipleData.length>0?[n("button",{staticClass:"button is-primary",on:{click:t.sort}},[n("b-icon",{class:{"is-desc":t.columnIsDesc(t.sortMultipleSelect)},attrs:{icon:t.sortIcon,pack:t.iconPack,size:t.sortIconSize,both:""}})],1),t._v(" "),n("button",{staticClass:"button is-primary",on:{click:t.removePriority}},[n("b-icon",{attrs:{icon:"delete",size:t.sortIconSize,both:""}})],1)]:t.sortMultiple?t._e():n("button",{staticClass:"button is-primary",on:{click:t.sort}},[n("b-icon",{directives:[{name:"show",rawName:"v-show",value:t.currentSortColumn===t.mobileSort,expression:"currentSortColumn === mobileSort"}],class:{"is-desc":!t.isAsc},attrs:{icon:t.sortIcon,pack:t.iconPack,size:t.sortIconSize,both:""}})],1)],2)],1)])},Lc=[];const Fc=void 0,Uc=void 0,Vc=void 0,zc=!1;var qc=N({render:$c,staticRenderFns:Lc},Fc,Bc,Uc,zc,Vc,void 0,void 0),Hc={name:"BTableColumn",props:{label:String,customKey:[String,Number],field:String,meta:[String,Number,Boolean,Function,Object,Array],width:[Number,String],numeric:Boolean,centered:Boolean,searchable:Boolean,sortable:Boolean,visible:{type:Boolean,default:!0},subheading:[String,Number],customSort:Function,sticky:Boolean,headerSelectable:{type:Boolean,default:!0},headerClass:String,cellClass:String,internal:Boolean},data:function(){return{newKey:this.customKey||this.label,_isTableColumn:!0}},computed:{rootClasses:function(){return[this.cellClass,{"has-text-right":this.numeric&&!this.centered,"has-text-centered":this.centered,"is-sticky":this.sticky}]}},beforeMount:function(){var t=this;if(!this.$parent.$data._isTable)throw this.$destroy(),new Error("You should wrap bTableColumn on a bTable");if(!this.internal){var e=this.$parent.newColumns.some((function(e){return e.newKey===t.newKey}));!e&&this.$parent.newColumns.push(this)}},beforeDestroy:function(){if(this.$parent.visibleData.length&&1===this.$parent.newColumns.length&&this.$parent.newColumns.length){var t=this.$parent.newColumns.map((function(t){return t.newKey})).indexOf(this.newKey);t>=0&&this.$parent.newColumns.splice(t,1)}}};const Gc=Hc;var Wc=function(){var t=this,e=t.$createElement,n=t._self._c||e;return t.visible?n("td",{class:t.rootClasses,attrs:{"data-label":t.label}},[t._t("default")],2):t._e()},Yc=[];const Kc=void 0,Zc=void 0,Xc=void 0,Jc=!1;var Qc,th=N({render:Wc,staticRenderFns:Yc},Kc,Gc,Zc,Jc,Xc,void 0,void 0),eh={name:"BTable",components:(Qc={},i(Qc,ue.name,ue),i(Qc,G.name,G),i(Qc,et.name,et),i(Qc,Ws.name,Ws),i(Qc,oc.name,oc),i(Qc,qc.name,qc),i(Qc,th.name,th),Qc),props:{data:{type:Array,default:function(){return[]}},columns:{type:Array,default:function(){return[]}},bordered:Boolean,striped:Boolean,narrowed:Boolean,hoverable:Boolean,loading:Boolean,detailed:Boolean,checkable:Boolean,headerCheckable:{type:Boolean,default:!0},checkboxPosition:{type:String,default:"left",validator:function(t){return["left","right"].indexOf(t)>=0}},selected:Object,isRowSelectable:{type:Function,default:function(){return!0}},focusable:Boolean,customIsChecked:Function,isRowCheckable:{type:Function,default:function(){return!0}},checkedRows:{type:Array,default:function(){return[]}},mobileCards:{type:Boolean,default:!0},defaultSort:[String,Array],defaultSortDirection:{type:String,default:"asc"},sortIcon:{type:String,default:"arrow-up"},sortIconSize:{type:String,default:"is-small"},sortMultiple:{type:Boolean,default:!1},sortMultipleData:{type:Array,default:function(){return[]}},sortMultipleKey:{type:String,default:null},paginated:Boolean,currentPage:{type:Number,default:1},perPage:{type:[Number,String],default:20},showDetailIcon:{type:Boolean,default:!0},paginationSimple:Boolean,paginationSize:String,paginationPosition:{type:String,default:"bottom",validator:function(t){return["bottom","top","both"].indexOf(t)>=0}},backendSorting:Boolean,backendFiltering:Boolean,rowClass:{type:Function,default:function(){return""}},openedDetailed:{type:Array,default:function(){return[]}},hasDetailedVisible:{type:Function,default:function(){return!0}},detailKey:{type:String,default:""},customDetailRow:{type:Boolean,default:!1},backendPagination:Boolean,total:{type:[Number,String],default:0},iconPack:String,mobileSortPlaceholder:String,customRowKey:String,draggable:{type:Boolean,default:!1},scrollable:Boolean,ariaNextLabel:String,ariaPreviousLabel:String,ariaPageLabel:String,ariaCurrentLabel:String,stickyHeader:Boolean,height:[Number,String],filtersEvent:{type:String,default:""},cardLayout:Boolean},data:function(){return{sortMultipleDataLocal:[],getValueByPath:v,newColumns:u(this.columns),visibleDetailRows:this.openedDetailed,newData:this.data,newDataTotal:this.backendPagination?this.total:this.data.length,newCheckedRows:u(this.checkedRows),lastCheckedRowIndex:null,newCurrentPage:this.currentPage,currentSortColumn:{},isAsc:!0,filters:{},firstTimeSort:!0,_isTable:!0}},computed:{sortMultipleDataComputed:function(){return this.backendSorting?this.sortMultipleData:this.sortMultipleDataLocal},tableClasses:function(){return{"is-bordered":this.bordered,"is-striped":this.striped,"is-narrow":this.narrowed,"is-hoverable":(this.hoverable||this.focusable)&&this.visibleData.length}},tableWrapperClasses:function(){return{"has-mobile-cards":this.mobileCards,"has-sticky-header":this.stickyHeader,"is-card-list":this.cardLayout,"table-container":this.isScrollable}},rooClasses:function(){return{"is-loading":this.loading}},visibleData:function(){if(!this.paginated)return this.newData;var t=this.newCurrentPage,e=this.perPage;if(this.newData.length<=e)return this.newData;var n=(t-1)*e,r=parseInt(n,10)+parseInt(e,10);return this.newData.slice(n,r)},visibleColumns:function(){return this.newColumns?this.newColumns.filter((function(t){return t.visible||void 0===t.visible})):this.newColumns},isAllChecked:function(){var t=this,e=this.visibleData.filter((function(e){return t.isRowCheckable(e)}));if(0===e.length)return!1;var n=e.some((function(e){return g(t.newCheckedRows,e,t.customIsChecked)<0}));return!n},isAllUncheckable:function(){var t=this,e=this.visibleData.filter((function(e){return t.isRowCheckable(e)}));return 0===e.length},hasSortablenewColumns:function(){return this.newColumns.some((function(t){return t.sortable}))},hasSearchablenewColumns:function(){return this.newColumns.some((function(t){return t.searchable}))},hasCustomSubheadings:function(){return!(!this.$scopedSlots||!this.$scopedSlots.subheading)||this.newColumns.some((function(t){return t.subheading||t.$scopedSlots&&t.$scopedSlots.subheading}))},columnCount:function(){var t=this.newColumns.length;return t+=this.checkable?1:0,t+=this.detailed&&this.showDetailIcon?1:0,t},showDetailRowIcon:function(){return this.detailed&&this.showDetailIcon},isScrollable:function(){return!!this.scrollable||!!this.newColumns&&this.newColumns.some((function(t){return t.sticky}))}},watch:{data:function(t){var e=this;this.newData=t,this.backendFiltering||(this.newData=t.filter((function(t){return e.isRowFiltered(t)}))),this.backendSorting||this.sort(this.currentSortColumn,!0),this.backendPagination||(this.newDataTotal=this.newData.length)},total:function(t){this.backendPagination&&(this.newDataTotal=t)},checkedRows:function(t){this.newCheckedRows=u(t)},columns:function(t){this.newColumns=u(t)},newColumns:function(t){this.checkSort()},filters:{handler:function(t){var e=this;this.backendFiltering?this.$emit("filters-change",t):(this.newData=this.data.filter((function(t){return e.isRowFiltered(t)})),this.backendPagination||(this.newDataTotal=this.newData.length),this.backendSorting||(this.sortMultiple&&this.sortMultipleDataLocal&&this.sortMultipleDataLocal.length>0?this.doSortMultiColumn():Object.keys(this.currentSortColumn).length>0&&this.doSortSingleColumn(this.currentSortColumn)))},deep:!0},openedDetailed:function(t){this.visibleDetailRows=t},currentPage:function(t){this.newCurrentPage=t}},methods:{onFiltersEvent:function(t){this.$emit("filters-event-".concat(this.filtersEvent),{event:t,filters:this.filters})},findIndexOfSortData:function(t){var e=this.sortMultipleDataComputed.filter((function(e){return e.field===t.field}))[0];return this.sortMultipleDataComputed.indexOf(e)+1},removeSortingPriority:function(t){if(this.backendSorting)this.$emit("sorting-priority-removed",t.field);else{this.sortMultipleDataLocal=this.sortMultipleDataLocal.filter((function(e){return e.field!==t.field}));var e=this.sortMultipleDataLocal.map((function(t){return(t.order&&"desc"===t.order?"-":"")+t.field}));this.newData=M(this.newData,e)}},resetMultiSorting:function(){this.sortMultipleDataLocal=[],this.currentSortColumn={},this.newData=this.data},sortBy:function(t,e,n,r){var i=[];return i=n&&"function"===typeof n?u(t).sort((function(t,e){return n(t,e,r)})):u(t).sort((function(t,n){var i=v(t,e),o=v(n,e);return"boolean"===typeof i&&"boolean"===typeof o?r?i-o:o-i:i||0===i?o||0===o?i===o?0:(i="string"===typeof i?i.toUpperCase():i,o="string"===typeof o?o.toUpperCase():o,r?i>o?1:-1:i>o?-1:1):-1:1})),i},sortMultiColumn:function(t){if(this.currentSortColumn={},!this.backendSorting){var e=this.sortMultipleDataLocal.filter((function(e){return e.field===t.field}))[0];e?e.order="desc"===e.order?"asc":"desc":this.sortMultipleDataLocal.push({field:t.field,order:t.isAsc}),this.doSortMultiColumn()}},doSortMultiColumn:function(){var t=this.sortMultipleDataLocal.map((function(t){return(t.order&&"desc"===t.order?"-":"")+t.field}));this.newData=M(this.newData,t)},sort:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!this.backendSorting&&this.sortMultiple&&(this.sortMultipleKey&&n[this.sortMultipleKey]||!this.sortMultipleKey))this.sortMultiColumn(t);else{if(!t||!t.sortable)return;this.sortMultiple&&(this.sortMultipleDataLocal=[]),e||(this.isAsc=t===this.currentSortColumn?!this.isAsc:"desc"!==this.defaultSortDirection.toLowerCase()),this.firstTimeSort||this.$emit("sort",t.field,this.isAsc?"asc":"desc",n),this.backendSorting||this.doSortSingleColumn(t),this.currentSortColumn=t}},doSortSingleColumn:function(t){this.newData=this.sortBy(this.newData,t.field,t.customSort,this.isAsc)},isRowChecked:function(t){return g(this.newCheckedRows,t,this.customIsChecked)>=0},removeCheckedRow:function(t){var e=g(this.newCheckedRows,t,this.customIsChecked);e>=0&&this.newCheckedRows.splice(e,1)},checkAll:function(){var t=this,e=this.isAllChecked;this.visibleData.forEach((function(n){t.isRowCheckable(n)&&t.removeCheckedRow(n),e||t.isRowCheckable(n)&&t.newCheckedRows.push(n)})),this.$emit("check",this.newCheckedRows),this.$emit("check-all",this.newCheckedRows),this.$emit("update:checkedRows",this.newCheckedRows)},checkRow:function(t,e,n){if(this.isRowCheckable(t)){var r=this.lastCheckedRowIndex;this.lastCheckedRowIndex=e,n.shiftKey&&null!==r&&e!==r?this.shiftCheckRow(t,e,r):this.isRowChecked(t)?this.removeCheckedRow(t):this.newCheckedRows.push(t),this.$emit("check",this.newCheckedRows,t),this.$emit("update:checkedRows",this.newCheckedRows)}},shiftCheckRow:function(t,e,n){var r=this,i=this.visibleData.slice(Math.min(e,n),Math.max(e,n)+1),o=!this.isRowChecked(t);i.forEach((function(t){r.removeCheckedRow(t),o&&r.isRowCheckable(t)&&r.newCheckedRows.push(t)}))},selectRow:function(t,e){this.$emit("click",t),this.selected!==t&&this.isRowSelectable(t)&&(this.$emit("select",t,this.selected),this.$emit("update:selected",t))},pageChanged:function(t){this.newCurrentPage=t>0?t:1,this.$emit("page-change",this.newCurrentPage),this.$emit("update:currentPage",this.newCurrentPage)},toggleDetails:function(t){var e=this.isVisibleDetailRow(t);e?(this.closeDetailRow(t),this.$emit("details-close",t)):(this.openDetailRow(t),this.$emit("details-open",t)),this.$emit("update:openedDetailed",this.visibleDetailRows)},openDetailRow:function(t){var e=this.handleDetailKey(t);this.visibleDetailRows.push(e)},closeDetailRow:function(t){var e=this.handleDetailKey(t),n=this.visibleDetailRows.indexOf(e);this.visibleDetailRows.splice(n,1)},isVisibleDetailRow:function(t){var e=this.handleDetailKey(t),n=this.visibleDetailRows.indexOf(e)>=0;return n},isActiveDetailRow:function(t){return this.detailed&&!this.customDetailRow&&this.isVisibleDetailRow(t)},isActiveCustomDetailRow:function(t){return this.detailed&&this.customDetailRow&&this.isVisibleDetailRow(t)},isRowFiltered:function(t){for(var e in this.filters){if(!this.filters[e])return delete this.filters[e],!0;var n=this.getValueByPath(t,e);if(null==n)return!1;if(Number.isInteger(n)){if(n!==Number(this.filters[e]))return!1}else{var r=new RegExp(this.filters[e],"i");if("boolean"===typeof n&&(n="".concat(n)),!n.match(r))return!1}}return!0},handleDetailKey:function(t){var e=this.detailKey;return e.length&&t?t[e]:t},checkPredefinedDetailedRows:function(){var t=this.openedDetailed.length>0;if(t&&!this.detailKey.length)throw new Error('If you set a predefined opened-detailed, you must provide a unique key using the prop "detail-key"')},checkSort:function(){if(this.newColumns.length&&this.firstTimeSort)this.initSort(),this.firstTimeSort=!1;else if(this.newColumns.length&&Object.keys(this.currentSortColumn).length>0)for(var t=0;t1)return!0;var t=this.$slots.footer[0].tag;return"th"===t||"td"===t},hasBottomLeftSlot:function(){return"undefined"!==typeof this.$slots["bottom-left"]},pressedArrow:function(t){if(this.visibleData.length){var e=this.visibleData.indexOf(this.selected)+t;e=e<0?0:e>this.visibleData.length-1?this.visibleData.length-1:e;var n=this.visibleData[e];if(this.isRowSelectable(n))this.selectRow(n);else{var r=null;if(t>0)for(var i=e;i=0&&null===r;o--)this.isRowSelectable(this.visibleData[o])&&(r=o);r>=0&&this.selectRow(this.visibleData[r])}}},focus:function(){this.focusable&&this.$el.querySelector("table").focus()},initSort:function(){var t=this;if(!this.backendSorting)if(this.sortMultiple&&this.sortMultipleData)this.sortMultipleData.forEach((function(e){t.sortMultiColumn(e)}));else{if(!this.defaultSort)return;var e="",n=this.defaultSortDirection;Array.isArray(this.defaultSort)?(e=this.defaultSort[0],this.defaultSort[1]&&(n=this.defaultSort[1])):e=this.defaultSort;var r=this.newColumns.filter((function(t){return t.field===e}))[0];r&&(this.isAsc="desc"!==n.toLowerCase(),this.sort(r,!0))}},handleDragStart:function(t,e,n){this.$emit("dragstart",{event:t,row:e,index:n})},handleDragEnd:function(t,e,n){this.$emit("dragend",{event:t,row:e,index:n})},handleDrop:function(t,e,n){this.$emit("drop",{event:t,row:e,index:n})},handleDragOver:function(t,e,n){this.$emit("dragover",{event:t,row:e,index:n})},handleDragLeave:function(t,e,n){this.$emit("dragleave",{event:t,row:e,index:n})}},mounted:function(){this.checkPredefinedDetailedRows(),this.checkSort()},beforeDestroy:function(){this.newData=[],this.newColumns=[]}};const nh=eh;var rh=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"b-table",class:t.rooClasses},[t.mobileCards&&t.hasSortablenewColumns?n("b-table-mobile-sort",{attrs:{"current-sort-column":t.currentSortColumn,"sort-multiple":t.sortMultiple,"sort-multiple-data":t.sortMultipleDataComputed,"is-asc":t.isAsc,columns:t.newColumns,placeholder:t.mobileSortPlaceholder,"icon-pack":t.iconPack,"sort-icon":t.sortIcon,"sort-icon-size":t.sortIconSize},on:{sort:function(e,n){return t.sort(e,null,n)},removePriority:function(e){return t.removeSortingPriority(e)}}}):t._e(),t._v(" "),!t.paginated||"top"!==t.paginationPosition&&"both"!==t.paginationPosition?t._e():n("div",{staticClass:"top level"},[n("div",{staticClass:"level-left"},[t._t("top-left")],2),t._v(" "),n("div",{staticClass:"level-right"},[t.paginated?n("div",{staticClass:"level-item"},[n("b-pagination",{attrs:{"icon-pack":t.iconPack,total:t.newDataTotal,"per-page":t.perPage,simple:t.paginationSimple,size:t.paginationSize,current:t.newCurrentPage,"aria-next-label":t.ariaNextLabel,"aria-previous-label":t.ariaPreviousLabel,"aria-page-label":t.ariaPageLabel,"aria-current-label":t.ariaCurrentLabel},on:{change:t.pageChanged}})],1):t._e()])]),t._v(" "),n("div",{staticClass:"table-wrapper",class:t.tableWrapperClasses,style:{height:void 0===t.height?null:isNaN(t.height)?t.height:t.height+"px"}},[n("table",{staticClass:"table",class:t.tableClasses,attrs:{tabindex:!!t.focusable&&0},on:{keydown:[function(e){return!("button"in e)&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])||e.target!==e.currentTarget?null:(e.preventDefault(),void t.pressedArrow(-1))},function(e){return!("button"in e)&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])||e.target!==e.currentTarget?null:(e.preventDefault(),void t.pressedArrow(1))}]}},[t.newColumns.length?n("thead",[n("tr",[t.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):t._e(),t._v(" "),t.checkable&&"left"===t.checkboxPosition?n("th",{staticClass:"checkbox-cell"},[t.headerCheckable?[n("b-checkbox",{attrs:{value:t.isAllChecked,disabled:t.isAllUncheckable},nativeOn:{change:function(e){return t.checkAll(e)}}})]:t._e()],2):t._e(),t._v(" "),t._l(t.visibleColumns,(function(e,r){return n("th",{key:r,class:[e.headerClass,{"is-current-sort":!t.sortMultiple&&t.currentSortColumn===e,"is-sortable":e.sortable,"is-sticky":e.sticky,"is-unselectable":!e.headerSelectable}],style:{width:void 0===e.width?null:isNaN(e.width)?e.width:e.width+"px"},on:{click:function(n){n.stopPropagation(),t.sort(e,null,n)}}},[n("div",{staticClass:"th-wrap",class:{"is-numeric":e.numeric,"is-centered":e.centered}},[e.$scopedSlots&&e.$scopedSlots.header?[n("b-slot-component",{attrs:{component:e,scoped:!0,name:"header",tag:"span",props:{column:e,index:r}}})]:t.$scopedSlots.header?[t._t("header",null,{column:e,index:r})]:[t._v(t._s(e.label))],t._v(" "),t.sortMultiple&&t.sortMultipleDataComputed&&t.sortMultipleDataComputed.length>0&&t.sortMultipleDataComputed.filter((function(t){return t.field===e.field})).length>0?[n("b-icon",{class:{"is-desc":"desc"===t.sortMultipleDataComputed.filter((function(t){return t.field===e.field}))[0].order},attrs:{icon:t.sortIcon,pack:t.iconPack,both:"",size:t.sortIconSize}}),t._v("\r\n "+t._s(t.findIndexOfSortData(e))+"\r\n "),n("button",{staticClass:"delete is-small multi-sort-cancel-icon",attrs:{type:"button"},on:{click:function(n){n.stopPropagation(),t.removeSortingPriority(e)}}})]:e.sortable&&!t.sortMultiple?n("b-icon",{class:{"is-desc":!t.isAsc,"is-invisible":t.currentSortColumn!==e},attrs:{icon:t.sortIcon,pack:t.iconPack,both:"",size:t.sortIconSize}}):t._e()],2)])})),t._v(" "),t.checkable&&"right"===t.checkboxPosition?n("th",{staticClass:"checkbox-cell"},[t.headerCheckable?[n("b-checkbox",{attrs:{value:t.isAllChecked,disabled:t.isAllUncheckable},nativeOn:{change:function(e){return t.checkAll(e)}}})]:t._e()],2):t._e()],2),t._v(" "),t.hasCustomSubheadings?n("tr",{staticClass:"is-subheading"},[t.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):t._e(),t._v(" "),t.checkable&&"left"===t.checkboxPosition?n("th"):t._e(),t._v(" "),t._l(t.visibleColumns,(function(e,r){return n("th",{key:r,style:{width:void 0===e.width?null:isNaN(e.width)?e.width:e.width+"px"}},[n("div",{staticClass:"th-wrap",class:{"is-numeric":e.numeric,"is-centered":e.centered}},[e.$scopedSlots&&e.$scopedSlots.subheading?[n("b-slot-component",{attrs:{component:e,scoped:!0,name:"subheading",tag:"span",props:{column:e,index:r}}})]:t.$scopedSlots.subheading?[t._t("subheading",null,{column:e,index:r})]:[t._v(t._s(e.subheading))]],2)])})),t._v(" "),t.checkable&&"right"===t.checkboxPosition?n("th"):t._e()],2):t._e(),t._v(" "),t.hasSearchablenewColumns?n("tr",[t.showDetailRowIcon?n("th",{attrs:{width:"40px"}}):t._e(),t._v(" "),t.checkable&&"left"===t.checkboxPosition?n("th"):t._e(),t._v(" "),t._l(t.visibleColumns,(function(e,r){return n("th",{key:r,style:{width:void 0===e.width?null:isNaN(e.width)?e.width:e.width+"px"}},[n("div",{staticClass:"th-wrap"},[e.searchable?[e.$scopedSlots&&e.$scopedSlots.searchable?[n("b-slot-component",{attrs:{component:e,scoped:!0,name:"searchable",tag:"span",props:{column:e,filters:t.filters}}})]:n("b-input",{attrs:{type:e.numeric?"number":"text"},nativeOn:{"[filtersEvent]":function(e){return t.onFiltersEvent(e)}},model:{value:t.filters[e.field],callback:function(n){t.$set(t.filters,e.field,n)},expression:"filters[column.field]"}})]:t._e()],2)])})),t._v(" "),t.checkable&&"right"===t.checkboxPosition?n("th"):t._e()],2):t._e()]):t._e(),t._v(" "),t.visibleData.length?n("tbody",[t._l(t.visibleData,(function(e,r){return[n("tr",{key:t.customRowKey?e[t.customRowKey]:r,class:[t.rowClass(e,r),{"is-selected":e===t.selected,"is-checked":t.isRowChecked(e)}],attrs:{draggable:t.draggable},on:{click:function(n){t.selectRow(e)},dblclick:function(n){t.$emit("dblclick",e)},mouseenter:function(n){t.$listeners.mouseenter&&t.$emit("mouseenter",e)},mouseleave:function(n){t.$listeners.mouseleave&&t.$emit("mouseleave",e)},contextmenu:function(n){t.$emit("contextmenu",e,n)},dragstart:function(n){t.handleDragStart(n,e,r)},dragend:function(n){t.handleDragEnd(n,e,r)},drop:function(n){t.handleDrop(n,e,r)},dragover:function(n){t.handleDragOver(n,e,r)},dragleave:function(n){t.handleDragLeave(n,e,r)}}},[t.showDetailRowIcon?n("td",{staticClass:"chevron-cell"},[t.hasDetailedVisible(e)?n("a",{attrs:{role:"button"},on:{click:function(n){n.stopPropagation(),t.toggleDetails(e)}}},[n("b-icon",{class:{"is-expanded":t.isVisibleDetailRow(e)},attrs:{icon:"chevron-right",pack:t.iconPack,both:""}})],1):t._e()]):t._e(),t._v(" "),t.checkable&&"left"===t.checkboxPosition?n("td",{staticClass:"checkbox-cell"},[n("b-checkbox",{attrs:{disabled:!t.isRowCheckable(e),value:t.isRowChecked(e)},nativeOn:{click:function(n){n.preventDefault(),n.stopPropagation(),t.checkRow(e,r,n)}}})],1):t._e(),t._v(" "),t.$scopedSlots.default?t._t("default",null,{row:e,index:r}):t._l(t.newColumns,(function(r){return n("BTableColumn",t._b({key:r.customKey||r.label,attrs:{internal:""}},"BTableColumn",r,!1),[r.renderHtml?n("span",{domProps:{innerHTML:t._s(t.getValueByPath(e,r.field))}}):[t._v("\r\n "+t._s(t.getValueByPath(e,r.field))+"\r\n ")]],2)})),t._v(" "),t.checkable&&"right"===t.checkboxPosition?n("td",{staticClass:"checkbox-cell"},[n("b-checkbox",{attrs:{disabled:!t.isRowCheckable(e),value:t.isRowChecked(e)},nativeOn:{click:function(n){n.preventDefault(),n.stopPropagation(),t.checkRow(e,r,n)}}})],1):t._e()],2),t._v(" "),t.isActiveDetailRow(e)?n("tr",{staticClass:"detail"},[n("td",{attrs:{colspan:t.columnCount}},[n("div",{staticClass:"detail-container"},[t._t("detail",null,{row:e,index:r})],2)])]):t._e(),t._v(" "),t.isActiveCustomDetailRow(e)?t._t("detail",null,{row:e,index:r}):t._e()]}))],2):n("tbody",[n("tr",{staticClass:"is-empty"},[n("td",{attrs:{colspan:t.columnCount}},[t._t("empty")],2)])]),t._v(" "),void 0!==t.$slots.footer?n("tfoot",[n("tr",{staticClass:"table-footer"},[t.hasCustomFooterSlot()?t._t("footer"):n("th",{attrs:{colspan:t.columnCount}},[t._t("footer")],2)],2)]):t._e()])]),t._v(" "),t.checkable&&t.hasBottomLeftSlot()||t.paginated&&("bottom"===t.paginationPosition||"both"===t.paginationPosition)?n("div",{staticClass:"level"},[n("div",{staticClass:"level-left"},[t._t("bottom-left")],2),t._v(" "),n("div",{staticClass:"level-right"},[t.paginated?n("div",{staticClass:"level-item"},[n("b-pagination",{attrs:{"icon-pack":t.iconPack,total:t.newDataTotal,"per-page":t.perPage,simple:t.paginationSimple,size:t.paginationSize,current:t.newCurrentPage,"aria-next-label":t.ariaNextLabel,"aria-previous-label":t.ariaPreviousLabel,"aria-page-label":t.ariaPageLabel,"aria-current-label":t.ariaCurrentLabel},on:{change:t.pageChanged}})],1):t._e()])]):t._e()],1)},ih=[];const oh=void 0,ah=void 0,sh=void 0,uh=!1;var lh=N({render:rh,staticRenderFns:ih},oh,nh,ah,uh,sh,void 0,void 0),ch={install:function(t){D(t,lh),D(t,th)}};T(ch);var hh,fh=ch,dh={name:"BTabs",components:(hh={},i(hh,G.name,G),i(hh,oc.name,oc),hh),props:{value:[Number,String],expanded:Boolean,type:String,size:String,position:String,animated:{type:Boolean,default:function(){return E.defaultTabsAnimated}},destroyOnHide:{type:Boolean,default:!1},vertical:Boolean,multiline:Boolean},data:function(){return{activeTab:0,defaultSlots:[],contentHeight:0,isTransitioning:!1,_isTabs:!0}},computed:{mainClasses:function(){return i({"is-fullwidth":this.expanded,"is-vertical":this.vertical,"is-multiline":this.multiline},this.position,this.position&&this.vertical)},navClasses:function(){var t;return[this.type,this.size,(t={},i(t,this.position,this.position&&!this.vertical),i(t,"is-fullwidth",this.expanded),i(t,"is-toggle-rounded is-toggle","is-toggle-rounded"===this.type),t)]},tabItems:function(){return this.defaultSlots.filter((function(t){return t.componentInstance&&t.componentInstance.$data&&t.componentInstance.$data._isTabItem})).map((function(t){return t.componentInstance}))}},watch:{value:function(t){var e=this.getIndexByValue(t,t);this.changeTab(e)},tabItems:function(){var t=this;if(this.activeTab0&&this.changeTab(this.activeTab-1)}},methods:{changeTab:function(t){this.activeTab!==t&&void 0!==this.tabItems[t]&&(this.activeTab=0?e:t},getValueByIndex:function(t){var e=this.tabItems[t].$options.propsData;return e&&e.value?e.value:t}},mounted:function(){this.activeTab=this.getIndexByValue(this.value||0),this.activeTab=0)return void this.tags.splice(r,1)}var i=!!this.allowDuplicates||-1===this.tags.indexOf(e);i&&this.beforeAdding(e)&&(this.tags.push(e),this.$emit("input",this.tags),this.$emit("add",e))}this.newTag=""},getNormalizedTagText:function(t){return"object"===r(t)?v(t,this.field):t},customOnBlur:function(t){this.autocomplete||this.addTag(),this.onBlur(t)},onSelect:function(t){var e=this;t&&(this.addTag(t),this.$nextTick((function(){e.newTag=""})))},removeTag:function(t,e){var n=this.tags.splice(t,1)[0];return this.$emit("input",this.tags),this.$emit("remove",n),e&&e.stopPropagation(),this.openOnFocus&&this.$refs.autocomplete&&this.$refs.autocomplete.focus(),n},removeLastTag:function(){this.tagsLength>0&&this.removeTag(this.tagsLength-1)},keydown:function(t){-1===this.removeOnKeys.indexOf(t.keyCode)||this.newTag.length||this.removeLastTag(),this.autocomplete&&!this.allowNew||this.confirmKeyCodes.indexOf(t.keyCode)>=0&&(t.preventDefault(),this.addTag())},onTyping:function(t){this.$emit("typing",t.trim())},emitInfiniteScroll:function(){this.$emit("infinite-scroll")}}};const Qh=Jh;var tf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"taginput control",class:t.rootClasses},[n("div",{staticClass:"taginput-container",class:[t.statusType,t.size,t.containerClasses],attrs:{disabled:t.disabled},on:{click:function(e){t.hasInput&&t.focus(e)}}},[t._t("selected",t._l(t.tags,(function(e,r){return n("b-tag",{key:t.getNormalizedTagText(e)+r,attrs:{type:t.type,size:t.size,rounded:t.rounded,attached:t.attached,tabstop:!1,disabled:t.disabled,ellipsis:t.ellipsis,closable:t.closable,title:t.ellipsis&&t.getNormalizedTagText(e)},on:{close:function(e){t.removeTag(r,e)}}},[t._t("tag",[t._v("\r\n "+t._s(t.getNormalizedTagText(e))+"\r\n ")],{tag:e})],2)})),{tags:t.tags}),t._v(" "),t.hasInput?n("b-autocomplete",t._b({ref:"autocomplete",attrs:{data:t.data,field:t.field,icon:t.icon,"icon-pack":t.iconPack,maxlength:t.maxlength,"has-counter":!1,size:t.size,disabled:t.disabled,loading:t.loading,autocomplete:t.nativeAutocomplete,"open-on-focus":t.openOnFocus,"keep-open":t.openOnFocus,"keep-first":!t.allowNew,"use-html5-validation":t.useHtml5Validation,"check-infinite-scroll":t.checkInfiniteScroll,"append-to-body":t.appendToBody},on:{typing:t.onTyping,focus:t.onFocus,blur:t.customOnBlur,select:t.onSelect,"infinite-scroll":t.emitInfiniteScroll},nativeOn:{keydown:function(e){return t.keydown(e)}},scopedSlots:t._u([{key:t.defaultSlotName,fn:function(e){return[t._t("default",null,{option:e.option,index:e.index})]}}]),model:{value:t.newTag,callback:function(e){t.newTag=e},expression:"newTag"}},"b-autocomplete",t.$attrs,!1),[n("template",{slot:t.headerSlotName},[t._t("header")],2),t._v(" "),n("template",{slot:t.emptySlotName},[t._t("empty")],2),t._v(" "),n("template",{slot:t.footerSlotName},[t._t("footer")],2)],2):t._e()],2),t._v(" "),t.hasCounter&&(t.maxtags||t.maxlength)?n("small",{staticClass:"help counter"},[t.maxlength&&t.valueLength>0?[t._v("\r\n "+t._s(t.valueLength)+" / "+t._s(t.maxlength)+"\r\n ")]:t.maxtags?[t._v("\r\n "+t._s(t.tagsLength)+" / "+t._s(t.maxtags)+"\r\n ")]:t._e()],2):t._e()])},ef=[];const nf=void 0,rf=void 0,of=void 0,af=!1;var sf=N({render:tf,staticRenderFns:ef},nf,Qh,rf,af,of,void 0,void 0),uf={install:function(t){D(t,sf)}};T(uf);var lf=uf,cf={install:function(t){D(t,ti)}};T(cf);var hf=cf,ff={name:"BToast",mixins:[Ko],data:function(){return{newDuration:this.duration||E.defaultToastDuration}}};const df=ff;var pf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("transition",{attrs:{"enter-active-class":t.transition.enter,"leave-active-class":t.transition.leave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isActive,expression:"isActive"}],staticClass:"toast",class:[t.type,t.position],attrs:{"aria-hidden":!t.isActive,role:"alert"}},[n("div",{domProps:{innerHTML:t._s(t.message)}})])])},mf=[];const vf=void 0,gf=void 0,yf=void 0,bf=!1;var wf,_f=N({render:pf,staticRenderFns:mf},vf,df,gf,bf,yf,void 0,void 0),xf={open:function(t){var e;"string"===typeof t&&(t={message:t});var n={position:E.defaultToastPosition||"is-top"};t.parent&&(e=t.parent,delete t.parent);var r=w(n,t),i="undefined"!==typeof window&&window.Vue?window.Vue:wf||k,o=i.extend(_f);return new o({parent:e,el:document.createElement("div"),propsData:r})}},Sf={install:function(t){wf=t,I(t,"toast",xf)}};T(Sf);var Mf=Sf,kf={install:function(t){D(t,pl)}};T(kf);var Ef=kf,Af={name:"BUpload",mixins:[R],inheritAttrs:!1,props:{value:{type:[Object,Function,Hi,Array]},multiple:Boolean,disabled:Boolean,accept:String,dragDrop:Boolean,type:{type:String,default:"is-primary"},native:{type:Boolean,default:!1},expanded:{type:Boolean,default:!1}},data:function(){return{newValue:this.value,dragDropFocus:!1,_elementRef:"input"}},watch:{value:function(t){var e=this.$refs.input.files;this.newValue=t,(!this.newValue||Array.isArray(this.newValue)&&0===this.newValue.length||!e[0]||Array.isArray(this.newValue)&&!this.newValue.some((function(t){return t.name===e[0].name})))&&(this.$refs.input.value=null),!this.isValid&&!this.dragDrop&&this.checkHtml5Validity()}},methods:{onFileChange:function(t){if(!this.disabled&&!this.loading){this.dragDrop&&this.updateDragDropFocus(!1);var e=t.target.files||t.dataTransfer.files;if(0===e.length){if(!this.newValue)return;this.native&&(this.newValue=null)}else if(this.multiple){var n=!1;!this.native&&this.newValue||(this.newValue=[],n=!0);for(var r=0;r=0?t.name.substring(o):"";a.toLowerCase()===i.toLowerCase()&&(n=!0)}else t.type.match(i)&&(n=!0)}return n}}};const Of=Af;var Cf=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("label",{staticClass:"upload control",class:{"is-expanded":t.expanded}},[t.dragDrop?n("div",{staticClass:"upload-draggable",class:[t.type,{"is-loading":t.loading,"is-disabled":t.disabled,"is-hovered":t.dragDropFocus,"is-expanded":t.expanded}],on:{dragover:function(e){e.preventDefault(),t.updateDragDropFocus(!0)},dragleave:function(e){e.preventDefault(),t.updateDragDropFocus(!1)},dragenter:function(e){e.preventDefault(),t.updateDragDropFocus(!0)},drop:function(e){return e.preventDefault(),t.onFileChange(e)}}},[t._t("default")],2):[t._t("default")],t._v(" "),n("input",t._b({ref:"input",attrs:{type:"file",multiple:t.multiple,accept:t.accept,disabled:t.disabled},on:{change:t.onFileChange}},"input",t.$attrs,!1))],2)},Nf=[];const Tf=void 0,Df=void 0,If=void 0,Rf=!1;var Pf=N({render:Cf,staticRenderFns:Nf},Tf,Of,Df,Rf,If,void 0,void 0),jf={install:function(t){D(t,Pf)}};T(jf);var Bf=jf,$f=Object.freeze({Autocomplete:ft,Button:St,Carousel:Jt,Checkbox:be,Clockpicker:Gn,Collapse:Ce,Datepicker:qr,Datetimepicker:hi,Dialog:Ri,Dropdown:ji,Field:$i,Icon:Fi,Input:Vi,Loading:io,Menu:Do,Message:Ho,Modal:Yo,Navbar:gs,Notification:ga,Numberinput:Os,Pagination:Ks,Progress:au,Radio:Eu,Rate:Bu,Select:Lu,Skeleton:Yu,Sidebar:ol,Slider:ql,Snackbar:ic,Steps:Sc,Switch:Pc,Table:fh,Tabs:Nh,Tag:Xh,Taginput:lf,Timepicker:hf,Toast:Mf,Tooltip:Ef,Upload:Bf}),Lf={getOptions:function(){return E},setOptions:function(t){A(w(E,t,!0))}},Ff={install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};for(var n in O(t),A(w(E,e,!0)),$f)t.use($f[n]);I(t,"config",Lf)}};T(Ff);var Uf=Ff},8287:function(t,e,n){"use strict";var r=n(6763); +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */const i=n(7526),o=n(251),a="function"===typeof Symbol&&"function"===typeof Symbol["for"]?Symbol["for"]("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=_,e.INSPECT_MAX_BYTES=50;const s=2147483647;function u(){try{const t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}function l(t){if(t>s)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,c.prototype),e}function c(t,e,n){if("number"===typeof t){if("string"===typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return p(t)}return h(t,e,n)}function h(t,e,n){if("string"===typeof t)return m(t,e);if(ArrayBuffer.isView(t))return g(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(st(t,ArrayBuffer)||t&&st(t.buffer,ArrayBuffer))return y(t,e,n);if("undefined"!==typeof SharedArrayBuffer&&(st(t,SharedArrayBuffer)||t&&st(t.buffer,SharedArrayBuffer)))return y(t,e,n);if("number"===typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return c.from(r,e,n);const i=b(t);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof t[Symbol.toPrimitive])return c.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function f(t){if("number"!==typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function d(t,e,n){return f(t),t<=0?l(t):void 0!==e?"string"===typeof n?l(t).fill(e,n):l(t).fill(e):l(t)}function p(t){return f(t),l(t<0?0:0|w(t))}function m(t,e){if("string"===typeof e&&""!==e||(e="utf8"),!c.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|x(t,e);let r=l(n);const i=r.write(t,e);return i!==n&&(r=r.slice(0,i)),r}function v(t){const e=t.length<0?0:0|w(t.length),n=l(e);for(let r=0;r=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return 0|t}function _(t){return+t!=t&&(t=0),c.alloc(+t)}function x(t,e){if(c.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||st(t,ArrayBuffer))return t.byteLength;if("string"!==typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return nt(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return ot(t).length;default:if(i)return r?-1:nt(t).length;e=(""+e).toLowerCase(),i=!0}}function S(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";t||(t="utf8");while(1)switch(t){case"hex":return $(this,e,n);case"utf8":case"utf-8":return I(this,e,n);case"ascii":return j(this,e,n);case"latin1":case"binary":return B(this,e,n);case"base64":return D(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function M(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function k(t,e,n,r,i){if(0===t.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,ut(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:E(t,e,n,r,i);if("number"===typeof e)return e&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):E(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function E(t,e,n,r,i){let o,a=1,s=t.length,u=e.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){let r=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i)):r=i;const o=e.length;let a;for(r>o/2&&(r=o/2),a=0;a239?4:e>223?3:e>191?2:1;if(i+a<=n){let n,r,s,u;switch(a){case 1:e<128&&(o=e);break;case 2:n=t[i+1],128===(192&n)&&(u=(31&e)<<6|63&n,u>127&&(o=u));break;case 3:n=t[i+1],r=t[i+2],128===(192&n)&&128===(192&r)&&(u=(15&e)<<12|(63&n)<<6|63&r,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:n=t[i+1],r=t[i+2],s=t[i+3],128===(192&n)&&128===(192&r)&&128===(192&s)&&(u=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&s,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return P(r)}e.kMaxLength=s,c.TYPED_ARRAY_SUPPORT=u(),c.TYPED_ARRAY_SUPPORT||"undefined"===typeof r||"function"!==typeof r.error||r.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(t,e,n){return h(t,e,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(t,e,n){return d(t,e,n)},c.allocUnsafe=function(t){return p(t)},c.allocUnsafeSlow=function(t){return p(t)},c.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==c.prototype},c.compare=function(t,e){if(st(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),st(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let n=t.length,r=e.length;for(let i=0,o=Math.min(n,r);ir.length?(c.isBuffer(e)||(e=c.from(e)),e.copy(r,i)):Uint8Array.prototype.set.call(r,e,i);else{if(!c.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,i)}i+=e.length}return r},c.byteLength=x,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const t=this.length;if(t%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;en&&(t+=" ... "),""},a&&(c.prototype[a]=c.prototype.inspect),c.prototype.compare=function(t,e,n,r,i){if(st(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;let o=i-r,a=n-e;const s=Math.min(o,a),u=this.slice(r,i),l=t.slice(e,n);for(let c=0;c>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return A(this,t,e,n);case"utf8":case"utf-8":return O(this,t,e,n);case"ascii":case"latin1":case"binary":return C(this,t,e,n);case"base64":return N(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const R=4096;function P(t){const e=t.length;if(e<=R)return String.fromCharCode.apply(String,t);let n="",r=0;while(rr)&&(n=r);let i="";for(let o=e;on)throw new RangeError("Trying to access beyond buffer length")}function U(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function V(t,e,n,r,i){X(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,n}function z(t,e,n,r,i){X(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n+7]=o,o>>=8,t[n+6]=o,o>>=8,t[n+5]=o,o>>=8,t[n+4]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=a,a>>=8,t[n+2]=a,a>>=8,t[n+1]=a,a>>=8,t[n]=a,n+8}function q(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(t,e,n,r,i){return e=+e,n>>>=0,i||q(t,e,n,4,34028234663852886e22,-34028234663852886e22),o.write(t,e,n,r,23,4),n+4}function G(t,e,n,r,i){return e=+e,n>>>=0,i||q(t,e,n,8,17976931348623157e292,-17976931348623157e292),o.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){const n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),e>>=0,e>>>=0,n||F(t,e,this.length);let r=this[t],i=1,o=0;while(++o>>=0,e>>>=0,n||F(t,e,this.length);let r=this[t+--e],i=1;while(e>0&&(i*=256))r+=this[t+--e]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(t,e){return t>>>=0,e||F(t,1,this.length),this[t]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(t,e){return t>>>=0,e||F(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(t,e){return t>>>=0,e||F(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(t,e){return t>>>=0,e||F(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(t,e){return t>>>=0,e||F(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readBigUInt64LE=ct((function(t){t>>>=0,J(t,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Q(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,J(t,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Q(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<>>=0,e>>>=0,n||F(t,e,this.length);let r=this[t],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||F(t,e,this.length);let r=e,i=1,o=this[t+--r];while(r>0&&(i*=256))o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return t>>>=0,e||F(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){t>>>=0,e||F(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){t>>>=0,e||F(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return t>>>=0,e||F(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return t>>>=0,e||F(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readBigInt64LE=ct((function(t){t>>>=0,J(t,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Q(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<>>=0,J(t,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Q(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<>>=0,e||F(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return t>>>=0,e||F(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return t>>>=0,e||F(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return t>>>=0,e||F(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){const r=Math.pow(2,8*n)-1;U(this,t,e,n,r,0)}let i=1,o=0;this[e]=255&t;while(++o>>=0,n>>>=0,!r){const r=Math.pow(2,8*n)-1;U(this,t,e,n,r,0)}let i=n-1,o=1;this[e+i]=255&t;while(--i>=0&&(o*=256))this[e+i]=t/o&255;return e+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,1,255,0),this[e]=255&t,e+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigUInt64LE=ct((function(t,e=0){return V(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeBigUInt64BE=ct((function(t,e=0){return z(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);U(this,t,e,n,r-1,-r)}let i=0,o=1,a=0;this[e]=255&t;while(++i>>=0,!r){const r=Math.pow(2,8*n-1);U(this,t,e,n,r-1,-r)}let i=n-1,o=1,a=0;this[e+i]=255&t;while(--i>=0&&(o*=256))t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/o|0)-a&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||U(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},c.prototype.writeBigInt64LE=ct((function(t,e=0){return V(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeBigInt64BE=ct((function(t,e=0){return z(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),c.prototype.writeFloatLE=function(t,e,n){return H(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return H(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return G(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return G(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(!c.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"===typeof t)for(i=e;i=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function Z(t,e,n){J(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||Q(e,t.length-(n+1))}function X(t,e,n,r,i,o){if(t>n||t3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new W.ERR_OUT_OF_RANGE("value",i,t)}Z(r,i,o)}function J(t,e){if("number"!==typeof t)throw new W.ERR_INVALID_ARG_TYPE(e,"number",t)}function Q(t,e,n){if(Math.floor(t)!==t)throw J(t,n),new W.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new W.ERR_BUFFER_OUT_OF_BOUNDS;throw new W.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}Y("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),Y("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),Y("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=K(String(n)):"bigint"===typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=K(i)),i+="n"),r+=` It must be ${e}. Received ${i}`,r}),RangeError);const tt=/[^+/0-9A-Za-z-_]/g;function et(t){if(t=t.split("=")[0],t=t.trim().replace(tt,""),t.length<2)return"";while(t.length%4!==0)t+="=";return t}function nt(t,e){let n;e=e||1/0;const r=t.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function rt(t){const e=[];for(let n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function ot(t){return i.toByteArray(et(t))}function at(t,e,n,r){let i;for(i=0;i=e.length||i>=t.length)break;e[i+n]=t[i]}return i}function st(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function ut(t){return t!==t}const lt=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e}();function ct(t){return"undefined"===typeof BigInt?ht:t}function ht(){throw new Error("BigInt not supported")}},6866:function(t){t.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},8075:function(t,e,n){"use strict";var r=n(453),i=n(487),o=i(r("String.prototype.indexOf"));t.exports=function(t,e){var n=r(t,!!e);return"function"===typeof n&&o(t,".prototype.")>-1?i(n):n}},487:function(t,e,n){"use strict";var r=n(6743),i=n(453),o=n(6897),a=n(9675),s=i("%Function.prototype.apply%"),u=i("%Function.prototype.call%"),l=i("%Reflect.apply%",!0)||r.call(u,s),c=n(655),h=i("%Math.max%");t.exports=function(t){if("function"!==typeof t)throw new a("a function is required");var e=l(r,u,arguments);return o(e,1+h(0,t.length-(arguments.length-1)),!0)};var f=function(){return l(r,s,arguments)};c?c(t.exports,"apply",{value:f}):t.exports.apply=f},6763:function(t,e,n){var r=n(537),i=n(4148);function o(){return(new Date).getTime()}var a,s=Array.prototype.slice,u={};a="undefined"!==typeof n.g&&n.g.console?n.g.console:"undefined"!==typeof window&&window.console?window.console:{};for(var l=[[p,"log"],[m,"info"],[v,"warn"],[g,"error"],[y,"time"],[b,"timeEnd"],[w,"trace"],[_,"dir"],[x,"assert"]],c=0;c3&&"boolean"!==typeof arguments[3]&&null!==arguments[3])throw new o("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&"boolean"!==typeof arguments[4]&&null!==arguments[4])throw new o("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&"boolean"!==typeof arguments[5]&&null!==arguments[5])throw new o("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&"boolean"!==typeof arguments[6])throw new o("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,u=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,c=arguments.length>6&&arguments[6],h=!!a&&a(t,e);if(r)r(t,e,{configurable:null===l&&h?h.configurable:!l,enumerable:null===s&&h?h.enumerable:!s,value:n,writable:null===u&&h?h.writable:!u});else{if(!c&&(s||u||l))throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");t[e]=n}}},8452:function(t,e,n){"use strict";var r=n(1189),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=n(41),u=function(t){return"function"===typeof t&&"[object Function]"===o.call(t)},l=n(592)(),c=function(t,e,n,r){if(e in t)if(!0===r){if(t[e]===n)return}else if(!u(r)||!r())return;l?s(t,e,n,!0):s(t,e,n)},h=function(t,e){var n=arguments.length>2?arguments[2]:{},o=r(e);i&&(o=a.call(o,Object.getOwnPropertySymbols(e)));for(var s=0;st.latestRevision[o]&&(t.latestRevision[o]=a,r.A.ignoreTransaction((function(){t.on("latestRevisionIncremented").fire(o,a)})))}else if(0===i.indexOf("deadnode:")){var s=parseInt(i.split(":")[1],10);e.newValue&&t.on.suicideNurseCall.fire(o,s)}else"intercomm"===i&&e.newValue&&t.on.intercomm.fire(o)}}}function y(t,e,n){return function(r){return function(){return Object.keys(t._allTables).forEach((function(r){var i=t._allTables[r];i.schema.observable&&n(i),"_syncNodes"===i.name&&i.mapToClass(e)})),r.apply(this,arguments)}}}var b=r.A.Promise;function w(t,e,n,i,o){var a={};function s(){return i.node?r.A.ignoreTransaction((function(){return t.transaction("rw","_intercomm",(function(){return t._intercomm.where({destinationNode:i.node.id}).toArray((function(e){return e.forEach((function(t){return u(t)})),t._intercomm.where("id").anyOf(e.map((function(t){return t.id}))).delete()}))}))})):b.reject(new r.A.DatabaseClosedError)}function u(e){if("response"===e.type){var n=a[e.requestId.toString()];n&&(e.isFailure?n.reject(e.message.error):n.resolve(e.message.result),delete a[e.requestId.toString()])}else e.resolve=function(n){t.observable.sendMessage("response",{result:n},e.sender,{requestId:e.id})},e.reject=function(n){t.observable.sendMessage("response",{error:n.toString()},e.sender,{isFailure:!0,requestId:e.id})},t.on.message.fire(e)}function l(e){e===t.name&&s().catch("DatabaseClosedError",(function(){}))}return t.observable.sendMessage=function(n,s,u,l){if(l=l||{},!i.node)return l.wantReply?b.reject(new r.A.DatabaseClosedError):b.resolve();var c={message:s,destinationNode:u,sender:i.node.id,type:n};return r.A.extend(c,l),r.A.ignoreTransaction((function(){var n=["_intercomm"];l.wantReply&&n.push("_syncNodes");var r=t.transaction("rw",n,(function(){return l.wantReply?t._syncNodes.where("id").equals(u).count((function(e){return e?t._intercomm.add(c):t._syncNodes.where("isMaster").above(0).first((function(e){return c.destinationNode=e.id,t._intercomm.add(c)}))})):t._intercomm.add(c)})).then((function(n){var r=null;return l.wantReply&&(r=new b((function(t,e){a[n.toString()]={resolve:t,reject:e}}))),o&&o.setItem("Dexie.Observable/intercomm/"+t.name,n.toString()),e.on.intercomm.fire(t.name),r}));return l.wantReply?r:void r.catch((function(){}))}))},t.observable.broadcastMessage=function(e,n,o){if(i.node){var a=i.node.id;r.A.ignoreTransaction((function(){t._syncNodes.toArray((function(r){return b.all(r.filter((function(t){return"local"===t.type&&(o||t.id!==a)})).map((function(r){return t.observable.sendMessage(e,n,r.id)})))})).catch((function(){}))}))}},{onIntercomm:l,consumeIntercommMessages:s}}function _(t){return function(e,n){e["_changes"]="++rev",e["_syncNodes"]="++id,myRevision,lastHeartBeat,&url,isMaster,type,status",e["_intercomm"]="++id,destinationNode",e["_uncommittedChanges"]="++id,node",t.call(this,e,n),Object.keys(n).forEach((function(t){var e=n[t];0===e.primKey.name.indexOf("$$")&&(e.primKey.uuid=!0,e.primKey.name=e.primKey.name.substr(2),e.primKey.keyPath=e.primKey.keyPath.substr(2))})),Object.keys(n).forEach((function(t){0!==t.indexOf("_")&&0!==t.indexOf("$")&&(n[t].observable=!0)}))}}function x(t){var e=100;r.A.ignoreTransaction((function(){return t._syncNodes.orderBy("myRevision").first((function(n){return t._changes.where("rev").below(n.myRevision).limit(e).primaryKeys()})).then((function(n){if(0!==n.length)return t._changes.bulkDelete(n).then((function(){n.length===e&&setTimeout((function(){return t.isOpen()&&x(t)}),500)}))}))})).catch((function(){}))}var S=self,M=r.A.defineClass({rev:Number,source:String,table:String,key:Object,type:Number,obj:Object,mods:Object,oldObj:Object}),k=r.A.override,E=r.A.Promise,A=!1;function O(t){var e=2e4,n=2e4,s=500,c=e-5e3,h=O.localStorageImpl,f=r.A.defineClass({myRevision:Number,type:String,lastHeartBeat:Number,deleteTimeStamp:Number,url:String,isMaster:Number,syncProtocol:String,syncContext:null,syncOptions:Object,connected:!1,status:Number,appliedRemoteRevision:null,remoteBaseRevisions:[{local:Number,remote:null}],dbUploadState:{tablesToUpload:[String],currentTable:String,currentKey:null,localBaseRevision:Number}});t.observable={},t.observable.SyncNode=f;var d=l(t,O,h),p=u(t,d),m=v(t),g=y(t,f,m),b={node:null},x=w(t,O,f,b,h),C=x.onIntercomm,N=x.consumeIntercommMessages;Object.defineProperty(t,"_localSyncNode",{get:function(){return b.node}});var T=null,D=null;r.A.fake&&(t.version(1).stores({_syncNodes:"++id,myRevision,lastHeartBeat",_changes:"++rev",_intercomm:"++id,destinationNode",_uncommittedChanges:"++id,node"}),t._syncNodes.mapToClass(f),t._changes.mapToClass(M),b.node=new f({myRevision:0,type:"local",lastHeartBeat:Date.now(),deleteTimeStamp:null})),t.Version.prototype._parseStoresSpec=k(t.Version.prototype._parseStoresSpec,_),t.on.addEventType({changes:"asap",cleanup:[a,o],message:"asap"}),t._createTransaction=k(t._createTransaction,p),O.latestRevision[t.name]=O.latestRevision[t.name]||0,t.open=k(t.open,g),t.close=k(t.close,(function(e){return function(){return t.dynamicallyOpened()||(d.timeoutHandle&&(clearTimeout(d.timeoutHandle),delete d.timeoutHandle),O.on("latestRevisionIncremented").unsubscribe(R),O.on("suicideNurseCall").unsubscribe(F),O.on("intercomm").unsubscribe(C),O.on("beforeunload").unsubscribe(L),b.node&&b.node.id&&(O.on.suicideNurseCall.fire(t.name,b.node.id),h&&h.setItem("Dexie.Observable/deadnode:"+b.node.id.toString()+"/"+t.name,"dead"),b.node.deleteTimeStamp=1,b.node.lastHeartBeat=0,t._syncNodes.put(b.node),b.node=null),T&&clearTimeout(T),T=null,D&&clearTimeout(D),D=null),e.apply(this,arguments)}})),t.delete=k(t.delete,(function(e){return function(){return e.apply(this,arguments).then((function(e){return O.latestRevision[t.name]=0,e}))}})),t.on("ready",(function(){return t.dynamicallyOpened()?t:t.table("_changes").orderBy("rev").last((function(n){var i=n?n.rev:0;return b.node=new f({myRevision:i,type:"local",lastHeartBeat:Date.now(),deleteTimeStamp:null,isMaster:0}),O.latestRevision[t.name]=n)return;I=n,r.A.vip((function(){P(n).catch("DatabaseClosedError",(function(){}))}))}}function P(e,n,o){if(!n&&P.ongoingOperation)return P.ongoingOperation;var a=!1,s=b.node;if(!s)return E.reject(new r.A.DatabaseClosedError);var u=1e3,l=t._changes.where("rev").above(s.myRevision).limit(u).toArray((function(e){if(e.length>0){var n=e[e.length-1];a=e.length===u,t.on("changes").fire(e,a),s.myRevision=n.rev}else o&&t.on("changes").fire([],!1);var r=!1;return t._syncNodes.where(":id").equals(s.id).modify((function(t){r=!0,t.lastHeartBeat=Date.now(),t.deleteTimeStamp=null,t.myRevision=Math.max(t.myRevision,s.myRevision)})).then((function(){return r}))})).then((function(e){if(!e)throw A?new Error("Browser is shutting down"):(t.close(),i.error("Out of sync"),S.location&&S.location.reload(!0),new Error("Out of sync"));if(a||O.latestRevision[t.name]>s.myRevision)return P(O.latestRevision[t.name],(n||0)+1,a)})).finally((function(){delete P.ongoingOperation}));return n||(P.ongoingOperation=l),l}function j(){D=null;var e=b.node&&b.node.id;e&&t.transaction("rw!",t._syncNodes,(function(){t._syncNodes.where({id:e}).first((function(e){if(e)return e.lastHeartBeat=Date.now(),e.deleteTimeStamp=null,t._syncNodes.put(e);t.isOpen()&&t.close()}))})).catch("DatabaseClosedError",(function(){})).finally((function(){b.node&&b.node.id===e&&t.isOpen()&&(D=setTimeout(j,c))}))}function B(){T=null;var e=b.node&&b.node.id;e&&r.A.vip((function(){P(O.latestRevision[t.name]).then($).then(N).catch("DatabaseClosedError",(function(){})).finally((function(){b.node&&b.node.id===e&&t.isOpen()&&(T=setTimeout(B,s))}))}))}function $(){var i=b.node;return i?t.transaction("rw","_syncNodes","_changes","_intercomm",(function(){var r=!1;t._syncNodes.where("lastHeartBeat").below(Date.now()-e).filter((function(t){return"local"===t.type})).modify((function(e){e.deleteTimeStamp&&e.deleteTimeStamp=0)e=t;else for(var i in e=t.constructor?Object.create(t.constructor.prototype):{},t)c(t,i)&&(e[i]=D(t[i]));return e}function I(t,e,n,r){return n=n||{},r=r||"",i(t).forEach((function(i){if(c(e,i)){var o=t[i],a=e[i];"object"===typeof o&&"object"===typeof a&&o&&a&&""+o.constructor===""+a.constructor?I(o,a,n,r+i+"."):o!==a&&(n[r+i]=e[i])}else n[r+i]=void 0})),i(e).forEach((function(i){c(t,i)||(n[r+i]=e[i])})),n}var R="undefined"!==typeof Symbol&&Symbol.iterator,P=R?function(t){var e;return null!=t&&(e=t[R])&&e.apply(t)}:function(){return null},j={};function B(t){var e,n,r,i;if(1===arguments.length){if(o(t))return t.slice();if(this===j&&"string"===typeof t)return[t];if(i=P(t)){n=[];while(r=i.next(),!r.done)n.push(r.value);return n}if(null==t)return[t];if(e=t.length,"number"===typeof e){n=new Array(e);while(e--)n[e]=t[e];return n}return[t]}e=arguments.length,n=new Array(e);while(e--)n[e]=arguments[e];return n}var $="undefined"!==typeof location&&/^(http|https):\/\/(localhost|127\.0\.0\.1)/.test(location.href);function L(t,e){$=t,F=e}var F=function(){return!0},U=!new Error("").stack;function V(){if(U)try{throw V.arguments,new Error}catch(t){return t}return new Error}function z(t,e){var n=t.stack;return n?(e=e||0,0===n.indexOf(t.name)&&(e+=(t.name+t.message).split("\n").length),n.split("\n").slice(e).filter(F).map((function(t){return"\n"+t})).join("")):""}function q(t,e){return function(){return r.warn(t+" is deprecated. See https://github.com/dfahlander/Dexie.js/wiki/Deprecations. "+z(V(),1)),e.apply(this,arguments)}}var H=["Modify","Bulk","OpenFailed","VersionChange","Schema","Upgrade","InvalidTable","MissingAPI","NoSuchDatabase","InvalidArgument","SubTransaction","Unsupported","Internal","DatabaseClosed","PrematureCommit","ForeignAwait"],G=["Unknown","Constraint","Data","TransactionInactive","ReadOnly","Version","NotFound","InvalidState","InvalidAccess","Abort","Timeout","QuotaExceeded","Syntax","DataClone"],W=H.concat(G),Y={VersionChanged:"Database version changed by other database connection",DatabaseClosed:"Database has been closed",Abort:"Transaction aborted",TransactionInactive:"Transaction has already completed or failed"};function K(t,e){this._e=V(),this.name=t,this.message=e}function Z(t,e){return t+". Errors: "+e.map((function(t){return t.toString()})).filter((function(t,e,n){return n.indexOf(t)===e})).join("\n")}function X(t,e,n,r){this._e=V(),this.failures=e,this.failedKeys=r,this.successCount=n}function J(t,e){this._e=V(),this.name="BulkError",this.failures=e,this.message=Z(t,e)}p(K).from(Error).extend({stack:{get:function(){return this._stack||(this._stack=this.name+": "+this.message+z(this._e,2))}},toString:function(){return this.name+": "+this.message}}),p(X).from(K),p(J).from(K);var Q=W.reduce((function(t,e){return t[e]=e+"Error",t}),{}),tt=K,et=W.reduce((function(t,e){var n=e+"Error";function r(t,r){this._e=V(),this.name=n,t?"string"===typeof t?(this.message=t,this.inner=r||null):"object"===typeof t&&(this.message=t.name+" "+t.message,this.inner=t):(this.message=Y[e]||n,this.inner=null)}return p(r).from(tt),t[e]=r,t}),{});et.Syntax=SyntaxError,et.Type=TypeError,et.Range=RangeError;var nt=G.reduce((function(t,e){return t[e+"Error"]=et[e],t}),{});function rt(t,e){if(!t||t instanceof K||t instanceof TypeError||t instanceof SyntaxError||!t.name||!nt[t.name])return t;var n=new nt[t.name](e||t.message,t);return"stack"in t&&d(n,"stack",{get:function(){return this.inner.stack}}),n}var it=W.reduce((function(t,e){return-1===["Syntax","Type","Range"].indexOf(e)&&(t[e+"Error"]=et[e]),t}),{});function ot(){}function at(t){return t}function st(t,e){return null==t||t===at?e:function(n){return e(t(n))}}function ut(t,e){return function(){t.apply(this,arguments),e.apply(this,arguments)}}function lt(t,e){return t===ot?e:function(){var n=t.apply(this,arguments);void 0!==n&&(arguments[0]=n);var r=this.onsuccess,i=this.onerror;this.onsuccess=null,this.onerror=null;var o=e.apply(this,arguments);return r&&(this.onsuccess=this.onsuccess?ut(r,this.onsuccess):r),i&&(this.onerror=this.onerror?ut(i,this.onerror):i),void 0!==o?o:n}}function ct(t,e){return t===ot?e:function(){t.apply(this,arguments);var n=this.onsuccess,r=this.onerror;this.onsuccess=this.onerror=null,e.apply(this,arguments),n&&(this.onsuccess=this.onsuccess?ut(n,this.onsuccess):n),r&&(this.onerror=this.onerror?ut(r,this.onerror):r)}}function ht(t,e){return t===ot?e:function(n){var r=t.apply(this,arguments);s(n,r);var i=this.onsuccess,o=this.onerror;this.onsuccess=null,this.onerror=null;var a=e.apply(this,arguments);return i&&(this.onsuccess=this.onsuccess?ut(i,this.onsuccess):i),o&&(this.onerror=this.onerror?ut(o,this.onerror):o),void 0===r?void 0===a?void 0:a:s(r,a)}}function ft(t,e){return t===ot?e:function(){return!1!==e.apply(this,arguments)&&t.apply(this,arguments)}}function dt(t,e){return t===ot?e:function(){var n=t.apply(this,arguments);if(n&&"function"===typeof n.then){var r=this,i=arguments.length,o=new Array(i);while(i--)o[i]=arguments[i];return n.then((function(){return e.apply(r,o)}))}return e.apply(this,arguments)}}it.ModifyError=X,it.DexieError=K,it.BulkError=J;var pt={},mt=100,vt=20,gt=7,yt=function(){try{return new Function("let F=async ()=>{},p=F();return [p,Object.getPrototypeOf(p),Promise.resolve(),F.constructor];")()}catch(e){var t=a.Promise;return t?[t.resolve(),t.prototype,t.resolve()]:[]}}(),bt=yt[0],wt=yt[1],_t=yt[2],xt=wt&&wt.then,St=bt&&bt.constructor,Mt=yt[3],kt=!!_t,Et=!1,At=_t?function(){_t.then(Zt)}:a.setImmediate?setImmediate.bind(null,Zt):a.MutationObserver?function(){var t=document.createElement("div");new MutationObserver((function(){Zt(),t=null})).observe(t,{attributes:!0}),t.setAttribute("i","1")}:function(){setTimeout(Zt,0)},Ot=function(t,e){Bt.push([t,e]),Nt&&(At(),Nt=!1)},Ct=!0,Nt=!0,Tt=[],Dt=[],It=null,Rt=at,Pt={id:"global",global:!0,ref:0,unhandleds:[],onunhandled:Me,pgp:!1,env:{},finalize:function(){this.unhandleds.forEach((function(t){try{Me(t[0],t[1])}catch(e){}}))}},jt=Pt,Bt=[],$t=0,Lt=[];function Ft(t){if("object"!==typeof this)throw new TypeError("Promises must be constructed via new");this._listeners=[],this.onuncatched=ot,this._lib=!1;var e=this._PSD=jt;if($&&(this._stackHolder=V(),this._prev=null,this._numPrev=0),"function"!==typeof t){if(t!==pt)throw new TypeError("Not a function");return this._state=arguments[1],this._value=arguments[2],void(!1===this._state&&qt(this,this._value))}this._state=null,this._value=null,++e.ref,zt(this,t)}var Ut={get:function(){var t=jt,e=le;function n(n,r){var i=this,o=!t.global&&(t!==jt||e!==le);o&&de();var a=new Ft((function(e,a){Gt(i,new Vt(_e(n,t,o),_e(r,t,o),e,a,t))}));return $&&Kt(a,this),a}return n.prototype=pt,n},set:function(t){d(this,"then",t&&t.prototype===pt?Ut:{get:function(){return t},set:Ut.set})}};function Vt(t,e,n,r,i){this.onFulfilled="function"===typeof t?t:null,this.onRejected="function"===typeof e?e:null,this.resolve=n,this.reject=r,this.psd=i}function zt(t,e){try{e((function(e){if(null===t._state){if(e===t)throw new TypeError("A promise cannot be resolved with itself.");var n=t._lib&&Xt();e&&"function"===typeof e.then?zt(t,(function(t,n){e instanceof Ft?e._then(t,n):e.then(t,n)})):(t._state=!0,t._value=e,Ht(t)),n&&Jt()}}),qt.bind(null,t))}catch(n){qt(t,n)}}function qt(t,e){if(Dt.push(e),null===t._state){var n=t._lib&&Xt();e=Rt(e),t._state=!1,t._value=e,$&&null!==e&&"object"===typeof e&&!e._promise&&M((function(){var n=v(e,"stack");e._promise=t,d(e,"stack",{get:function(){return Et?n&&(n.get?n.get.apply(e):n.value):t.stack}})})),ee(t),Ht(t),n&&Jt()}}function Ht(t){var e=t._listeners;t._listeners=[];for(var n=0,r=e.length;n0)for(t=Bt,Bt=[],n=t.length,e=0;e0);Ct=!0,Nt=!0}function Qt(){var t=Tt;Tt=[],t.forEach((function(t){t._PSD.onunhandled.call(null,t._value,t)}));var e=Lt.slice(0),n=e.length;while(n)e[--n]()}function te(t){function e(){t(),Lt.splice(Lt.indexOf(e),1)}Lt.push(e),++$t,Ot((function(){0===--$t&&Qt()}),[])}function ee(t){Tt.some((function(e){return e._value===t._value}))||Tt.push(t)}function ne(t){var e=Tt.length;while(e)if(Tt[--e]._value===t._value)return void Tt.splice(e,1)}function re(t){return new Ft(pt,!1,t)}function ie(t,e){var n=jt;return function(){var r=Xt(),i=jt;try{return ge(n,!0),t.apply(this,arguments)}catch(o){e&&e(o)}finally{ge(i,!1),r&&Jt()}}}h(Ft.prototype,{then:Ut,_then:function(t,e){Gt(this,new Vt(null,null,t,e,jt))},catch:function(t){if(1===arguments.length)return this.then(null,t);var e=arguments[0],n=arguments[1];return"function"===typeof e?this.then(null,(function(t){return t instanceof e?n(t):re(t)})):this.then(null,(function(t){return t&&t.name===e?n(t):re(t)}))},finally:function(t){return this.then((function(e){return t(),e}),(function(e){return t(),re(e)}))},stack:{get:function(){if(this._stack)return this._stack;try{Et=!0;var t=Yt(this,[],vt),e=t.join("\nFrom previous: ");return null!==this._state&&(this._stack=e),e}finally{Et=!1}}},timeout:function(t,e){var n=this;return t<1/0?new Ft((function(r,i){var o=setTimeout((function(){return i(new et.Timeout(e))}),t);n.then(r,i).finally(clearTimeout.bind(null,o))})):this}}),"undefined"!==typeof Symbol&&Symbol.toStringTag&&d(Ft.prototype,Symbol.toStringTag,"Promise"),Pt.env=ye(),h(Ft,{all:function(){var t=B.apply(null,arguments).map(pe);return new Ft((function(e,n){0===t.length&&e([]);var r=t.length;t.forEach((function(i,o){return Ft.resolve(i).then((function(n){t[o]=n,--r||e(t)}),n)}))}))},resolve:function(t){if(t instanceof Ft)return t;if(t&&"function"===typeof t.then)return new Ft((function(e,n){t.then(e,n)}));var e=new Ft(pt,!0,t);return Kt(e,It),e},reject:re,race:function(){var t=B.apply(null,arguments).map(pe);return new Ft((function(e,n){t.map((function(t){return Ft.resolve(t).then(e,n)}))}))},PSD:{get:function(){return jt},set:function(t){return jt=t}},newPSD:he,usePSD:be,scheduler:{get:function(){return Ot},set:function(t){Ot=t}},rejectionMapper:{get:function(){return Rt},set:function(t){Rt=t}},follow:function(t,e){return new Ft((function(n,r){return he((function(e,n){var r=jt;r.unhandleds=[],r.onunhandled=n,r.finalize=ut((function(){var t=this;te((function(){0===t.unhandleds.length?e():n(t.unhandleds[0])}))}),r.finalize),t()}),e,n,r)}))}});var oe={awaits:0,echoes:0,id:0},ae=0,se=[],ue=0,le=0,ce=0;function he(t,e,n,r){var i=jt,o=Object.create(i);o.parent=i,o.ref=0,o.global=!1,o.id=++ce;var a=Pt.env;o.env=kt?{Promise:Ft,PromiseProp:{value:Ft,configurable:!0,writable:!0},all:Ft.all,race:Ft.race,resolve:Ft.resolve,reject:Ft.reject,nthen:xe(a.nthen,o),gthen:xe(a.gthen,o)}:{},e&&s(o,e),++i.ref,o.finalize=function(){--this.parent.ref||this.parent.finalize()};var u=be(o,t,n,r);return 0===o.ref&&o.finalize(),u}function fe(){return oe.id||(oe.id=++ae),++oe.awaits,oe.echoes+=gt,oe.id}function de(t){!oe.awaits||t&&t!==oe.id||(0===--oe.awaits&&(oe.id=0),oe.echoes=oe.awaits*gt)}function pe(t){return oe.echoes&&t&&t.constructor===St?(fe(),t.then((function(t){return de(),t}),(function(t){return de(),ke(t)}))):t}function me(t){++le,oe.echoes&&0!==--oe.echoes||(oe.echoes=oe.id=0),se.push(jt),ge(t,!0)}function ve(){var t=se[se.length-1];se.pop(),ge(t,!1)}function ge(t,e){var n=jt;if((e?!oe.echoes||ue++&&t===jt:!ue||--ue&&t===jt)||we(e?me.bind(null,t):ve),t!==jt&&(jt=t,n===Pt&&(Pt.env=ye()),kt)){var r=Pt.env.Promise,i=t.env;wt.then=i.nthen,r.prototype.then=i.gthen,(n.global||t.global)&&(Object.defineProperty(a,"Promise",i.PromiseProp),r.all=i.all,r.race=i.race,r.resolve=i.resolve,r.reject=i.reject)}}function ye(){var t=a.Promise;return kt?{Promise:t,PromiseProp:Object.getOwnPropertyDescriptor(a,"Promise"),all:t.all,race:t.race,resolve:t.resolve,reject:t.reject,nthen:wt.then,gthen:t.prototype.then}:{}}function be(t,e,n,r,i){var o=jt;try{return ge(t,!0),e(n,r,i)}finally{ge(o,!1)}}function we(t){xt.call(bt,t)}function _e(t,e,n){return"function"!==typeof t?t:function(){var r=jt;n&&fe(),ge(e,!0);try{return t.apply(this,arguments)}finally{ge(r,!1)}}}function xe(t,e){return function(n,r){return t.call(this,_e(n,e,!1),_e(r,e,!1))}}var Se="unhandledrejection";function Me(t,e){var n;try{n=e.onuncatched(t)}catch(u){}if(!1!==n)try{var i,o={promise:e,reason:t};if(a.document&&document.createEvent?(i=document.createEvent("Event"),i.initEvent(Se,!0,!0),s(i,o)):a.CustomEvent&&(i=new CustomEvent(Se,{detail:o}),s(i,o)),i&&a.dispatchEvent&&(dispatchEvent(i),!a.PromiseRejectionEvent&&a.onunhandledrejection))try{a.onunhandledrejection(i)}catch(l){}i.defaultPrevented||r.warn("Unhandled rejection: "+(t.stack||t))}catch(u){}}var ke=Ft.reject;function Ee(t){var e={},n=function(n,r){if(r){var i=arguments.length,o=new Array(i-1);while(--i)o[i-1]=arguments[i];return e[n].subscribe.apply(null,o),t}if("string"===typeof n)return e[n]};n.addEventType=s;for(var r=1,a=arguments.length;r.",Ie="String expected.",Re=[],Pe="undefined"!==typeof navigator&&/(MSIE|Trident|Edge)/.test(navigator.userAgent),je=Pe,Be=Pe,$e=function(t){return!/(dexie\.js|dexie\.min\.js)/.test(t)};function Le(t,e){var n,u,l,f=Le.dependencies,p=s({addons:Le.addons,autoOpen:!0,indexedDB:f.indexedDB,IDBKeyRange:f.IDBKeyRange},e),m=p.addons,v=p.autoOpen,g=p.indexedDB,_=p.IDBKeyRange,A=this._dbSchema={},C=[],T=[],R={},P=null,L=null,F=!1,U=null,z=!1,H="readonly",G="readwrite",W=this,Y=new Ft((function(t){n=t})),K=new Ft((function(t,e){u=e})),Z=!0,Q=!!Xe(g);function tt(){W.on("versionchange",(function(t){t.newVersion>0?r.warn("Another connection wants to upgrade database '"+W.name+"'. Closing db now to resume the upgrade."):r.warn("Another connection wants to delete database '"+W.name+"'. Closing db now to resume the delete request."),W.close()})),W.on("blocked",(function(t){!t.newVersion||t.newVersiont}));function s(){return r.length?Ft.resolve(r.shift()(e.idbtrans)).then(s):Ft.resolve()}return a.forEach((function(t){r.push((function(){var r=A,i=t._cfg.dbschema;qt(r,n),qt(i,n),A=W._dbSchema=i;var a=ut(r,i);if(a.add.forEach((function(t){ft(n,t[0],t[1].primKey,t[1].indexes)})),a.change.forEach((function(t){if(t.recreate)throw new et.Upgrade("Not yet support for changing primary key");var e=n.objectStore(t.name);t.add.forEach((function(t){vt(e,t)})),t.change.forEach((function(t){e.deleteIndex(t.name),vt(e,t)})),t.del.forEach((function(t){e.deleteIndex(t)}))})),t._cfg.contentUpgrade)return o=!0,Ft.follow((function(){t._cfg.contentUpgrade(e)}))})),r.push((function(e){if(!o||!je){var n=t._cfg.dbschema;mt(n,e)}}))})),s().then((function(){pt(A,n)}))}function ut(t,e){var n={del:[],add:[],change:[]};for(var r in t)e[r]||n.del.push(r);for(r in e){var i=t[r],o=e[r];if(i){var a={name:r,def:o,recreate:!1,del:[],add:[],change:[]};if(i.primKey.src!==o.primKey.src)a.recreate=!0,n.change.push(a);else{var s=i.idxByName,u=o.idxByName;for(var l in s)u[l]||a.del.push(l);for(l in u){var c=s[l],h=u[l];c?c.src!==h.src&&a.change.push(h):a.add.push(h)}(a.del.length>0||a.add.length>0||a.change.length>0)&&n.change.push(a)}}else n.add.push([r,o])}return n}function ft(t,e,n,r){var i=t.db.createObjectStore(e,n.keyPath?{keyPath:n.keyPath,autoIncrement:n.auto}:{autoIncrement:n.auto});return r.forEach((function(t){vt(i,t)})),i}function pt(t,e){i(t).forEach((function(n){e.db.objectStoreNames.contains(n)||ft(e,n,t[n].primKey,t[n].indexes)}))}function mt(t,e){for(var n=0;n0?t:e}function Bt(t,e){return g.cmp(t,e)}function $t(t,e){return g.cmp(e,t)}function Lt(t,e){return te?-1:t===e?0:1}function Vt(t,e){return t?e?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:t:e}function zt(){if(W.verno=P.version/10,W._dbSchema=A={},T=y(P.objectStoreNames,0),0!==T.length){var t=P.transaction(Ze(T),"readonly");T.forEach((function(e){for(var n=t.objectStore(e),r=n.keyPath,i=r&&"string"===typeof r&&-1!==r.indexOf("."),o=new Ye(r,r||"",!1,!1,!!n.autoIncrement,r&&"string"!==typeof r,i),a=[],s=0;sMath.pow(2,62)?0:e.oldVersion;rt(a/10,r,n,i)}}),n),i.onsuccess=ie((function(){if(r=null,P=i.result,Re.push(W),Z)zt();else if(P.objectStoreNames.length>0)try{qt(A,P.transaction(Ze(P.objectStoreNames),H))}catch(n){}P.onversionchange=ie((function(t){W._vcFired=!0,W.on("versionchange").fire(t)})),Q||"__dbnames"===t||Ae.dbnames.put({name:t}).catch(ot),e()}),n)}))]).then((function(){return U=[],Ft.resolve(Le.vip(W.on.ready.fire)).then((function t(){if(U.length>0){var e=U.reduce(dt,ot);return U=[],Ft.resolve(Le.vip(e)).then(t)}}))})).finally((function(){U=null})).then((function(){return F=!1,W})).catch((function(t){try{r&&r.abort()}catch(e){}return F=!1,W.close(),L=t,ke(L)})).finally((function(){z=!0,e()}))},this.close=function(){var t=Re.indexOf(W);if(t>=0&&Re.splice(t,1),P){try{P.close()}catch(e){}P=null}v=!1,L=new et.DatabaseClosed,F&&u(L),Y=new Ft((function(t){n=t})),K=new Ft((function(t,e){u=e}))},this.delete=function(){var e=arguments.length>0;return new Ft((function(n,r){if(e)throw new et.InvalidArgument("Arguments not allowed in db.delete()");function i(){W.close();var e=g.deleteDatabase(t);e.onsuccess=ie((function(){Q||Ae.dbnames.delete(t).catch(ot),n()})),e.onerror=ze(r),e.onblocked=Ht}F?Y.then(i):i()}))},this.backendDB=function(){return P},this.isOpen=function(){return null!==P},this.hasBeenClosed=function(){return L&&L instanceof et.DatabaseClosed},this.hasFailed=function(){return null!==L},this.dynamicallyOpened=function(){return Z},this.name=t,h(this,{tables:{get:function(){return i(R).map((function(t){return R[t]}))}}}),this.on=Ee(this,"populate","blocked","versionchange",{ready:[dt,ot]}),this.on.ready.subscribe=b(this.on.ready.subscribe,(function(t){return function(e,n){Le.vip((function(){z?(L||Ft.resolve().then(e),n&&t(e)):U?(U.push(e),n&&t(e)):(t(e),n||t((function t(){W.on.ready.unsubscribe(e),W.on.ready.unsubscribe(t)})))}))}})),this.transaction=function(){var t=yt.apply(this,arguments);return this._transaction.apply(this,t)},this._transaction=function(t,e,n){var r=jt.trans;r&&r.db===W&&-1===t.indexOf("!")||(r=null);var i=-1!==t.indexOf("?");t=t.replace("!","").replace("?","");try{var o=e.map((function(t){var e=t instanceof bt?t.name:t;if("string"!==typeof e)throw new TypeError("Invalid table argument to Dexie.transaction(). Only Table or String are allowed");return e}));if("r"==t||t==H)t=H;else{if("rw"!=t&&t!=G)throw new et.InvalidArgument("Invalid transaction mode: "+t);t=G}if(r){if(r.mode===H&&t===G){if(!i)throw new et.SubTransaction("Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY");r=null}r&&o.forEach((function(t){if(r&&-1===r.storeNames.indexOf(t)){if(!i)throw new et.SubTransaction("Table "+t+" not included in parent transaction.");r=null}})),i&&r&&!r.active&&(r=null)}}catch(s){return r?r._promise(null,(function(t,e){e(s)})):ke(s)}return r?r._promise(t,a,"lock"):jt.trans?be(jt.transless,(function(){return W._whenReady(a)})):W._whenReady(a);function a(){return Ft.resolve().then((function(){var e,i=jt.transless||jt,a=W._createTransaction(t,o,A,r),s={trans:a,transless:i};r?a.idbtrans=r.idbtrans:a.create(),n.constructor===Mt&&fe();var u=Ft.follow((function(){if(e=n.call(a,a),e)if(e.constructor===St){var t=de.bind(null,null);e.then(t,t)}else"function"===typeof e.next&&"function"===typeof e.throw&&(e=We(e))}),s);return(e&&"function"===typeof e.then?Ft.resolve(e).then((function(t){return a.active?t:ke(new et.PrematureCommit("Transaction committed too early. See http://bit.ly/2kdckMn"))})):u.then((function(){return e}))).then((function(t){return r&&a._resolve(),a._completion.then((function(){return t}))})).catch((function(t){return a._reject(t),ke(t)}))}))}},this.table=function(t){if(!c(R,t))throw new et.InvalidTable("Table "+t+" does not exist");return R[t]},h(bt.prototype,{_trans:function(t,e,n){var r=this._tx||jt.trans;return r&&r.db===W?r===jt.trans?r._promise(t,e,n):he((function(){return r._promise(t,e,n)}),{trans:r,transless:jt.transless||jt}):gt(t,[this.name],e)},_idbstore:function(t,e,n){var r=this.name;function i(t,n,i){if(-1===i.storeNames.indexOf(r))throw new et.NotFound("Table"+r+" not part of transaction");return e(t,n,i.idbtrans.objectStore(r),i)}return this._trans(t,i,n)},get:function(t,e){if(t&&t.constructor===Object)return this.where(t).first(e);var n=this;return this._idbstore(H,(function(e,r,i){var o=i.get(t);o.onerror=ze(r),o.onsuccess=ie((function(){e(n.hook.reading.fire(o.result))}),r)})).then(e)},where:function(t){if("string"===typeof t)return new kt(this,t);if(o(t))return new kt(this,"["+t.join("+")+"]");var e=i(t);if(1===e.length)return this.where(e[0]).equals(t[e[0]]);var n=this.schema.indexes.concat(this.schema.primKey).filter((function(t){return t.compound&&e.every((function(e){return t.keyPath.indexOf(e)>=0}))&&t.keyPath.every((function(t){return e.indexOf(t)>=0}))}))[0];if(n&&Ne!==Ce)return this.where(n.name).equals(n.keyPath.map((function(e){return t[e]})));n||r.warn("The query "+JSON.stringify(t)+" on "+this.name+" would benefit of a compound index ["+e.join("+")+"]");var a=this.schema.idxByName,s=e.reduce((function(e,n){return[e[0]||a[n],e[0]||!a[n]?Vt(e[1],(function(e){return""+k(e,n)==""+t[n]})):e[1]]}),[null,null]),u=s[0];return u?this.where(u.name).equals(t[u.keyPath]).filter(s[1]):n?this.filter(s[1]):this.where(e).equals("")},count:function(t){return this.toCollection().count(t)},offset:function(t){return this.toCollection().offset(t)},limit:function(t){return this.toCollection().limit(t)},reverse:function(){return this.toCollection().reverse()},filter:function(t){return this.toCollection().and(t)},each:function(t){return this.toCollection().each(t)},toArray:function(t){return this.toCollection().toArray(t)},orderBy:function(t){return new Et(new kt(this,o(t)?"["+t.join("+")+"]":t))},toCollection:function(){return new Et(new kt(this))},mapToClass:function(t,e){this.schema.mappedClass=t;var n=Object.create(t.prototype);e&&Ue(n,e),this.schema.instanceTemplate=n;var r=function(e){if(!e)return e;var n=Object.create(t.prototype);for(var r in e)if(c(e,r))try{n[r]=e[r]}catch(i){}return n};return this.schema.readHook&&this.hook.reading.unsubscribe(this.schema.readHook),this.schema.readHook=r,this.hook("reading",r),t},defineClass:function(t){return this.mapToClass(Le.defineClass(t),t)},bulkDelete:function(t){return this.hook.deleting.fire===ot?this._idbstore(G,(function(e,n,r,i){e(_t(r,i,t,!1,ot))})):this.where(":id").anyOf(t).delete().then((function(){}))},bulkPut:function(t,e){var n=this;return this._idbstore(G,(function(r,i,o){if(!o.keyPath&&!n.schema.primKey.auto&&!e)throw new et.InvalidArgument("bulkPut() with non-inbound keys requires keys array in second argument");if(o.keyPath&&e)throw new et.InvalidArgument("bulkPut(): keys argument invalid on tables with inbound keys");if(e&&e.length!==t.length)throw new et.InvalidArgument("Arguments objects and keys must have the same length");if(0===t.length)return r();var a,s,u=function(t){0===l.length?r(t):i(new J(n.name+".bulkPut(): "+l.length+" of "+c+" operations failed",l))},l=[],c=t.length,h=n;if(n.hook.creating.fire===ot&&n.hook.updating.fire===ot){s=wt(l);for(var f=0,d=t.length;f=0;--i){var o=p[i];(null==o||m[o])&&(n.push(t[i]),e&&r.push(o),null!=o&&(m[o]=null))}return n.reverse(),e&&r.reverse(),h.bulkAdd(n,r)})).then((function(t){var e=p[p.length-1];return null!=e?e:t})):h.bulkAdd(t);v.then(u).catch(J,(function(t){l=l.concat(t.failures),u()})).catch(i)}}),"locked")},bulkAdd:function(t,e){var n=this,r=this.hook.creating.fire;return this._idbstore(G,(function(i,o,a,s){if(!a.keyPath&&!n.schema.primKey.auto&&!e)throw new et.InvalidArgument("bulkAdd() with non-inbound keys requires keys array in second argument");if(a.keyPath&&e)throw new et.InvalidArgument("bulkAdd(): keys argument invalid on tables with inbound keys");if(e&&e.length!==t.length)throw new et.InvalidArgument("Arguments objects and keys must have the same length");if(0===t.length)return i();function u(t){0===f.length?i(t):o(new J(n.name+".bulkAdd(): "+f.length+" of "+d+" operations failed",f))}var l,c,h,f=[],d=t.length;if(r!==ot){var p,m=a.keyPath;c=wt(f,null,!0),h=Ve(null),M((function(){for(var n=0,i=t.length;n0&&!this._locked()){var t=this._blockedFuncs.shift();try{be(t[1],t[0])}catch(e){}}}return this},_locked:function(){return this._reculock&&jt.lockOwnerFor!==this},create:function(t){var e=this;if(!this.mode)return this;if(w(!this.idbtrans),!t&&!P)switch(L&&L.name){case"DatabaseClosedError":throw new et.DatabaseClosed(L);case"MissingAPIError":throw new et.MissingAPI(L.message,L);default:throw new et.OpenFailed(L)}if(!this.active)throw new et.TransactionInactive;return w(null===this._completion._state),t=this.idbtrans=t||P.transaction(Ze(this.storeNames),this.mode),t.onerror=ie((function(n){Ge(n),e._reject(t.error)})),t.onabort=ie((function(n){Ge(n),e.active&&e._reject(new et.Abort(t.error)),e.active=!1,e.on("abort").fire(n)})),t.oncomplete=ie((function(){e.active=!1,e._resolve()})),this},_promise:function(t,e,n){var r=this;if(t===G&&this.mode!==G)return ke(new et.ReadOnly("Transaction is readonly"));if(!this.active)return ke(new et.TransactionInactive);if(this._locked())return new Ft((function(i,o){r._blockedFuncs.push([function(){r._promise(t,e,n).then(i,o)},jt])}));if(n)return he((function(){var t=new Ft((function(t,n){r._lock();var i=e(t,n,r);i&&i.then&&i.then(t,n)}));return t.finally((function(){return r._unlock()})),t._lib=!0,t}));var i=new Ft((function(t,n){var i=e(t,n,r);i&&i.then&&i.then(t,n)}));return i._lib=!0,i},_root:function(){return this.parent?this.parent._root():this},waitFor:function(t){var e=this._root();if(t=Ft.resolve(t),e._waitingFor)e._waitingFor=e._waitingFor.then((function(){return t}));else{e._waitingFor=t,e._waitingQueue=[];var n=e.idbtrans.objectStore(e.storeNames[0]);(function t(){++e._spinCount;while(e._waitingQueue.length)e._waitingQueue.shift()();e._waitingFor&&(n.get(-1/0).onsuccess=t)})()}var r=e._waitingFor;return new Ft((function(n,i){t.then((function(t){return e._waitingQueue.push(ie(n.bind(null,t)))}),(function(t){return e._waitingQueue.push(ie(i.bind(null,t)))})).finally((function(){e._waitingFor===r&&(e._waitingFor=null)}))}))},abort:function(){this.active&&this._reject(new et.Abort),this.active=!1},tables:{get:q("Transaction.tables",(function(){return R}))},table:function(t){var e=W.table(t);return new bt(t,e.schema,this)}}),h(kt.prototype,(function(){function t(t,e,n){var r=t instanceof kt?new Et(t):t;return r._ctx.error=n?new n(e):new TypeError(e),r}function e(t){return new Et(t,(function(){return _.only("")})).limit(0)}function n(t){return"next"===t?function(t){return t.toUpperCase()}:function(t){return t.toLowerCase()}}function r(t){return"next"===t?function(t){return t.toLowerCase()}:function(t){return t.toUpperCase()}}function i(t,e,n,r,i,o){for(var a=Math.min(t.length,r.length),s=-1,u=0;u=0?t.substr(0,s)+e[s]+n.substr(s+1):null;i(t[u],l)<0&&(s=u)}return a0)&&(s=v)}return e(null!==s?function(){t.continue(s+p)}:n),!1})),g}return{between:function(n,r,i,o){i=!1!==i,o=!0===o;try{return It(n,r)>0||0===It(n,r)&&(i||o)&&(!i||!o)?e(this):new Et(this,(function(){return _.bound(n,r,!i,!o)}))}catch(a){return t(this,De)}},equals:function(t){return new Et(this,(function(){return _.only(t)}))},above:function(t){return new Et(this,(function(){return _.lowerBound(t,!0)}))},aboveOrEqual:function(t){return new Et(this,(function(){return _.lowerBound(t)}))},below:function(t){return new Et(this,(function(){return _.upperBound(t,!0)}))},belowOrEqual:function(t){return new Et(this,(function(){return _.upperBound(t)}))},startsWith:function(e){return"string"!==typeof e?t(this,Ie):this.between(e,e+Ce,!0,!0)},startsWithIgnoreCase:function(t){return""===t?this.startsWith(t):o(this,(function(t,e){return 0===t.indexOf(e[0])}),[t],Ce)},equalsIgnoreCase:function(t){return o(this,(function(t,e){return t===e[0]}),[t],"")},anyOfIgnoreCase:function(){var t=B.apply(j,arguments);return 0===t.length?e(this):o(this,(function(t,e){return-1!==e.indexOf(t)}),t,"")},startsWithAnyOfIgnoreCase:function(){var t=B.apply(j,arguments);return 0===t.length?e(this):o(this,(function(t,e){return e.some((function(e){return 0===t.indexOf(e)}))}),t,Ce)},anyOf:function(){var n=B.apply(j,arguments),r=Bt;try{n.sort(r)}catch(a){return t(this,De)}if(0===n.length)return e(this);var i=new Et(this,(function(){return _.bound(n[0],n[n.length-1])}));i._ondirectionchange=function(t){r="next"===t?Bt:$t,n.sort(r)};var o=0;return i._addAlgorithm((function(t,e,i){var a=t.key;while(r(a,n[o])>0)if(++o,o===n.length)return e(i),!1;return 0===r(a,n[o])||(e((function(){t.continue(n[o])})),!1)})),i},notEqual:function(t){return this.inAnyRange([[Te,t],[t,Ne]],{includeLowers:!1,includeUppers:!1})},noneOf:function(){var e=B.apply(j,arguments);if(0===e.length)return new Et(this);try{e.sort(Bt)}catch(r){return t(this,De)}var n=e.reduce((function(t,e){return t?t.concat([[t[t.length-1][1],e]]):[[Te,e]]}),null);return n.push([e[e.length-1],Ne]),this.inAnyRange(n,{includeLowers:!1,includeUppers:!1})},inAnyRange:function(n,r){if(0===n.length)return e(this);if(!n.every((function(t){return void 0!==t[0]&&void 0!==t[1]&&Bt(t[0],t[1])<=0})))return t(this,"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower",et.InvalidArgument);var i=!r||!1!==r.includeLowers,o=r&&!0===r.includeUppers;function a(t,e){for(var n=0,r=t.length;n0){i[0]=Rt(i[0],e[0]),i[1]=Pt(i[1],e[1]);break}}return n===r&&t.push(e),t}var s,u=Bt;function l(t,e){return u(t[0],e[0])}try{s=n.reduce(a,[]),s.sort(l)}catch(v){return t(this,De)}var c=0,h=o?function(t){return Bt(t,s[c][1])>0}:function(t){return Bt(t,s[c][1])>=0},f=i?function(t){return $t(t,s[c][0])>0}:function(t){return $t(t,s[c][0])>=0};function d(t){return!h(t)&&!f(t)}var p=h,m=new Et(this,(function(){return _.bound(s[0][0],s[s.length-1][1],!i,!o)}));return m._ondirectionchange=function(t){"next"===t?(p=h,u=Bt):(p=f,u=$t),s.sort(l)},m._addAlgorithm((function(t,e,n){var r=t.key;while(p(r))if(++c,c===s.length)return e(n),!1;return!!d(r)||(0===It(r,s[c][1])||0===It(r,s[c][0])||e((function(){u===Bt?t.continue(s[c][0]):t.continue(s[c][1])})),!1)})),m},startsWithAnyOf:function(){var n=B.apply(j,arguments);return n.every((function(t){return"string"===typeof t}))?0===n.length?e(this):this.inAnyRange(n.map((function(t){return[t,t+Ce]}))):t(this,"startsWithAnyOf() only works with strings")}}})),h(Et.prototype,(function(){function t(t,e){t.filter=Vt(t.filter,e)}function e(t,e,n){var r=t.replayFilter;t.replayFilter=r?function(){return Vt(r(),e())}:e,t.justLimit=n&&!r}function n(t,e){t.isMatch=Vt(t.isMatch,e)}function r(t,e){if(t.isPrimKey)return e;var n=t.table.schema.idxByName[t.index];if(!n)throw new et.Schema("KeyPath "+t.index+" on object store "+e.name+" is not indexed");return e.index(n.name)}function o(t,e){var n=r(t,e);return t.keysOnly&&"openKeyCursor"in n?n.openKeyCursor(t.range||null,t.dir+t.unique):n.openCursor(t.range||null,t.dir+t.unique)}function a(t,e,n,r,i){var a=t.replayFilter?Vt(t.filter,t.replayFilter()):t.filter;t.or?function(){var s={},u=0;function l(){2===++u&&n()}function h(t,n,i){if(!a||a(n,i,l,r)){var o=n.primaryKey,u=""+o;"[object ArrayBuffer]"===u&&(u=""+new Uint8Array(o)),c(s,u)||(s[u]=!0,e(t,n,i))}}t.or._iterate(h,l,r,i),Tt(o(t,i),t.algorithm,h,l,r,!t.keysOnly&&t.valueMapper)}():Tt(o(t,i),Vt(t.algorithm,a),e,n,r,!t.keysOnly&&t.valueMapper)}return{_read:function(t,e){var n=this._ctx;return n.error?n.table._trans(null,ke.bind(null,n.error)):n.table._idbstore(H,t).then(e)},_write:function(t){var e=this._ctx;return e.error?e.table._trans(null,ke.bind(null,e.error)):e.table._idbstore(G,t,"locked")},_addAlgorithm:function(t){var e=this._ctx;e.algorithm=Vt(e.algorithm,t)},_iterate:function(t,e,n,r){return a(this._ctx,t,e,n,r)},clone:function(t){var e=Object.create(this.constructor.prototype),n=Object.create(this._ctx);return t&&s(n,t),e._ctx=n,e},raw:function(){return this._ctx.valueMapper=null,this},each:function(t){var e=this._ctx;return this._read((function(n,r,i){a(e,t,n,r,i)}))},count:function(t){var e=this._ctx;if(At(e,!0))return this._read((function(t,n,i){var o=r(e,i),a=e.range?o.count(e.range):o.count();a.onerror=ze(n),a.onsuccess=function(n){t(Math.min(n.target.result,e.limit))}}),t);var n=0;return this._read((function(t,r,i){a(e,(function(){return++n,!1}),(function(){t(n)}),r,i)}),t)},sortBy:function(t,e){var n=t.split(".").reverse(),r=n[0],i=n.length-1;function o(t,e){return e?o(t[n[e]],e-1):t[r]}var a="next"===this._ctx.dir?1:-1;function s(t,e){var n=o(t,i),r=o(e,i);return nr?a:0}return this.toArray((function(t){return t.sort(s)})).then(e)},toArray:function(t){var e=this._ctx;return this._read((function(t,n,i){if(l&&"next"===e.dir&&At(e,!0)&&e.limit>0){var o=e.table.hook.reading.fire,s=r(e,i),u=e.limit<1/0?s.getAll(e.range,e.limit):s.getAll(e.range);u.onerror=ze(n),u.onsuccess=qe(o===at?t:function(e){try{t(e.map(o))}catch(r){n(r)}})}else{var c=[];a(e,(function(t){c.push(t)}),(function(){t(c)}),n,i)}}),t)},offset:function(t){var n=this._ctx;return t<=0||(n.offset+=t,At(n)?e(n,(function(){var e=t;return function(t,n){return 0===e||(1===e?(--e,!1):(n((function(){t.advance(e),e=0})),!1))}})):e(n,(function(){var e=t;return function(){return--e<0}}))),this},limit:function(t){return this._ctx.limit=Math.min(this._ctx.limit,t),e(this._ctx,(function(){var e=t;return function(t,n,r){return--e<=0&&n(r),e>=0}}),!0),this},until:function(e,n){return t(this._ctx,(function(t,r,i){return!e(t.value)||(r(i),n)})),this},first:function(t){return this.limit(1).toArray((function(t){return t[0]})).then(t)},last:function(t){return this.reverse().first(t)},filter:function(e){return t(this._ctx,(function(t){return e(t.value)})),n(this._ctx,e),this},and:function(t){return this.filter(t)},or:function(t){return new kt(this._ctx.table,t,this)},reverse:function(){return this._ctx.dir="prev"===this._ctx.dir?"next":"prev",this._ondirectionchange&&this._ondirectionchange(this._ctx.dir),this},desc:function(){return this.reverse()},eachKey:function(t){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each((function(e,n){t(n.key,n)}))},eachUniqueKey:function(t){return this._ctx.unique="unique",this.eachKey(t)},eachPrimaryKey:function(t){var e=this._ctx;return e.keysOnly=!e.isMatch,this.each((function(e,n){t(n.primaryKey,n)}))},keys:function(t){var e=this._ctx;e.keysOnly=!e.isMatch;var n=[];return this.each((function(t,e){n.push(e.key)})).then((function(){return n})).then(t)},primaryKeys:function(t){var e=this._ctx;if(l&&"next"===e.dir&&At(e,!0)&&e.limit>0)return this._read((function(t,n,i){var o=r(e,i),a=e.limit<1/0?o.getAllKeys(e.range,e.limit):o.getAllKeys(e.range);a.onerror=ze(n),a.onsuccess=qe(t)})).then(t);e.keysOnly=!e.isMatch;var n=[];return this.each((function(t,e){n.push(e.primaryKey)})).then((function(){return n})).then(t)},uniqueKeys:function(t){return this._ctx.unique="unique",this.keys(t)},firstKey:function(t){return this.limit(1).keys((function(t){return t[0]})).then(t)},lastKey:function(t){return this.reverse().firstKey(t)},distinct:function(){var e=this._ctx,n=e.index&&e.table.schema.idxByName[e.index];if(!n||!n.multi)return this;var r={};return t(this._ctx,(function(t){var e=t.primaryKey.toString(),n=c(r,e);return r[e]=!0,!n})),this},modify:function(t){var e=this,n=this._ctx,r=n.table.hook,o=r.updating.fire,a=r.deleting.fire;return this._write((function(n,r,u,l){var h;if("function"===typeof t)h=o===ot&&a===ot?t:function(e){var n=D(e);if(!1===t.call(this,e,this))return!1;if(c(this,"value")){var r=I(n,this.value),s=o.call(this,r,this.primKey,n,l);s&&(e=this.value,i(s).forEach((function(t){E(e,t,s[t])})))}else a.call(this,this.primKey,e,l)};else if(o===ot){var f=i(t),d=f.length;h=function(e){for(var n=!1,r=0;r0?x():n(v))}e.clone().raw()._iterate(_,(function(){g=!0,S()}),x,u)}))},delete:function(){var t=this,e=this._ctx,n=e.range,r=e.table.hook.deleting.fire,i=r!==ot;if(!i&&At(e)&&(e.isPrimKey&&!Be||!n))return this._write((function(t,e,r){var i=ze(e),o=n?r.count(n):r.count();o.onerror=i,o.onsuccess=function(){var a=o.result;M((function(){var e=n?r.delete(n):r.clear();e.onerror=i,e.onsuccess=function(){return t(a)}}),(function(t){return e(t)}))}}));var o=i?2e3:1e4;return this._write((function(n,a,s,u){var l=0,c=t.clone({keysOnly:!e.isMatch&&!i}).distinct().limit(o).raw(),h=[],f=function(){return c.each(i?function(t,e){h.push([e.primaryKey,e.value])}:function(t,e){h.push(e.primaryKey)}).then((function(){return i?h.sort((function(t,e){return Bt(t[0],e[0])})):h.sort(Bt),_t(s,u,h,i,r)})).then((function(){var t=h.length;return l+=t,h=[],t0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,s(u)}return t}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function m(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=p.bind(r);return i.listener=n,r.wrapFn=i,i}function v(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?w(i):y(i,i.length)}function g(t){var e=this._events;if(void 0!==e){var n=e[t];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function y(t,e){for(var n=new Array(e),r=0;r0&&(o=e[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var u=i[t];if(void 0===u)return!1;if("function"===typeof u)a(u,this,e);else{var l=u.length,c=y(u,l);for(n=0;n=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():b(n,i),1===n.length&&(r[t]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",t,a||e)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(t){var e,n,r;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[t]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[t]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r=0;r--)this.removeListener(t,e[r]);return this},l.prototype.listeners=function(t){return v(this,t,!0)},l.prototype.rawListeners=function(t){return v(this,t,!1)},l.listenerCount=function(t,e){return"function"===typeof t.listenerCount?t.listenerCount(e):g.call(t,e)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},7968:function(t,e,n){"use strict";n.r(e),n.d(e,{saveAs:function(){return c}});var r=n(6763),i="object"===typeof window&&window.window===window?window:"object"===typeof self&&self.self===self?self:"object"===typeof n.g&&n.g.global===n.g?n.g:void 0;function o(t,e){return"undefined"===typeof e?e={autoBom:!1}:"object"!==typeof e&&(r.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}function a(t,e,n){var i=new XMLHttpRequest;i.open("GET",t),i.responseType="blob",i.onload=function(){c(i.response,e,n)},i.onerror=function(){r.error("could not download file")},i.send()}function s(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(n){}return e.status>=200&&e.status<=299}function u(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var l=i.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),c=i.saveAs||("object"!==typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype&&!l?function(t,e,n){var r=i.URL||i.webkitURL,o=document.createElement("a");e=e||t.name||"download",o.download=e,o.rel="noopener","string"===typeof t?(o.href=t,o.origin!==location.origin?s(o.href)?a(t,e,n):u(o,o.target="_blank"):u(o)):(o.href=r.createObjectURL(t),setTimeout((function(){r.revokeObjectURL(o.href)}),4e4),setTimeout((function(){u(o)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"===typeof t)if(s(t))a(t,e,n);else{var r=document.createElement("a");r.href=t,r.target="_blank",setTimeout((function(){u(r)}))}else navigator.msSaveOrOpenBlob(o(t,n),e)}:function(t,e,n,r){if(r=r||open("","_blank"),r&&(r.document.title=r.document.body.innerText="downloading..."),"string"===typeof t)return a(t,e,n);var o="application/octet-stream"===t.type,s=/constructor/i.test(i.HTMLElement)||i.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||o&&s||l)&&"undefined"!==typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=t:location=t,r=null},c.readAsDataURL(t)}else{var h=i.URL||i.webkitURL,f=h.createObjectURL(t);r?r.location=f:location.href=f,r=null,setTimeout((function(){h.revokeObjectURL(f)}),4e4)}});i.saveAs=c.saveAs=c},2682:function(t,e,n){"use strict";var r=n(9600),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty,a=function(t,e,n){for(var r=0,i=t.length;r=3&&(o=n),"[object Array]"===i.call(t)?a(t,e,o):"string"===typeof t?s(t,e,o):u(t,e,o)};t.exports=l},9353:function(t){"use strict";var e="Function.prototype.bind called on incompatible ",n=Object.prototype.toString,r=Math.max,i="[object Function]",o=function(t,e){for(var n=[],r=0;r1&&"boolean"!==typeof e)throw new l('"allowMissing" argument must be a boolean');if(null===T(/^%?[^%]*%?$/,t))throw new u("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=R(t),r=n.length>0?n[0]:"",i=P("%"+r+"%",e),o=i.name,a=i.value,s=!1,c=i.alias;c&&(r=c[0],O(n,A([0,1],c)));for(var h=1,f=!0;h=n.length){var g=d(a,p);f=!!g,a=f&&"get"in g&&!("originalValue"in g.get)?g.get:a[p]}else f=E(a,p),a=a[p];f&&!s&&(_[o]=a)}}return a}},5795:function(t,e,n){"use strict";var r=n(453),i=r("%Object.getOwnPropertyDescriptor%",!0);if(i)try{i([],"length")}catch(o){i=null}t.exports=i},592:function(t,e,n){"use strict";var r=n(655),i=function(){return!!r};i.hasArrayLengthDefineBug=function(){if(!r)return null;try{return 1!==r([],"length",{value:1}).length}catch(t){return!0}},t.exports=i},24:function(t){"use strict";var e={__proto__:null,foo:{}},n=Object;t.exports=function(){return{__proto__:e}.foo===e.foo&&!(e instanceof n)}},4039:function(t,e,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(1333);t.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},1333:function(t){"use strict";t.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"===typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;var r=42;for(e in t[e]=r,t)return!1;if("function"===typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var i=Object.getOwnPropertySymbols(t);if(1!==i.length||i[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(t,e);if(o.value!==r||!0!==o.enumerable)return!1}return!0}},9092:function(t,e,n){"use strict";var r=n(1333);t.exports=function(){return r()&&!!Symbol.toStringTag}},9957:function(t,e,n){"use strict";var r=Function.prototype.call,i=Object.prototype.hasOwnProperty,o=n(6743);t.exports=o.call(r,i)},1083:function(t,e,n){var r=n(1568),i=n(8835),o=t.exports;for(var a in r)r.hasOwnProperty(a)&&(o[a]=r[a]);function s(t){if("string"===typeof t&&(t=i.parse(t)),t.protocol||(t.protocol="https:"),"https:"!==t.protocol)throw new Error('Protocol "'+t.protocol+'" not supported. Expected "https:"');return t}o.request=function(t,e){return t=s(t),r.request.call(this,t,e)},o.get=function(t,e){return t=s(t),r.get.call(this,t,e)}},251:function(t,e){ +/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ +e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,c=-7,h=n?i-1:0,f=n?-1:1,d=t[e+h];for(h+=f,o=d&(1<<-c)-1,d>>=-c,c+=s;c>0;o=256*o+t[e+h],h+=f,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t[e+h],h+=f,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=l}return(d?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+h>=1?f/u:f*Math.pow(2,1-h),e*u>=2&&(a++,u/=2),a+h>=c?(s=0,a=c):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;t[n+d]=255&a,d+=p,a/=256,l-=8);t[n+d-p]|=128*m}},6698:function(t){"function"===typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},7244:function(t,e,n){"use strict";var r=n(9092)(),i=n(8075),o=i("Object.prototype.toString"),a=function(t){return!(r&&t&&"object"===typeof t&&Symbol.toStringTag in t)&&"[object Arguments]"===o(t)},s=function(t){return!!a(t)||null!==t&&"object"===typeof t&&"number"===typeof t.length&&t.length>=0&&"[object Array]"!==o(t)&&"[object Function]"===o(t.callee)},u=function(){return a(arguments)}();a.isLegacyArguments=s,t.exports=u?a:s},9600:function(t){"use strict";var e,n,r=Function.prototype.toString,i="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof i&&"function"===typeof Object.defineProperty)try{e=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,e)}catch(b){b!==n&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(t){try{var e=r.call(t);return o.test(e)}catch(n){return!1}},s=function(t){try{return!a(t)&&(r.call(t),!0)}catch(e){return!1}},u=Object.prototype.toString,l="[object Object]",c="[object Function]",h="[object GeneratorFunction]",f="[object HTMLAllCollection]",d="[object HTML document.all class]",p="[object HTMLCollection]",m="function"===typeof Symbol&&!!Symbol.toStringTag,v=!(0 in[,]),g=function(){return!1};if("object"===typeof document){var y=document.all;u.call(y)===u.call(document.all)&&(g=function(t){if((v||!t)&&("undefined"===typeof t||"object"===typeof t))try{var e=u.call(t);return(e===f||e===d||e===p||e===l)&&null==t("")}catch(n){}return!1})}t.exports=i?function(t){if(g(t))return!0;if(!t)return!1;if("function"!==typeof t&&"object"!==typeof t)return!1;try{i(t,null,e)}catch(r){if(r!==n)return!1}return!a(t)&&s(t)}:function(t){if(g(t))return!0;if(!t)return!1;if("function"!==typeof t&&"object"!==typeof t)return!1;if(m)return s(t);if(a(t))return!1;var e=u.call(t);return!(e!==c&&e!==h&&!/^\[object HTML/.test(e))&&s(t)}},8184:function(t,e,n){"use strict";var r,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=n(9092)(),u=Object.getPrototypeOf,l=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(t){}};t.exports=function(t){if("function"!==typeof t)return!1;if(a.test(o.call(t)))return!0;if(!s){var e=i.call(t);return"[object GeneratorFunction]"===e}if(!u)return!1;if("undefined"===typeof r){var n=l();r=!!n&&u(n)}return u(t)===r}},3003:function(t){"use strict";t.exports=function(t){return t!==t}},4133:function(t,e,n){"use strict";var r=n(487),i=n(8452),o=n(3003),a=n(6642),s=n(2464),u=r(a(),Number);i(u,{getPolyfill:a,implementation:o,shim:s}),t.exports=u},6642:function(t,e,n){"use strict";var r=n(3003);t.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},2464:function(t,e,n){"use strict";var r=n(8452),i=n(6642);t.exports=function(){var t=i();return r(Number,{isNaN:t},{isNaN:function(){return Number.isNaN!==t}}),t}},5680:function(t,e,n){"use strict";var r=n(5767);t.exports=function(t){return!!r(t)}},169:function(t,e,n){var r=null;"undefined"!==typeof WebSocket?r=WebSocket:"undefined"!==typeof MozWebSocket?r=MozWebSocket:"undefined"!==typeof n.g?r=n.g.WebSocket||n.g.MozWebSocket:"undefined"!==typeof window?r=window.WebSocket||window.MozWebSocket:"undefined"!==typeof self&&(r=self.WebSocket||self.MozWebSocket),t.exports=r},1176:function(t,e,n){var r=n(5606); +/** + * [js-sha3]{@link https://github.com/emn178/js-sha3} + * + * @version 0.5.7 + * @author Chen, Yi-Cyuan [emn178@gmail.com] + * @copyright Chen, Yi-Cyuan 2015-2016 + * @license MIT + */(function(){"use strict";var e="object"===typeof window?window:{},i=!e.JS_SHA3_NO_NODE_JS&&"object"===typeof r&&r.versions&&r.versions.node;i&&(e=n.g);for(var o=!e.JS_SHA3_NO_COMMON_JS&&t.exports,a="0123456789abcdef".split(""),s=[31,7936,2031616,520093696],u=[1,256,65536,16777216],l=[6,1536,393216,100663296],c=[0,8,16,24],h=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],f=[224,256,384,512],d=[128,256],p=["hex","buffer","arrayBuffer","array"],m=function(t,e,n){return function(r){return new A(t,e,t).update(r)[n]()}},v=function(t,e,n){return function(r,i){return new A(t,e,i).update(r)[n]()}},g=function(t,e){var n=m(t,e,"hex");n.create=function(){return new A(t,e,t)},n.update=function(t){return n.create().update(t)};for(var r=0;r>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}A.prototype.update=function(t){var e="string"!==typeof t;e&&t.constructor===ArrayBuffer&&(t=new Uint8Array(t));var n,r,i=t.length,o=this.blocks,a=this.byteCount,s=this.blockCount,u=0,l=this.s;while(u>2]|=t[u]<>2]|=r<>2]|=(192|r>>6)<>2]|=(128|63&r)<=57344?(o[n>>2]|=(224|r>>12)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<>2]|=(240|r>>18)<>2]|=(128|r>>12&63)<>2]|=(128|r>>6&63)<>2]|=(128|63&r)<=a){for(this.start=n-a,this.block=o[s],n=0;n>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[n],e=1;e>4&15]+a[15&t]+a[t>>12&15]+a[t>>8&15]+a[t>>20&15]+a[t>>16&15]+a[t>>28&15]+a[t>>24&15];s%e===0&&(O(n),o=0)}return i&&(t=n[o],i>0&&(u+=a[t>>4&15]+a[15&t]),i>1&&(u+=a[t>>12&15]+a[t>>8&15]),i>2&&(u+=a[t>>20&15]+a[t>>16&15])),u},A.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;t=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);var u=new Uint32Array(t);while(a>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;s%n===0&&O(r)}return o&&(t=s<<2,e=r[a],o>0&&(u[t]=255&e),o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u};var O=function(t){var e,n,r,i,o,a,s,u,l,c,f,d,p,m,v,g,y,b,w,_,x,S,M,k,E,A,O,C,N,T,D,I,R,P,j,B,$,L,F,U,V,z,q,H,G,W,Y,K,Z,X,J,Q,tt,et,nt,rt,it,ot,at,st,ut,lt,ct;for(r=0;r<48;r+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],l=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],f=t[7]^t[17]^t[27]^t[37]^t[47],d=t[8]^t[18]^t[28]^t[38]^t[48],p=t[9]^t[19]^t[29]^t[39]^t[49],e=d^(a<<1|s>>>31),n=p^(s<<1|a>>>31),t[0]^=e,t[1]^=n,t[10]^=e,t[11]^=n,t[20]^=e,t[21]^=n,t[30]^=e,t[31]^=n,t[40]^=e,t[41]^=n,e=i^(u<<1|l>>>31),n=o^(l<<1|u>>>31),t[2]^=e,t[3]^=n,t[12]^=e,t[13]^=n,t[22]^=e,t[23]^=n,t[32]^=e,t[33]^=n,t[42]^=e,t[43]^=n,e=a^(c<<1|f>>>31),n=s^(f<<1|c>>>31),t[4]^=e,t[5]^=n,t[14]^=e,t[15]^=n,t[24]^=e,t[25]^=n,t[34]^=e,t[35]^=n,t[44]^=e,t[45]^=n,e=u^(d<<1|p>>>31),n=l^(p<<1|d>>>31),t[6]^=e,t[7]^=n,t[16]^=e,t[17]^=n,t[26]^=e,t[27]^=n,t[36]^=e,t[37]^=n,t[46]^=e,t[47]^=n,e=c^(i<<1|o>>>31),n=f^(o<<1|i>>>31),t[8]^=e,t[9]^=n,t[18]^=e,t[19]^=n,t[28]^=e,t[29]^=n,t[38]^=e,t[39]^=n,t[48]^=e,t[49]^=n,m=t[0],v=t[1],W=t[11]<<4|t[10]>>>28,Y=t[10]<<4|t[11]>>>28,C=t[20]<<3|t[21]>>>29,N=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,z=t[40]<<18|t[41]>>>14,q=t[41]<<18|t[40]>>>14,P=t[2]<<1|t[3]>>>31,j=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,y=t[12]<<12|t[13]>>>20,K=t[22]<<10|t[23]>>>22,Z=t[23]<<10|t[22]>>>22,T=t[33]<<13|t[32]>>>19,D=t[32]<<13|t[33]>>>19,lt=t[42]<<2|t[43]>>>30,ct=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,nt=t[4]<<30|t[5]>>>2,B=t[14]<<6|t[15]>>>26,$=t[15]<<6|t[14]>>>26,b=t[25]<<11|t[24]>>>21,w=t[24]<<11|t[25]>>>21,X=t[34]<<15|t[35]>>>17,J=t[35]<<15|t[34]>>>17,I=t[45]<<29|t[44]>>>3,R=t[44]<<29|t[45]>>>3,k=t[6]<<28|t[7]>>>4,E=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,L=t[26]<<25|t[27]>>>7,F=t[27]<<25|t[26]>>>7,_=t[36]<<21|t[37]>>>11,x=t[37]<<21|t[36]>>>11,Q=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,H=t[8]<<27|t[9]>>>5,G=t[9]<<27|t[8]>>>5,A=t[18]<<20|t[19]>>>12,O=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,at=t[28]<<7|t[29]>>>25,U=t[38]<<8|t[39]>>>24,V=t[39]<<8|t[38]>>>24,S=t[48]<<14|t[49]>>>18,M=t[49]<<14|t[48]>>>18,t[0]=m^~g&b,t[1]=v^~y&w,t[10]=k^~A&C,t[11]=E^~O&N,t[20]=P^~B&L,t[21]=j^~$&F,t[30]=H^~W&K,t[31]=G^~Y&Z,t[40]=et^~rt&ot,t[41]=nt^~it&at,t[2]=g^~b&_,t[3]=y^~w&x,t[12]=A^~C&T,t[13]=O^~N&D,t[22]=B^~L&U,t[23]=$^~F&V,t[32]=W^~K&X,t[33]=Y^~Z&J,t[42]=rt^~ot&st,t[43]=it^~at&ut,t[4]=b^~_&S,t[5]=w^~x&M,t[14]=C^~T&I,t[15]=N^~D&R,t[24]=L^~U&z,t[25]=F^~V&q,t[34]=K^~X&Q,t[35]=Z^~J&tt,t[44]=ot^~st<,t[45]=at^~ut&ct,t[6]=_^~S&m,t[7]=x^~M&v,t[16]=T^~I&k,t[17]=D^~R&E,t[26]=U^~z&P,t[27]=V^~q&j,t[36]=X^~Q&H,t[37]=J^~tt&G,t[46]=st^~lt&et,t[47]=ut^~ct&nt,t[8]=S^~m&g,t[9]=M^~v&y,t[18]=I^~k&A,t[19]=R^~E&O,t[28]=z^~P&B,t[29]=q^~j&$,t[38]=Q^~H&W,t[39]=tt^~G&Y,t[48]=lt^~et&rt,t[49]=ct^~nt&it,t[0]^=h[r],t[1]^=h[r+1]};if(o)t.exports=w;else for(x=0;x<_.length;++x)e[_[x]]=w[_[x]]})()},9749:function(t,e,n){"use strict";const r=n(6207),i=Symbol("max"),o=Symbol("length"),a=Symbol("lengthCalculator"),s=Symbol("allowStale"),u=Symbol("maxAge"),l=Symbol("dispose"),c=Symbol("noDisposeOnSet"),h=Symbol("lruList"),f=Symbol("cache"),d=Symbol("updateAgeOnGet"),p=()=>1;class m{constructor(t){if("number"===typeof t&&(t={max:t}),t||(t={}),t.max&&("number"!==typeof t.max||t.max<0))throw new TypeError("max must be a non-negative number");this[i]=t.max||1/0;const e=t.length||p;if(this[a]="function"!==typeof e?p:e,this[s]=t.stale||!1,t.maxAge&&"number"!==typeof t.maxAge)throw new TypeError("maxAge must be a number");this[u]=t.maxAge||0,this[l]=t.dispose,this[c]=t.noDisposeOnSet||!1,this[d]=t.updateAgeOnGet||!1,this.reset()}set max(t){if("number"!==typeof t||t<0)throw new TypeError("max must be a non-negative number");this[i]=t||1/0,y(this)}get max(){return this[i]}set allowStale(t){this[s]=!!t}get allowStale(){return this[s]}set maxAge(t){if("number"!==typeof t)throw new TypeError("maxAge must be a non-negative number");this[u]=t,y(this)}get maxAge(){return this[u]}set lengthCalculator(t){"function"!==typeof t&&(t=p),t!==this[a]&&(this[a]=t,this[o]=0,this[h].forEach((t=>{t.length=this[a](t.value,t.key),this[o]+=t.length}))),y(this)}get lengthCalculator(){return this[a]}get length(){return this[o]}get itemCount(){return this[h].length}rforEach(t,e){e=e||this;for(let n=this[h].tail;null!==n;){const r=n.prev;_(this,t,n,e),n=r}}forEach(t,e){e=e||this;for(let n=this[h].head;null!==n;){const r=n.next;_(this,t,n,e),n=r}}keys(){return this[h].toArray().map((t=>t.key))}values(){return this[h].toArray().map((t=>t.value))}reset(){this[l]&&this[h]&&this[h].length&&this[h].forEach((t=>this[l](t.key,t.value))),this[f]=new Map,this[h]=new r,this[o]=0}dump(){return this[h].map((t=>!g(this,t)&&{k:t.key,v:t.value,e:t.now+(t.maxAge||0)})).toArray().filter((t=>t))}dumpLru(){return this[h]}set(t,e,n){if(n=n||this[u],n&&"number"!==typeof n)throw new TypeError("maxAge must be a number");const r=n?Date.now():0,s=this[a](e,t);if(this[f].has(t)){if(s>this[i])return b(this,this[f].get(t)),!1;const a=this[f].get(t),u=a.value;return this[l]&&(this[c]||this[l](t,u.value)),u.now=r,u.maxAge=n,u.value=e,this[o]+=s-u.length,u.length=s,this.get(t),y(this),!0}const d=new w(t,e,s,r,n);return d.length>this[i]?(this[l]&&this[l](t,e),!1):(this[o]+=d.length,this[h].unshift(d),this[f].set(t,this[h].head),y(this),!0)}has(t){if(!this[f].has(t))return!1;const e=this[f].get(t).value;return!g(this,e)}get(t){return v(this,t,!0)}peek(t){return v(this,t,!1)}pop(){const t=this[h].tail;return t?(b(this,t),t.value):null}del(t){b(this,this[f].get(t))}load(t){this.reset();const e=Date.now();for(let n=t.length-1;n>=0;n--){const r=t[n],i=r.e||0;if(0===i)this.set(r.k,r.v);else{const t=i-e;t>0&&this.set(r.k,r.v,t)}}}prune(){this[f].forEach(((t,e)=>v(this,e,!1)))}}const v=(t,e,n)=>{const r=t[f].get(e);if(r){const e=r.value;if(g(t,e)){if(b(t,r),!t[s])return}else n&&(t[d]&&(r.value.now=Date.now()),t[h].unshiftNode(r));return e.value}},g=(t,e)=>{if(!e||!e.maxAge&&!t[u])return!1;const n=Date.now()-e.now;return e.maxAge?n>e.maxAge:t[u]&&n>t[u]},y=t=>{if(t[o]>t[i])for(let e=t[h].tail;t[o]>t[i]&&null!==e;){const n=e.prev;b(t,e),e=n}},b=(t,e)=>{if(e){const n=e.value;t[l]&&t[l](n.key,n.value),t[o]-=n.length,t[f].delete(n.key),t[h].removeNode(e)}};class w{constructor(t,e,n,r,i){this.key=t,this.value=e,this.length=n,this.now=r,this.maxAge=i||0}}const _=(t,e,n,r)=>{let i=n.value;g(t,i)&&(b(t,n),t[s]||(i=void 0)),i&&e.call(r,i.value,i.key,t)};t.exports=m},6835:function(t){"use strict";t.exports=function(t){t.prototype[Symbol.iterator]=function*(){for(let t=this.head;t;t=t.next)yield t.value}}},6207:function(t,e,n){"use strict";function r(t){var e=this;if(e instanceof r||(e=new r),e.tail=null,e.head=null,e.length=0,t&&"function"===typeof t.forEach)t.forEach((function(t){e.push(t)}));else if(arguments.length>0)for(var n=0,i=arguments.length;n1)n=e;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");r=this.head.next,n=this.head.value}for(var i=0;null!==r;i++)n=t(n,r.value,i),r=r.next;return n},r.prototype.reduceReverse=function(t,e){var n,r=this.tail;if(arguments.length>1)n=e;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");r=this.tail.prev,n=this.tail.value}for(var i=this.length-1;null!==r;i--)n=t(n,r.value,i),r=r.prev;return n},r.prototype.toArray=function(){for(var t=new Array(this.length),e=0,n=this.head;null!==n;e++)t[e]=n.value,n=n.next;return t},r.prototype.toArrayReverse=function(){for(var t=new Array(this.length),e=0,n=this.tail;null!==n;e++)t[e]=n.value,n=n.prev;return t},r.prototype.slice=function(t,e){e=e||this.length,e<0&&(e+=this.length),t=t||0,t<0&&(t+=this.length);var n=new r;if(ethis.length&&(e=this.length);for(var i=0,o=this.head;null!==o&&ithis.length&&(e=this.length);for(var i=this.length,o=this.tail;null!==o&&i>e;i--)o=o.prev;for(;null!==o&&i>t;i--,o=o.prev)n.push(o.value);return n},r.prototype.splice=function(t,e){t>this.length&&(t=this.length-1),t<0&&(t=this.length+t);for(var n=0,r=this.head;null!==r&&n>>0,this.mti=1;this.mti>>30;this.mt[this.mti]=(1812433253*((4294901760&t)>>>16)<<16)+1812433253*(65535&t)+this.mti,this.mt[this.mti]>>>=0}},e.prototype.init_by_array=function(t,e){var n,r,i;for(this.init_seed(19650218),n=1,r=0,i=this.N>e?this.N:e;i;i--){var o=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(1664525*((4294901760&o)>>>16)<<16)+1664525*(65535&o))+t[r]+r,this.mt[n]>>>=0,n++,r++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1),r>=e&&(r=0)}for(i=this.N-1;i;i--){o=this.mt[n-1]^this.mt[n-1]>>>30;this.mt[n]=(this.mt[n]^(1566083941*((4294901760&o)>>>16)<<16)+1566083941*(65535&o))-n,this.mt[n]>>>=0,n++,n>=this.N&&(this.mt[0]=this.mt[this.N-1],n=1)}this.mt[0]=2147483648},e.prototype.random_int=function(){var t,e=new Array(0,this.MATRIX_A);if(this.mti>=this.N){var n;for(this.mti==this.N+1&&this.init_seed(5489),n=0;n>>1^e[1&t];for(;n>>1^e[1&t];t=this.mt[this.N-1]&this.UPPER_MASK|this.mt[0]&this.LOWER_MASK,this.mt[this.N-1]=this.mt[this.M-1]^t>>>1^e[1&t],this.mti=0}return t=this.mt[this.mti++],t^=t>>>11,t^=t<<7&2636928640,t^=t<<15&4022730752,t^=t>>>18,t>>>0},e.prototype.random_int31=function(){return this.random_int()>>>1},e.prototype.random_incl=function(){return this.random_int()*(1/4294967295)},e.prototype.random=function(){return this.random_int()*(1/4294967296)},e.prototype.random_excl=function(){return(this.random_int()+.5)*(1/4294967296)},e.prototype.random_long=function(){var t=this.random_int()>>>5,e=this.random_int()>>>6;return(67108864*t+e)*(1/9007199254740992)},t.exports=e},8859:function(t,e,n){var r="function"===typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"===typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"===typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=s&&u&&"function"===typeof u.get?u.get:null,c=s&&Set.prototype.forEach,h="function"===typeof WeakMap&&WeakMap.prototype,f=h?WeakMap.prototype.has:null,d="function"===typeof WeakSet&&WeakSet.prototype,p=d?WeakSet.prototype.has:null,m="function"===typeof WeakRef&&WeakRef.prototype,v=m?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,y=Object.prototype.toString,b=Function.prototype.toString,w=String.prototype.match,_=String.prototype.slice,x=String.prototype.replace,S=String.prototype.toUpperCase,M=String.prototype.toLowerCase,k=RegExp.prototype.test,E=Array.prototype.concat,A=Array.prototype.join,O=Array.prototype.slice,C=Math.floor,N="function"===typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,D="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?Symbol.prototype.toString:null,I="function"===typeof Symbol&&"object"===typeof Symbol.iterator,R="function"===typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===I||"symbol")?Symbol.toStringTag:null,P=Object.prototype.propertyIsEnumerable,j=("function"===typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function B(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||k.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"===typeof t){var r=t<0?-C(-t):C(t);if(r!==t){var i=String(r),o=_.call(e,i.length+1);return x.call(i,n,"$&_")+"."+x.call(x.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return x.call(e,n,"$&_")}var $=n(2634),L=$.custom,F=Z(L)?L:null;function U(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function V(t){return x.call(String(t),/"/g,""")}function z(t){return"[object Array]"===tt(t)&&(!R||!("object"===typeof t&&R in t))}function q(t){return"[object Date]"===tt(t)&&(!R||!("object"===typeof t&&R in t))}function H(t){return"[object RegExp]"===tt(t)&&(!R||!("object"===typeof t&&R in t))}function G(t){return"[object Error]"===tt(t)&&(!R||!("object"===typeof t&&R in t))}function W(t){return"[object String]"===tt(t)&&(!R||!("object"===typeof t&&R in t))}function Y(t){return"[object Number]"===tt(t)&&(!R||!("object"===typeof t&&R in t))}function K(t){return"[object Boolean]"===tt(t)&&(!R||!("object"===typeof t&&R in t))}function Z(t){if(I)return t&&"object"===typeof t&&t instanceof Symbol;if("symbol"===typeof t)return!0;if(!t||"object"!==typeof t||!D)return!1;try{return D.call(t),!0}catch(e){}return!1}function X(t){if(!t||"object"!==typeof t||!N)return!1;try{return N.call(t),!0}catch(e){}return!1}t.exports=function t(e,r,i,s){var u=r||{};if(Q(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(Q(u,"maxStringLength")&&("number"===typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var h=!Q(u,"customInspect")||u.customInspect;if("boolean"!==typeof h&&"symbol"!==h)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(Q(u,"indent")&&null!==u.indent&&"\t"!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(Q(u,"numericSeparator")&&"boolean"!==typeof u.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var f=u.numericSeparator;if("undefined"===typeof e)return"undefined";if(null===e)return"null";if("boolean"===typeof e)return e?"true":"false";if("string"===typeof e)return lt(e,u);if("number"===typeof e){if(0===e)return 1/0/e>0?"0":"-0";var d=String(e);return f?B(e,d):d}if("bigint"===typeof e){var p=String(e)+"n";return f?B(e,p):p}var m="undefined"===typeof u.depth?5:u.depth;if("undefined"===typeof i&&(i=0),i>=m&&m>0&&"object"===typeof e)return z(e)?"[Array]":"[Object]";var v=mt(u,i);if("undefined"===typeof s)s=[];else if(nt(s,e)>=0)return"[Circular]";function y(e,n,r){if(n&&(s=O.call(s),s.push(n)),r){var o={depth:u.depth};return Q(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),t(e,o,i+1,s)}return t(e,u,i+1,s)}if("function"===typeof e&&!H(e)){var b=et(e),w=gt(e,y);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(w.length>0?" { "+A.call(w,", ")+" }":"")}if(Z(e)){var S=I?x.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):D.call(e);return"object"!==typeof e||I?S:ht(S)}if(ut(e)){for(var k="<"+M.call(String(e.nodeName)),C=e.attributes||[],T=0;T",k}if(z(e)){if(0===e.length)return"[]";var L=gt(e,y);return v&&!pt(L)?"["+vt(L,v)+"]":"[ "+A.call(L,", ")+" ]"}if(G(e)){var J=gt(e,y);return"cause"in Error.prototype||!("cause"in e)||P.call(e,"cause")?0===J.length?"["+String(e)+"]":"{ ["+String(e)+"] "+A.call(J,", ")+" }":"{ ["+String(e)+"] "+A.call(E.call("[cause]: "+y(e.cause),J),", ")+" }"}if("object"===typeof e&&h){if(F&&"function"===typeof e[F]&&$)return $(e,{depth:m-i});if("symbol"!==h&&"function"===typeof e.inspect)return e.inspect()}if(rt(e)){var ct=[];return a&&a.call(e,(function(t,n){ct.push(y(n,e,!0)+" => "+y(t,e))})),dt("Map",o.call(e),ct,v)}if(at(e)){var yt=[];return c&&c.call(e,(function(t){yt.push(y(t,e))})),dt("Set",l.call(e),yt,v)}if(it(e))return ft("WeakMap");if(st(e))return ft("WeakSet");if(ot(e))return ft("WeakRef");if(Y(e))return ht(y(Number(e)));if(X(e))return ht(y(N.call(e)));if(K(e))return ht(g.call(e));if(W(e))return ht(y(String(e)));if("undefined"!==typeof window&&e===window)return"{ [object Window] }";if(e===n.g)return"{ [object globalThis] }";if(!q(e)&&!H(e)){var bt=gt(e,y),wt=j?j(e)===Object.prototype:e instanceof Object||e.constructor===Object,_t=e instanceof Object?"":"null prototype",xt=!wt&&R&&Object(e)===e&&R in e?_.call(tt(e),8,-1):_t?"Object":"",St=wt||"function"!==typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"",Mt=St+(xt||_t?"["+A.call(E.call([],xt||[],_t||[]),": ")+"] ":"");return 0===bt.length?Mt+"{}":v?Mt+"{"+vt(bt,v)+"}":Mt+"{ "+A.call(bt,", ")+" }"}return String(e)};var J=Object.prototype.hasOwnProperty||function(t){return t in this};function Q(t,e){return J.call(t,e)}function tt(t){return y.call(t)}function et(t){if(t.name)return t.name;var e=w.call(b.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function nt(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;ne.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return lt(_.call(t,0,e.maxStringLength),e)+r}var i=x.call(x.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,ct);return U(i,"single",e)}function ct(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+S.call(e.toString(16))}function ht(t){return"Object("+t+")"}function ft(t){return t+" { ? }"}function dt(t,e,n,r){var i=r?vt(n,r):A.call(n,", ");return t+" ("+e+") {"+i+"}"}function pt(t){for(var e=0;e=0)return!1;return!0}function mt(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"===typeof t.indent&&t.indent>0))return null;n=A.call(Array(t.indent+1)," ")}return{base:n,prev:A.call(Array(e+1),n)}}function vt(t,e){if(0===t.length)return"";var n="\n"+e.prev+e.base;return n+A.call(t,","+n)+"\n"+e.prev}function gt(t,e){var n=z(t),r=[];if(n){r.length=t.length;for(var i=0;i0&&!i.call(t,0))for(var d=0;d0)for(var m=0;m=0&&"[object Function]"===e.call(t.callee)),r}},8403:function(t,e,n){"use strict";var r=n(1189),i=n(1333)(),o=n(8075),a=Object,s=o("Array.prototype.push"),u=o("Object.prototype.propertyIsEnumerable"),l=i?Object.getOwnPropertySymbols:null;t.exports=function(t,e){if(null==t)throw new TypeError("target must be an object");var n=a(t);if(1===arguments.length)return n;for(var o=1;o1)for(var n=1;no)throw new RangeError("requested too many random bytes");var n=s.allocUnsafe(t);if(t>0)if(t>i)for(var a=0;a2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}function o(t,e,n){return t.substr(!n||n<0?0:+n,e.length)===e}function a(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}function s(t,e,n){return"number"!==typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}r("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(t,e,n){var r,u;if("string"===typeof e&&o(e,"not ")?(r="must not be",e=e.replace(/^not /,"")):r="must be",a(t," argument"))u="The ".concat(t," ").concat(r," ").concat(i(e,"type"));else{var l=s(t,".")?"property":"argument";u='The "'.concat(t,'" ').concat(l," ").concat(r," ").concat(i(e,"type"))}return u+=". Received type ".concat(typeof n),u}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.F=n},5382:function(t,e,n){"use strict";var r=n(5606),i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=c;var o=n(5412),a=n(6708);n(6698)(c,o);for(var s=i(a.prototype),u=0;u0)if("string"===typeof e||a.objectMode||Object.getPrototypeOf(e)===s.prototype||(e=l(e)),r)a.endEmitted?k(t,new M):T(t,a,e,!0);else if(a.ended)k(t,new x);else{if(a.destroyed)return!1;a.reading=!1,a.decoder&&!n?(e=a.decoder.write(e),a.objectMode||0!==e.length?T(t,a,e,!1):L(t,a)):T(t,a,e,!1)}else r||(a.reading=!1,L(t,a));return!a.ended&&(a.length=I?t=I:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function P(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=R(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function j(t,e){if(h("onEofChunk"),!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?B(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,$(t)))}}function B(t){var e=t._readableState;h("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(h("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick($,t))}function $(t){var e=t._readableState;h("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,G(t)}function L(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(F,t,e))}function F(t,e){while(!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function z(t){h("readable nexttick read 0"),t.read(0)}function q(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(H,t,e))}function H(t,e){h("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),G(t),e.flowing&&!e.reading&&t.read(0)}function G(t){var e=t._readableState;h("flow",e.flowing);while(e.flowing&&null!==t.read());}function W(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function Y(t){var e=t._readableState;h("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(K,e,t))}function K(t,e){if(h("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function Z(t,e){for(var n=0,r=t.length;n=e.highWaterMark:e.length>0)||e.ended))return h("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?Y(this):B(this),null;if(t=P(t,e),0===t&&e.ended)return 0===e.length&&Y(this),null;var r,i=e.needReadable;return h("need readable",i),(0===e.length||e.length-t0?W(t,e):null,null===r?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&Y(this)),null!==r&&this.emit("data",r),r},C.prototype._read=function(t){k(this,new S("_read()"))},C.prototype.pipe=function(t,e){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t);break}r.pipesCount+=1,h("pipe count=%d opts=%j",r.pipesCount,e);var a=(!e||!1!==e.end)&&t!==i.stdout&&t!==i.stderr,s=a?l:y;function u(t,e){h("onunpipe"),t===n&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,d())}function l(){h("onend"),t.end()}r.endEmitted?i.nextTick(s):n.once("end",s),t.on("unpipe",u);var c=U(n);t.on("drain",c);var f=!1;function d(){h("cleanup"),t.removeListener("close",v),t.removeListener("finish",g),t.removeListener("drain",c),t.removeListener("error",m),t.removeListener("unpipe",u),n.removeListener("end",l),n.removeListener("end",y),n.removeListener("data",p),f=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||c()}function p(e){h("ondata");var i=t.write(e);h("dest.write",i),!1===i&&((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==Z(r.pipes,t))&&!f&&(h("false write response, pause",r.awaitDrain),r.awaitDrain++),n.pause())}function m(e){h("onerror",e),y(),t.removeListener("error",m),0===o(t,"error")&&k(t,e)}function v(){t.removeListener("finish",g),y()}function g(){h("onfinish"),t.removeListener("close",v),y()}function y(){h("unpipe"),n.unpipe(t)}return n.on("data",p),A(t,"error",m),t.once("close",v),t.once("finish",g),t.emit("pipe",n),r.flowing||(h("pipe resume"),n.resume()),t},C.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o0,!1!==r.flowing&&this.resume()):"readable"===t&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,h("on readable",r.length,r.reading),r.length?B(this):r.reading||i.nextTick(z,this))),n},C.prototype.addListener=C.prototype.on,C.prototype.removeListener=function(t,e){var n=a.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(V,this),n},C.prototype.removeAllListeners=function(t){var e=a.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(V,this),e},C.prototype.resume=function(){var t=this._readableState;return t.flowing||(h("resume"),t.flowing=!t.readableListening,q(this,t)),t.paused=!1,this},C.prototype.pause=function(){return h("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(h("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},C.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(h("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){if(h("wrapped data"),n.decoder&&(i=n.decoder.write(i)),(!n.objectMode||null!==i&&void 0!==i)&&(n.objectMode||i&&i.length)){var o=e.push(i);o||(r=!0,t.pause())}})),t)void 0===this[i]&&"function"===typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o-1))throw new M(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(t,e,n){n(new y("_write()"))},O.prototype._writev=null,O.prototype.end=function(t,e,n){var r=this._writableState;return"function"===typeof t?(n=t,t=null,e=null):"function"===typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||q(this,r,n),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),O.prototype.destroy=d.destroy,O.prototype._undestroy=d.undestroy,O.prototype._destroy=function(t,e){e(t)}},2955:function(t,e,n){"use strict";var r,i=n(5606);function o(t,e,n){return e=a(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t){var e=s(t,"string");return"symbol"===typeof e?e:String(e)}function s(t,e){if("object"!==typeof t||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!==typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var u=n(6238),l=Symbol("lastResolve"),c=Symbol("lastReject"),h=Symbol("error"),f=Symbol("ended"),d=Symbol("lastPromise"),p=Symbol("handlePromise"),m=Symbol("stream");function v(t,e){return{value:t,done:e}}function g(t){var e=t[l];if(null!==e){var n=t[m].read();null!==n&&(t[d]=null,t[l]=null,t[c]=null,e(v(n,!1)))}}function y(t){i.nextTick(g,t)}function b(t,e){return function(n,r){t.then((function(){e[f]?n(v(void 0,!0)):e[p](n,r)}),r)}}var w=Object.getPrototypeOf((function(){})),_=Object.setPrototypeOf((r={get stream(){return this[m]},next:function(){var t=this,e=this[h];if(null!==e)return Promise.reject(e);if(this[f])return Promise.resolve(v(void 0,!0));if(this[m].destroyed)return new Promise((function(e,n){i.nextTick((function(){t[h]?n(t[h]):e(v(void 0,!0))}))}));var n,r=this[d];if(r)n=new Promise(b(r,this));else{var o=this[m].read();if(null!==o)return Promise.resolve(v(o,!1));n=new Promise(this[p])}return this[d]=n,n}},o(r,Symbol.asyncIterator,(function(){return this})),o(r,"return",(function(){var t=this;return new Promise((function(e,n){t[m].destroy(null,(function(t){t?n(t):e(v(void 0,!0))}))}))})),r),w),x=function(t){var e,n=Object.create(_,(e={},o(e,m,{value:t,writable:!0}),o(e,l,{value:null,writable:!0}),o(e,c,{value:null,writable:!0}),o(e,h,{value:null,writable:!0}),o(e,f,{value:t._readableState.endEmitted,writable:!0}),o(e,p,{value:function(t,e){var r=n[m].read();r?(n[d]=null,n[l]=null,n[c]=null,t(v(r,!1))):(n[l]=t,n[c]=e)},writable:!0}),e));return n[d]=null,u(t,(function(t){if(t&&"ERR_STREAM_PREMATURE_CLOSE"!==t.code){var e=n[c];return null!==e&&(n[d]=null,n[l]=null,n[c]=null,e(t)),void(n[h]=t)}var r=n[l];null!==r&&(n[d]=null,n[l]=null,n[c]=null,r(v(void 0,!0))),n[f]=!0})),t.on("readable",y.bind(null,n)),n};t.exports=x},2726:function(t,e,n){"use strict";function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";var e=this.head,n=""+e.data;while(e=e.next)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return f.alloc(0);var e=f.allocUnsafe(t>>>0),n=this.head,r=0;while(n)v(n.data,e,r),r+=n.data.length,n=n.next;return e}},{key:"consume",value:function(t,e){var n;return ti.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),t-=o,0===t){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=f.allocUnsafe(t),n=this.head,r=1;n.data.copy(e),t-=n.data.length;while(n=n.next){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),t-=o,0===t){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:m,value:function(t,e){return p(this,i(i({},e),{},{depth:0,customInspect:!1}))}}]),t}()},5896:function(t,e,n){"use strict";var r=n(5606);function i(t,e){var n=this,i=this._readableState&&this._readableState.destroyed,s=this._writableState&&this._writableState.destroyed;return i||s?(e?e(t):t&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(u,this,t)):r.nextTick(u,this,t)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,(function(t){!e&&t?n._writableState?n._writableState.errorEmitted?r.nextTick(a,n):(n._writableState.errorEmitted=!0,r.nextTick(o,n,t)):r.nextTick(o,n,t):e?(r.nextTick(a,n),e(t)):r.nextTick(a,n)})),this)}function o(t,e){u(t,e),a(t)}function a(t){t._writableState&&!t._writableState.emitClose||t._readableState&&!t._readableState.emitClose||t.emit("close")}function s(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function u(t,e){t.emit("error",e)}function l(t,e){var n=t._readableState,r=t._writableState;n&&n.autoDestroy||r&&r.autoDestroy?t.destroy(e):t.emit("error",e)}t.exports={destroy:i,undestroy:s,errorOrDestroy:l}},6238:function(t,e,n){"use strict";var r=n(6048).F.ERR_STREAM_PREMATURE_CLOSE;function i(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),i=0;i0;return c(t,a,s,(function(t){r||(r=t),t&&o.forEach(h),a||(o.forEach(h),i(r))}))}));return e.reduce(f)}t.exports=p},5291:function(t,e,n){"use strict";var r=n(6048).F.ERR_INVALID_OPT_VALUE;function i(t,e,n){return null!=t.highWaterMark?t.highWaterMark:e?t[n]:null}function o(t,e,n,o){var a=i(e,o,n);if(null!=a){if(!isFinite(a)||Math.floor(a)!==a||a<0){var s=o?n:"highWaterMark";throw new r(s,a)}return Math.floor(a)}return t.objectMode?16:16384}t.exports={getHighWaterMark:o}},345:function(t,e,n){t.exports=n(7007).EventEmitter},8399:function(t,e,n){e=t.exports=n(5412),e.Stream=e,e.Readable=e,e.Writable=n(6708),e.Duplex=n(5382),e.Transform=n(4610),e.PassThrough=n(3600),e.finished=n(6238),e.pipeline=n(7758)},2861:function(t,e,n){ +/*! safe-buffer. MIT License. Feross Aboukhadijeh */ +var r=n(8287),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,n){if("number"===typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!==typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"===typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!==typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},6897:function(t,e,n){"use strict";var r=n(453),i=n(41),o=n(592)(),a=n(5795),s=n(9675),u=r("%Math.floor%");t.exports=function(t,e){if("function"!==typeof t)throw new s("`fn` is not a function");if("number"!==typeof e||e<0||e>4294967295||u(e)!==e)throw new s("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],r=!0,l=!0;if("length"in t&&a){var c=a(t,"length");c&&!c.configurable&&(r=!1),c&&!c.writable&&(l=!1)}return(r||l||!n)&&(o?i(t,"length",e,!0,!0):i(t,"length",e)),t}},920:function(t,e,n){"use strict";var r=n(453),i=n(8075),o=n(8859),a=n(9675),s=r("%WeakMap%",!0),u=r("%Map%",!0),l=i("WeakMap.prototype.get",!0),c=i("WeakMap.prototype.set",!0),h=i("WeakMap.prototype.has",!0),f=i("Map.prototype.get",!0),d=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),m=function(t,e){for(var n,r=t;null!==(n=r.next);r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n},v=function(t,e){var n=m(t,e);return n&&n.value},g=function(t,e,n){var r=m(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}},y=function(t,e){return!!m(t,e)};t.exports=function(){var t,e,n,r={assert:function(t){if(!r.has(t))throw new a("Side channel does not contain "+o(t))},get:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(t)return l(t,r)}else if(u){if(e)return f(e,r)}else if(n)return v(n,r)},has:function(r){if(s&&r&&("object"===typeof r||"function"===typeof r)){if(t)return h(t,r)}else if(u){if(e)return p(e,r)}else if(n)return y(n,r);return!1},set:function(r,i){s&&r&&("object"===typeof r||"function"===typeof r)?(t||(t=new s),c(t,r,i)):u?(e||(e=new u),d(e,r,i)):(n||(n={key:{},next:null}),g(n,r,i))}};return r}},1568:function(t,e,n){var r=n(5537),i=n(6917),o=n(7510),a=n(6866),s=n(8835),u=e;u.request=function(t,e){t="string"===typeof t?s.parse(t):o(t);var i=-1===n.g.location.protocol.search(/^https?:$/)?"http:":"",a=t.protocol||i,u=t.hostname||t.host,l=t.port,c=t.path||"/";u&&-1!==u.indexOf(":")&&(u="["+u+"]"),t.url=(u?a+"//"+u:"")+(l?":"+l:"")+c,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var h=new r(t);return e&&h.on("response",e),h},u.get=function(t,e){var n=u.request(t,e);return n.end(),n},u.ClientRequest=r,u.IncomingMessage=i.IncomingMessage,u.Agent=function(){},u.Agent.defaultMaxSockets=4,u.globalAgent=new u.Agent,u.STATUS_CODES=a,u.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]},6688:function(t,e,n){var r;function i(){if(void 0!==r)return r;if(n.g.XMLHttpRequest){r=new n.g.XMLHttpRequest;try{r.open("GET",n.g.XDomainRequest?"/":"https://example.com")}catch(t){r=null}}else r=null;return r}function o(t){var e=i();if(!e)return!1;try{return e.responseType=t,e.responseType===t}catch(n){}return!1}function a(t){return"function"===typeof t}e.fetch=a(n.g.fetch)&&a(n.g.ReadableStream),e.writableStream=a(n.g.WritableStream),e.abortController=a(n.g.AbortController),e.arraybuffer=e.fetch||o("arraybuffer"),e.msstream=!e.fetch&&o("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&o("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||!!i()&&a(i().overrideMimeType),r=null},5537:function(t,e,n){var r=n(8287)["Buffer"],i=n(5606),o=n(6688),a=n(6698),s=n(6917),u=n(8399),l=s.IncomingMessage,c=s.readyStates;function h(t,e){return o.fetch&&e?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&t?"arraybuffer":"text"}var f=t.exports=function(t){var e,n=this;u.Writable.call(n),n._opts=t,n._body=[],n._headers={},t.auth&&n.setHeader("Authorization","Basic "+r.from(t.auth).toString("base64")),Object.keys(t.headers).forEach((function(e){n.setHeader(e,t.headers[e])}));var i=!0;if("disable-fetch"===t.mode||"requestTimeout"in t&&!o.abortController)i=!1,e=!0;else if("prefer-streaming"===t.mode)e=!1;else if("allow-wrong-content-type"===t.mode)e=!o.overrideMimeType;else{if(t.mode&&"default"!==t.mode&&"prefer-fast"!==t.mode)throw new Error("Invalid value for opts.mode");e=!0}n._mode=h(e,i),n._fetchTimer=null,n._socketTimeout=null,n._socketTimer=null,n.on("finish",(function(){n._onFinish()}))};function d(t){try{var e=t.status;return null!==e&&0!==e}catch(n){return!1}}a(f,u.Writable),f.prototype.setHeader=function(t,e){var n=this,r=t.toLowerCase();-1===p.indexOf(r)&&(n._headers[r]={name:t,value:e})},f.prototype.getHeader=function(t){var e=this._headers[t.toLowerCase()];return e?e.value:null},f.prototype.removeHeader=function(t){var e=this;delete e._headers[t.toLowerCase()]},f.prototype._onFinish=function(){var t=this;if(!t._destroyed){var e=t._opts;"timeout"in e&&0!==e.timeout&&t.setTimeout(e.timeout);var r=t._headers,a=null;"GET"!==e.method&&"HEAD"!==e.method&&(a=new Blob(t._body,{type:(r["content-type"]||{}).value||""}));var s=[];if(Object.keys(r).forEach((function(t){var e=r[t].name,n=r[t].value;Array.isArray(n)?n.forEach((function(t){s.push([e,t])})):s.push([e,n])})),"fetch"===t._mode){var u=null;if(o.abortController){var l=new AbortController;u=l.signal,t._fetchAbortController=l,"requestTimeout"in e&&0!==e.requestTimeout&&(t._fetchTimer=n.g.setTimeout((function(){t.emit("requestTimeout"),t._fetchAbortController&&t._fetchAbortController.abort()}),e.requestTimeout))}n.g.fetch(t._opts.url,{method:t._opts.method,headers:s,body:a||void 0,mode:"cors",credentials:e.withCredentials?"include":"same-origin",signal:u}).then((function(e){t._fetchResponse=e,t._resetTimers(!1),t._connect()}),(function(e){t._resetTimers(!0),t._destroyed||t.emit("error",e)}))}else{var h=t._xhr=new n.g.XMLHttpRequest;try{h.open(t._opts.method,t._opts.url,!0)}catch(f){return void i.nextTick((function(){t.emit("error",f)}))}"responseType"in h&&(h.responseType=t._mode),"withCredentials"in h&&(h.withCredentials=!!e.withCredentials),"text"===t._mode&&"overrideMimeType"in h&&h.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in e&&(h.timeout=e.requestTimeout,h.ontimeout=function(){t.emit("requestTimeout")}),s.forEach((function(t){h.setRequestHeader(t[0],t[1])})),t._response=null,h.onreadystatechange=function(){switch(h.readyState){case c.LOADING:case c.DONE:t._onXHRProgress();break}},"moz-chunked-arraybuffer"===t._mode&&(h.onprogress=function(){t._onXHRProgress()}),h.onerror=function(){t._destroyed||(t._resetTimers(!0),t.emit("error",new Error("XHR error")))};try{h.send(a)}catch(f){return void i.nextTick((function(){t.emit("error",f)}))}}}},f.prototype._onXHRProgress=function(){var t=this;t._resetTimers(!1),d(t._xhr)&&!t._destroyed&&(t._response||t._connect(),t._response._onXHRProgress(t._resetTimers.bind(t)))},f.prototype._connect=function(){var t=this;t._destroyed||(t._response=new l(t._xhr,t._fetchResponse,t._mode,t._resetTimers.bind(t)),t._response.on("error",(function(e){t.emit("error",e)})),t.emit("response",t._response))},f.prototype._write=function(t,e,n){var r=this;r._body.push(t),n()},f.prototype._resetTimers=function(t){var e=this;n.g.clearTimeout(e._socketTimer),e._socketTimer=null,t?(n.g.clearTimeout(e._fetchTimer),e._fetchTimer=null):e._socketTimeout&&(e._socketTimer=n.g.setTimeout((function(){e.emit("timeout")}),e._socketTimeout))},f.prototype.abort=f.prototype.destroy=function(t){var e=this;e._destroyed=!0,e._resetTimers(!0),e._response&&(e._response._destroyed=!0),e._xhr?e._xhr.abort():e._fetchAbortController&&e._fetchAbortController.abort(),t&&e.emit("error",t)},f.prototype.end=function(t,e,n){var r=this;"function"===typeof t&&(n=t,t=void 0),u.Writable.prototype.end.call(r,t,e,n)},f.prototype.setTimeout=function(t,e){var n=this;e&&n.once("timeout",e),n._socketTimeout=t,n._resetTimers(!1)},f.prototype.flushHeaders=function(){},f.prototype.setNoDelay=function(){},f.prototype.setSocketKeepAlive=function(){};var p=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]},6917:function(t,e,n){var r=n(5606),i=n(8287)["Buffer"],o=n(6688),a=n(6698),s=n(8399),u=e.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},l=e.IncomingMessage=function(t,e,n,a){var u=this;if(s.Readable.call(u),u._mode=n,u.headers={},u.rawHeaders=[],u.trailers={},u.rawTrailers=[],u.on("end",(function(){r.nextTick((function(){u.emit("close")}))})),"fetch"===n){if(u._fetchResponse=e,u.url=e.url,u.statusCode=e.status,u.statusMessage=e.statusText,e.headers.forEach((function(t,e){u.headers[e.toLowerCase()]=t,u.rawHeaders.push(e,t)})),o.writableStream){var l=new WritableStream({write:function(t){return a(!1),new Promise((function(e,n){u._destroyed?n():u.push(i.from(t))?e():u._resumeFetch=e}))},close:function(){a(!0),u._destroyed||u.push(null)},abort:function(t){a(!0),u._destroyed||u.emit("error",t)}});try{return void e.body.pipeTo(l).catch((function(t){a(!0),u._destroyed||u.emit("error",t)}))}catch(m){}}var c=e.body.getReader();function h(){c.read().then((function(t){u._destroyed||(a(t.done),t.done?u.push(null):(u.push(i.from(t.value)),h()))})).catch((function(t){a(!0),u._destroyed||u.emit("error",t)}))}h()}else{u._xhr=t,u._pos=0,u.url=t.responseURL,u.statusCode=t.status,u.statusMessage=t.statusText;var f=t.getAllResponseHeaders().split(/\r?\n/);if(f.forEach((function(t){var e=t.match(/^([^:]+):\s*(.*)/);if(e){var n=e[1].toLowerCase();"set-cookie"===n?(void 0===u.headers[n]&&(u.headers[n]=[]),u.headers[n].push(e[2])):void 0!==u.headers[n]?u.headers[n]+=", "+e[2]:u.headers[n]=e[2],u.rawHeaders.push(e[1],e[2])}})),u._charset="x-user-defined",!o.overrideMimeType){var d=u.rawHeaders["mime-type"];if(d){var p=d.match(/;\s*charset=([^;])(;|$)/);p&&(u._charset=p[1].toLowerCase())}u._charset||(u._charset="utf-8")}}};a(l,s.Readable),l.prototype._read=function(){var t=this,e=t._resumeFetch;e&&(t._resumeFetch=null,e())},l.prototype._onXHRProgress=function(t){var e=this,r=e._xhr,o=null;switch(e._mode){case"text":if(o=r.responseText,o.length>e._pos){var a=o.substr(e._pos);if("x-user-defined"===e._charset){for(var s=i.alloc(a.length),l=0;le._pos&&(e.push(i.from(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){t(!0),e.push(null)},c.readAsArrayBuffer(o);break}e._xhr.readyState===u.DONE&&"ms-stream"!==e._mode&&(t(!0),e.push(null))}},3141:function(t,e,n){"use strict";var r=n(2861).Buffer,i=r.isEncoding||function(t){switch(t=""+t,t&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(t){if(!t)return"utf8";var e;while(1)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function a(t){var e=o(t);if("string"!==typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}function s(t){var e;switch(this.encoding=a(t),this.encoding){case"utf16le":this.text=p,this.end=m,e=4;break;case"utf8":this.fillLast=h,e=4;break;case"base64":this.text=v,this.end=g,e=3;break;default:return this.write=y,void(this.end=b)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function u(t){return t<=127?0:t>>5===6?2:t>>4===14?3:t>>3===30?4:t>>6===2?-1:-2}function l(t,e,n){var r=e.length-1;if(r=0?(i>0&&(t.lastNeed=i-1),i):--r=0?(i>0&&(t.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0))}function c(t,e,n){if(128!==(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!==(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!==(192&e[2]))return t.lastNeed=2,"�"}}function h(t){var e=this.lastTotal-this.lastNeed,n=c(this,t,e);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function f(t,e){var n=l(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)}function d(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"�":e}function p(t,e){if((t.length-e)%2===0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function m(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function v(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function g(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function y(t){return t.toString(this.encoding)}function b(t){return t&&t.length?this.write(t):""}e.I=s,s.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(e=this.fillLast(t),void 0===e)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n>1];n%2===0&&(i>>=4),r+=i%16>=8?t[n].toUpperCase():t[n]}return r}t.fromPublicKey=e,t.test=n,t.toChecksumed=r})(r||(r={}))},8926:function(t,e,n){"use strict";n.d(e,{S:function(){return o}});var r=n(1176),i=n(8287);function o(...t){const e=r.keccak_256.create();return t.forEach((t=>{i.Buffer.isBuffer(t)?e.update(t):e.update(i.Buffer.from(t,"utf8"))})),i.Buffer.from(e.digest())}},1270:function(t,e,n){var r;/*! https://mths.be/punycode v1.4.1 by @mathias */t=n.nmd(t),function(i){e&&e.nodeType,t&&t.nodeType;var o="object"==typeof n.g&&n.g;o.global!==o&&o.window!==o&&o.self;var a,s=2147483647,u=36,l=1,c=26,h=38,f=700,d=72,p=128,m="-",v=/^xn--/,g=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,b={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},w=u-l,_=Math.floor,x=String.fromCharCode;function S(t){throw new RangeError(b[t])}function M(t,e){var n=t.length,r=[];while(n--)r[n]=e(t[n]);return r}function k(t,e){var n=t.split("@"),r="";n.length>1&&(r=n[0]+"@",t=n[1]),t=t.replace(y,".");var i=t.split("."),o=M(i,e).join(".");return r+o}function E(t){var e,n,r=[],i=0,o=t.length;while(i=55296&&e<=56319&&i65535&&(t-=65536,e+=x(t>>>10&1023|55296),t=56320|1023&t),e+=x(t),e})).join("")}function O(t){return t-48<10?t-22:t-65<26?t-65:t-97<26?t-97:u}function C(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function N(t,e,n){var r=0;for(t=n?_(t/f):t>>1,t+=_(t/e);t>w*c>>1;r+=u)t=_(t/w);return _(r+(w+1)*t/(t+h))}function T(t){var e,n,r,i,o,a,h,f,v,g,y=[],b=t.length,w=0,x=p,M=d;for(n=t.lastIndexOf(m),n<0&&(n=0),r=0;r=128&&S("not-basic"),y.push(t.charCodeAt(r));for(i=n>0?n+1:0;i=b&&S("invalid-input"),f=O(t.charCodeAt(i++)),(f>=u||f>_((s-w)/a))&&S("overflow"),w+=f*a,v=h<=M?l:h>=M+c?c:h-M,f_(s/g)&&S("overflow"),a*=g}e=y.length+1,M=N(w-o,e,0==o),_(w/e)>s-x&&S("overflow"),x+=_(w/e),w%=e,y.splice(w++,0,x)}return A(y)}function D(t){var e,n,r,i,o,a,h,f,v,g,y,b,w,M,k,A=[];for(t=E(t),b=t.length,e=p,n=0,o=d,a=0;a=e&&y_((s-n)/w)&&S("overflow"),n+=(h-e)*w,e=h,a=0;as&&S("overflow"),y==e){for(f=n,v=u;;v+=u){if(g=v<=o?l:v>=o+c?c:v-o,f-1?t.split(","):t},l="utf8=%26%2310003%3B",c="utf8=%E2%9C%93",h=function(t,e){var n,h={__proto__:null},f=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,d=e.parameterLimit===1/0?void 0:e.parameterLimit,p=f.split(e.delimiter,d),m=-1,v=e.charset;if(e.charsetSentinel)for(n=0;n-1&&(y=o(y)?[y]:y);var x=i.call(h,g);x&&"combine"===e.duplicates?h[g]=r.combine(h[g],y):x&&"last"!==e.duplicates||(h[g]=y)}return h},f=function(t,e,n,r){for(var i=r?e:u(e,n),o=t.length-1;o>=0;--o){var a,s=t[o];if("[]"===s&&n.parseArrays)a=n.allowEmptyArrays&&""===i?[]:[].concat(i);else{a=n.plainObjects?Object.create(null):{};var l="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,c=n.decodeDotInKeys?l.replace(/%2E/g,"."):l,h=parseInt(c,10);n.parseArrays||""!==c?!isNaN(h)&&s!==c&&String(h)===c&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(a=[],a[h]=i):"__proto__"!==c&&(a[c]=i):a={0:i}}i=a}return i},d=function(t,e,n,r){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,u=n.depth>0&&a.exec(o),l=u?o.slice(0,u.index):o,c=[];if(l){if(!n.plainObjects&&i.call(Object.prototype,l)&&!n.allowPrototypes)return;c.push(l)}var h=0;while(n.depth>0&&null!==(u=s.exec(o))&&h0?E.join(",")||null:void 0}];else if(u(g))D=g;else{var R=Object.keys(E);D=y?R.sort(y):R}var P=f?n.replace(/\./g,"%2E"):n,j=a&&u(E)&&1===E.length?P+"[]":P;if(s&&u(E)&&0===E.length)return j+"[]";for(var B=0;B0?b+y:""}},2795:function(t,e,n){"use strict";var r=n(5902),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t){while(t.length>1){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],i=0;i=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122||o===r.RFC1738&&(40===c||41===c)?u+=s.charAt(l):c<128?u+=a[c]:c<2048?u+=a[192|c>>6]+a[128|63&c]:c<55296||c>=57344?u+=a[224|c>>12]+a[128|c>>6&63]+a[128|63&c]:(l+=1,c=65536+((1023&c)<<10|1023&s.charCodeAt(l)),u+=a[240|c>>18]+a[128|c>>12&63]+a[128|c>>6&63]+a[128|63&c])}return u},d=function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],r=0;r",'"',"`"," ","\r","\n","\t"],l=["{","}","|","\\","^","`"].concat(u),c=["'"].concat(l),h=["%","/","?",";","#"].concat(c),f=["/","?","#"],d=255,p=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},y={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n(3098);function w(t,e,n){if(t&&"object"===typeof t&&t instanceof i)return t;var r=new i;return r.parse(t,e,n),r}function _(t){return"string"===typeof t&&(t=w(t)),t instanceof i?t.format():i.prototype.format.call(t)}function x(t,e){return w(t,!1,!0).resolve(e)}function S(t,e){return t?w(t,!1,!0).resolveObject(e):e}i.prototype.parse=function(t,e,n){if("string"!==typeof t)throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),a=-1!==i&&i127?R+="x":R+=I[P];if(!R.match(p)){var B=T.slice(0,O),$=T.slice(O+1),L=I.match(m);L&&(B.push(L[1]),$.unshift(L[2])),$.length&&(w="/"+$.join(".")+w),this.hostname=B.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),N||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",U=this.hostname||"";this.host=U+F,this.href+=this.host,N&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==w[0]&&(w="/"+w))}if(!v[S])for(O=0,D=c.length;O0)&&n.host.split("@");M&&(n.auth=M.shift(),n.hostname=M.shift(),n.host=n.hostname)}return n.search=t.search,n.query=t.query,null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!x.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=x.slice(-1)[0],E=(n.host||t.host||x.length>1)&&("."===k||".."===k)||""===k,A=0,O=x.length;O>=0;O--)k=x[O],"."===k?x.splice(O,1):".."===k?(x.splice(O,1),A++):A&&(x.splice(O,1),A--);if(!w&&!_)for(;A--;A)x.unshift("..");!w||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),E&&"/"!==x.join("/").substr(-1)&&x.push("");var C=""===x[0]||x[0]&&"/"===x[0].charAt(0);if(S){n.hostname=C?"":x.length?x.shift():"",n.host=n.hostname;M=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");M&&(n.auth=M.shift(),n.hostname=M.shift(),n.host=n.hostname)}return w=w||n.host&&x.length,w&&!C&&x.unshift(""),x.length>0?n.pathname=x.join("/"):(n.pathname=null,n.path=null),null===n.pathname&&null===n.search||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)},e.parse=w,e.resolve=x,e.resolveObject=S,e.format=_,e.Url=i},4643:function(t,e,n){var r=n(6763);function i(t,e){if(o("noDeprecation"))return t;var n=!1;function i(){if(!n){if(o("throwDeprecation"))throw new Error(e);o("traceDeprecation")?r.trace(e):r.warn(e),n=!0}return t.apply(this,arguments)}return i}function o(t){try{if(!n.g.localStorage)return!1}catch(r){return!1}var e=n.g.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}t.exports=i},1135:function(t){t.exports=function(t){return t&&"object"===typeof t&&"function"===typeof t.copy&&"function"===typeof t.fill&&"function"===typeof t.readUInt8}},9032:function(t,e,n){"use strict";var r=n(7244),i=n(8184),o=n(5767),a=n(5680);function s(t){return t.call.bind(t)}var u="undefined"!==typeof BigInt,l="undefined"!==typeof Symbol,c=s(Object.prototype.toString),h=s(Number.prototype.valueOf),f=s(String.prototype.valueOf),d=s(Boolean.prototype.valueOf);if(u)var p=s(BigInt.prototype.valueOf);if(l)var m=s(Symbol.prototype.valueOf);function v(t,e){if("object"!==typeof t)return!1;try{return e(t),!0}catch(n){return!1}}function g(t){return"undefined"!==typeof Promise&&t instanceof Promise||null!==t&&"object"===typeof t&&"function"===typeof t.then&&"function"===typeof t.catch}function y(t){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):a(t)||U(t)}function b(t){return"Uint8Array"===o(t)}function w(t){return"Uint8ClampedArray"===o(t)}function _(t){return"Uint16Array"===o(t)}function x(t){return"Uint32Array"===o(t)}function S(t){return"Int8Array"===o(t)}function M(t){return"Int16Array"===o(t)}function k(t){return"Int32Array"===o(t)}function E(t){return"Float32Array"===o(t)}function A(t){return"Float64Array"===o(t)}function O(t){return"BigInt64Array"===o(t)}function C(t){return"BigUint64Array"===o(t)}function N(t){return"[object Map]"===c(t)}function T(t){return"undefined"!==typeof Map&&(N.working?N(t):t instanceof Map)}function D(t){return"[object Set]"===c(t)}function I(t){return"undefined"!==typeof Set&&(D.working?D(t):t instanceof Set)}function R(t){return"[object WeakMap]"===c(t)}function P(t){return"undefined"!==typeof WeakMap&&(R.working?R(t):t instanceof WeakMap)}function j(t){return"[object WeakSet]"===c(t)}function B(t){return j(t)}function $(t){return"[object ArrayBuffer]"===c(t)}function L(t){return"undefined"!==typeof ArrayBuffer&&($.working?$(t):t instanceof ArrayBuffer)}function F(t){return"[object DataView]"===c(t)}function U(t){return"undefined"!==typeof DataView&&(F.working?F(t):t instanceof DataView)}e.isArgumentsObject=r,e.isGeneratorFunction=i,e.isTypedArray=a,e.isPromise=g,e.isArrayBufferView=y,e.isUint8Array=b,e.isUint8ClampedArray=w,e.isUint16Array=_,e.isUint32Array=x,e.isInt8Array=S,e.isInt16Array=M,e.isInt32Array=k,e.isFloat32Array=E,e.isFloat64Array=A,e.isBigInt64Array=O,e.isBigUint64Array=C,N.working="undefined"!==typeof Map&&N(new Map),e.isMap=T,D.working="undefined"!==typeof Set&&D(new Set),e.isSet=I,R.working="undefined"!==typeof WeakMap&&R(new WeakMap),e.isWeakMap=P,j.working="undefined"!==typeof WeakSet&&j(new WeakSet),e.isWeakSet=B,$.working="undefined"!==typeof ArrayBuffer&&$(new ArrayBuffer),e.isArrayBuffer=L,F.working="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView&&F(new DataView(new ArrayBuffer(1),0,1)),e.isDataView=U;var V="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function z(t){return"[object SharedArrayBuffer]"===c(t)}function q(t){return"undefined"!==typeof V&&("undefined"===typeof z.working&&(z.working=z(new V)),z.working?z(t):t instanceof V)}function H(t){return"[object AsyncFunction]"===c(t)}function G(t){return"[object Map Iterator]"===c(t)}function W(t){return"[object Set Iterator]"===c(t)}function Y(t){return"[object Generator]"===c(t)}function K(t){return"[object WebAssembly.Module]"===c(t)}function Z(t){return v(t,h)}function X(t){return v(t,f)}function J(t){return v(t,d)}function Q(t){return u&&v(t,p)}function tt(t){return l&&v(t,m)}function et(t){return Z(t)||X(t)||J(t)||Q(t)||tt(t)}function nt(t){return"undefined"!==typeof Uint8Array&&(L(t)||q(t))}e.isSharedArrayBuffer=q,e.isAsyncFunction=H,e.isMapIterator=G,e.isSetIterator=W,e.isGeneratorObject=Y,e.isWebAssemblyCompiledModule=K,e.isNumberObject=Z,e.isStringObject=X,e.isBooleanObject=J,e.isBigIntObject=Q,e.isSymbolObject=tt,e.isBoxedPrimitive=et,e.isAnyArrayBuffer=nt,["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(t){Object.defineProperty(e,t,{enumerable:!1,value:function(){throw new Error(t+" is not supported in userland")}})}))},537:function(t,e,n){var r=n(5606),i=n(6763),o=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},r=0;r=i)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return t}})),s=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),_(n)?r.showHidden=n:n&&e._extend(r,n),A(r.showHidden)&&(r.showHidden=!1),A(r.depth)&&(r.depth=2),A(r.colors)&&(r.colors=!1),A(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=h),p(r,t,r.depth)}function h(t,e){var n=c.styles[e];return n?"["+c.colors[n][0]+"m"+t+"["+c.colors[n][1]+"m":t}function f(t,e){return t}function d(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}function p(t,n,r){if(t.customInspect&&n&&D(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return k(i)||(i=p(t,i,r)),i}var o=m(t,n);if(o)return o;var a=Object.keys(n),s=d(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),T(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return v(n);if(0===a.length){if(D(n)){var u=n.name?": "+n.name:"";return t.stylize("[Function"+u+"]","special")}if(O(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(N(n))return t.stylize(Date.prototype.toString.call(n),"date");if(T(n))return v(n)}var l,c="",h=!1,f=["{","}"];if(w(n)&&(h=!0,f=["[","]"]),D(n)){var _=n.name?": "+n.name:"";c=" [Function"+_+"]"}return O(n)&&(c=" "+RegExp.prototype.toString.call(n)),N(n)&&(c=" "+Date.prototype.toUTCString.call(n)),T(n)&&(c=" "+v(n)),0!==a.length||h&&0!=n.length?r<0?O(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),l=h?g(t,n,r,s,a):a.map((function(e){return y(t,n,r,s,e,h)})),t.seen.pop(),b(l,c,f)):f[0]+c+f[1]}function m(t,e){if(A(e))return t.stylize("undefined","undefined");if(k(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return M(e)?t.stylize(""+e,"number"):_(e)?t.stylize(""+e,"boolean"):x(e)?t.stylize("null","null"):void 0}function v(t){return"["+Error.prototype.toString.call(t)+"]"}function g(t,e,n,r,i){for(var o=[],a=0,s=e.length;a-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").slice(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n"))):s=t.stylize("[Circular]","special")),A(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function b(t,e,n){var r=t.reduce((function(t,e){return e.indexOf("\n")>=0&&0,t+e.replace(/\u001b\[\d\d?m/g,"").length+1}),0);return r>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function w(t){return Array.isArray(t)}function _(t){return"boolean"===typeof t}function x(t){return null===t}function S(t){return null==t}function M(t){return"number"===typeof t}function k(t){return"string"===typeof t}function E(t){return"symbol"===typeof t}function A(t){return void 0===t}function O(t){return C(t)&&"[object RegExp]"===R(t)}function C(t){return"object"===typeof t&&null!==t}function N(t){return C(t)&&"[object Date]"===R(t)}function T(t){return C(t)&&("[object Error]"===R(t)||t instanceof Error)}function D(t){return"function"===typeof t}function I(t){return null===t||"boolean"===typeof t||"number"===typeof t||"string"===typeof t||"symbol"===typeof t||"undefined"===typeof t}function R(t){return Object.prototype.toString.call(t)}function P(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(t=t.toUpperCase(),!s[t])if(u.test(t)){var n=r.pid;s[t]=function(){var r=e.format.apply(e,arguments);i.error("%s %d: %s",t,n,r)}}else s[t]=function(){};return s[t]},e.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.types=n(9032),e.isArray=w,e.isBoolean=_,e.isNull=x,e.isNullOrUndefined=S,e.isNumber=M,e.isString=k,e.isSymbol=E,e.isUndefined=A,e.isRegExp=O,e.types.isRegExp=O,e.isObject=C,e.isDate=N,e.types.isDate=N,e.isError=T,e.types.isNativeError=T,e.isFunction=D,e.isPrimitive=I,e.isBuffer=n(1135);var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function B(){var t=new Date,e=[P(t.getHours()),P(t.getMinutes()),P(t.getSeconds())].join(":");return[t.getDate(),j[t.getMonth()],e].join(" ")}function $(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){i.log("%s - %s",B(),e.format.apply(e,arguments))},e.inherits=n(6698),e._extend=function(t,e){if(!e||!C(e))return t;var n=Object.keys(e),r=n.length;while(r--)t[n[r]]=e[n[r]];return t};var L="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function F(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}function U(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function e(){for(var e=[],n=0;n(void 0!==e&&a(e,t,n),"")}function r(t){return(e,n)=>(null!==e&&a(e,t,n),"")}Object.defineProperty(e,"__esModule",{value:!0}),e.optional=n,e.nullable=r;class i{constructor(t){this.scheme=t}test(t,e){return a(t,this.scheme,e)}}e.Validator=i;class o extends Error{constructor(t,e){super(e?`${e}: ${t}`:t),this.rawMessage=t,this.context=e}}function a(t,e,n){if(Array.isArray(e)){if(!Array.isArray(t))throw new o("expected array",n||"");t.forEach(((t,r)=>a(t,e[0],n?`${n}.#${r}`:`#${r}`)))}else if(e instanceof Function){const r=e(t,n);if(r)throw new o(r,n||"")}else{if(!(t instanceof Object))throw new o("expected object",n||"");for(const r in e)e.hasOwnProperty(r)&&a(t[r],e[r],n?`${n}.${r}`:r)}return t}e.ValidationError=o,o.prototype.name="ValidationError",e.validate=a},5261:function(t,e,n){"use strict";n.d(e,{Dr:function(){return Et}});var r=n(6763),i=function(t){return F(["text","password","search","email","tel","url","textarea","number"],t.type)},o=function(t){return F(["radio","checkbox"],t.type)},a=function(t){return F(["date","week","month","datetime-local","time"],t.type)},s=function(t,e){return t.getAttribute("data-vv-"+e)},u=function(){var t=[],e=arguments.length;while(e--)t[e]=arguments[e];return t.every((function(t){return null===t||void 0===t}))},l=function(){return{untouched:!0,touched:!1,dirty:!1,pristine:!0,valid:null,invalid:null,validated:!1,pending:!1,required:!1,changed:!1}},c=function(t,e){if(t instanceof RegExp&&e instanceof RegExp)return c(t.source,e.source)&&c(t.flags,e.flags);if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(var n=0;n0)e[n]=arguments[n+1];if(x(Object.assign))return Object.assign.apply(Object,[t].concat(e));if(null==t)throw new TypeError("Cannot convert undefined or null to object");var r=Object(t);return e.forEach((function(t){null!=t&&Object.keys(t).forEach((function(e){r[e]=t[e]}))})),r},C=0,N="{id}",T=function(){C>=9999&&(C=0,N=N.replace("{id}","_{id}")),C++;var t=N.replace("{id}",String(C));return t},D=function(t,e){for(var n=Array.isArray(t)?t:A(t),r=0;r=0&&t.maxLength<524288&&(e=g("max:"+t.maxLength,e)),t.minLength>0&&(e=g("min:"+t.minLength,e)),"number"===t.type&&(e=g("decimal",e),""!==t.min&&(e=g("min_value:"+t.min,e)),""!==t.max&&(e=g("max_value:"+t.max,e))),e;if(a(t)){var n=t.step&&Number(t.step)<60?"HH:mm:ss":"HH:mm";if("date"===t.type)return g("date_format:YYYY-MM-DD",e);if("datetime-local"===t.type)return g("date_format:YYYY-MM-DDT"+n,e);if("month"===t.type)return g("date_format:YYYY-MM",e);if("week"===t.type)return g("date_format:YYYY-[W]WW",e);if("time"===t.type)return g("date_format:"+n,e)}return e},$=function(t){return x(Object.values)?Object.values(t):Object.keys(t).map((function(e){return t[e]}))},L=function(t){var e=null;if(F(t,":")&&(e=t.split(":").pop(),t=t.replace(":"+e,"")),"#"===t[0])return{id:t.slice(1),rule:e,name:null,scope:null};var n=null,r=t;if(F(t,".")){var i=t.split(".");n=i[0],r=i.slice(1).join(".")}return{id:null,scope:n,name:r,rule:e}},F=function(t,e){return-1!==t.indexOf(e)},U=function(t){return Array.isArray(t)&&0===t.length},V="en",z=function(t){void 0===t&&(t={}),this.container={},this.merge(t)},q={locale:{configurable:!0}}; +/** + * vee-validate v2.1.5 + * (c) 2019 Abdelrahman Awad + * @license MIT + */q.locale.get=function(){return V},q.locale.set=function(t){V=t||"en"},z.prototype.hasLocale=function(t){return!!this.container[t]},z.prototype.setDateFormat=function(t,e){this.container[t]||(this.container[t]={}),this.container[t].dateFormat=e},z.prototype.getDateFormat=function(t){return this.container[t]&&this.container[t].dateFormat?this.container[t].dateFormat:null},z.prototype.getMessage=function(t,e,n){var r=null;return r=this.hasMessage(t,e)?this.container[t].messages[e]:this._getDefaultMessage(t),x(r)?r.apply(void 0,n):r},z.prototype.getFieldMessage=function(t,e,n,r){if(!this.hasLocale(t))return this.getMessage(t,n,r);var i=this.container[t].custom&&this.container[t].custom[e];if(!i||!i[n])return this.getMessage(t,n,r);var o=i[n];return x(o)?o.apply(void 0,r):o},z.prototype._getDefaultMessage=function(t){return this.hasMessage(t,"_default")?this.container[t].messages._default:this.container.en.messages._default},z.prototype.getAttribute=function(t,e,n){return void 0===n&&(n=""),this.hasAttribute(t,e)?this.container[t].attributes[e]:n},z.prototype.hasMessage=function(t,e){return!!(this.hasLocale(t)&&this.container[t].messages&&this.container[t].messages[e])},z.prototype.hasAttribute=function(t,e){return!!(this.hasLocale(t)&&this.container[t].attributes&&this.container[t].attributes[e])},z.prototype.merge=function(t){j(this.container,t)},z.prototype.setMessage=function(t,e,n){this.hasLocale(t)||(this.container[t]={messages:{},attributes:{}}),this.container[t].messages[e]=n},z.prototype.setAttribute=function(t,e,n){this.hasLocale(t)||(this.container[t]={messages:{},attributes:{}}),this.container[t].attributes[e]=n},Object.defineProperties(z.prototype,q);var H={default:new z({en:{messages:{},attributes:{},custom:{}}})},G="default",W=function(){};W._checkDriverName=function(t){if(!t)throw w("you must provide a name to the dictionary driver")},W.setDriver=function(t,e){void 0===e&&(e=null),this._checkDriverName(t),e&&(H[t]=e),G=t},W.getDriver=function(){return H[G]};var Y=function t(e,n){void 0===e&&(e=null),void 0===n&&(n=null),this.vmId=n||null,this.items=e&&e instanceof t?e.items:[]};function K(t){return t.data?t.data.model?t.data.model:!!t.data.directives&&D(t.data.directives,(function(t){return"model"===t.name})):null}function Z(t){return Array.isArray(t)?t:Array.isArray(t.children)?t.children:t.componentOptions&&Array.isArray(t.componentOptions.children)?t.componentOptions.children:[]}function X(t){if(K(t))return[t];var e=Z(t);return e.reduce((function(t,e){var n=X(e);return n.length&&t.push.apply(t,n),t}),[])}function J(t){return t.componentOptions?t.componentOptions.Ctor.options.model:null}function Q(t,e,n){if(x(t[e])){var r=t[e];t[e]=[r]}Array.isArray(t[e])?t[e].push(n):u(t[e])&&(t[e]=[n])}function tt(t,e,n){u(t.data.on)&&(t.data.on={}),Q(t.data.on,e,n)}function et(t,e,n){t.componentOptions.listeners||(t.componentOptions.listeners={}),Q(t.componentOptions.listeners,e,n)}function nt(t,e,n){t.componentOptions&&et(t,e,n),tt(t,e,n)}function rt(t,e){if(t.componentOptions){var n=J(t)||{event:"input"},r=n.event;return r}return e&&e.modifiers&&e.modifiers.lazy?"change":t.data.attrs&&i({type:t.data.attrs.type||"text"})?"input":"change"}function it(t,e){return Object.keys(t).reduce((function(n,r){return t[r].forEach((function(n){n.context||(t[r].context=e,n.data||(n.data={}),n.data.slot=r)})),n.concat(t[r])}),[])}function ot(t,e){return Array.isArray(e)&&1===e.length?e[0]:e}Y.prototype["function"===typeof Symbol?Symbol.iterator:"@@iterator"]=function(){var t=this,e=0;return{next:function(){return{value:t.items[e++],done:e>t.items.length}}}},Y.prototype.add=function(t){var e;(e=this.items).push.apply(e,this._normalizeError(t))},Y.prototype._normalizeError=function(t){var e=this;return Array.isArray(t)?t.map((function(t){return t.scope=u(t.scope)?null:t.scope,t.vmId=u(t.vmId)?e.vmId||null:t.vmId,t})):(t.scope=u(t.scope)?null:t.scope,t.vmId=u(t.vmId)?this.vmId||null:t.vmId,[t])},Y.prototype.regenerate=function(){this.items.forEach((function(t){t.msg=x(t.regenerate)?t.regenerate():t.msg}))},Y.prototype.update=function(t,e){var n=D(this.items,(function(e){return e.id===t}));if(n){var r=this.items.indexOf(n);this.items.splice(r,1),n.scope=e.scope,this.items.push(n)}},Y.prototype.all=function(t){var e=this,n=function(n){var r=!0,i=!0;return u(t)||(r=n.scope===t),u(e.vmId)||(i=n.vmId===e.vmId),i&&r};return this.items.filter(n).map((function(t){return t.msg}))},Y.prototype.any=function(t){var e=this,n=function(n){var r=!0,i=!0;return u(t)||(r=n.scope===t),u(e.vmId)||(i=n.vmId===e.vmId),i&&r};return!!this.items.filter(n).length},Y.prototype.clear=function(t){var e=this,n=u(this.vmId)?function(){return!0}:function(t){return t.vmId===e.vmId};u(t)&&(t=null);for(var r=0;rt.items.length}}}},bt.length.get=function(){return this.items.length},yt.prototype.find=function(t){return D(this.items,(function(e){return e.matches(t)}))},yt.prototype.filter=function(t){return Array.isArray(t)?this.items.filter((function(e){return t.some((function(t){return e.matches(t)}))})):this.items.filter((function(e){return e.matches(t)}))},yt.prototype.map=function(t){return this.items.map(t)},yt.prototype.remove=function(t){var e=null;if(e=t instanceof vt?t:this.find(t),!e)return null;var n=this.items.indexOf(e);return this.items.splice(n,1),e},yt.prototype.push=function(t){if(!(t instanceof vt))throw w("FieldBag only accepts instances of Field that has an id defined.");if(!t.id)throw w("Field id must be defined.");if(this.find({id:t.id}))throw w("Field with id "+t.id+" is already added.");this.items.push(t)},Object.defineProperties(yt.prototype,bt);var wt=function(t,e){this.id=e._uid,this._base=t,this._paused=!1,this.errors=new Y(t.errors,this.id)},_t={flags:{configurable:!0},rules:{configurable:!0},fields:{configurable:!0},dictionary:{configurable:!0},locale:{configurable:!0}};_t.flags.get=function(){var t=this;return this._base.fields.items.filter((function(e){return e.vmId===t.id})).reduce((function(t,e){return e.scope&&(t["$"+e.scope]||(t["$"+e.scope]={}),t["$"+e.scope][e.name]=e.flags),t[e.name]=e.flags,t}),{})},_t.rules.get=function(){return this._base.rules},_t.fields.get=function(){return new yt(this._base.fields.filter({vmId:this.id}))},_t.dictionary.get=function(){return this._base.dictionary},_t.locale.get=function(){return this._base.locale},_t.locale.set=function(t){this._base.locale=t},wt.prototype.localize=function(){var t,e=[],n=arguments.length;while(n--)e[n]=arguments[n];return(t=this._base).localize.apply(t,e)},wt.prototype.update=function(){var t,e=[],n=arguments.length;while(n--)e[n]=arguments[n];return(t=this._base).update.apply(t,e)},wt.prototype.attach=function(t){var e=O({},t,{vmId:this.id});return this._base.attach(e)},wt.prototype.pause=function(){this._paused=!0},wt.prototype.resume=function(){this._paused=!1},wt.prototype.remove=function(t){return this._base.remove(t)},wt.prototype.detach=function(t,e){return this._base.detach(t,e,this.id)},wt.prototype.extend=function(){var t,e=[],n=arguments.length;while(n--)e[n]=arguments[n];return(t=this._base).extend.apply(t,e)},wt.prototype.validate=function(t,e,n){return void 0===n&&(n={}),this._paused?Promise.resolve(!0):this._base.validate(t,e,O({},{vmId:this.id},n||{}))},wt.prototype.validateAll=function(t,e){return void 0===e&&(e={}),this._paused?Promise.resolve(!0):this._base.validateAll(t,O({},{vmId:this.id},e||{}))},wt.prototype.validateScopes=function(t){return void 0===t&&(t={}),this._paused?Promise.resolve(!0):this._base.validateScopes(O({},{vmId:this.id},t||{}))},wt.prototype.destroy=function(){delete this.id,delete this._base},wt.prototype.reset=function(t){return this._base.reset(Object.assign({},t||{},{vmId:this.id}))},wt.prototype.flag=function(){var t,e=[],n=arguments.length;while(n--)e[n]=arguments[n];return(t=this._base).flag.apply(t,e.concat([this.id]))},Object.defineProperties(wt.prototype,_t);var xt=function(t){return!(!_(t)||!t.$validator)},St={provide:function(){return this.$validator&&!I(this.$vnode)?{$validator:this.$validator}:{}},beforeCreate:function(){if(!I(this.$vnode)&&!1!==this.$options.$__veeInject){this.$parent||Qt.configure(this.$options.$_veeValidate||{});var t=Qt.resolveConfig(this);(!this.$parent||this.$options.$_veeValidate&&/new/.test(this.$options.$_veeValidate.validator))&&(this.$validator=new wt(Qt._validator,this));var e=xt(this.$options.inject);if(this.$validator||!t.inject||e||(this.$validator=new wt(Qt._validator,this)),e||this.$validator){if(!e&&this.$validator){var n=this.$options._base;n.util.defineReactive(this.$validator,"errors",this.$validator.errors)}this.$options.computed||(this.$options.computed={}),this.$options.computed[t.errorBagName||"errors"]=function(){return this.$validator.errors},this.$options.computed[t.fieldsBagName||"fields"]=function(){return this.$validator.fields.items.reduce((function(t,e){return e.scope?(t["$"+e.scope]||(t["$"+e.scope]={}),t["$"+e.scope][e.name]=e.flags,t):(t[e.name]=e.flags,t)}),{})}}}},beforeDestroy:function(){this.$validator&&this._uid===this.$validator.id&&this.$validator.errors.clear()}};function Mt(t,e){return e&&e.$validator?e.$validator.fields.find({id:t._veeValidateId}):null}var kt={bind:function(t,e,n){var r=n.context.$validator;if(r){var i=at.generate(t,e,n);r.attach(i)}},inserted:function(t,e,n){var r=Mt(t,n.context),i=at.resolveScope(t,e,n);r&&i!==r.scope&&(r.update({scope:i}),r.updated=!1)},update:function(t,e,n){var r=Mt(t,n.context);if(!(!r||r.updated&&c(e.value,e.oldValue))){var i=at.resolveScope(t,e,n),o=at.resolveRules(t,e,n);r.update({scope:i,rules:o})}},unbind:function(t,e,n){var r=n.context,i=Mt(t,r);i&&r.$validator.detach(i)}},Et=function(t,e){void 0===e&&(e={fastExit:!0}),this.errors=new Y,this.fields=new yt,this._createFields(t),this.paused=!1,this.fastExit=!!u(e&&e.fastExit)||e.fastExit},At={rules:{configurable:!0},dictionary:{configurable:!0},flags:{configurable:!0},locale:{configurable:!0}},Ot={rules:{configurable:!0},dictionary:{configurable:!0},locale:{configurable:!0}};Ot.rules.get=function(){return ut.rules},At.rules.get=function(){return ut.rules},At.dictionary.get=function(){return ne.i18nDriver},Ot.dictionary.get=function(){return ne.i18nDriver},At.flags.get=function(){return this.fields.items.reduce((function(t,e){var n;return e.scope?(t["$"+e.scope]=(n={},n[e.name]=e.flags,n),t):(t[e.name]=e.flags,t)}),{})},At.locale.get=function(){return Et.locale},At.locale.set=function(t){Et.locale=t},Ot.locale.get=function(){return ne.i18nDriver.locale},Ot.locale.set=function(t){var e=t!==ne.i18nDriver.locale;ne.i18nDriver.locale=t,e&&ne.instance&&ne.instance._vm&&ne.instance._vm.$emit("localeChanged")},Et.create=function(t,e){return new Et(t,e)},Et.extend=function(t,e,n){void 0===n&&(n={}),Et._guardExtend(t,e),Et._merge(t,{validator:e,paramNames:n&&n.paramNames,options:O({},{hasTarget:!1,immediate:!0},n||{})})},Et.remove=function(t){ut.remove(t)},Et.isTargetRule=function(t){return ut.isTargetRule(t)},Et.prototype.localize=function(t,e){Et.localize(t,e)},Et.localize=function(t,e){var n;if(_(t))ne.i18nDriver.merge(t);else{if(e){var r=t||e.name;e=O({},e),ne.i18nDriver.merge((n={},n[r]=e,n))}t&&(Et.locale=t)}},Et.prototype.attach=function(t){var e=this,n=t.initialValue,r=new vt(t);return this.fields.push(r),r.immediate?ne.instance._vm.$nextTick((function(){return e.validate("#"+r.id,n||r.value,{vmId:t.vmId})})):this._validate(r,n||r.value,{initial:!0}).then((function(t){r.flags.valid=t.valid,r.flags.invalid=!t.valid})),r},Et.prototype.flag=function(t,e,n){void 0===n&&(n=null);var r=this._resolveField(t,void 0,n);r&&e&&r.setFlags(e)},Et.prototype.detach=function(t,e,n){var r=x(t.destroy)?t:this._resolveField(t,e,n);r&&(r.destroy(),this.errors.remove(r.name,r.scope,r.vmId),this.fields.remove(r))},Et.prototype.extend=function(t,e,n){void 0===n&&(n={}),Et.extend(t,e,n)},Et.prototype.reset=function(t){var e=this;return ne.instance._vm.$nextTick().then((function(){return ne.instance._vm.$nextTick()})).then((function(){e.fields.filter(t).forEach((function(n){n.waitFor(null),n.reset(),e.errors.remove(n.name,n.scope,t&&t.vmId)}))}))},Et.prototype.update=function(t,e){var n=e.scope,r=this._resolveField("#"+t);r&&this.errors.update(t,{scope:n})},Et.prototype.remove=function(t){Et.remove(t)},Et.prototype.validate=function(t,e,n){var r=this;void 0===n&&(n={});var i=n.silent,o=n.vmId;if(this.paused)return Promise.resolve(!0);if(u(t))return this.validateScopes({silent:i,vmId:o});if("*"===t)return this.validateAll(void 0,{silent:i,vmId:o});if(/^(.+)\.\*$/.test(t)){var a=t.match(/^(.+)\.\*$/)[1];return this.validateAll(a)}var s=this._resolveField(t);if(!s)return this._handleFieldNotFound(name);i||(s.flags.pending=!0),void 0===e&&(e=s.value);var l=this._validate(s,e);return s.waitFor(l),l.then((function(t){return!i&&s.isWaitingFor(l)&&(s.waitFor(null),r._handleValidationResults([t],o)),t.valid}))},Et.prototype.pause=function(){return this.paused=!0,this},Et.prototype.resume=function(){return this.paused=!1,this},Et.prototype.validateAll=function(t,e){var n=this;void 0===e&&(e={});var r=e.silent,i=e.vmId;if(this.paused)return Promise.resolve(!0);var o=null,a=!1;return"string"===typeof t?o={scope:t,vmId:i}:_(t)?(o=Object.keys(t).map((function(t){return{name:t,vmId:i,scope:null}})),a=!0):o=Array.isArray(t)?t.map((function(t){return{name:t,vmId:i}})):{scope:null,vmId:i},Promise.all(this.fields.filter(o).map((function(e){return n._validate(e,a?t[e.name]:e.value)}))).then((function(t){return r||n._handleValidationResults(t,i),t.every((function(t){return t.valid}))}))},Et.prototype.validateScopes=function(t){var e=this;void 0===t&&(t={});var n=t.silent,r=t.vmId;return this.paused?Promise.resolve(!0):Promise.all(this.fields.filter({vmId:r}).map((function(t){return e._validate(t,t.value)}))).then((function(t){return n||e._handleValidationResults(t,r),t.every((function(t){return t.valid}))}))},Et.prototype.verify=function(t,e,n){void 0===n&&(n={});var r={name:n&&n.name||"{field}",rules:y(e),bails:d("bails",n,!0)};r.isRequired=r.rules.required;var i=Object.keys(r.rules).filter(Et.isTargetRule);return i.length&&n&&_(n.values)&&i.forEach((function(t){var e=r.rules[t],i=e[0],o=e.slice(1);r.rules[t]=[n.values[i]].concat(o)})),this._validate(r,t).then((function(t){return{valid:t.valid,errors:t.errors.map((function(t){return t.msg}))}}))},Et.prototype.destroy=function(){ne.instance._vm.$off("localeChanged")},Et.prototype._createFields=function(t){var e=this;t&&Object.keys(t).forEach((function(n){var r=O({},{name:n,rules:t[n]});e.attach(r)}))},Et.prototype._getDateFormat=function(t){var e=null;return t.date_format&&Array.isArray(t.date_format)&&(e=t.date_format[0]),e||ne.i18nDriver.getDateFormat(this.locale)},Et.prototype._formatErrorMessage=function(t,e,n,r){void 0===n&&(n={}),void 0===r&&(r=null);var i=this._getFieldDisplayName(t),o=this._getLocalizedParams(e,r);return ne.i18nDriver.getFieldMessage(this.locale,t.name,e.name,[i,o,n])},Et.prototype._convertParamObjectToArray=function(t,e){if(Array.isArray(t))return t;var n=ut.getParamNames(e);return n&&_(t)?n.reduce((function(e,n){return n in t&&e.push(t[n]),e}),[]):t},Et.prototype._getLocalizedParams=function(t,e){void 0===e&&(e=null);var n=this._convertParamObjectToArray(t.params,t.name);if(t.options.hasTarget&&n&&n[0]){var r=e||ne.i18nDriver.getAttribute(this.locale,n[0],n[0]);return[r].concat(n.slice(1))}return n},Et.prototype._getFieldDisplayName=function(t){return t.alias||ne.i18nDriver.getAttribute(this.locale,t.name,t.name)},Et.prototype._convertParamArrayToObj=function(t,e){var n=ut.getParamNames(e);if(!n)return t;if(_(t)){var r=n.some((function(e){return-1!==Object.keys(t).indexOf(e)}));if(r)return t;t=[t]}return t.reduce((function(t,e,r){return t[n[r]]=e,t}),{})},Et.prototype._test=function(t,e,n){var r=this,i=ut.getValidatorMethod(n.name),o=Array.isArray(n.params)?A(n.params):n.params;o||(o=[]);var a=null;if(!i||"function"!==typeof i)return Promise.reject(w("No such validator '"+n.name+"' exists."));if(n.options.hasTarget&&t.dependencies){var s=D(t.dependencies,(function(t){return t.name===n.name}));s&&(a=s.field.alias,o=[s.field.value].concat(o.slice(1)))}else"required"===n.name&&t.rejectsFalse&&(o=o.length?o:[!0]);if(n.options.isDate){var u=this._getDateFormat(t.rules);"date_format"!==n.name&&o.push(u)}var l=i(e,this._convertParamArrayToObj(o,n.name));return x(l.then)?l.then((function(e){var i=!0,o={};return Array.isArray(e)?i=e.every((function(t){return _(t)?t.valid:t})):(i=_(e)?e.valid:e,o=e.data),{valid:i,errors:i?[]:[r._createFieldError(t,n,o,a)]}})):(_(l)||(l={valid:l,data:{}}),{valid:l.valid,errors:l.valid?[]:[this._createFieldError(t,n,l.data,a)]})},Et._merge=function(t,e){var n=e.validator,r=e.options,i=e.paramNames,o=x(n)?n:n.validate;n.getMessage&&ne.i18nDriver.setMessage(Et.locale,t,n.getMessage),ut.add(t,{validate:o,options:r,paramNames:i})},Et._guardExtend=function(t,e){if(!x(e)&&!x(e.validate))throw w("Extension Error: The validator '"+t+"' must be a function or have a 'validate' method.")},Et.prototype._createFieldError=function(t,e,n,r){var i=this;return{id:t.id,vmId:t.vmId,field:t.name,msg:this._formatErrorMessage(t,e,n,r),rule:e.name,scope:t.scope,regenerate:function(){return i._formatErrorMessage(t,e,n,r)}}},Et.prototype._resolveField=function(t,e,n){if("#"===t[0])return this.fields.find({id:t.slice(1)});if(!u(e))return this.fields.find({name:t,scope:e,vmId:n});if(F(t,".")){var r=t.split("."),i=r[0],o=r.slice(1),a=this.fields.find({name:o.join("."),scope:i,vmId:n});if(a)return a}return this.fields.find({name:t,scope:null,vmId:n})},Et.prototype._handleFieldNotFound=function(t,e){var n=u(e)?t:(u(e)?"":e+".")+t;return Promise.reject(w('Validating a non-existent field: "'+n+'". Use "attach()" first.'))},Et.prototype._handleValidationResults=function(t,e){var n=this,r=t.map((function(t){return{id:t.id}}));this.errors.removeById(r.map((function(t){return t.id}))),t.forEach((function(t){n.errors.remove(t.field,t.scope,e)}));var i=t.reduce((function(t,e){return t.push.apply(t,e.errors),t}),[]);this.errors.add(i),this.fields.filter(r).forEach((function(e){var n=D(t,(function(t){return t.id===e.id}));e.setFlags({pending:!1,valid:n.valid,validated:!0})}))},Et.prototype._shouldSkip=function(t,e){return!1!==t.bails&&(!!t.isDisabled||!t.isRequired&&(u(e)||""===e||U(e)))},Et.prototype._shouldBail=function(t){return void 0!==t.bails?t.bails:this.fastExit},Et.prototype._validate=function(t,e,n){var r=this;void 0===n&&(n={});var i=n.initial;if(this._shouldSkip(t,e))return Promise.resolve({valid:!0,id:t.id,field:t.name,scope:t.scope,errors:[]});var o=[],a=[],s=!1;return Object.keys(t.rules).filter((function(t){return!i||!ut.has(t)||ut.isImmediate(t)})).some((function(n){var i=ut.getOptions(n),u=r._test(t,e,{name:n,params:t.rules[n],options:i});return x(u.then)?o.push(u):!u.valid&&r._shouldBail(t)?(a.push.apply(a,u.errors),s=!0):o.push(new Promise((function(t){return t(u)}))),s})),s?Promise.resolve({valid:!1,errors:a,id:t.id,field:t.name,scope:t.scope}):Promise.all(o).then((function(e){return e.reduce((function(t,e){var n;return e.valid||(n=t.errors).push.apply(n,e.errors),t.valid=t.valid&&e.valid,t}),{valid:!0,errors:a,id:t.id,field:t.name,scope:t.scope})}))},Object.defineProperties(Et.prototype,At),Object.defineProperties(Et,Ot);var Ct=function(t){return Array.isArray(t)?t.reduce((function(t,e){return F(e,".")?t[e.split(".")[1]]=e:t[e]=e,t}),{}):t},Nt=function(t,e){var n={pristine:function(t,e){return t&&e},dirty:function(t,e){return t||e},touched:function(t,e){return t||e},untouched:function(t,e){return t&&e},valid:function(t,e){return t&&e},invalid:function(t,e){return t||e},pending:function(t,e){return t||e},required:function(t,e){return t||e},validated:function(t,e){return t&&e}};return Object.keys(n).reduce((function(r,i){return r[i]=n[i](t[i],e[i]),r}),{})},Tt=function(t,e){return void 0===e&&(e=!0),Object.keys(t).reduce((function(n,r){if(!n)return n=O({},t[r]),n;var i=0===r.indexOf("$");return e&&i?Nt(Tt(t[r]),n):(!e&&i||(n=Nt(n,t[r])),n)}),null)},Dt=function(t){if(!t)return function(){return Tt(this.$validator.flags)};var e=Ct(t);return Object.keys(e).reduce((function(t,n){var r=e[n];return t[n]=function(){if(this.$validator.flags[r])return this.$validator.flags[r];if("*"===e[n])return Tt(this.$validator.flags,!1);var t=r.indexOf(".");if(t<=0)return{};var i=r.split("."),o=i[0],a=i.slice(1);return o=this.$validator.flags["$"+o],a=a.join("."),"*"===a&&o?Tt(o):o&&o[a]?o[a]:{}},t}),{})},It=null,Rt=0;function Pt(t){return{errors:t.messages,flags:t.flags,classes:t.classes,valid:t.isValid,reset:function(){return t.reset()},validate:function(){var e=[],n=arguments.length;while(n--)e[n]=arguments[n];return t.validate.apply(t,e)},aria:{"aria-invalid":t.flags.invalid?"true":"false","aria-required":t.isRequired?"true":"false"}}}function jt(t){var e=this,n=this.value!==t.value||this._needsValidation,r=this.flags.validated;if(this.initialized||(this.initialValue=t.value),this.initialized||void 0!==t.value||(n=!0),n){var i=function(t){var n=t.valid;e.setFlags({valid:n,invalid:!n})};this.value=t.value,this.validateSilent().then(this.immediate||r?this.applyResult:i)}this._needsValidation=!1}function Bt(t){var e=function(e){t.syncValue(e),t.setFlags({dirty:!0,pristine:!1})},n=function(){t.setFlags({touched:!0,untouched:!1})},r=v((function(){var e=t.validate();t._waiting=e,e.then((function(n){e===t._waiting&&(t.applyResult(n),t._waiting=null)}))}),t.debounce);return{onInput:e,onBlur:n,onValidate:r}}function $t(t){var e=K(t);this._inputEventName=this._inputEventName||rt(t,e),jt.call(this,e);var n=Bt(this),r=n.onInput,i=n.onBlur,o=n.onValidate;nt(t,this._inputEventName,r),nt(t,"blur",i),this.normalizedEvents.forEach((function(e){nt(t,e,o)})),this.initialized=!0}function Lt(t){var e=t.$_veeObserver.refs;return t.fieldDeps.reduce((function(t,n){return e[n]?(t[n]=e[n].value,t):t}),{})}function Ft(t){u(t.id)&&t.id===t.vid&&(t.id=Rt,Rt++);var e=t.id,n=t.vid;e===n&&t.$_veeObserver.refs[e]||(e!==n&&t.$_veeObserver.refs[e]===t&&t.$_veeObserver.$unsubscribe(t),t.$_veeObserver.$subscribe(t),t.id=n)}function Ut(){return{refs:{},$subscribe:function(t){this.refs[t.vid]=t},$unsubscribe:function(t){delete this.refs[t.vid]}}}var Vt={$__veeInject:!1,inject:{$_veeObserver:{from:"$_veeObserver",default:function(){return this.$vnode.context.$_veeObserver||(this.$vnode.context.$_veeObserver=Ut()),this.$vnode.context.$_veeObserver}}},props:{vid:{type:[String,Number],default:function(){return Rt++,Rt}},name:{type:String,default:null},events:{type:[Array,String],default:function(){return["input"]}},rules:{type:[Object,String],default:null},immediate:{type:Boolean,default:!1},bails:{type:Boolean,default:function(){return ne.config.fastExit}},debounce:{type:Number,default:function(){return ne.config.delay||0}}},watch:{rules:{deep:!0,handler:function(){this._needsValidation=!0}}},data:function(){return{messages:[],value:void 0,initialized:!1,initialValue:void 0,flags:l(),id:null}},methods:{setFlags:function(t){var e=this;Object.keys(t).forEach((function(n){e.flags[n]=t[n]}))},syncValue:function(t){var e=ct(t)?t.target.value:t;this.value=e,this.flags.changed=this.initialValue===e},reset:function(){this.messages=[],this._waiting=null,this.initialValue=this.value;var t=l();this.setFlags(t)},validate:function(){var t=this,e=[],n=arguments.length;while(n--)e[n]=arguments[n];return e[0]&&this.syncValue(e[0]),this.validateSilent().then((function(e){return t.applyResult(e),e}))},validateSilent:function(){var t=this;return this.setFlags({pending:!0}),It.verify(this.value,this.rules,{name:this.name,values:Lt(this),bails:this.bails}).then((function(e){return t.setFlags({pending:!1}),e}))},applyResult:function(t){var e=t.errors;this.messages=e,this.setFlags({valid:!e.length,changed:this.value!==this.initialValue,invalid:!!e.length,validated:!0})},registerField:function(){It||(It=ne.instance._validator),Ft(this)}},computed:{isValid:function(){return this.flags.valid},fieldDeps:function(){var t=this,e=y(this.rules),n=this.$_veeObserver.refs;return Object.keys(e).filter(ut.isTargetRule).map((function(r){var i=e[r][0],o="$__"+i;return x(t[o])||(t[o]=n[i].$watch("value",(function(){t.validate()}))),i}))},normalizedEvents:function(){var t=this;return ht(this.events).map((function(e){return"input"===e?t._inputEventName:e}))},isRequired:function(){var t=y(this.rules);return!!t.required},classes:function(){var t=this,e=ne.config.classNames;return Object.keys(this.flags).reduce((function(n,r){var i=e&&e[r]||r;return"invalid"===r?(n[i]=!!t.messages.length,n):"valid"===r?(n[i]=!t.messages.length,n):(i&&(n[i]=t.flags[r]),n)}),{})}},render:function(t){var e=this;this.registerField();var n=Pt(this),r=this.$scopedSlots.default;if(!x(r))return ot(t,this.$slots.default);var i=r(n);return X(i).forEach((function(t){$t.call(e,t)})),ot(t,i)},beforeDestroy:function(){this.$_veeObserver.$unsubscribe(this)}},zt={pristine:"every",dirty:"some",touched:"some",untouched:"every",valid:"every",invalid:"some",pending:"some",validated:"every"};function qt(t,e,n){var r=zt[n];return[t,e][r]((function(t){return t}))}var Ht={name:"ValidationObserver",provide:function(){return{$_veeObserver:this}},data:function(){return{refs:{}}},methods:{$subscribe:function(t){var e;this.refs=Object.assign({},this.refs,(e={},e[t.vid]=t,e))},$unsubscribe:function(t){var e=t.vid;delete this.refs[e],this.refs=Object.assign({},this.refs)},validate:function(){return Promise.all($(this.refs).map((function(t){return t.validate()}))).then((function(t){return t.every((function(t){return t.valid}))}))},reset:function(){return $(this.refs).forEach((function(t){return t.reset()}))}},computed:{ctx:function(){var t=this,e={errors:{},validate:function(){var e=t.validate();return{then:function(t){e.then((function(e){return e&&x(t)?Promise.resolve(t()):Promise.resolve(e)}))}}},reset:function(){return t.reset()}};return $(this.refs).reduce((function(t,e){return Object.keys(zt).forEach((function(n){t[n]=n in t?qt(t[n],e.flags[n],n):e.flags[n]})),t.errors[e.vid]=e.messages,t}),e)}},render:function(t){var e=this.$scopedSlots.default;return x(e)?ot(t,e(this.ctx)):ot(t,this.$slots.default)}};function Gt(t,e){void 0===e&&(e=null);var n=x(t)?t.options:t;n.$__veeInject=!1;var r={name:(n.name||"AnonymousHoc")+"WithValidation",props:O({},Vt.props),data:Vt.data,computed:O({},Vt.computed),methods:O({},Vt.methods),$__veeInject:!1,beforeDestroy:Vt.beforeDestroy,inject:Vt.inject};e||(e=function(t){return t});var i=n.model&&n.model.event||"input";return r.render=function(t){var r;this.registerField();var o=Pt(this),a=O({},this.$listeners),s=K(this.$vnode);this._inputEventName=this._inputEventName||rt(this.$vnode,s),jt.call(this,s);var u=Bt(this),l=u.onInput,c=u.onBlur,h=u.onValidate;Q(a,i,l),Q(a,"blur",c),this.normalizedEvents.forEach((function(t,e){Q(a,t,h)}));var f=J(this.$vnode)||{prop:"value"},d=f.prop,p=O({},this.$attrs,(r={},r[d]=s.value,r),e(o));return t(n,{attrs:this.$attrs,props:p,on:a},it(this.$slots,this.$vnode.context))},r}var Wt=function(t){return _(t)?Object.keys(t).reduce((function(e,n){return e[n]=Wt(t[n]),e}),{}):x(t)?t("{0}",["{1}","{2}","{3}"]):t},Yt=function(t){var e={};return t.messages&&(e.messages=Wt(t.messages)),t.custom&&(e.custom=Wt(t.custom)),t.attributes&&(e.attributes=t.attributes),u(t.dateFormat)||(e.dateFormat=t.dateFormat),e},Kt=function(t,e){this.i18n=t,this.rootKey=e},Zt={locale:{configurable:!0}};Zt.locale.get=function(){return this.i18n.locale},Zt.locale.set=function(t){b("Cannot set locale from the validator when using vue-i18n, use i18n.locale setter instead")},Kt.prototype.getDateFormat=function(t){return this.i18n.getDateTimeFormat(t||this.locale)},Kt.prototype.setDateFormat=function(t,e){this.i18n.setDateTimeFormat(t||this.locale,e)},Kt.prototype.getMessage=function(t,e,n){var r=this.rootKey+".messages."+e;return this.i18n.te(r)?this.i18n.t(r,n):this.i18n.te(r,this.i18n.fallbackLocale)?this.i18n.t(r,this.i18n.fallbackLocale,n):this.i18n.t(this.rootKey+".messages._default",n)},Kt.prototype.getAttribute=function(t,e,n){void 0===n&&(n="");var r=this.rootKey+".attributes."+e;return this.i18n.te(r)?this.i18n.t(r):n},Kt.prototype.getFieldMessage=function(t,e,n,r){var i=this.rootKey+".custom."+e+"."+n;return this.i18n.te(i)?this.i18n.t(i,r):this.getMessage(t,n,r)},Kt.prototype.merge=function(t){var e=this;Object.keys(t).forEach((function(n){var r,i=j({},d(n+"."+e.rootKey,e.i18n.messages,{})),o=j(i,Yt(t[n]));e.i18n.mergeLocaleMessage(n,(r={},r[e.rootKey]=o,r)),o.dateFormat&&e.i18n.setDateTimeFormat(n,o.dateFormat)}))},Kt.prototype.setMessage=function(t,e,n){var r,i;this.merge((i={},i[t]={messages:(r={},r[e]=n,r)},i))},Kt.prototype.setAttribute=function(t,e,n){var r,i;this.merge((i={},i[t]={attributes:(r={},r[e]=n,r)},i))},Object.defineProperties(Kt.prototype,Zt);var Xt,Jt,Qt,te={locale:"en",delay:0,errorBagName:"errors",dictionary:null,fieldsBagName:"fields",classes:!1,classNames:null,events:"input",inject:!0,fastExit:!0,aria:!0,validity:!1,i18n:null,i18nRootKey:"validation"},ee=O({},te),ne=function(t,e){this.configure(t),Qt=this,e&&(Xt=e),this._validator=new Et(null,{fastExit:t&&t.fastExit}),this._initVM(this.config),this._initI18n(this.config)},re={i18nDriver:{configurable:!0},config:{configurable:!0}},ie={instance:{configurable:!0},i18nDriver:{configurable:!0},config:{configurable:!0}};ne.setI18nDriver=function(t,e){W.setDriver(t,e)},ne.configure=function(t){ee=O({},ee,t)},ne.use=function(t,e){return void 0===e&&(e={}),x(t)?Qt?void t({Validator:Et,ErrorBag:Y,Rules:Et.rules},e):(Jt||(Jt=[]),void Jt.push({plugin:t,options:e})):b("The plugin must be a callable function")},ne.install=function(t,e){Xt&&t===Xt||(Xt=t,Qt=new ne(e),dt(),Xt.mixin(St),Xt.directive("validate",kt),Jt&&(Jt.forEach((function(t){var e=t.plugin,n=t.options;ne.use(e,n)})),Jt=null))},ie.instance.get=function(){return Qt},re.i18nDriver.get=function(){return W.getDriver()},ie.i18nDriver.get=function(){return W.getDriver()},re.config.get=function(){return ee},ie.config.get=function(){return ee},ne.prototype._initVM=function(t){var e=this;this._vm=new Xt({data:function(){return{errors:e._validator.errors,fields:e._validator.fields}}})},ne.prototype._initI18n=function(t){var e=this,n=t.dictionary,r=t.i18n,i=t.i18nRootKey,o=t.locale,a=function(){e._validator.errors.regenerate()};r?(ne.setI18nDriver("i18n",new Kt(r,i)),r._vm.$watch("locale",a)):"undefined"!==typeof window&&this._vm.$on("localeChanged",a),n&&this.i18nDriver.merge(n),o&&!r&&this._validator.localize(o)},ne.prototype.configure=function(t){ne.configure(t)},ne.prototype.resolveConfig=function(t){var e=d("$options.$_veeValidate",t,{});return O({},this.config,e)},Object.defineProperties(ne.prototype,re),Object.defineProperties(ne,ie),ne.version="2.1.5",ne.mixin=St,ne.directive=kt,ne.Validator=Et,ne.ErrorBag=Y,ne.mapFields=Dt,ne.ValidationProvider=Vt,ne.ValidationObserver=Ht,ne.withValidation=Gt;var oe,ae=function(t){var e=["Byte","KB","MB","GB","TB","PB","EB","ZB","YB"],n=1024;t=Number(t)*n;var r=0===t?0:Math.floor(Math.log(t)/Math.log(n));return 1*(t/Math.pow(n,r)).toFixed(2)+" "+e[r]},se=function(){return"undefined"!==typeof VeeValidate},ue={_default:function(t){return"The "+t+" value is not valid."},after:function(t,e){var n=e[0],r=e[1];return"The "+t+" must be after "+(r?"or equal to ":"")+n+"."},alpha:function(t){return"The "+t+" field may only contain alphabetic characters."},alpha_dash:function(t){return"The "+t+" field may contain alpha-numeric characters as well as dashes and underscores."},alpha_num:function(t){return"The "+t+" field may only contain alpha-numeric characters."},alpha_spaces:function(t){return"The "+t+" field may only contain alphabetic characters as well as spaces."},before:function(t,e){var n=e[0],r=e[1];return"The "+t+" must be before "+(r?"or equal to ":"")+n+"."},between:function(t,e){var n=e[0],r=e[1];return"The "+t+" field must be between "+n+" and "+r+"."},confirmed:function(t){return"The "+t+" confirmation does not match."},credit_card:function(t){return"The "+t+" field is invalid."},date_between:function(t,e){var n=e[0],r=e[1];return"The "+t+" must be between "+n+" and "+r+"."},date_format:function(t,e){var n=e[0];return"The "+t+" must be in the format "+n+"."},decimal:function(t,e){void 0===e&&(e=[]);var n=e[0];return void 0===n&&(n="*"),"The "+t+" field must be numeric and may contain "+(n&&"*"!==n?n:"")+" decimal points."},digits:function(t,e){var n=e[0];return"The "+t+" field must be numeric and exactly contain "+n+" digits."},dimensions:function(t,e){var n=e[0],r=e[1];return"The "+t+" field must be "+n+" pixels by "+r+" pixels."},email:function(t){return"The "+t+" field must be a valid email."},excluded:function(t){return"The "+t+" field must be a valid value."},ext:function(t){return"The "+t+" field must be a valid file."},image:function(t){return"The "+t+" field must be an image."},included:function(t){return"The "+t+" field must be a valid value."},integer:function(t){return"The "+t+" field must be an integer."},ip:function(t){return"The "+t+" field must be a valid ip address."},length:function(t,e){var n=e[0],r=e[1];return r?"The "+t+" length must be between "+n+" and "+r+".":"The "+t+" length must be "+n+"."},max:function(t,e){var n=e[0];return"The "+t+" field may not be greater than "+n+" characters."},max_value:function(t,e){var n=e[0];return"The "+t+" field must be "+n+" or less."},mimes:function(t){return"The "+t+" field must have a valid file type."},min:function(t,e){var n=e[0];return"The "+t+" field must be at least "+n+" characters."},min_value:function(t,e){var n=e[0];return"The "+t+" field must be "+n+" or more."},numeric:function(t){return"The "+t+" field may only contain numeric characters."},regex:function(t){return"The "+t+" field format is invalid."},required:function(t){return"The "+t+" field is required."},size:function(t,e){var n=e[0];return"The "+t+" size must be less than "+ae(n)+"."},url:function(t){return"The "+t+" field is not a valid URL."}},le={name:"en",messages:ue,attributes:{}};se()&&VeeValidate.Validator.localize((oe={},oe[le.name]=le,oe));var ce=36e5,he=6e4,fe=2,de={dateTimeDelimeter:/[T ]/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-])(\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function pe(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===t)return new Date(NaN);var n=e||{},r=void 0===n.additionalDigits?fe:Number(n.additionalDigits);if(2!==r&&1!==r&&0!==r)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date)return new Date(t.getTime());if("string"!==typeof t)return new Date(t);var i=me(t),o=ve(i.date,r),a=o.year,s=o.restDateString,u=ge(s,a);if(u){var l,c=u.getTime(),h=0;return i.time&&(h=ye(i.time)),i.timezone?l=be(i.timezone):(l=new Date(c+h).getTimezoneOffset(),l=new Date(c+h+l*he).getTimezoneOffset()),new Date(c+h+l*he)}return new Date(t)}function me(t){var e,n={},r=t.split(de.dateTimeDelimeter);if(de.plainTime.test(r[0])?(n.date=null,e=r[0]):(n.date=r[0],e=r[1]),e){var i=de.timezone.exec(e);i?(n.time=e.replace(i[1],""),n.timezone=i[1]):n.time=e}return n}function ve(t,e){var n,r=de.YYY[e],i=de.YYYYY[e];if(n=de.YYYY.exec(t)||i.exec(t),n){var o=n[1];return{year:parseInt(o,10),restDateString:t.slice(o.length)}}if(n=de.YY.exec(t)||r.exec(t),n){var a=n[1];return{year:100*parseInt(a,10),restDateString:t.slice(a.length)}}return{year:null}}function ge(t,e){if(null===e)return null;var n,r,i,o;if(0===t.length)return r=new Date(0),r.setUTCFullYear(e),r;if(n=de.MM.exec(t),n)return r=new Date(0),i=parseInt(n[1],10)-1,r.setUTCFullYear(e,i),r;if(n=de.DDD.exec(t),n){r=new Date(0);var a=parseInt(n[1],10);return r.setUTCFullYear(e,0,a),r}if(n=de.MMDD.exec(t),n){r=new Date(0),i=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return r.setUTCFullYear(e,i,s),r}if(n=de.Www.exec(t),n)return o=parseInt(n[1],10)-1,we(e,o);if(n=de.WwwD.exec(t),n){o=parseInt(n[1],10)-1;var u=parseInt(n[2],10)-1;return we(e,o,u)}return null}function ye(t){var e,n,r;if(e=de.HH.exec(t),e)return n=parseFloat(e[1].replace(",",".")),n%24*ce;if(e=de.HHMM.exec(t),e)return n=parseInt(e[1],10),r=parseFloat(e[2].replace(",",".")),n%24*ce+r*he;if(e=de.HHMMSS.exec(t),e){n=parseInt(e[1],10),r=parseInt(e[2],10);var i=parseFloat(e[3].replace(",","."));return n%24*ce+r*he+1e3*i}return null}function be(t){var e,n;return e=de.timezoneZ.exec(t),e?0:(e=de.timezoneHH.exec(t),e?(n=60*parseInt(e[2],10),"+"===e[1]?-n:n):(e=de.timezoneHHMM.exec(t),e?(n=60*parseInt(e[2],10)+parseInt(e[3],10),"+"===e[1]?-n:n):0))}function we(t,e,n){e=e||0,n=n||0;var r=new Date(0);r.setUTCFullYear(t,0,4);var i=r.getUTCDay()||7,o=7*e+n+1-i;return r.setUTCDate(r.getUTCDate()+o),r}function _e(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=pe(t,n).getTime(),i=Number(e);return new Date(r+i)}function xe(t){t=t||{};var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}var Se=6e4;function Me(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=Number(e);return _e(t,r*Se,n)}function ke(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var n=pe(t,e);return!isNaN(n)}var Ee={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"},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"}};function Ae(t,e,n){var r;return n=n||{},r="string"===typeof Ee[t]?Ee[t]:1===e?Ee[t].one:Ee[t].other.replace("{{count}}",e),n.addSuffix?n.comparison>0?"in "+r:r+" ago":r}var Oe=/MMMM|MM|DD|dddd/g;function Ce(t){return t.replace(Oe,(function(t){return t.slice(1)}))}function Ne(t){var e={LTS:t.LTS,LT:t.LT,L:t.L,LL:t.LL,LLL:t.LLL,LLLL:t.LLLL,l:t.l||Ce(t.L),ll:t.ll||Ce(t.LL),lll:t.lll||Ce(t.LLL),llll:t.llll||Ce(t.LLLL)};return function(t){return e[t]}}var Te=Ne({LT:"h:mm aa",LTS:"h:mm:ss aa",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY h:mm aa",LLLL:"dddd, MMMM D YYYY h:mm aa"}),De={lastWeek:"[last] dddd [at] LT",yesterday:"[yesterday at] LT",today:"[today at] LT",tomorrow:"[tomorrow at] LT",nextWeek:"dddd [at] LT",other:"L"};function Ie(t,e,n,r){return De[t]}function Re(t,e,n){return function(r,i){var o=i||{},a=o.type?String(o.type):e,s=t[a]||t[e],u=n?n(Number(r)):Number(r);return s[u]}}function Pe(t,e){return function(n){var r=n||{},i=r.type?String(r.type):e;return t[i]||t[e]}}var je={narrow:["Su","Mo","Tu","We","Th","Fr","Sa"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Be={short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],long:["January","February","March","April","May","June","July","August","September","October","November","December"]},$e={uppercase:["AM","PM"],lowercase:["am","pm"],long:["a.m.","p.m."]};function Le(t,e){var n=Number(t),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"}var Fe={ordinalNumber:Le,weekday:Re(je,"long"),weekdays:Pe(je,"long"),month:Re(Be,"long"),months:Pe(Be,"long"),timeOfDay:Re($e,"long",(function(t){return t/12>=1?1:0})),timesOfDay:Pe($e,"long")};function Ue(t,e){return function(n,r){var i=r||{},o=i.type?String(i.type):e,a=t[o]||t[e],s=String(n);return s.match(a)}}function Ve(t,e){return function(n,r){var i=r||{},o=i.type?String(i.type):e,a=t[o]||t[e],s=n[1];return a.findIndex((function(t){return t.test(s)}))}}function ze(t){return function(e){var n=String(e);return n.match(t)}}function qe(t){return parseInt(t[1],10)}var He=/^(\d+)(th|st|nd|rd)?/i,Ge={narrow:/^(su|mo|tu|we|th|fr|sa)/i,short:/^(sun|mon|tue|wed|thu|fri|sat)/i,long:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},We={any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Ye={short:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,long:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ke={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]},Ze={short:/^(am|pm)/i,long:/^([ap]\.?\s?m\.?)/i},Xe={any:[/^a/i,/^p/i]},Je={ordinalNumbers:ze(He),ordinalNumber:qe,weekdays:Ue(Ge,"long"),weekday:Ve(We,"any"),months:Ue(Ye,"long"),month:Ve(Ke,"any"),timesOfDay:Ue(Ze,"long"),timeOfDay:Ve(Xe,"any")},Qe={formatDistance:Ae,formatLong:Te,formatRelative:Ie,localize:Fe,match:Je,options:{weekStartsOn:0,firstWeekContainsDate:1}},tn=864e5;function en(t,e){var n=pe(t,e),r=n.getTime();n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0);var i=n.getTime(),o=r-i;return Math.floor(o/tn)+1}function nn(t,e){var n=1,r=pe(t,e),i=r.getUTCDay(),o=(i=o.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function on(t,e){var n=rn(t,e),r=new Date(0);r.setUTCFullYear(n,0,4),r.setUTCHours(0,0,0,0);var i=nn(r,e);return i}var an=6048e5;function sn(t,e){var n=pe(t,e),r=nn(n,e).getTime()-on(n,e).getTime();return Math.round(r/an)+1}var un={M:function(t){return t.getUTCMonth()+1},Mo:function(t,e){var n=t.getUTCMonth()+1;return e.locale.localize.ordinalNumber(n,{unit:"month"})},MM:function(t){return cn(t.getUTCMonth()+1,2)},MMM:function(t,e){return e.locale.localize.month(t.getUTCMonth(),{type:"short"})},MMMM:function(t,e){return e.locale.localize.month(t.getUTCMonth(),{type:"long"})},Q:function(t){return Math.ceil((t.getUTCMonth()+1)/3)},Qo:function(t,e){var n=Math.ceil((t.getUTCMonth()+1)/3);return e.locale.localize.ordinalNumber(n,{unit:"quarter"})},D:function(t){return t.getUTCDate()},Do:function(t,e){return e.locale.localize.ordinalNumber(t.getUTCDate(),{unit:"dayOfMonth"})},DD:function(t){return cn(t.getUTCDate(),2)},DDD:function(t){return en(t)},DDDo:function(t,e){return e.locale.localize.ordinalNumber(en(t),{unit:"dayOfYear"})},DDDD:function(t){return cn(en(t),3)},dd:function(t,e){return e.locale.localize.weekday(t.getUTCDay(),{type:"narrow"})},ddd:function(t,e){return e.locale.localize.weekday(t.getUTCDay(),{type:"short"})},dddd:function(t,e){return e.locale.localize.weekday(t.getUTCDay(),{type:"long"})},d:function(t){return t.getUTCDay()},do:function(t,e){return e.locale.localize.ordinalNumber(t.getUTCDay(),{unit:"dayOfWeek"})},E:function(t){return t.getUTCDay()||7},W:function(t){return sn(t)},Wo:function(t,e){return e.locale.localize.ordinalNumber(sn(t),{unit:"isoWeek"})},WW:function(t){return cn(sn(t),2)},YY:function(t){return cn(t.getUTCFullYear(),4).substr(2)},YYYY:function(t){return cn(t.getUTCFullYear(),4)},GG:function(t){return String(rn(t)).substr(2)},GGGG:function(t){return rn(t)},H:function(t){return t.getUTCHours()},HH:function(t){return cn(t.getUTCHours(),2)},h:function(t){var e=t.getUTCHours();return 0===e?12:e>12?e%12:e},hh:function(t){return cn(un["h"](t),2)},m:function(t){return t.getUTCMinutes()},mm:function(t){return cn(t.getUTCMinutes(),2)},s:function(t){return t.getUTCSeconds()},ss:function(t){return cn(t.getUTCSeconds(),2)},S:function(t){return Math.floor(t.getUTCMilliseconds()/100)},SS:function(t){return cn(Math.floor(t.getUTCMilliseconds()/10),2)},SSS:function(t){return cn(t.getUTCMilliseconds(),3)},Z:function(t,e){var n=e._originalDate||t;return ln(n.getTimezoneOffset(),":")},ZZ:function(t,e){var n=e._originalDate||t;return ln(n.getTimezoneOffset())},X:function(t,e){var n=e._originalDate||t;return Math.floor(n.getTime()/1e3)},x:function(t,e){var n=e._originalDate||t;return n.getTime()},A:function(t,e){return e.locale.localize.timeOfDay(t.getUTCHours(),{type:"uppercase"})},a:function(t,e){return e.locale.localize.timeOfDay(t.getUTCHours(),{type:"lowercase"})},aa:function(t,e){return e.locale.localize.timeOfDay(t.getUTCHours(),{type:"long"})}};function ln(t,e){e=e||"";var n=t>0?"-":"+",r=Math.abs(t),i=Math.floor(r/60),o=r%60;return n+cn(i,2)+e+cn(o,2)}function cn(t,e){var n=Math.abs(t).toString();while(n.lengthi.getTime()}function yn(t,e,n){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var r=pe(t,n),i=pe(e,n);return r.getTime()=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=pe(t,n),l=Number(e),c=u.getUTCDay(),h=l%7,f=(h+7)%7,d=(f=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var s=o.locale||Qe,u=s.parsers||{},l=s.units||{};if(!s.match)throw new RangeError("locale must contain match property");if(!s.formatLong)throw new RangeError("locale must contain formatLong property");var c=String(e).replace(In,(function(t){return"["===t[0]?t:"\\"===t[0]?Bn(t):s.formatLong(t)}));if(""===c)return""===i?pe(n,o):new Date(NaN);var h=xe(o);h.locale=s;var f,d=c.match(s.parsingTokensRegExp||Rn),p=d.length,m=[{priority:Tn,set:jn,index:0}];for(f=0;f=t},cr=["min","max"],hr={validate:lr,paramNames:cr},fr=function(t,e){var n=e.targetValue;return String(t)===String(n)},dr={hasTarget:!0},pr=["targetValue"],mr={validate:fr,options:dr,paramNames:pr};function vr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function gr(t,e){return e={exports:{}},t(e,e.exports),e.exports}var yr=gr((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function r(t){var e="string"===typeof t||t instanceof String;if(!e){var r=void 0;throw null===t?r="null":(r="undefined"===typeof t?"undefined":n(t),r="object"===r&&t.constructor&&t.constructor.hasOwnProperty("name")?t.constructor.name:"a "+r),new TypeError("Expected string but received "+r+".")}}e.default=r,t.exports=e["default"]}));vr(yr);var br=gr((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var n=r(yr);function r(t){return t&&t.__esModule?t:{default:t}}var i=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14})$/;function o(t){(0,n.default)(t);var e=t.replace(/[- ]+/g,"");if(!i.test(e))return!1;for(var r=0,o=void 0,a=void 0,s=void 0,u=e.length-1;u>=0;u--)o=e.substring(u,u+1),a=parseInt(o,10),s?(a*=2,r+=a>=10?a%10+1:a):r+=a,s=!s;return!(r%10!==0||!e)}t.exports=e["default"]})),wr=vr(br),_r=function(t){return wr(String(t))},xr={validate:_r},Sr=function(t,e){void 0===e&&(e={});var n=e.min,r=e.max,i=e.inclusivity;void 0===i&&(i="()");var o=e.format;"undefined"===typeof o&&(o=i,i="()");var a=$n(String(n),o),s=$n(String(r),o),u=$n(String(t),o);return!!(a&&s&&u)&&("()"===i?gn(u,a)&&yn(u,s):"(]"===i?gn(u,a)&&(bn(u,s)||yn(u,s)):"[)"===i?yn(u,s)&&(bn(u,a)||gn(u,a)):bn(u,s)||bn(u,a)||yn(u,s)&&gn(u,a))},Mr={isDate:!0},kr=["min","max","inclusivity","format"],Er={validate:Sr,options:Mr,paramNames:kr},Ar=function(t,e){var n=e.format;return!!$n(t,n)},Or={isDate:!0},Cr=["format"],Nr={validate:Ar,options:Or,paramNames:Cr},Tr=function(t,e){void 0===e&&(e={});var n=e.decimals;void 0===n&&(n="*");var r=e.separator;if(void 0===r&&(r="."),Array.isArray(t))return t.every((function(t){return Tr(t,{decimals:n,separator:r})}));if(null===t||void 0===t||""===t)return!1;if(0===Number(n))return/^-?\d*$/.test(t);var i="*"===n?"+":"{1,"+n+"}",o=new RegExp("^[-+]?\\d*(\\"+r+"\\d"+i+")?$");if(!o.test(t))return!1;var a=parseFloat(t);return a===a},Dr=["decimals","separator"],Ir={validate:Tr,paramNames:Dr},Rr=function(t,e){var n=e[0];if(Array.isArray(t))return t.every((function(t){return Rr(t,[n])}));var r=String(t);return/^[0-9]*$/.test(r)&&r.length===Number(n)},Pr={validate:Rr},jr=function(t,e,n){var r=window.URL||window.webkitURL;return new Promise((function(i){var o=new Image;o.onerror=function(){return i({valid:!1})},o.onload=function(){return i({valid:o.width===Number(e)&&o.height===Number(n)})},o.src=r.createObjectURL(t)}))},Br=function(t,e){for(var n=e[0],r=e[1],i=[],o=0;o0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];for(var n in e)"undefined"===typeof t[n]&&(t[n]=e[n]);return t}Object.defineProperty(e,"__esModule",{value:!0}),e.default=n,t.exports=e["default"]}));vr(Lr);var Fr=gr((function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var n="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=o;var r=i(yr);function i(t){return t&&t.__esModule?t:{default:t}}function o(t,e){(0,r.default)(t);var i=void 0,o=void 0;"object"===("undefined"===typeof e?"undefined":n(e))?(i=e.min||0,o=e.max):(i=arguments[1],o=arguments[2]);var a=encodeURI(t).split(/%..|./).length-1;return a>=i&&("undefined"===typeof o||a<=o)}t.exports=e["default"]}));vr(Fr);var Ur=gr((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=a;var n=i(yr),r=i(Lr);function i(t){return t&&t.__esModule?t:{default:t}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1};function a(t,e){(0,n.default)(t),e=(0,r.default)(e,o),e.allow_trailing_dot&&"."===t[t.length-1]&&(t=t.substring(0,t.length-1));for(var i=t.split("."),a=0;a63)return!1;if(e.require_tld){var s=i.pop();if(!i.length||!/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(s))return!1;if(/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20]/.test(s))return!1}for(var u,l=0;l1&&void 0!==arguments[1]?arguments[1]:"";if((0,n.default)(t),e=String(e),!e)return a(t,4)||a(t,6);if("4"===e){if(!i.test(t))return!1;var r=t.split(".").sort((function(t,e){return t-e}));return r[3]<=255}if("6"===e){var s=t.split(":"),u=!1,l=a(s[s.length-1],4),c=l?7:8;if(s.length>c)return!1;if("::"===t)return!0;"::"===t.substr(0,2)?(s.shift(),s.shift(),u=!0):"::"===t.substr(t.length-2)&&(s.pop(),s.pop(),u=!0);for(var h=0;h0&&h=1:s.length===c}return!1}t.exports=e["default"]})),zr=vr(Vr),qr=gr((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=m;var n=s(yr),r=s(Lr),i=s(Fr),o=s(Ur),a=s(Vr);function s(t){return t&&t.__esModule?t:{default:t}}var u={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0},l=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\,\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\s]*<(.+)>$/i,c=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,h=/^[a-z\d]+$/,f=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,d=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,p=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;function m(t,e){if((0,n.default)(t),e=(0,r.default)(e,u),e.require_display_name||e.allow_display_name){var s=t.match(l);if(s)t=s[1];else if(e.require_display_name)return!1}var m=t.split("@"),v=m.pop(),g=m.join("@"),y=v.toLowerCase();if(e.domain_specific_validation&&("gmail.com"===y||"googlemail.com"===y)){g=g.toLowerCase();var b=g.split("+")[0];if(!(0,i.default)(b.replace(".",""),{min:6,max:30}))return!1;for(var w=b.split("."),_=0;_=e&&t.length<=n)},fi=function(t,e){var n=e[0],r=e[1];return void 0===r&&(r=void 0),n=Number(n),void 0!==t&&null!==t&&("number"===typeof t&&(t=String(t)),t.length||(t=A(t)),hi(t,n,r))},di={validate:fi},pi=function(t,e){var n=e[0];return void 0===t||null===t?n>=0:Array.isArray(t)?t.every((function(t){return pi(t,[n])})):String(t).length<=n},mi={validate:pi},vi=function(t,e){var n=e[0];return null!==t&&void 0!==t&&""!==t&&(Array.isArray(t)?t.length>0&&t.every((function(t){return vi(t,[n])})):Number(t)<=n)},gi={validate:vi},yi=function(t,e){var n=new RegExp(e.join("|").replace("*",".+")+"$","i");return t.every((function(t){return n.test(t.type)}))},bi={validate:yi},wi=function(t,e){var n=e[0];return void 0!==t&&null!==t&&(Array.isArray(t)?t.every((function(t){return wi(t,[n])})):String(t).length>=n)},_i={validate:wi},xi=function(t,e){var n=e[0];return null!==t&&void 0!==t&&""!==t&&(Array.isArray(t)?t.length>0&&t.every((function(t){return xi(t,[n])})):Number(t)>=n)},Si={validate:xi},Mi=function(t){return Array.isArray(t)?t.every((function(t){return/^[0-9]+$/.test(String(t))})):/^[0-9]+$/.test(String(t))},ki={validate:Mi},Ei=function(t,e){var n=e.expression;return"string"===typeof n&&(n=new RegExp(n)),Array.isArray(t)?t.every((function(t){return Ei(t,{expression:n})})):n.test(String(t))},Ai=["expression"],Oi={validate:Ei,paramNames:Ai},Ci=function(t,e){void 0===e&&(e=[]);var n=e[0];return void 0===n&&(n=!1),!U(t)&&((!1!==t||!n)&&(void 0!==t&&null!==t&&!!String(t).trim().length))},Ni={validate:Ci},Ti=function(t,e){var n=e[0];if(isNaN(n))return!1;for(var r=1024*Number(n),i=0;ir)return!1;return!0},Di={validate:Ti},Ii=gr((function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=h;var n=a(yr),r=a(Ur),i=a(Vr),o=a(Lr);function a(t){return t&&t.__esModule?t:{default:t}}var s={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1},u=/^\[([^\]]+)\](?::([0-9]+))?$/;function l(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function c(t,e){for(var n=0;n=2083||/[\s<>]/.test(t))return!1;if(0===t.indexOf("mailto:"))return!1;e=(0,o.default)(e,s);var a=void 0,l=void 0,h=void 0,f=void 0,d=void 0,p=void 0,m=void 0,v=void 0;if(m=t.split("#"),t=m.shift(),m=t.split("?"),t=m.shift(),m=t.split("://"),m.length>1){if(a=m.shift().toLowerCase(),e.require_valid_protocol&&-1===e.protocols.indexOf(a))return!1}else{if(e.require_protocol)return!1;if("//"===t.substr(0,2)){if(!e.allow_protocol_relative_urls)return!1;m[0]=t.substr(2)}}if(t=m.join("://"),""===t)return!1;if(m=t.split("/"),t=m.shift(),""===t&&!e.require_host)return!0;if(m=t.split("@"),m.length>1&&(l=m.shift(),l.indexOf(":")>=0&&l.split(":").length>2))return!1;f=m.join("@"),p=null,v=null;var g=f.match(u);return g?(h="",v=g[1],p=g[2]||null):(m=f.split(":"),h=m.shift(),m.length&&(p=m.join(":"))),!(null!==p&&(d=parseInt(p,10),!/^[0-9]+$/.test(p)||d<=0||d>65535))&&(!!((0,i.default)(h)||(0,r.default)(h,e)||v&&(0,i.default)(v,6))&&(h=h||v,!(e.host_whitelist&&!c(h,e.host_whitelist))&&(!e.host_blacklist||!c(h,e.host_blacklist))))}t.exports=e["default"]})),Ri=vr(Ii),Pi=function(t,e){return void 0===e&&(e={}),u(t)&&(t=""),Array.isArray(t)?t.every((function(t){return Ri(t,e)})):Ri(t,e)},ji={validate:Pi},Bi=Object.freeze({after:Vn,alpha_dash:Jn,alpha_num:er,alpha_spaces:ir,alpha:Kn,before:ur,between:hr,confirmed:mr,credit_card:xr,date_between:Er,date_format:Nr,decimal:Ir,digits:Pr,dimensions:$r,email:Wr,ext:Qr,image:ei,included:Kr,integer:ri,length:di,ip:ai,is_not:ci,is:ui,max:mi,max_value:gi,mimes:bi,min:_i,min_value:Si,excluded:Xr,numeric:ki,regex:Oi,required:Ni,size:Di,url:ji});Object.keys(Bi).forEach((function(t){Et.extend(t,Bi[t].validate,O({},Bi[t].options,{paramNames:Bi[t].paramNames}))})),Et.localize({en:le});ne.install;e.Ay=ne},2102:function(t,e,n){var r=n(6763);!function(e,n){t.exports=n()}(0,(function(){return function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e,n){"use strict";function i(t){l(j,t)}function o(){return j.id?[].concat(j.id):[]}function a(){}function s(t){return new Promise((function(e,n){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("script");i.async=!0,i.src=t,i.charset="utf8",r.appendChild(i),i.onload=e,i.onerror=n}))}function u(t,e){var n=e.split("/"),r=t.split("/");return""===n[0]&&"/"===t[t.length-1]&&n.shift(),r.join("/")+n.join("/")}function l(t,e){return Object.keys(e).forEach((function(n){t[n]&&"object"==typeof t[n]?l(t[n],e[n]):t[n]=e[n]})),t}function c(){return Array.prototype.slice.call(document.getElementsByTagName("script")).filter((function(t){return-1!==t.src.indexOf("analytics")||-1!==t.src.indexOf("gtag")})).length>0}function h(){return!(B.checkDuplicatedScript&&c())}function f(t){return t.name||t.replace(/-/gi,"")}function d(){return new Promise((function(t,e){var n=setInterval((function(){"undefined"!=typeof window&&window.ga&&(t(),clearInterval(n))}),10)}))}function p(t,e){return o().length>1?f(e)+"."+t:t}function m(t){var e=Object.keys(t).reduce((function(e,n,r,i){var o=r===i.length-1;return e+(n+"=")+t[n]+(o?"":"&")}),"");return""!==e?"?"+e:""}function v(t){return[t.name,t.path].filter(Boolean).find((function(t){return-1!==B.ignoreRoutes.indexOf(t)}))}function g(t){return t.query&&t.params}function y(t){return t.currentRoute}function b(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e1?e-1:0),r=1;r1?U({},B.fields,r,{name:n}):B.fields;window.ga("create",e.id||e,"auto",i)})),B.beforeFirstHit();var e=B.ecommerce;if(e.enabled){var n=e.enhanced?"ec":"ecommerce";e.options?w("require",n,e.options):w("require",n)}B.linkers.length>0&&(w("require","linker"),w("linker:autoLink",B.linkers)),B.debug.sendHitTask||_("sendHitTask",null)}function S(){for(var t=arguments.length,e=Array(t),n=0;n1&&void 0!==arguments[1]?arguments[1]:{};i(st({},e,{$vue:t})),t.directive("ga",it),t.prototype.$ga=t.$ga=rt,X(t),Y()}Object.defineProperty(e,"__esModule",{value:!0});var R=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0])||arguments[0];"undefined"!=typeof window&&o().forEach((function(e){window["ga-disable-"+e]=t}))},Y=function(){if("undefined"!=typeof document&&"undefined"!=typeof window){var t=B.disableScriptLoader,e=B.ready,n=B.debug.enabled?"analytics_debug":"analytics",o=B.customResourceURL||"https://www.google-analytics.com/"+n+".js";if(!B.id)throw new Error('[vue-analytics] Missing the "id" parameter. Add at least one tracking domain ID');var a=[$(B.id),$(B.disabled)];return!h()||window.ga&&t||a.push(s(o).catch((function(){throw new Error("[vue-analytics] An error occured! Please check your connection, if you have any Google Analytics blocker installed in your browser or check your custom resource URL if you have added any.")}))),Promise.all(a).then((function(t){i({id:t[0],disabled:t[1]}),W(B.disabled),x(),H(),G(),E(),e()})).catch((function(t){r.error(t.message)}))}},K=this,Z=function(t){w("send","exception",{exDescription:t,exFatal:arguments.length>1&&void 0!==arguments[1]&&arguments[1]})},X=function(t){if(B.autoTracking.exception){window.addEventListener("error",(function(t){Z(t.message)}));var e=t.config.errorHandler;t.config.errorHandler=function(t,n,i){Z(t.message),B.autoTracking.exceptionLogs&&(r.error("[vue-analytics] Error in "+i+": "+t.message),r.error(t)),"function"==typeof e&&e.call(K,t,n,i)}}},J=Z,Q=Object.assign||function(t){for(var e=1;e-1)e[t]=n[t];else{var r=Object.getOwnPropertyDescriptor(n,t);void 0!==r.value?"function"===typeof r.value?(e.methods||(e.methods={}))[t]=r.value:(e.mixins||(e.mixins=[])).push({data:function(){var e;return e={},e[t]=r.value,e}}):(r.get||r.set)&&((e.computed||(e.computed={}))[t]={get:r.get,set:r.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return d(this,t)}});var r=t.__decorators__;r&&(r.forEach((function(t){return t(e)})),delete t.__decorators__);var s=Object.getPrototypeOf(t.prototype),u=s instanceof i?s.constructor:i,l=u.extend(e);return v(l,t,u),o&&a(l,t),l}function v(t,e,n){Object.getOwnPropertyNames(e).forEach((function(r){if("prototype"!==r){var i=Object.getOwnPropertyDescriptor(t,r);if(!i||i.configurable){var o=Object.getOwnPropertyDescriptor(e,r);if(!l){if("cid"===r)return;var a=Object.getOwnPropertyDescriptor(n,r);if(!f(o.value)&&a&&a.value===o.value)return}0,Object.defineProperty(t,r,o)}}}))}function g(t){return"function"===typeof t?m(t):function(e){return m(e,t)}}g.registerHooks=function(t){p.push.apply(p,t)},e.Ay=g,e.u1=c,e.vE=h},8657:function(t,e,n){"use strict";n.d(e,{Xe:function(){return i.vE},kv:function(){return o},lD:function(){return r["default"]},ox:function(){return a},uA:function(){return i.Ay}});var r=n(5471),i=n(399);function o(t){return void 0===t&&(t={}),(0,i.u1)((function(e,n){(e.props||(e.props={}))[n]=t}))}function a(t,e){void 0===e&&(e={});var n=e.deep,r=void 0!==n&&n,o=e.immediate,a=void 0!==o&&o;return(0,i.u1)((function(e,n){"object"!==typeof e.watch&&(e.watch=Object.create(null));var i=e.watch;"object"!==typeof i[t]||Array.isArray(i[t])?"undefined"===typeof i[t]&&(i[t]=[]):i[t]=[i[t]],i[t].push({handler:n,deep:r,immediate:a})}))}},173:function(t,e,n){"use strict";var r=n(6763); +/** + * vue-router v3.0.1 + * (c) 2017 Evan You + * @license MIT + */function i(t,e){0}function o(t){return Object.prototype.toString.call(t).indexOf("Error")>-1}var a={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,r=e.children,i=e.parent,o=e.data;o.routerView=!0;var a=i.$createElement,l=n.name,c=i.$route,h=i._routerViewCache||(i._routerViewCache={}),f=0,d=!1;while(i&&i._routerRoot!==i)i.$vnode&&i.$vnode.data.routerView&&f++,i._inactive&&(d=!0),i=i.$parent;if(o.routerViewDepth=f,d)return a(h[l],o,r);var p=c.matched[f];if(!p)return h[l]=null,a();var m=h[l]=p.components[l];o.registerRouteInstance=function(t,e){var n=p.instances[l];(e&&n!==t||!e&&n===t)&&(p.instances[l]=e)},(o.hook||(o.hook={})).prepatch=function(t,e){p.instances[l]=e.componentInstance};var v=o.props=s(c,p.props&&p.props[l]);if(v){v=o.props=u({},v);var g=o.attrs=o.attrs||{};for(var y in v)m.props&&y in m.props||(g[y]=v[y],delete v[y])}return a(m,o,r)}};function s(t,e){switch(typeof e){case"undefined":return;case"object":return e;case"function":return e(t);case"boolean":return e?t.params:void 0;default:0}}function u(t,e){for(var n in e)t[n]=e[n];return t}var l=/[!'()*]/g,c=function(t){return"%"+t.charCodeAt(0).toString(16)},h=/%2C/g,f=function(t){return encodeURIComponent(t).replace(l,c).replace(h,",")},d=decodeURIComponent;function p(t,e,n){void 0===e&&(e={});var r,i=n||m;try{r=i(t||"")}catch(a){r={}}for(var o in e)r[o]=e[o];return r}function m(t){var e={};return t=t.trim().replace(/^(\?|#|&)/,""),t?(t.split("&").forEach((function(t){var n=t.replace(/\+/g," ").split("="),r=d(n.shift()),i=n.length>0?d(n.join("=")):null;void 0===e[r]?e[r]=i:Array.isArray(e[r])?e[r].push(i):e[r]=[e[r],i]})),e):e}function v(t){var e=t?Object.keys(t).map((function(e){var n=t[e];if(void 0===n)return"";if(null===n)return f(e);if(Array.isArray(n)){var r=[];return n.forEach((function(t){void 0!==t&&(null===t?r.push(f(e)):r.push(f(e)+"="+f(t)))})),r.join("&")}return f(e)+"="+f(n)})).filter((function(t){return t.length>0})).join("&"):null;return e?"?"+e:""}var g=/\/?$/;function y(t,e,n,r){var i=r&&r.options.stringifyQuery,o=e.query||{};try{o=b(o)}catch(s){}var a={name:e.name||t&&t.name,meta:t&&t.meta||{},path:e.path||"/",hash:e.hash||"",query:o,params:e.params||{},fullPath:x(e,i),matched:t?_(t):[]};return n&&(a.redirectedFrom=x(n,i)),Object.freeze(a)}function b(t){if(Array.isArray(t))return t.map(b);if(t&&"object"===typeof t){var e={};for(var n in t)e[n]=b(t[n]);return e}return t}var w=y(null,{path:"/"});function _(t){var e=[];while(t)e.unshift(t),t=t.parent;return e}function x(t,e){var n=t.path,r=t.query;void 0===r&&(r={});var i=t.hash;void 0===i&&(i="");var o=e||v;return(n||"/")+o(r)+i}function S(t,e){return e===w?t===e:!!e&&(t.path&&e.path?t.path.replace(g,"")===e.path.replace(g,"")&&t.hash===e.hash&&M(t.query,e.query):!(!t.name||!e.name)&&(t.name===e.name&&t.hash===e.hash&&M(t.query,e.query)&&M(t.params,e.params)))}function M(t,e){if(void 0===t&&(t={}),void 0===e&&(e={}),!t||!e)return t===e;var n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&n.every((function(n){var r=t[n],i=e[n];return"object"===typeof r&&"object"===typeof i?M(r,i):String(r)===String(i)}))}function k(t,e){return 0===t.path.replace(g,"/").indexOf(e.path.replace(g,"/"))&&(!e.hash||t.hash===e.hash)&&E(t.query,e.query)}function E(t,e){for(var n in e)if(!(n in t))return!1;return!0}var A,O=[String,Object],C=[String,Array],N={name:"router-link",props:{to:{type:O,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,exactActiveClass:String,event:{type:C,default:"click"}},render:function(t){var e=this,n=this.$router,r=this.$route,i=n.resolve(this.to,r,this.append),o=i.location,a=i.route,s=i.href,u={},l=n.options.linkActiveClass,c=n.options.linkExactActiveClass,h=null==l?"router-link-active":l,f=null==c?"router-link-exact-active":c,d=null==this.activeClass?h:this.activeClass,p=null==this.exactActiveClass?f:this.exactActiveClass,m=o.path?y(null,o,null,n):a;u[p]=S(r,m),u[d]=this.exact?u[p]:k(r,m);var v=function(t){T(t)&&(e.replace?n.replace(o):n.push(o))},g={click:T};Array.isArray(this.event)?this.event.forEach((function(t){g[t]=v})):g[this.event]=v;var b={class:u};if("a"===this.tag)b.on=g,b.attrs={href:s};else{var w=D(this.$slots.default);if(w){w.isStatic=!1;var _=A.util.extend,x=w.data=_({},w.data);x.on=g;var M=w.data.attrs=_({},w.data.attrs);M.href=s}else b.on=g}return t(this.tag,b,this.$slots.default)}};function T(t){if(!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)&&!t.defaultPrevented&&(void 0===t.button||0===t.button)){if(t.currentTarget&&t.currentTarget.getAttribute){var e=t.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(e))return}return t.preventDefault&&t.preventDefault(),!0}}function D(t){if(t)for(var e,n=0;n=0&&(e=t.slice(r),t=t.slice(0,r));var i=t.indexOf("?");return i>=0&&(n=t.slice(i+1),t=t.slice(0,i)),{path:t,query:n,hash:e}}function B(t){return t.replace(/\/\//g,"/")}var $=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},L=it,F=H,U=G,V=K,z=rt,q=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function H(t,e){var n,r=[],i=0,o=0,a="",s=e&&e.delimiter||"/";while(null!=(n=q.exec(t))){var u=n[0],l=n[1],c=n.index;if(a+=t.slice(o,c),o=c+u.length,l)a+=l[1];else{var h=t[o],f=n[2],d=n[3],p=n[4],m=n[5],v=n[6],g=n[7];a&&(r.push(a),a="");var y=null!=f&&null!=h&&h!==f,b="+"===v||"*"===v,w="?"===v||"*"===v,_=n[2]||s,x=p||m;r.push({name:d||i++,prefix:f||"",delimiter:_,optional:w,repeat:b,partial:y,asterisk:!!g,pattern:x?X(x):g?".*":"[^"+Z(_)+"]+?"})}}return o-1&&(s.params[f]=n.params[f]);if(l)return s.path=at(l.path,s.params,'named route "'+u+'"'),c(l,s,a)}else if(s.path){s.params={};for(var d=0;d=t.length?n():t[i]?e(t[i],(function(){r(i+1)})):r(i+1)};r(0)}function jt(t){return function(e,n,r){var i=!1,a=0,s=null;Bt(t,(function(t,e,n,u){if("function"===typeof t&&void 0===t.cid){i=!0,a++;var l,c=Ut((function(e){Ft(e)&&(e=e.default),t.resolved="function"===typeof e?e:A.extend(e),n.components[u]=e,a--,a<=0&&r()})),h=Ut((function(t){var e="Failed to resolve async component "+u+": "+t;s||(s=o(t)?t:new Error(e),r(s))}));try{l=t(c,h)}catch(d){h(d)}if(l)if("function"===typeof l.then)l.then(c,h);else{var f=l.component;f&&"function"===typeof f.then&&f.then(c,h)}}})),i||r()}}function Bt(t,e){return $t(t.map((function(t){return Object.keys(t.components).map((function(n){return e(t.components[n],t.instances[n],t,n)}))})))}function $t(t){return Array.prototype.concat.apply([],t)}var Lt="function"===typeof Symbol&&"symbol"===typeof Symbol.toStringTag;function Ft(t){return t.__esModule||Lt&&"Module"===t[Symbol.toStringTag]}function Ut(t){var e=!1;return function(){var n=[],r=arguments.length;while(r--)n[r]=arguments[r];if(!e)return e=!0,t.apply(this,n)}}var Vt=function(t,e){this.router=t,this.base=zt(e),this.current=w,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[]};function zt(t){if(!t)if(R){var e=document.querySelector("base");t=e&&e.getAttribute("href")||"/",t=t.replace(/^https?:\/\/[^\/]+/,"")}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function qt(t,e){var n,r=Math.max(t.length,e.length);for(n=0;n=0?e.slice(0,n):e;return r+"#"+t}function ae(t){At?It(oe(t)):window.location.hash=t}function se(t){At?Rt(oe(t)):window.location.replace(oe(t))}var ue=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index+1).concat(t),r.index++,e&&e(t)}),n)},e.prototype.replace=function(t,e,n){var r=this;this.transitionTo(t,(function(t){r.stack=r.stack.slice(0,r.index).concat(t),e&&e(t)}),n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var r=this.stack[n];this.confirmTransition(r,(function(){e.index=n,e.updateRoute(r)}))}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Vt),le=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=dt(t.routes||[],this);var e=t.mode||"hash";switch(this.fallback="history"===e&&!At&&!1!==t.fallback,this.fallback&&(e="hash"),R||(e="abstract"),this.mode=e,e){case"history":this.history=new Qt(this,t.base);break;case"hash":this.history=new ee(this,t.base,this.fallback);break;case"abstract":this.history=new ue(this,t.base);break;default:0}},ce={currentRoute:{configurable:!0}};function he(t,e){return t.push(e),function(){var n=t.indexOf(e);n>-1&&t.splice(n,1)}}function fe(t,e,n){var r="hash"===n?"#"+e:e;return t?B(t+"/"+r):r}le.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},ce.currentRoute.get=function(){return this.history&&this.history.current},le.prototype.init=function(t){var e=this;if(this.apps.push(t),!this.app){this.app=t;var n=this.history;if(n instanceof Qt)n.transitionTo(n.getCurrentLocation());else if(n instanceof ee){var r=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),r,r)}n.listen((function(t){e.apps.forEach((function(e){e._route=t}))}))}},le.prototype.beforeEach=function(t){return he(this.beforeHooks,t)},le.prototype.beforeResolve=function(t){return he(this.resolveHooks,t)},le.prototype.afterEach=function(t){return he(this.afterHooks,t)},le.prototype.onReady=function(t,e){this.history.onReady(t,e)},le.prototype.onError=function(t){this.history.onError(t)},le.prototype.push=function(t,e,n){this.history.push(t,e,n)},le.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},le.prototype.go=function(t){this.history.go(t)},le.prototype.back=function(){this.go(-1)},le.prototype.forward=function(){this.go(1)},le.prototype.getMatchedComponents=function(t){var e=t?t.matched?t:this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map((function(t){return Object.keys(t.components).map((function(e){return t.components[e]}))}))):[]},le.prototype.resolve=function(t,e,n){var r=ht(t,e||this.history.current,n,this),i=this.match(r,e),o=i.redirectedFrom||i.fullPath,a=this.history.base,s=fe(a,o,this.mode);return{location:r,route:i,href:s,normalizedTo:r,resolved:i}},le.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==w&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(le.prototype,ce),le.install=I,le.version="3.0.1",R&&window.Vue&&window.Vue.use(le),e.A=le},5471:function(t,e,n){"use strict";n.r(e),n.d(e,{EffectScope:function(){return Ce},computed:function(){return ge},customRef:function(){return ue},default:function(){return io},defineAsyncComponent:function(){return nr},defineComponent:function(){return br},del:function(){return Vt},effectScope:function(){return Ne},getCurrentInstance:function(){return gt},getCurrentScope:function(){return De},h:function(){return Ln},inject:function(){return je},isProxy:function(){return Zt},isReactive:function(){return Wt},isReadonly:function(){return Kt},isRef:function(){return te},isShallow:function(){return Yt},markRaw:function(){return Jt},mergeDefaults:function(){return kn},nextTick:function(){return Qn},onActivated:function(){return hr},onBeforeMount:function(){return or},onBeforeUnmount:function(){return lr},onBeforeUpdate:function(){return sr},onDeactivated:function(){return fr},onErrorCaptured:function(){return gr},onMounted:function(){return ar},onRenderTracked:function(){return pr},onRenderTriggered:function(){return mr},onScopeDispose:function(){return Ie},onServerPrefetch:function(){return dr},onUnmounted:function(){return cr},onUpdated:function(){return ur},provide:function(){return Re},proxyRefs:function(){return ae},reactive:function(){return qt},readonly:function(){return de},ref:function(){return ee},set:function(){return Ut},shallowReactive:function(){return Ht},shallowReadonly:function(){return ve},shallowRef:function(){return ne},toRaw:function(){return Xt},toRef:function(){return ce},toRefs:function(){return le},triggerRef:function(){return ie},unref:function(){return oe},useAttrs:function(){return xn},useCssModule:function(){return tr},useCssVars:function(){return er},useListeners:function(){return Sn},useSlots:function(){return _n},version:function(){return yr},watch:function(){return Ae},watchEffect:function(){return xe},watchPostEffect:function(){return Se},watchSyncEffect:function(){return Me}});var r=n(6763),i=Object.freeze({}),o=Array.isArray; +/*! + * Vue.js v2.7.14 + * (c) 2014-2022 Evan You + * Released under the MIT License. + */function a(t){return void 0===t||null===t}function s(t){return void 0!==t&&null!==t}function u(t){return!0===t}function l(t){return!1===t}function c(t){return"string"===typeof t||"number"===typeof t||"symbol"===typeof t||"boolean"===typeof t}function h(t){return"function"===typeof t}function f(t){return null!==t&&"object"===typeof t}var d=Object.prototype.toString;function p(t){return"[object Object]"===d.call(t)}function m(t){return"[object RegExp]"===d.call(t)}function v(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function g(t){return s(t)&&"function"===typeof t.then&&"function"===typeof t.catch}function y(t){return null==t?"":Array.isArray(t)||p(t)&&t.toString===d?JSON.stringify(t,null,2):String(t)}function b(t){var e=parseFloat(t);return isNaN(e)?t:e}function w(t,e){for(var n=Object.create(null),r=t.split(","),i=0;i-1)return t.splice(r,1)}}var S=Object.prototype.hasOwnProperty;function M(t,e){return S.call(t,e)}function k(t){var e=Object.create(null);return function(n){var r=e[n];return r||(e[n]=t(n))}}var E=/-(\w)/g,A=k((function(t){return t.replace(E,(function(t,e){return e?e.toUpperCase():""}))})),O=k((function(t){return t.charAt(0).toUpperCase()+t.slice(1)})),C=/\B([A-Z])/g,N=k((function(t){return t.replace(C,"-$1").toLowerCase()}));function T(t,e){function n(n){var r=arguments.length;return r?r>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function D(t,e){return t.bind(e)}var I=Function.prototype.bind?D:T;function R(t,e){e=e||0;var n=t.length-e,r=new Array(n);while(n--)r[n]=t[n+e];return r}function P(t,e){for(var n in e)t[n]=e[n];return t}function j(t){for(var e={},n=0;n0,it=et&&et.indexOf("edge/")>0;et&&et.indexOf("android");var ot=et&&/iphone|ipad|ipod|ios/.test(et);et&&/chrome\/\d+/.test(et),et&&/phantomjs/.test(et);var at,st=et&&et.match(/firefox\/(\d+)/),ut={}.watch,lt=!1;if(tt)try{var ct={};Object.defineProperty(ct,"passive",{get:function(){lt=!0}}),window.addEventListener("test-passive",null,ct)}catch(ou){}var ht=function(){return void 0===at&&(at=!tt&&"undefined"!==typeof n.g&&(n.g["process"]&&"server"===n.g["process"].env.VUE_ENV)),at},ft=tt&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function dt(t){return"function"===typeof t&&/native code/.test(t.toString())}var pt,mt="undefined"!==typeof Symbol&&dt(Symbol)&&"undefined"!==typeof Reflect&&dt(Reflect.ownKeys);pt="undefined"!==typeof Set&&dt(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var vt=null;function gt(){return vt&&{proxy:vt}}function yt(t){void 0===t&&(t=null),t||vt&&vt._scope.off(),vt=t,t&&t._scope.on()}var bt=function(){function t(t,e,n,r,i,o,a,s){this.tag=t,this.data=e,this.children=n,this.text=r,this.elm=i,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=a,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=s,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1}return Object.defineProperty(t.prototype,"child",{get:function(){return this.componentInstance},enumerable:!1,configurable:!0}),t}(),wt=function(t){void 0===t&&(t="");var e=new bt;return e.text=t,e.isComment=!0,e};function _t(t){return new bt(void 0,void 0,void 0,String(t))}function xt(t){var e=new bt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var St=0,Mt=[],kt=function(){for(var t=0;t1)return n&&h(e)?e.call(r):e}else 0}var Be=k((function(t){var e="&"===t.charAt(0);t=e?t.slice(1):t;var n="~"===t.charAt(0);t=n?t.slice(1):t;var r="!"===t.charAt(0);return t=r?t.slice(1):t,{name:t,once:n,capture:r,passive:e}}));function $e(t,e){function n(){var t=n.fns;if(!o(t))return Un(t,null,arguments,e,"v-on handler");for(var r=t.slice(),i=0;i0&&(r=Ge(r,"".concat(e||"","_").concat(n)),He(r[0])&&He(l)&&(h[i]=_t(l.text+r[0].text),r.shift()),h.push.apply(h,r)):c(r)?He(l)?h[i]=_t(l.text+r):""!==r&&h.push(_t(r)):He(r)&&He(l)?h[i]=_t(l.text+r.text):(u(t._isVList)&&s(r.tag)&&a(r.key)&&s(e)&&(r.key="__vlist".concat(e,"_").concat(n,"__")),h.push(r)));return h}function We(t,e){var n,r,i,a,u=null;if(o(t)||"string"===typeof t)for(u=new Array(t.length),n=0,r=t.length;n0,s=e?!!e.$stable:!a,u=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&r&&r!==i&&u===r.$key&&!a&&!r.$hasNormal)return r;for(var l in o={},e)e[l]&&"$"!==l[0]&&(o[l]=dn(t,n,l,e[l]))}else o={};for(var c in n)c in o||(o[c]=pn(n,c));return e&&Object.isExtensible(e)&&(e._normalized=o),Z(o,"$stable",s),Z(o,"$key",u),Z(o,"$hasNormal",a),o}function dn(t,e,n,r){var i=function(){var e=vt;yt(t);var n=arguments.length?r.apply(null,arguments):r({});n=n&&"object"===typeof n&&!o(n)?[n]:qe(n);var i=n&&n[0];return yt(e),n&&(!i||1===n.length&&i.isComment&&!hn(i))?void 0:n};return r.proxy&&Object.defineProperty(e,n,{get:i,enumerable:!0,configurable:!0}),i}function pn(t,e){return function(){return t[e]}}function mn(t){var e=t.$options,n=e.setup;if(n){var r=t._setupContext=vn(t);yt(t),Ot();var i=Un(n,null,[t._props||Ht({}),r],t,"setup");if(Ct(),yt(),h(i))e.render=i;else if(f(i))if(t._setupState=i,i.__sfc){var o=t._setupProxy={};for(var a in i)"__sfc"!==a&&se(o,i,a)}else for(var a in i)K(a)||se(t,i,a);else 0}}function vn(t){return{get attrs(){if(!t._attrsProxy){var e=t._attrsProxy={};Z(e,"_v_attr_proxy",!0),gn(e,t.$attrs,i,t,"$attrs")}return t._attrsProxy},get listeners(){if(!t._listenersProxy){var e=t._listenersProxy={};gn(e,t.$listeners,i,t,"$listeners")}return t._listenersProxy},get slots(){return bn(t)},emit:I(t.$emit,t),expose:function(e){e&&Object.keys(e).forEach((function(n){return se(t,e,n)}))}}}function gn(t,e,n,r,i){var o=!1;for(var a in e)a in t?e[a]!==n[a]&&(o=!0):(o=!0,yn(t,a,r,i));for(var a in t)a in e||(o=!0,delete t[a]);return o}function yn(t,e,n,r){Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){return n[r][e]}})}function bn(t){return t._slotsProxy||wn(t._slotsProxy={},t.$scopedSlots),t._slotsProxy}function wn(t,e){for(var n in e)t[n]=e[n];for(var n in t)n in e||delete t[n]}function _n(){return Mn().slots}function xn(){return Mn().attrs}function Sn(){return Mn().listeners}function Mn(){var t=vt;return t._setupContext||(t._setupContext=vn(t))}function kn(t,e){var n=o(t)?t.reduce((function(t,e){return t[e]={},t}),{}):t;for(var r in e){var i=n[r];i?o(i)||h(i)?n[r]={type:i,default:e[r]}:i.default=e[r]:null===i&&(n[r]={default:e[r]})}return n}function En(t){t._vnode=null,t._staticTrees=null;var e=t.$options,n=t.$vnode=e._parentVnode,r=n&&n.context;t.$slots=ln(e._renderChildren,r),t.$scopedSlots=n?fn(t.$parent,n.data.scopedSlots,t.$slots):i,t._c=function(e,n,r,i){return Pn(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Pn(t,e,n,r,i,!0)};var o=n&&n.data;Ft(t,"$attrs",o&&o.attrs||i,null,!0),Ft(t,"$listeners",e._parentListeners||i,null,!0)}var An=null;function On(t){un(t.prototype),t.prototype.$nextTick=function(t){return Qn(t,this)},t.prototype._render=function(){var t,e=this,n=e.$options,r=n.render,i=n._parentVnode;i&&e._isMounted&&(e.$scopedSlots=fn(e.$parent,i.data.scopedSlots,e.$slots,e.$scopedSlots),e._slotsProxy&&wn(e._slotsProxy,e.$scopedSlots)),e.$vnode=i;try{yt(e),An=e,t=r.call(e._renderProxy,e.$createElement)}catch(ou){Fn(ou,e,"render"),t=e._vnode}finally{An=null,yt()}return o(t)&&1===t.length&&(t=t[0]),t instanceof bt||(t=wt()),t.parent=i,t}}function Cn(t,e){return(t.__esModule||mt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),f(t)?e.extend(t):t}function Nn(t,e,n,r,i){var o=wt();return o.asyncFactory=t,o.asyncMeta={data:e,context:n,children:r,tag:i},o}function Tn(t,e){if(u(t.error)&&s(t.errorComp))return t.errorComp;if(s(t.resolved))return t.resolved;var n=An;if(n&&s(t.owners)&&-1===t.owners.indexOf(n)&&t.owners.push(n),u(t.loading)&&s(t.loadingComp))return t.loadingComp;if(n&&!s(t.owners)){var r=t.owners=[n],i=!0,o=null,l=null;n.$on("hook:destroyed",(function(){return x(r,n)}));var c=function(t){for(var e=0,n=r.length;e1?R(n):n;for(var r=R(arguments,1),i='event handler for "'.concat(t,'"'),o=0,a=n.length;odocument.createEvent("Event").timeStamp&&(Zr=function(){return Xr.now()})}var Jr=function(t,e){if(t.post){if(!e.post)return 1}else if(e.post)return-1;return t.id-e.id};function Qr(){var t,e;for(Kr=Zr(),Gr=!0,Vr.sort(Jr),Wr=0;WrWr&&Vr[n].id>t.id)n--;Vr.splice(n+1,0,t)}else Vr.push(t);Hr||(Hr=!0,Qn(Qr))}}function ii(t){var e=t.$options.provide;if(e){var n=h(e)?e.call(t):e;if(!f(n))return;for(var r=Pe(t),i=mt?Reflect.ownKeys(n):Object.keys(n),o=0;o-1)if(o&&!M(i,"default"))a=!1;else if(""===a||a===N(t)){var u=Bi(String,i.type);(u<0||s-1)return this;var n=R(arguments,1);return n.unshift(this),h(t.install)?t.install.apply(t,n):h(t)&&t.apply(null,n),e.push(t),this}}function ao(t){t.mixin=function(t){return this.options=Ni(this.options,t),this}}function so(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var n=this,r=n.cid,i=t._Ctor||(t._Ctor={});if(i[r])return i[r];var o=hi(t)||hi(n.options);var a=function(t){this._init(t)};return a.prototype=Object.create(n.prototype),a.prototype.constructor=a,a.cid=e++,a.options=Ni(n.options,t),a["super"]=n,a.options.props&&uo(a),a.options.computed&&lo(a),a.extend=n.extend,a.mixin=n.mixin,a.use=n.use,H.forEach((function(t){a[t]=n[t]})),o&&(a.options.components[o]=a),a.superOptions=n.options,a.extendOptions=t,a.sealedOptions=P({},a.options),i[r]=a,a}}function uo(t){var e=t.options.props;for(var n in e)Li(t.prototype,"_props",n)}function lo(t){var e=t.options.computed;for(var n in e)Gi(t.prototype,n,e[n])}function co(t){H.forEach((function(e){t[e]=function(t,n){return n?("component"===e&&p(n)&&(n.name=n.name||t,n=this.options._base.extend(n)),"directive"===e&&h(n)&&(n={bind:n,update:n}),this.options[e+"s"][t]=n,n):this.options[e+"s"][t]}}))}function ho(t){return t&&(hi(t.Ctor.options)||t.tag)}function fo(t,e){return o(t)?t.indexOf(e)>-1:"string"===typeof t?t.split(",").indexOf(e)>-1:!!m(t)&&t.test(e)}function po(t,e){var n=t.cache,r=t.keys,i=t._vnode;for(var o in n){var a=n[o];if(a){var s=a.name;s&&!e(s)&&mo(n,o,r,i)}}}function mo(t,e,n,r){var i=t[e];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),t[e]=null,x(n,e)}to(io),Ji(io),Tr(io),Pr(io),On(io);var vo=[String,RegExp,Array],go={name:"keep-alive",abstract:!0,props:{include:vo,exclude:vo,max:[String,Number]},methods:{cacheVNode:function(){var t=this,e=t.cache,n=t.keys,r=t.vnodeToCache,i=t.keyToCache;if(r){var o=r.tag,a=r.componentInstance,s=r.componentOptions;e[i]={name:ho(s),tag:o,componentInstance:a},n.push(i),this.max&&n.length>parseInt(this.max)&&mo(e,n[0],n,this._vnode),this.vnodeToCache=null}}},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)mo(this.cache,t,this.keys)},mounted:function(){var t=this;this.cacheVNode(),this.$watch("include",(function(e){po(t,(function(t){return fo(e,t)}))})),this.$watch("exclude",(function(e){po(t,(function(t){return!fo(e,t)}))}))},updated:function(){this.cacheVNode()},render:function(){var t=this.$slots.default,e=Dn(t),n=e&&e.componentOptions;if(n){var r=ho(n),i=this,o=i.include,a=i.exclude;if(o&&(!r||!fo(o,r))||a&&r&&fo(a,r))return e;var s=this,u=s.cache,l=s.keys,c=null==e.key?n.Ctor.cid+(n.tag?"::".concat(n.tag):""):e.key;u[c]?(e.componentInstance=u[c].componentInstance,x(l,c),l.push(c)):(this.vnodeToCache=e,this.keyToCache=c),e.data.keepAlive=!0}return e||t&&t[0]}},yo={KeepAlive:go};function bo(t){var e={get:function(){return W}};Object.defineProperty(t,"config",e),t.util={warn:bi,extend:P,mergeOptions:Ni,defineReactive:Ft},t.set=Ut,t.delete=Vt,t.nextTick=Qn,t.observable=function(t){return Lt(t),t},t.options=Object.create(null),H.forEach((function(e){t.options[e+"s"]=Object.create(null)})),t.options._base=t,P(t.options.components,yo),oo(t),ao(t),so(t),co(t)}bo(io),Object.defineProperty(io.prototype,"$isServer",{get:ht}),Object.defineProperty(io.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(io,"FunctionalRenderContext",{value:si}),io.version=yr;var wo=w("style,class"),_o=w("input,textarea,option,select,progress"),xo=function(t,e,n){return"value"===n&&_o(t)&&"button"!==e||"selected"===n&&"option"===t||"checked"===n&&"input"===t||"muted"===n&&"video"===t},So=w("contenteditable,draggable,spellcheck"),Mo=w("events,caret,typing,plaintext-only"),ko=function(t,e){return No(e)||"false"===e?"false":"contenteditable"===t&&Mo(e)?e:"true"},Eo=w("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,truespeed,typemustmatch,visible"),Ao="http://www.w3.org/1999/xlink",Oo=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},Co=function(t){return Oo(t)?t.slice(6,t.length):""},No=function(t){return null==t||!1===t};function To(t){var e=t.data,n=t,r=t;while(s(r.componentInstance))r=r.componentInstance._vnode,r&&r.data&&(e=Do(r.data,e));while(s(n=n.parent))n&&n.data&&(e=Do(e,n.data));return Io(e.staticClass,e.class)}function Do(t,e){return{staticClass:Ro(t.staticClass,e.staticClass),class:s(t.class)?[t.class,e.class]:e.class}}function Io(t,e){return s(t)||s(e)?Ro(t,Po(e)):""}function Ro(t,e){return t?e?t+" "+e:t:e||""}function Po(t){return Array.isArray(t)?jo(t):f(t)?Bo(t):"string"===typeof t?t:""}function jo(t){for(var e,n="",r=0,i=t.length;r-1?zo[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:zo[t]=/HTMLUnknownElement/.test(e.toString())}var Ho=w("text,number,password,search,email,tel,url");function Go(t){if("string"===typeof t){var e=document.querySelector(t);return e||document.createElement("div")}return t}function Wo(t,e){var n=document.createElement(t);return"select"!==t||e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&n.setAttribute("multiple","multiple"),n}function Yo(t,e){return document.createElementNS($o[t],e)}function Ko(t){return document.createTextNode(t)}function Zo(t){return document.createComment(t)}function Xo(t,e,n){t.insertBefore(e,n)}function Jo(t,e){t.removeChild(e)}function Qo(t,e){t.appendChild(e)}function ta(t){return t.parentNode}function ea(t){return t.nextSibling}function na(t){return t.tagName}function ra(t,e){t.textContent=e}function ia(t,e){t.setAttribute(e,"")}var oa=Object.freeze({__proto__:null,createElement:Wo,createElementNS:Yo,createTextNode:Ko,createComment:Zo,insertBefore:Xo,removeChild:Jo,appendChild:Qo,parentNode:ta,nextSibling:ea,tagName:na,setTextContent:ra,setStyleScope:ia}),aa={create:function(t,e){sa(e)},update:function(t,e){t.data.ref!==e.data.ref&&(sa(t,!0),sa(e))},destroy:function(t){sa(t,!0)}};function sa(t,e){var n=t.data.ref;if(s(n)){var r=t.context,i=t.componentInstance||t.elm,a=e?null:i,u=e?void 0:i;if(h(n))Un(n,r,[a],r,"template ref function");else{var l=t.data.refInFor,c="string"===typeof n||"number"===typeof n,f=te(n),d=r.$refs;if(c||f)if(l){var p=c?d[n]:n.value;e?o(p)&&x(p,i):o(p)?p.includes(i)||p.push(i):c?(d[n]=[i],ua(r,n,d[n])):n.value=[i]}else if(c){if(e&&d[n]!==i)return;d[n]=u,ua(r,n,a)}else if(f){if(e&&n.value!==i)return;n.value=a}else 0}}}function ua(t,e,n){var r=t._setupState;r&&M(r,e)&&(te(r[e])?r[e].value=n:r[e]=n)}var la=new bt("",{},[]),ca=["create","activate","update","remove","destroy"];function ha(t,e){return t.key===e.key&&t.asyncFactory===e.asyncFactory&&(t.tag===e.tag&&t.isComment===e.isComment&&s(t.data)===s(e.data)&&fa(t,e)||u(t.isAsyncPlaceholder)&&a(e.asyncFactory.error))}function fa(t,e){if("input"!==t.tag)return!0;var n,r=s(n=t.data)&&s(n=n.attrs)&&n.type,i=s(n=e.data)&&s(n=n.attrs)&&n.type;return r===i||Ho(r)&&Ho(i)}function da(t,e,n){var r,i,o={};for(r=e;r<=n;++r)i=t[r].key,s(i)&&(o[i]=r);return o}function pa(t){var e,n,r={},i=t.modules,l=t.nodeOps;for(e=0;em?(h=a(n[y+1])?null:n[y+1].elm,M(t,h,n,d,y,r)):d>y&&E(e,f,m)}function C(t,e,n,r){for(var i=n;i-1?ka(t,e,n):Eo(e)?No(n)?t.removeAttribute(e):(n="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,n)):So(e)?t.setAttribute(e,ko(e,n)):Oo(e)?No(n)?t.removeAttributeNS(Ao,Co(e)):t.setAttributeNS(Ao,e,n):ka(t,e,n)}function ka(t,e,n){if(No(n))t.removeAttribute(e);else{if(nt&&!rt&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==n&&!t.__ieph){var r=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",r)};t.addEventListener("input",r),t.__ieph=!0}t.setAttribute(e,n)}}var Ea={create:Sa,update:Sa};function Aa(t,e){var n=e.elm,r=e.data,i=t.data;if(!(a(r.staticClass)&&a(r.class)&&(a(i)||a(i.staticClass)&&a(i.class)))){var o=To(e),u=n._transitionClasses;s(u)&&(o=Ro(o,Po(u))),o!==n._prevClass&&(n.setAttribute("class",o),n._prevClass=o)}}var Oa,Ca={create:Aa,update:Aa},Na="__r",Ta="__c";function Da(t){if(s(t[Na])){var e=nt?"change":"input";t[e]=[].concat(t[Na],t[e]||[]),delete t[Na]}s(t[Ta])&&(t.change=[].concat(t[Ta],t.change||[]),delete t[Ta])}function Ia(t,e,n){var r=Oa;return function i(){var o=e.apply(null,arguments);null!==o&&ja(t,i,n,r)}}var Ra=Hn&&!(st&&Number(st[1])<=53);function Pa(t,e,n,r){if(Ra){var i=Kr,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=i||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Oa.addEventListener(t,e,lt?{capture:n,passive:r}:n)}function ja(t,e,n,r){(r||Oa).removeEventListener(t,e._wrapper||e,n)}function Ba(t,e){if(!a(t.data.on)||!a(e.data.on)){var n=e.data.on||{},r=t.data.on||{};Oa=e.elm||t.elm,Da(n),Le(n,r,Pa,ja,Ia,e.context),Oa=void 0}}var $a,La={create:Ba,update:Ba,destroy:function(t){return Ba(t,la)}};function Fa(t,e){if(!a(t.data.domProps)||!a(e.data.domProps)){var n,r,i=e.elm,o=t.data.domProps||{},l=e.data.domProps||{};for(n in(s(l.__ob__)||u(l._v_attr_proxy))&&(l=e.data.domProps=P({},l)),o)n in l||(i[n]="");for(n in l){if(r=l[n],"textContent"===n||"innerHTML"===n){if(e.children&&(e.children.length=0),r===o[n])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===n&&"PROGRESS"!==i.tagName){i._value=r;var c=a(r)?"":String(r);Ua(i,c)&&(i.value=c)}else if("innerHTML"===n&&Fo(i.tagName)&&a(i.innerHTML)){$a=$a||document.createElement("div"),$a.innerHTML="".concat(r,"");var h=$a.firstChild;while(i.firstChild)i.removeChild(i.firstChild);while(h.firstChild)i.appendChild(h.firstChild)}else if(r!==o[n])try{i[n]=r}catch(ou){}}}}function Ua(t,e){return!t.composing&&("OPTION"===t.tagName||Va(t,e)||za(t,e))}function Va(t,e){var n=!0;try{n=document.activeElement!==t}catch(ou){}return n&&t.value!==e}function za(t,e){var n=t.value,r=t._vModifiers;if(s(r)){if(r.number)return b(n)!==b(e);if(r.trim)return n.trim()!==e.trim()}return n!==e}var qa={create:Fa,update:Fa},Ha=k((function(t){var e={},n=/;(?![^(]*\))/g,r=/:(.+)/;return t.split(n).forEach((function(t){if(t){var n=t.split(r);n.length>1&&(e[n[0].trim()]=n[1].trim())}})),e}));function Ga(t){var e=Wa(t.style);return t.staticStyle?P(t.staticStyle,e):e}function Wa(t){return Array.isArray(t)?j(t):"string"===typeof t?Ha(t):t}function Ya(t,e){var n,r={};if(e){var i=t;while(i.componentInstance)i=i.componentInstance._vnode,i&&i.data&&(n=Ga(i.data))&&P(r,n)}(n=Ga(t.data))&&P(r,n);var o=t;while(o=o.parent)o.data&&(n=Ga(o.data))&&P(r,n);return r}var Ka,Za=/^--/,Xa=/\s*!important$/,Ja=function(t,e,n){if(Za.test(e))t.style.setProperty(e,n);else if(Xa.test(n))t.style.setProperty(N(e),n.replace(Xa,""),"important");else{var r=ts(e);if(Array.isArray(n))for(var i=0,o=n.length;i-1?e.split(rs).forEach((function(e){return t.classList.add(e)})):t.classList.add(e);else{var n=" ".concat(t.getAttribute("class")||""," ");n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function os(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(rs).forEach((function(e){return t.classList.remove(e)})):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{var n=" ".concat(t.getAttribute("class")||""," "),r=" "+e+" ";while(n.indexOf(r)>=0)n=n.replace(r," ");n=n.trim(),n?t.setAttribute("class",n):t.removeAttribute("class")}}function as(t){if(t){if("object"===typeof t){var e={};return!1!==t.css&&P(e,ss(t.name||"v")),P(e,t),e}return"string"===typeof t?ss(t):void 0}}var ss=k((function(t){return{enterClass:"".concat(t,"-enter"),enterToClass:"".concat(t,"-enter-to"),enterActiveClass:"".concat(t,"-enter-active"),leaveClass:"".concat(t,"-leave"),leaveToClass:"".concat(t,"-leave-to"),leaveActiveClass:"".concat(t,"-leave-active")}})),us=tt&&!rt,ls="transition",cs="animation",hs="transition",fs="transitionend",ds="animation",ps="animationend";us&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(hs="WebkitTransition",fs="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(ds="WebkitAnimation",ps="webkitAnimationEnd"));var ms=tt?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function vs(t){ms((function(){ms(t)}))}function gs(t,e){var n=t._transitionClasses||(t._transitionClasses=[]);n.indexOf(e)<0&&(n.push(e),is(t,e))}function ys(t,e){t._transitionClasses&&x(t._transitionClasses,e),os(t,e)}function bs(t,e,n){var r=_s(t,e),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===ls?fs:ps,u=0,l=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++u>=a&&l()};setTimeout((function(){u0&&(n=ls,c=a,h=o.length):e===cs?l>0&&(n=cs,c=l,h=u.length):(c=Math.max(a,l),n=c>0?a>l?ls:cs:null,h=n?n===ls?o.length:u.length:0);var f=n===ls&&ws.test(r[hs+"Property"]);return{type:n,timeout:c,propCount:h,hasTransform:f}}function xs(t,e){while(t.length1}function Os(t,e){!0!==e.data.show&&Ms(e)}var Cs=tt?{create:Os,activate:Os,remove:function(t,e){!0!==t.data.show?ks(t,e):e()}}:{},Ns=[Ea,Ca,La,qa,ns,Cs],Ts=Ns.concat(xa),Ds=pa({nodeOps:oa,modules:Ts});rt&&document.addEventListener("selectionchange",(function(){var t=document.activeElement;t&&t.vmodel&&Fs(t,"input")}));var Is={inserted:function(t,e,n,r){"select"===n.tag?(r.elm&&!r.elm._vOptions?Fe(n,"postpatch",(function(){Is.componentUpdated(t,e,n)})):Rs(t,e,n.context),t._vOptions=[].map.call(t.options,Bs)):("textarea"===n.tag||Ho(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",$s),t.addEventListener("compositionend",Ls),t.addEventListener("change",Ls),rt&&(t.vmodel=!0)))},componentUpdated:function(t,e,n){if("select"===n.tag){Rs(t,e,n.context);var r=t._vOptions,i=t._vOptions=[].map.call(t.options,Bs);if(i.some((function(t,e){return!F(t,r[e])}))){var o=t.multiple?e.value.some((function(t){return js(t,i)})):e.value!==e.oldValue&&js(e.value,i);o&&Fs(t,"change")}}}};function Rs(t,e,n){Ps(t,e,n),(nt||it)&&setTimeout((function(){Ps(t,e,n)}),0)}function Ps(t,e,n){var r=e.value,i=t.multiple;if(!i||Array.isArray(r)){for(var o,a,s=0,u=t.options.length;s-1,a.selected!==o&&(a.selected=o);else if(F(Bs(a),r))return void(t.selectedIndex!==s&&(t.selectedIndex=s));i||(t.selectedIndex=-1)}}function js(t,e){return e.every((function(e){return!F(e,t)}))}function Bs(t){return"_value"in t?t._value:t.value}function $s(t){t.target.composing=!0}function Ls(t){t.target.composing&&(t.target.composing=!1,Fs(t.target,"input"))}function Fs(t,e){var n=document.createEvent("HTMLEvents");n.initEvent(e,!0,!0),t.dispatchEvent(n)}function Us(t){return!t.componentInstance||t.data&&t.data.transition?t:Us(t.componentInstance._vnode)}var Vs={bind:function(t,e,n){var r=e.value;n=Us(n);var i=n.data&&n.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;r&&i?(n.data.show=!0,Ms(n,(function(){t.style.display=o}))):t.style.display=r?o:"none"},update:function(t,e,n){var r=e.value,i=e.oldValue;if(!r!==!i){n=Us(n);var o=n.data&&n.data.transition;o?(n.data.show=!0,r?Ms(n,(function(){t.style.display=t.__vOriginalDisplay})):ks(n,(function(){t.style.display="none"}))):t.style.display=r?t.__vOriginalDisplay:"none"}},unbind:function(t,e,n,r,i){i||(t.style.display=t.__vOriginalDisplay)}},zs={model:Is,show:Vs},qs={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function Hs(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?Hs(Dn(e.children)):t}function Gs(t){var e={},n=t.$options;for(var r in n.propsData)e[r]=t[r];var i=n._parentListeners;for(var r in i)e[A(r)]=i[r];return e}function Ws(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}function Ys(t){while(t=t.parent)if(t.data.transition)return!0}function Ks(t,e){return e.key===t.key&&e.tag===t.tag}var Zs=function(t){return t.tag||hn(t)},Xs=function(t){return"show"===t.name},Js={name:"transition",props:qs,abstract:!0,render:function(t){var e=this,n=this.$slots.default;if(n&&(n=n.filter(Zs),n.length)){0;var r=this.mode;0;var i=n[0];if(Ys(this.$vnode))return i;var o=Hs(i);if(!o)return i;if(this._leaving)return Ws(t,i);var a="__transition-".concat(this._uid,"-");o.key=null==o.key?o.isComment?a+"comment":a+o.tag:c(o.key)?0===String(o.key).indexOf(a)?o.key:a+o.key:o.key;var s=(o.data||(o.data={})).transition=Gs(this),u=this._vnode,l=Hs(u);if(o.data.directives&&o.data.directives.some(Xs)&&(o.data.show=!0),l&&l.data&&!Ks(o,l)&&!hn(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var h=l.data.transition=P({},s);if("out-in"===r)return this._leaving=!0,Fe(h,"afterLeave",(function(){e._leaving=!1,e.$forceUpdate()})),Ws(t,i);if("in-out"===r){if(hn(o))return u;var f,d=function(){f()};Fe(s,"afterEnter",d),Fe(s,"enterCancelled",d),Fe(h,"delayLeave",(function(t){f=t}))}}return i}}},Qs=P({tag:String,moveClass:String},qs);delete Qs.mode;var tu={props:Qs,beforeMount:function(){var t=this,e=this._update;this._update=function(n,r){var i=Ir(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,i(),e.call(t,n,r)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=Gs(this),s=0;s-1?e:"Object"===e&&g(t)}return s?v(t):null}},7510:function(t){t.exports=n;var e=Object.prototype.hasOwnProperty;function n(){for(var t={},n=0;n=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}Object.create;Object.create;"function"===typeof SuppressedError&&SuppressedError},4198:function(t){"use strict";t.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}}]); +//# sourceMappingURL=chunk-vendors-legacy.cb128214.js.map \ No newline at end of file diff --git a/js/chunk-vendors-legacy.cb128214.js.map b/js/chunk-vendors-legacy.cb128214.js.map new file mode 100644 index 0000000..fbbece9 --- /dev/null +++ b/js/chunk-vendors-legacy.cb128214.js.map @@ -0,0 +1 @@ +{"version":3,"file":"js/chunk-vendors-legacy.cb128214.js","mappings":"4GAAA,OAAC,SAAWA,GACV,aAkDA,IAAIC,EACFC,EAAY,6CAEZC,EAAWC,KAAKC,KAChBC,EAAYF,KAAKG,MAEjBC,EAAiB,qBACjBC,EAAgBD,EAAiB,yDAEjCE,EAAO,KACPC,EAAW,GACXC,EAAmB,iBAEnBC,EAAW,CAAC,EAAG,GAAI,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,IAAK,KAAM,KAAM,KAAM,MAC7EC,EAAY,IAKZC,EAAM,IAMR,SAASC,EAAMC,GACb,IAAIC,EAAKC,EAAaC,EACpBC,EAAIpB,EAAUqB,UAAY,CAAEC,YAAatB,EAAWuB,SAAU,KAAMC,QAAS,MAC7EC,EAAM,IAAIzB,EAAU,GAUpB0B,EAAiB,GAajBC,EAAgB,EAMhBC,GAAc,EAIdC,EAAa,GAMbC,GAAW,IAKXC,EAAU,IAGVC,GAAS,EAkBTC,EAAc,EAIdC,EAAgB,EAGhBC,EAAS,CACPC,iBAAkB,IAClBC,eAAgB,IAChBC,UAAW,EACXC,mBAAoB,EACpBC,uBAAwB,IACxBC,kBAAmB,GAMrBC,EAAW,uCAgBb,SAAS1C,EAAU2C,EAAGC,GACpB,IAAIC,EAAUC,EAAGC,EAAaC,EAAGC,EAAGC,EAAOC,EAAKC,EAC9CC,EAAI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EAAEpE,GAAKoE,EAAElE,GAChBogC,EAAOl8B,EAAEpE,EAAI,GAAKoE,EAAElE,EAAI,GACxBkE,EAAEpE,GAAMqgC,IAAS,GAAOC,GAAQ,EAChCl8B,EAAEpE,EAAI,GAAMsgC,IAAS,GAAOD,GAAQ,EAEpCd,EAAQn7B,EAAGoB,EAAGxF,GACd0/B,EAAQt7B,EAAGoB,EAAG26B,EAAIC,GAGlBC,EAAOj8B,EAAErB,GAAKqB,EAAEoB,GAChB86B,EAAOl8B,EAAErB,EAAI,GAAKqB,EAAEoB,EAAI,GACxBpB,EAAErB,GAAMs9B,IAAS,GAAOC,GAAQ,GAChCl8B,EAAErB,EAAI,GAAMu9B,IAAS,GAAOD,GAAQ,GAEpCd,EAAQn7B,EAAGlE,EAAG6C,GAGds9B,EAAOj8B,EAAEpE,GAAKoE,EAAElE,GAChBogC,EAAOl8B,EAAEpE,EAAI,GAAKoE,EAAElE,EAAI,GACxBkE,EAAEpE,GAAMsgC,IAAS,GAAOD,GAAQ,EAChCj8B,EAAEpE,EAAI,GAAMqgC,IAAS,GAAOC,GAAQ,CACtC,CAGA,MAAMC,EAAe,IAAI76B,YAAY,CACnC,WACA,WACA,WACA,WACA,WACA,WACA,WACA,WACA,WACA,WACA,UACA,WACA,WACA,UACA,UACA,aAGI86B,EAAS,CACb,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,GACA,GACA,EACA,EACA,GACA,EACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,GACA,EACA,EACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,EACA,GACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,EACA,GACA,GACA,EACA,EACA,GACA,EACA,EACA,GACA,GACA,GACA,EACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,EACA,GACA,GACA,EACA,EACA,EACA,EACA,EACA,GACA,EACA,EACA,EACA,EACA,GACA,EACA,GACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,EACA,GACA,EACA,GACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,GACA,GACA,EACA,EACA,GACA,EACA,EACA,GACA,EACA,EACA,GAMIC,EAAU,IAAIvK,WAClBsK,EAAOtrB,KAAI,SAAUzU,GACnB,OAAW,EAAJA,CACT,KAKI2D,EAAI,IAAIsB,YAAY,IACpBnD,EAAI,IAAImD,YAAY,IAC1B,SAASg7B,EAAiBjc,EAAKkc,GAC7B,IAAItgC,EAAI,EAGR,IAAKA,EAAI,EAAGA,EAAI,GAAIA,IAClB+D,EAAE/D,GAAKokB,EAAIjU,EAAEnQ,GACb+D,EAAE/D,EAAI,IAAMkgC,EAAalgC,GAe3B,IAXA+D,EAAE,IAAMA,EAAE,IAAMqgB,EAAI5Z,EACpBzG,EAAE,IAAMA,EAAE,IAAOqgB,EAAI5Z,EAAI,WAIrB81B,IACFv8B,EAAE,KAAOA,EAAE,IACXA,EAAE,KAAOA,EAAE,KAIR/D,EAAI,EAAGA,EAAI,GAAIA,IAClBkC,EAAElC,GAAKw/B,EAAUpb,EAAIzkB,EAAG,EAAIK,GAO9B,IAAKA,EAAI,EAAGA,EAAI,GAAIA,IAElBy/B,EAAM,EAAG,EAAG,GAAI,GAAIW,EAAY,GAAJpgC,EAAS,GAAIogC,EAAY,GAAJpgC,EAAS,IAC1Dy/B,EAAM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,GACrB,OAAO+D,EAAE/D,GAAM+D,EAAE/D,EAAI,IAAM,EAAM+D,EAAE/D,EAAI,IAAM,GAAO+D,EAAE/D,EAAI,IAAM,EAClE,CAGA,SAAS6gC,EAAO17B,EAAGxF,EAAGE,EAAG6C,EAAGtC,EAAG6F,GAC7BlC,EAAEoB,GAAKpB,EAAEoB,GAAKpB,EAAEpE,GAAKS,EACrB2D,EAAErB,GAAKo+B,EAAO/8B,EAAErB,GAAKqB,EAAEoB,GAAI,IAC3BpB,EAAElE,GAAKkE,EAAElE,GAAKkE,EAAErB,GAChBqB,EAAEpE,GAAKmhC,EAAO/8B,EAAEpE,GAAKoE,EAAElE,GAAI,IAC3BkE,EAAEoB,GAAKpB,EAAEoB,GAAKpB,EAAEpE,GAAKsG,EACrBlC,EAAErB,GAAKo+B,EAAO/8B,EAAErB,GAAKqB,EAAEoB,GAAI,GAC3BpB,EAAElE,GAAKkE,EAAElE,GAAKkE,EAAErB,GAChBqB,EAAEpE,GAAKmhC,EAAO/8B,EAAEpE,GAAKoE,EAAElE,GAAI,EAC7B,CAKA,SAASihC,EAAQ1gC,EAAG6F,GAClB,OAAQ7F,IAAM6F,EAAM7F,GAAM,GAAK6F,CACjC,CAGA,MAAM86B,EAAa,IAAI17B,YAAY,CACjC,WACA,WACA,WACA,WACA,WACA,WACA,UACA,aAGI27B,EAAQ,IAAInL,WAAW,CAC3B,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,GACA,GACA,EACA,EACA,GACA,EACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,GACA,EACA,EACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,EACA,GACA,GACA,EACA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A,WACA,WACA,WACA,WACA,WACA,WACA,UACA,WACA,WACA,UACA,UACA,aAGI86B,EAAS,CACb,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,GACA,GACA,EACA,EACA,GACA,EACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,GACA,EACA,EACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,EACA,GACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,EACA,GACA,GACA,EACA,EACA,GACA,EACA,EACA,GACA,GACA,GACA,EACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,EACA,GACA,GACA,EACA,EACA,EACA,EACA,EACA,GACA,EACA,EACA,EACA,EACA,GACA,EACA,GACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,EACA,GACA,EACA,GACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,GACA,GACA,EACA,EACA,GACA,EACA,EACA,GACA,EACA,EACA,GAMIC,EAAU,IAAIvK,WAClBsK,EAAOtrB,KAAI,SAAUzU,GACnB,OAAW,EAAJA,CACT,KAKI2D,EAAI,IAAIsB,YAAY,IACpBnD,EAAI,IAAImD,YAAY,IAC1B,SAASg7B,EAAiBjc,EAAKkc,GAC7B,IAAItgC,EAAI,EAGR,IAAKA,EAAI,EAAGA,EAAI,GAAIA,IAClB+D,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CACjC,CAGA,MAAM86B,EAAa,IAAI17B,YAAY,CACjC,WACA,WACA,WACA,WACA,WACA,WACA,UACA,aAGI27B,EAAQ,IAAInL,WAAW,CAC3B,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,GACA,GACA,EACA,EACA,GACA,EACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,GACA,EACA,EACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,EACA,GACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,EACA,GACA,GACA,EACA,EACA,GACA,EACA,EACA,GACA,GACA,GACA,EACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,EACA,GACA,GACA,EACA,EACA,EACA,EACA,EACA,GACA,EACA,EACA,EACA,EACA,GACA,EACA,GACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,EACA,GACA,EACA,GACA,GACA,IAII9xB,EAAI,IAAIsB,YAAY,IACpBnD,EAAI,IAAImD,YAAY,IAC1B,SAAS47B,EAAiB7c,EAAKkc,GAC7B,IAAItgC,EAAI,EACR,IAAKA,EAAI,EAAGA,EAAI,EAAGA,IAEjB+D,EAAE/D,GAAKokB,EAAIjU,EAAEnQ,GACb+D,EAAE/D,EAAI,GAAK+gC,EAAW/gC,GAUxB,IAPA+D,EAAE,KAAOqgB,EAAI5Z,EACbzG,EAAE,KAAOqgB,EAAI5Z,EAAI,WACb81B,IAEFv8B,EAAE,KAAOA,EAAE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AKkE,EAAElE,GAAKkE,EAAErB,GAChBqB,EAAEpE,GAAKmhC,EAAO/8B,EAAEpE,GAAKoE,EAAElE,GAAI,EAC7B,CAKA,SAASihC,EAAQ1gC,EAAG6F,GAClB,OAAQ7F,IAAM6F,EAAM7F,GAAM,GAAK6F,CACjC,CAGA,MAAM86B,EAAa,IAAI17B,YAAY,CACjC,WACA,WACA,WACA,WACA,WACA,WACA,UACA,aAGI27B,EAAQ,IAAInL,WAAW,CAC3B,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,GACA,GACA,EACA,EACA,GACA,EACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,GACA,EACA,EACA,EACA,GACA,EACA,EACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,EACA,GACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,EACA,GACA,GACA,EACA,EACA,GACA,EACA,EACA,GACA,GACA,GACA,EACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,GACA,EACA,GACA,GACA,EACA,EACA,EACA,EACA,EACA,GACA,EACA,EACA,EACA,EACA,GACA,EACA,GACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,GACA,EACA,GACA,EACA,EACA,EACA,EACA,EACA,EACA,EACA,GACA,GACA,EACA,GACA,EACA,GACA,GACA,IAII9xB,EAAI,IAAIsB,YAAY,IACpBnD,EAAI,IAAImD,YAAY,IAC1B,SAAS47B,EAAiB7c,EAAKkc,GAC7B,IAAItgC,EAAI,EACR,IAAKA,EAAI,EAAGA,EAAI,EAAGA,IAEjB+D,EAAE/D,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AIuvM,EAAWjyM,MAAIyC,GAAK5C,EAAI,EAAI6C,EAAED,GAAK5C,EAAI,EAAI6C,EAAEi5C,EAAQtjC,EAAK5V,GAAKC,EAAEi5C,EAAQtjC,KAAS5V,GAChJ,OAAO5C,EAAI,GAAK4C,GAAK2K,OAAOygB,eAAe8tB,EAAQtjC,EAAK5V,GAAIA,CAC9D,CA6F6B2K,OAAOiD,OA0GXjD,OAAOiD,OAyDkB,oBAApB+rO,iBAAiCA,e","sources":["webpack://inspector-app/./node_modules/@vechain/connex-driver/node_modules/bignumber.js/bignumber.js","webpack://inspector-app/./node_modules/@vechain/connex-framework/dist/rules.js","webpack://inspector-app/./node_modules/@vechain/connex-framework/node_modules/bignumber.js/bignumber.js","webpack://inspector-app/./node_modules/@vechain/connex/dist/connex.js","webpack://inspector-app/./node_modules/thor-devkit/esm/abi.js","webpack://inspector-app/./node_modules/@vechain/connex-framework/esm/revert-reason.js","webpack://inspector-app/./node_modules/@vechain/connex-framework/esm/rules.js","webpack://inspector-app/./node_modules/@vechain/connex-framework/esm/filter.js","webpack://inspector-app/./node_modules/@vechain/connex-framework/esm/vendor.js","webpack://inspector-app/./node_modules/@vechain/connex-framework/esm/account-visitor.js","webpack://inspector-app/./node_modules/@vechain/connex-framework/esm/block-visitor.js","webpack://inspector-app/./node_modules/@vechain/connex-framework/esm/tx-visitor.js","webpack://inspector-app/./node_modules/@vechain/connex-framework/esm/head-tracker.js","webpack://inspector-app/./node_modules/@vechain/connex-framework/esm/explainer.js","webpack://inspector-app/./node_modules/@vechain/connex-framework/esm/thor.js","webpack://inspector-app/./node_modules/@vechain/connex-framework/esm/driver-guard.js","webpack://inspector-app/./node_modules/@vechain/connex-framework/esm/index.js","webpack://inspector-app/./node_modules/@vechain/connex/esm/config.js","webpack://inspector-app/./node_modules/@vechain/connex/esm/compat.js","webpack://inspector-app/./node_modules/@vechain/connex-driver/esm/promint.js","webpack://inspector-app/./node_modules/thor-devkit/esm/blake2b.js","webpack://inspector-app/./node_modules/@vechain/connex-driver/esm/bloom.js","webpack://inspector-app/./node_modules/@vechain/connex-driver/esm/cache.js","webpack://inspector-app/./node_modules/@vechain/connex-driver/esm/common.js","webpack://inspector-app/./node_modules/@vechain/connex-driver/esm/driver-no-vendor.js","webpack://inspector-app/./node_modules/@vechain/connex-driver/esm/simple-websocket-reader.js","webpack://inspector-app/./node_modules/@vechain/connex-driver/esm/simple-net.js","webpack://inspector-app/./node_modules/@vechain/connex/esm/script-loader.js","webpack://inspector-app/./node_modules/@vechain/connex/esm/driver.js","webpack://inspector-app/./node_modules/@vechain/connex/esm/index.js","webpack://inspector-app/./node_modules/@vechain/ethers/_version.js","webpack://inspector-app/./node_modules/@vechain/ethers/constants.js","webpack://inspector-app/./node_modules/@vechain/ethers/errors.js","webpack://inspector-app/./node_modules/@vechain/ethers/utils/abi-coder.js","webpack://inspector-app/./node_modules/@vechain/ethers/utils/address.js","webpack://inspector-app/./node_modules/@vechain/ethers/utils/bignumber.js","webpack://inspector-app/./node_modules/@vechain/ethers/utils/bytes.js","webpack://inspector-app/./node_modules/@vechain/ethers/utils/keccak256.js","webpack://inspector-app/./node_modules/@vechain/ethers/utils/properties.js","webpack://inspector-app/./node_modules/@vechain/ethers/utils/rlp.js","webpack://inspector-app/./node_modules/@vechain/ethers/utils/utf8.js","webpack://inspector-app/./node_modules/@vechain/picasso/esm/index.js","webpack://inspector-app/./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js","webpack://inspector-app/./node_modules/assert/build/assert.js","webpack://inspector-app/./node_modules/assert/build/internal/assert/assertion_error.js","webpack://inspector-app/./node_modules/assert/build/internal/errors.js","webpack://inspector-app/./node_modules/assert/build/internal/util/comparisons.js","webpack://inspector-app/./node_modules/axios/index.js","webpack://inspector-app/./node_modules/axios/lib/adapters/xhr.js","webpack://inspector-app/./node_modules/axios/lib/axios.js","webpack://inspector-app/./node_modules/axios/lib/cancel/Cancel.js","webpack://inspector-app/./node_modules/axios/lib/cancel/CancelToken.js","webpack://inspector-app/./node_modules/axios/lib/cancel/isCancel.js","webpack://inspector-app/./node_modules/axios/lib/core/Axios.js","webpack://inspector-app/./node_modules/axios/lib/core/InterceptorManager.js","webpack://inspector-app/./node_modules/axios/lib/core/buildFullPath.js","webpack://inspector-app/./node_modules/axios/lib/core/createError.js","webpack://inspector-app/./node_modules/axios/lib/core/dispatchRequest.js","webpack://inspector-app/./node_modules/axios/lib/core/enhanceError.js","webpack://inspector-app/./node_modules/axios/lib/core/mergeConfig.js","webpack://inspector-app/./node_modules/axios/lib/core/settle.js","webpack://inspector-app/./node_modules/axios/lib/core/transformData.js","webpack://inspector-app/./node_modules/axios/lib/defaults.js","webpack://inspector-app/./node_modules/axios/lib/helpers/bind.js","webpack://inspector-app/./node_modules/axios/lib/helpers/buildURL.js","webpack://inspector-app/./node_modules/axios/lib/helpers/combineURLs.js","webpack://inspector-app/./node_modules/axios/lib/helpers/cookies.js","webpack://inspector-app/./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack://inspector-app/./node_modules/axios/lib/helpers/isAxiosError.js","webpack://inspector-app/./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack://inspector-app/./node_modules/axios/lib/helpers/normalizeHeaderName.js","webpack://inspector-app/./node_modules/axios/lib/helpers/parseHeaders.js","webpack://inspector-app/./node_modules/axios/lib/helpers/spread.js","webpack://inspector-app/./node_modules/axios/lib/helpers/validator.js","webpack://inspector-app/./node_modules/axios/lib/utils.js","webpack://inspector-app/./node_modules/base64-js/index.js","webpack://inspector-app/./node_modules/bignumber.js/bignumber.js","webpack://inspector-app/./node_modules/blakejs/blake2b.js","webpack://inspector-app/./node_modules/blakejs/blake2s.js","webpack://inspector-app/./node_modules/blakejs/index.js","webpack://inspector-app/./node_modules/blakejs/util.js","webpack://inspector-app/./node_modules/bn.js/lib/bn.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-1fafdf15.js","webpack://inspector-app/./node_modules/buefy/dist/esm/helpers.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-6985c8ce.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-cca88db8.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-d0a313ea.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-cdfca85b.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-d1591eb8.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-3fcea532.js","webpack://inspector-app/./node_modules/buefy/dist/esm/autocomplete.js","webpack://inspector-app/./node_modules/buefy/dist/esm/button.js","webpack://inspector-app/./node_modules/buefy/dist/esm/carousel.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-2793447b.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-7bdbd626.js","webpack://inspector-app/./node_modules/buefy/dist/esm/checkbox.js","webpack://inspector-app/./node_modules/buefy/dist/esm/collapse.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-42f463e6.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-1196ee55.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-4d76806f.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-eb60b35a.js","webpack://inspector-app/./node_modules/buefy/dist/esm/clockpicker.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-77ffdf8b.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-66a4ceca.js","webpack://inspector-app/./node_modules/buefy/dist/esm/datepicker.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-a684d1f3.js","webpack://inspector-app/./node_modules/buefy/dist/esm/datetimepicker.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-0cb0546b.js","webpack://inspector-app/./node_modules/buefy/dist/esm/dialog.js","webpack://inspector-app/./node_modules/buefy/dist/esm/dropdown.js","webpack://inspector-app/./node_modules/buefy/dist/esm/field.js","webpack://inspector-app/./node_modules/buefy/dist/esm/icon.js","webpack://inspector-app/./node_modules/buefy/dist/esm/input.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-b9bdb0e4.js","webpack://inspector-app/./node_modules/buefy/dist/esm/loading.js","webpack://inspector-app/./node_modules/buefy/dist/esm/menu.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-0e26d208.js","webpack://inspector-app/./node_modules/buefy/dist/esm/message.js","webpack://inspector-app/./node_modules/buefy/dist/esm/modal.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-53640c15.js","webpack://inspector-app/./node_modules/buefy/dist/esm/notification.js","webpack://inspector-app/./node_modules/buefy/dist/esm/navbar.js","webpack://inspector-app/./node_modules/buefy/dist/esm/numberinput.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-bd608559.js","webpack://inspector-app/./node_modules/buefy/dist/esm/pagination.js","webpack://inspector-app/./node_modules/buefy/dist/esm/progress.js","webpack://inspector-app/./node_modules/buefy/dist/esm/radio.js","webpack://inspector-app/./node_modules/buefy/dist/esm/rate.js","webpack://inspector-app/./node_modules/buefy/dist/esm/select.js","webpack://inspector-app/./node_modules/buefy/dist/esm/skeleton.js","webpack://inspector-app/./node_modules/buefy/dist/esm/sidebar.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-9ec85033.js","webpack://inspector-app/./node_modules/buefy/dist/esm/slider.js","webpack://inspector-app/./node_modules/buefy/dist/esm/snackbar.js","webpack://inspector-app/./node_modules/buefy/dist/esm/steps.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-0e3f4fb5.js","webpack://inspector-app/./node_modules/buefy/dist/esm/switch.js","webpack://inspector-app/./node_modules/buefy/dist/esm/table.js","webpack://inspector-app/./node_modules/buefy/dist/esm/tabs.js","webpack://inspector-app/./node_modules/buefy/dist/esm/chunk-7292bea2.js","webpack://inspector-app/./node_modules/buefy/dist/esm/tag.js","webpack://inspector-app/./node_modules/buefy/dist/esm/taginput.js","webpack://inspector-app/./node_modules/buefy/dist/esm/timepicker.js","webpack://inspector-app/./node_modules/buefy/dist/esm/toast.js","webpack://inspector-app/./node_modules/buefy/dist/esm/tooltip.js","webpack://inspector-app/./node_modules/buefy/dist/esm/upload.js","webpack://inspector-app/./node_modules/buefy/dist/esm/index.js","webpack://inspector-app/./node_modules/buffer/index.js","webpack://inspector-app/./node_modules/builtin-status-codes/browser.js","webpack://inspector-app/./node_modules/call-bind/callBound.js","webpack://inspector-app/./node_modules/call-bind/index.js","webpack://inspector-app/./node_modules/console-browserify/index.js","webpack://inspector-app/./node_modules/define-data-property/index.js","webpack://inspector-app/./node_modules/define-properties/index.js","webpack://inspector-app/./node_modules/dexie-observable/dist/dexie-observable.es.js","webpack://inspector-app/./node_modules/dexie/dist/dexie.es.js","webpack://inspector-app/./node_modules/es-define-property/index.js","webpack://inspector-app/./node_modules/es-errors/eval.js","webpack://inspector-app/./node_modules/es-errors/index.js","webpack://inspector-app/./node_modules/es-errors/range.js","webpack://inspector-app/./node_modules/es-errors/ref.js","webpack://inspector-app/./node_modules/es-errors/syntax.js","webpack://inspector-app/./node_modules/es-errors/type.js","webpack://inspector-app/./node_modules/es-errors/uri.js","webpack://inspector-app/./node_modules/events/events.js","webpack://inspector-app/./node_modules/file-saver-es/src/FileSaver.js","webpack://inspector-app/./node_modules/for-each/index.js","webpack://inspector-app/./node_modules/function-bind/implementation.js","webpack://inspector-app/./node_modules/function-bind/index.js","webpack://inspector-app/./node_modules/get-intrinsic/index.js","webpack://inspector-app/./node_modules/gopd/index.js","webpack://inspector-app/./node_modules/has-property-descriptors/index.js","webpack://inspector-app/./node_modules/has-proto/index.js","webpack://inspector-app/./node_modules/has-symbols/index.js","webpack://inspector-app/./node_modules/has-symbols/shams.js","webpack://inspector-app/./node_modules/has-tostringtag/shams.js","webpack://inspector-app/./node_modules/hasown/index.js","webpack://inspector-app/./node_modules/https-browserify/index.js","webpack://inspector-app/./node_modules/ieee754/index.js","webpack://inspector-app/./node_modules/inherits/inherits_browser.js","webpack://inspector-app/./node_modules/is-arguments/index.js","webpack://inspector-app/./node_modules/is-callable/index.js","webpack://inspector-app/./node_modules/is-generator-function/index.js","webpack://inspector-app/./node_modules/is-nan/implementation.js","webpack://inspector-app/./node_modules/is-nan/index.js","webpack://inspector-app/./node_modules/is-nan/polyfill.js","webpack://inspector-app/./node_modules/is-nan/shim.js","webpack://inspector-app/./node_modules/is-typed-array/index.js","webpack://inspector-app/./node_modules/isomorphic-ws/browser.js","webpack://inspector-app/./node_modules/js-sha3/src/sha3.js","webpack://inspector-app/./node_modules/lru-cache/index.js","webpack://inspector-app/./node_modules/lru-cache/node_modules/yallist/iterator.js","webpack://inspector-app/./node_modules/lru-cache/node_modules/yallist/yallist.js","webpack://inspector-app/./node_modules/mersenne-twister/src/mersenne-twister.js","webpack://inspector-app/./node_modules/object-inspect/index.js","webpack://inspector-app/./node_modules/object-is/implementation.js","webpack://inspector-app/./node_modules/object-is/index.js","webpack://inspector-app/./node_modules/object-is/polyfill.js","webpack://inspector-app/./node_modules/object-is/shim.js","webpack://inspector-app/./node_modules/object-keys/implementation.js","webpack://inspector-app/./node_modules/object-keys/index.js","webpack://inspector-app/./node_modules/object-keys/isArguments.js","webpack://inspector-app/./node_modules/object.assign/implementation.js","webpack://inspector-app/./node_modules/object.assign/polyfill.js","webpack://inspector-app/./node_modules/possible-typed-array-names/index.js","webpack://inspector-app/./node_modules/process/browser.js","webpack://inspector-app/./node_modules/randombytes/browser.js","webpack://inspector-app/./node_modules/readable-stream/errors-browser.js","webpack://inspector-app/./node_modules/readable-stream/lib/_stream_duplex.js","webpack://inspector-app/./node_modules/readable-stream/lib/_stream_passthrough.js","webpack://inspector-app/./node_modules/readable-stream/lib/_stream_readable.js","webpack://inspector-app/./node_modules/readable-stream/lib/_stream_transform.js","webpack://inspector-app/./node_modules/readable-stream/lib/_stream_writable.js","webpack://inspector-app/./node_modules/readable-stream/lib/internal/streams/async_iterator.js","webpack://inspector-app/./node_modules/readable-stream/lib/internal/streams/buffer_list.js","webpack://inspector-app/./node_modules/readable-stream/lib/internal/streams/destroy.js","webpack://inspector-app/./node_modules/readable-stream/lib/internal/streams/end-of-stream.js","webpack://inspector-app/./node_modules/readable-stream/lib/internal/streams/from-browser.js","webpack://inspector-app/./node_modules/readable-stream/lib/internal/streams/pipeline.js","webpack://inspector-app/./node_modules/readable-stream/lib/internal/streams/state.js","webpack://inspector-app/./node_modules/readable-stream/lib/internal/streams/stream-browser.js","webpack://inspector-app/./node_modules/readable-stream/readable-browser.js","webpack://inspector-app/./node_modules/safe-buffer/index.js","webpack://inspector-app/./node_modules/set-function-length/index.js","webpack://inspector-app/./node_modules/side-channel/index.js","webpack://inspector-app/./node_modules/stream-http/index.js","webpack://inspector-app/./node_modules/stream-http/lib/capability.js","webpack://inspector-app/./node_modules/stream-http/lib/request.js","webpack://inspector-app/./node_modules/stream-http/lib/response.js","webpack://inspector-app/./node_modules/string_decoder/lib/string_decoder.js","webpack://inspector-app/./node_modules/thor-devkit/esm/address.js","webpack://inspector-app/./node_modules/thor-devkit/esm/keccak.js","webpack://inspector-app/./node_modules/url/node_modules/punycode/punycode.js","webpack://inspector-app/./node_modules/url/node_modules/qs/lib/formats.js","webpack://inspector-app/./node_modules/url/node_modules/qs/lib/index.js","webpack://inspector-app/./node_modules/url/node_modules/qs/lib/parse.js","webpack://inspector-app/./node_modules/url/node_modules/qs/lib/stringify.js","webpack://inspector-app/./node_modules/url/node_modules/qs/lib/utils.js","webpack://inspector-app/./node_modules/url/url.js","webpack://inspector-app/./node_modules/util-deprecate/browser.js","webpack://inspector-app/./node_modules/util/support/isBufferBrowser.js","webpack://inspector-app/./node_modules/util/support/types.js","webpack://inspector-app/./node_modules/util/util.js","webpack://inspector-app/./node_modules/validator-ts/dist/index.js","webpack://inspector-app/./node_modules/vee-validate/dist/vee-validate.esm.js","webpack://inspector-app/./node_modules/vue-analytics/dist/vue-analytics.js","webpack://inspector-app/./node_modules/vue-class-component/dist/vue-class-component.common.js","webpack://inspector-app/./node_modules/vue-property-decorator/lib/vue-property-decorator.js","webpack://inspector-app/./node_modules/vue-router/dist/vue-router.esm.js","webpack://inspector-app/./node_modules/vue/dist/vue.runtime.esm.js","webpack://inspector-app/./node_modules/which-typed-array/index.js","webpack://inspector-app/./node_modules/xtend/immutable.js","webpack://inspector-app/./node_modules/available-typed-arrays/index.js","webpack://inspector-app/./node_modules/tslib/tslib.es6.mjs"],"sourcesContent":[";(function (globalObject) {\r\n 'use strict';\r\n\r\n/*\r\n * bignumber.js v7.2.1\r\n * A JavaScript library for arbitrary-precision arithmetic.\r\n * https://github.com/MikeMcl/bignumber.js\r\n * Copyright (c) 2018 Michael Mclaughlin \r\n * MIT Licensed.\r\n *\r\n * BigNumber.prototype methods | BigNumber methods\r\n * |\r\n * absoluteValue abs | clone\r\n * comparedTo | config set\r\n * decimalPlaces dp | DECIMAL_PLACES\r\n * dividedBy div | ROUNDING_MODE\r\n * dividedToIntegerBy idiv | EXPONENTIAL_AT\r\n * exponentiatedBy pow | RANGE\r\n * integerValue | CRYPTO\r\n * isEqualTo eq | MODULO_MODE\r\n * isFinite | POW_PRECISION\r\n * isGreaterThan gt | FORMAT\r\n * isGreaterThanOrEqualTo gte | ALPHABET\r\n * isInteger | isBigNumber\r\n * isLessThan lt | maximum max\r\n * isLessThanOrEqualTo lte | minimum min\r\n * isNaN | random\r\n * isNegative |\r\n * isPositive |\r\n * isZero |\r\n * minus |\r\n * modulo mod |\r\n * multipliedBy times |\r\n * negated |\r\n * plus |\r\n * precision sd |\r\n * shiftedBy |\r\n * squareRoot sqrt |\r\n * toExponential |\r\n * toFixed |\r\n * toFormat |\r\n * toFraction |\r\n * toJSON |\r\n * toNumber |\r\n * toPrecision |\r\n * toString |\r\n * valueOf |\r\n *\r\n */\r\n\r\n\r\n var BigNumber,\r\n isNumeric = /^-?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?$/i,\r\n\r\n mathceil = Math.ceil,\r\n mathfloor = Math.floor,\r\n\r\n bignumberError = '[BigNumber Error] ',\r\n tooManyDigits = bignumberError + 'Number primitive has more than 15 significant digits: ',\r\n\r\n BASE = 1e14,\r\n LOG_BASE = 14,\r\n MAX_SAFE_INTEGER = 0x1fffffffffffff, // 2^53 - 1\r\n // MAX_INT32 = 0x7fffffff, // 2^31 - 1\r\n POWS_TEN = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13],\r\n SQRT_BASE = 1e7,\r\n\r\n // EDITABLE\r\n // The limit on the value of DECIMAL_PLACES, TO_EXP_NEG, TO_EXP_POS, MIN_EXP, MAX_EXP, and\r\n // the arguments to toExponential, toFixed, toFormat, and toPrecision.\r\n MAX = 1E9; // 0 to MAX_INT32\r\n\r\n\r\n /*\r\n * Create and return a BigNumber constructor.\r\n */\r\n function clone(configObject) {\r\n var div, convertBase, parseNumeric,\r\n P = BigNumber.prototype = { constructor: BigNumber, toString: null, valueOf: null },\r\n ONE = new BigNumber(1),\r\n\r\n\r\n //----------------------------- EDITABLE CONFIG DEFAULTS -------------------------------\r\n\r\n\r\n // The default values below must be integers within the inclusive ranges stated.\r\n // The values can also be changed at run-time using BigNumber.set.\r\n\r\n // The maximum number of decimal places for operations involving division.\r\n DECIMAL_PLACES = 20, // 0 to MAX\r\n\r\n // The rounding mode used when rounding to the above decimal places, and when using\r\n // toExponential, toFixed, toFormat and toPrecision, and round (default value).\r\n // UP 0 Away from zero.\r\n // DOWN 1 Towards zero.\r\n // CEIL 2 Towards +Infinity.\r\n // FLOOR 3 Towards -Infinity.\r\n // HALF_UP 4 Towards nearest neighbour. If equidistant, up.\r\n // HALF_DOWN 5 Towards nearest neighbour. If equidistant, down.\r\n // HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour.\r\n // HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity.\r\n // HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity.\r\n ROUNDING_MODE = 4, // 0 to 8\r\n\r\n // EXPONENTIAL_AT : [TO_EXP_NEG , TO_EXP_POS]\r\n\r\n // The exponent value at and beneath which toString returns exponential notation.\r\n // Number type: -7\r\n TO_EXP_NEG = -7, // 0 to -MAX\r\n\r\n // The exponent value at and above which toString returns exponential notation.\r\n // Number type: 21\r\n TO_EXP_POS = 21, // 0 to MAX\r\n\r\n // RANGE : [MIN_EXP, MAX_EXP]\r\n\r\n // The minimum exponent value, beneath which underflow to zero occurs.\r\n // Number type: -324 (5e-324)\r\n MIN_EXP = -1e7, // -1 to -MAX\r\n\r\n // The maximum exponent value, above which overflow to Infinity occurs.\r\n // Number type: 308 (1.7976931348623157e+308)\r\n // For MAX_EXP > 1e7, e.g. new BigNumber('1e100000000').plus(1) may be slow.\r\n MAX_EXP = 1e7, // 1 to MAX\r\n\r\n // Whether to use cryptographically-secure random number generation, if available.\r\n CRYPTO = false, // true or false\r\n\r\n // The modulo mode used when calculating the modulus: a mod n.\r\n // The quotient (q = a / n) is calculated according to the corresponding rounding mode.\r\n // The remainder (r) is calculated as: r = a - n * q.\r\n //\r\n // UP 0 The remainder is positive if the dividend is negative, else is negative.\r\n // DOWN 1 The remainder has the same sign as the dividend.\r\n // This modulo mode is commonly known as 'truncated division' and is\r\n // equivalent to (a % n) in JavaScript.\r\n // FLOOR 3 The remainder has the same sign as the divisor (Python %).\r\n // HALF_EVEN 6 This modulo mode implements the IEEE 754 remainder function.\r\n // EUCLID 9 Euclidian division. q = sign(n) * floor(a / abs(n)).\r\n // The remainder is always positive.\r\n //\r\n // The truncated division, floored division, Euclidian division and IEEE 754 remainder\r\n // modes are commonly used for the modulus operation.\r\n // Although the other rounding modes can also be used, they may not give useful results.\r\n MODULO_MODE = 1, // 0 to 9\r\n\r\n // The maximum number of significant digits of the result of the exponentiatedBy operation.\r\n // If POW_PRECISION is 0, there will be unlimited significant digits.\r\n POW_PRECISION = 0, // 0 to MAX\r\n\r\n // The format specification used by the BigNumber.prototype.toFormat method.\r\n FORMAT = {\r\n decimalSeparator: '.',\r\n groupSeparator: ',',\r\n groupSize: 3,\r\n secondaryGroupSize: 0,\r\n fractionGroupSeparator: '\\xA0', // non-breaking space\r\n fractionGroupSize: 0\r\n },\r\n\r\n // The alphabet used for base conversion.\r\n // It must be at least 2 characters long, with no '.' or repeated character.\r\n // '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_'\r\n ALPHABET = '0123456789abcdefghijklmnopqrstuvwxyz';\r\n\r\n\r\n //------------------------------------------------------------------------------------------\r\n\r\n\r\n // CONSTRUCTOR\r\n\r\n\r\n /*\r\n * The BigNumber constructor and exported function.\r\n * Create and return a new instance of a BigNumber object.\r\n *\r\n * n {number|string|BigNumber} A numeric value.\r\n * [b] {number} The base of n. Integer, 2 to ALPHABET.length inclusive.\r\n */\r\n function BigNumber(n, b) {\r\n var alphabet, c, caseChanged, e, i, isNum, len, str,\r\n x = this;\r\n\r\n // Enable constructor usage without new.\r\n if (!(x instanceof BigNumber)) {\r\n\r\n // Don't throw on constructor call without new (#81).\r\n // '[BigNumber Error] Constructor call without new: {n}'\r\n //throw Error(bignumberError + ' Constructor call without new: ' + n);\r\n return new BigNumber(n, b);\r\n }\r\n\r\n if (b == null) {\r\n\r\n // Duplicate.\r\n if (n instanceof BigNumber) {\r\n x.s = n.s;\r\n x.e = n.e;\r\n x.c = (n = n.c) ? n.slice() : n;\r\n return;\r\n }\r\n\r\n isNum = typeof n == 'number';\r\n\r\n if (isNum && n * 0 == 0) {\r\n\r\n // Use `1 / n` to handle minus zero also.\r\n x.s = 1 / n < 0 ? (n = -n, -1) : 1;\r\n\r\n // Faster path for integers.\r\n if (n === ~~n) {\r\n for (e = 0, i = n; i >= 10; i /= 10, e++);\r\n x.e = e;\r\n x.c = [n];\r\n return;\r\n }\r\n\r\n str = n + '';\r\n } else {\r\n if (!isNumeric.test(str = n + '')) return parseNumeric(x, str, isNum);\r\n x.s = str.charCodeAt(0) == 45 ? (str = str.slice(1), -1) : 1;\r\n }\r\n\r\n // Decimal point?\r\n if ((e = str.indexOf('.')) > -1) str = str.replace('.', '');\r\n\r\n // Exponential form?\r\n if ((i = str.search(/e/i)) > 0) {\r\n\r\n // Determine exponent.\r\n if (e < 0) e = i;\r\n e += +str.slice(i + 1);\r\n str = str.substring(0, i);\r\n } else if (e < 0) {\r\n\r\n // Integer.\r\n e = str.length;\r\n }\r\n\r\n } else {\r\n\r\n // '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}'\r\n intCheck(b, 2, ALPHABET.length, 'Base');\r\n str = n + '';\r\n\r\n // Allow exponential notation to be used with base 10 argument, while\r\n // also rounding to DECIMAL_PLACES as with other bases.\r\n if (b == 10) {\r\n x = new BigNumber(n instanceof BigNumber ? n : str);\r\n return round(x, DECIMAL_PLACES + x.e + 1, ROUNDING_MODE);\r\n }\r\n\r\n isNum = typeof n == 'number';\r\n\r\n if (isNum) {\r\n\r\n // Avoid potential interpretation of Infinity and NaN as base 44+ values.\r\n if (n * 0 != 0) return parseNumeric(x, str, isNum, b);\r\n\r\n x.s = 1 / n < 0 ? (str = str.slice(1), -1) : 1;\r\n\r\n // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}'\r\n if (BigNumber.DEBUG && str.replace(/^0\\.0*|\\./, '').length > 15) {\r\n throw Error\r\n (tooManyDigits + n);\r\n }\r\n\r\n // Prevent later check for length on converted number.\r\n isNum = false;\r\n } else {\r\n x.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1;\r\n }\r\n\r\n alphabet = ALPHABET.slice(0, b);\r\n e = i = 0;\r\n\r\n // Check that str is a valid base b number.\r\n // Don't use RegExp so alphabet can contain special characters.\r\n for (len = str.length; i < len; i++) {\r\n if (alphabet.indexOf(c = str.charAt(i)) < 0) {\r\n if (c == '.') {\r\n\r\n // If '.' is not the first character and it has not be found before.\r\n if (i > e) {\r\n e = len;\r\n continue;\r\n }\r\n } else if (!caseChanged) {\r\n\r\n // Allow e.g. hexadecimal 'FF' as well as 'ff'.\r\n if (str == str.toUpperCase() && (str = str.toLowerCase()) ||\r\n str == str.toLowerCase() && (str = str.toUpperCase())) {\r\n caseChanged = true;\r\n i = -1;\r\n e = 0;\r\n continue;\r\n }\r\n }\r\n\r\n return parseNumeric(x, n + '', isNum, b);\r\n }\r\n }\r\n\r\n str = convertBase(str, b, 10, x.s);\r\n\r\n // Decimal point?\r\n if ((e = str.indexOf('.')) > -1) str = str.replace('.', '');\r\n else e = str.length;\r\n }\r\n\r\n // Determine leading zeros.\r\n for (i = 0; str.charCodeAt(i) === 48; i++);\r\n\r\n // Determine trailing zeros.\r\n for (len = str.length; str.charCodeAt(--len) === 48;);\r\n\r\n str = str.slice(i, ++len);\r\n\r\n if (str) {\r\n len -= i;\r\n\r\n // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}'\r\n if (isNum && BigNumber.DEBUG &&\r\n len > 15 && (n > MAX_SAFE_INTEGER || n !== mathfloor(n))) {\r\n throw Error\r\n (tooManyDigits + (x.s * n));\r\n }\r\n\r\n e = e - i - 1;\r\n\r\n // Overflow?\r\n if (e > MAX_EXP) {\r\n\r\n // Infinity.\r\n x.c = x.e = null;\r\n\r\n // Underflow?\r\n } else if (e < MIN_EXP) {\r\n\r\n // Zero.\r\n x.c = [x.e = 0];\r\n } else {\r\n x.e = e;\r\n x.c = [];\r\n\r\n // Transform base\r\n\r\n // e is the base 10 exponent.\r\n // i is where to slice str to get the first element of the coefficient array.\r\n i = (e + 1) % LOG_BASE;\r\n if (e < 0) i += LOG_BASE;\r\n\r\n if (i < len) {\r\n if (i) x.c.push(+str.slice(0, i));\r\n\r\n for (len -= LOG_BASE; i < len;) {\r\n x.c.push(+str.slice(i, i += LOG_BASE));\r\n }\r\n\r\n str = str.slice(i);\r\n i = LOG_BASE - str.length;\r\n } else {\r\n i -= len;\r\n }\r\n\r\n for (; i--; str += '0');\r\n x.c.push(+str);\r\n }\r\n } else {\r\n\r\n // Zero.\r\n x.c = [x.e = 0];\r\n }\r\n }\r\n\r\n\r\n // CONSTRUCTOR PROPERTIES\r\n\r\n\r\n BigNumber.clone = clone;\r\n\r\n BigNumber.ROUND_UP = 0;\r\n BigNumber.ROUND_DOWN = 1;\r\n BigNumber.ROUND_CEIL = 2;\r\n BigNumber.ROUND_FLOOR = 3;\r\n BigNumber.ROUND_HALF_UP = 4;\r\n BigNumber.ROUND_HALF_DOWN = 5;\r\n BigNumber.ROUND_HALF_EVEN = 6;\r\n BigNumber.ROUND_HALF_CEIL = 7;\r\n BigNumber.ROUND_HALF_FLOOR = 8;\r\n BigNumber.EUCLID = 9;\r\n\r\n\r\n /*\r\n * Configure infrequently-changing library-wide settings.\r\n *\r\n * Accept an object with the following optional properties (if the value of a property is\r\n * a number, it must be an integer within the inclusive range stated):\r\n *\r\n * DECIMAL_PLACES {number} 0 to MAX\r\n * ROUNDING_MODE {number} 0 to 8\r\n * EXPONENTIAL_AT {number|number[]} -MAX to MAX or [-MAX to 0, 0 to MAX]\r\n * RANGE {number|number[]} -MAX to MAX (not zero) or [-MAX to -1, 1 to MAX]\r\n * CRYPTO {boolean} true or false\r\n * MODULO_MODE {number} 0 to 9\r\n * POW_PRECISION {number} 0 to MAX\r\n * ALPHABET {string} A string of two or more unique characters which does\r\n * not contain '.'.\r\n * FORMAT {object} An object with some of the following properties:\r\n * decimalSeparator {string}\r\n * groupSeparator {string}\r\n * groupSize {number}\r\n * secondaryGroupSize {number}\r\n * fractionGroupSeparator {string}\r\n * fractionGroupSize {number}\r\n *\r\n * (The values assigned to the above FORMAT object properties are not checked for validity.)\r\n *\r\n * E.g.\r\n * BigNumber.config({ DECIMAL_PLACES : 20, ROUNDING_MODE : 4 })\r\n *\r\n * Ignore properties/parameters set to null or undefined, except for ALPHABET.\r\n *\r\n * Return an object with the properties current values.\r\n */\r\n BigNumber.config = BigNumber.set = function (obj) {\r\n var p, v;\r\n\r\n if (obj != null) {\r\n\r\n if (typeof obj == 'object') {\r\n\r\n // DECIMAL_PLACES {number} Integer, 0 to MAX inclusive.\r\n // '[BigNumber Error] DECIMAL_PLACES {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'DECIMAL_PLACES')) {\r\n v = obj[p];\r\n intCheck(v, 0, MAX, p);\r\n DECIMAL_PLACES = v;\r\n }\r\n\r\n // ROUNDING_MODE {number} Integer, 0 to 8 inclusive.\r\n // '[BigNumber Error] ROUNDING_MODE {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'ROUNDING_MODE')) {\r\n v = obj[p];\r\n intCheck(v, 0, 8, p);\r\n ROUNDING_MODE = v;\r\n }\r\n\r\n // EXPONENTIAL_AT {number|number[]}\r\n // Integer, -MAX to MAX inclusive or\r\n // [integer -MAX to 0 inclusive, 0 to MAX inclusive].\r\n // '[BigNumber Error] EXPONENTIAL_AT {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'EXPONENTIAL_AT')) {\r\n v = obj[p];\r\n if (isArray(v)) {\r\n intCheck(v[0], -MAX, 0, p);\r\n intCheck(v[1], 0, MAX, p);\r\n TO_EXP_NEG = v[0];\r\n TO_EXP_POS = v[1];\r\n } else {\r\n intCheck(v, -MAX, MAX, p);\r\n TO_EXP_NEG = -(TO_EXP_POS = v < 0 ? -v : v);\r\n }\r\n }\r\n\r\n // RANGE {number|number[]} Non-zero integer, -MAX to MAX inclusive or\r\n // [integer -MAX to -1 inclusive, integer 1 to MAX inclusive].\r\n // '[BigNumber Error] RANGE {not a primitive number|not an integer|out of range|cannot be zero}: {v}'\r\n if (obj.hasOwnProperty(p = 'RANGE')) {\r\n v = obj[p];\r\n if (isArray(v)) {\r\n intCheck(v[0], -MAX, -1, p);\r\n intCheck(v[1], 1, MAX, p);\r\n MIN_EXP = v[0];\r\n MAX_EXP = v[1];\r\n } else {\r\n intCheck(v, -MAX, MAX, p);\r\n if (v) {\r\n MIN_EXP = -(MAX_EXP = v < 0 ? -v : v);\r\n } else {\r\n throw Error\r\n (bignumberError + p + ' cannot be zero: ' + v);\r\n }\r\n }\r\n }\r\n\r\n // CRYPTO {boolean} true or false.\r\n // '[BigNumber Error] CRYPTO not true or false: {v}'\r\n // '[BigNumber Error] crypto unavailable'\r\n if (obj.hasOwnProperty(p = 'CRYPTO')) {\r\n v = obj[p];\r\n if (v === !!v) {\r\n if (v) {\r\n if (typeof crypto != 'undefined' && crypto &&\r\n (crypto.getRandomValues || crypto.randomBytes)) {\r\n CRYPTO = v;\r\n } else {\r\n CRYPTO = !v;\r\n throw Error\r\n (bignumberError + 'crypto unavailable');\r\n }\r\n } else {\r\n CRYPTO = v;\r\n }\r\n } else {\r\n throw Error\r\n (bignumberError + p + ' not true or false: ' + v);\r\n }\r\n }\r\n\r\n // MODULO_MODE {number} Integer, 0 to 9 inclusive.\r\n // '[BigNumber Error] MODULO_MODE {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'MODULO_MODE')) {\r\n v = obj[p];\r\n intCheck(v, 0, 9, p);\r\n MODULO_MODE = v;\r\n }\r\n\r\n // POW_PRECISION {number} Integer, 0 to MAX inclusive.\r\n // '[BigNumber Error] POW_PRECISION {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'POW_PRECISION')) {\r\n v = obj[p];\r\n intCheck(v, 0, MAX, p);\r\n POW_PRECISION = v;\r\n }\r\n\r\n // FORMAT {object}\r\n // '[BigNumber Error] FORMAT not an object: {v}'\r\n if (obj.hasOwnProperty(p = 'FORMAT')) {\r\n v = obj[p];\r\n if (typeof v == 'object') FORMAT = v;\r\n else throw Error\r\n (bignumberError + p + ' not an object: ' + v);\r\n }\r\n\r\n // ALPHABET {string}\r\n // '[BigNumber Error] ALPHABET invalid: {v}'\r\n if (obj.hasOwnProperty(p = 'ALPHABET')) {\r\n v = obj[p];\r\n\r\n // Disallow if only one character, or contains '.' or a repeated character.\r\n if (typeof v == 'string' && !/^.$|\\.|(.).*\\1/.test(v)) {\r\n ALPHABET = v;\r\n } else {\r\n throw Error\r\n (bignumberError + p + ' invalid: ' + v);\r\n }\r\n }\r\n\r\n } else {\r\n\r\n // '[BigNumber Error] Object expected: {v}'\r\n throw Error\r\n (bignumberError + 'Object expected: ' + obj);\r\n }\r\n }\r\n\r\n return {\r\n DECIMAL_PLACES: DECIMAL_PLACES,\r\n ROUNDING_MODE: ROUNDING_MODE,\r\n EXPONENTIAL_AT: [TO_EXP_NEG, TO_EXP_POS],\r\n RANGE: [MIN_EXP, MAX_EXP],\r\n CRYPTO: CRYPTO,\r\n MODULO_MODE: MODULO_MODE,\r\n POW_PRECISION: POW_PRECISION,\r\n FORMAT: FORMAT,\r\n ALPHABET: ALPHABET\r\n };\r\n };\r\n\r\n\r\n /*\r\n * Return true if v is a BigNumber instance, otherwise return false.\r\n *\r\n * v {any}\r\n */\r\n BigNumber.isBigNumber = function (v) {\r\n return v instanceof BigNumber || v && v._isBigNumber === true || false;\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the maximum of the arguments.\r\n *\r\n * arguments {number|string|BigNumber}\r\n */\r\n BigNumber.maximum = BigNumber.max = function () {\r\n return maxOrMin(arguments, P.lt);\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the minimum of the arguments.\r\n *\r\n * arguments {number|string|BigNumber}\r\n */\r\n BigNumber.minimum = BigNumber.min = function () {\r\n return maxOrMin(arguments, P.gt);\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber with a random value equal to or greater than 0 and less than 1,\r\n * and with dp, or DECIMAL_PLACES if dp is omitted, decimal places (or less if trailing\r\n * zeros are produced).\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp}'\r\n * '[BigNumber Error] crypto unavailable'\r\n */\r\n BigNumber.random = (function () {\r\n var pow2_53 = 0x20000000000000;\r\n\r\n // Return a 53 bit integer n, where 0 <= n < 9007199254740992.\r\n // Check if Math.random() produces more than 32 bits of randomness.\r\n // If it does, assume at least 53 bits are produced, otherwise assume at least 30 bits.\r\n // 0x40000000 is 2^30, 0x800000 is 2^23, 0x1fffff is 2^21 - 1.\r\n var random53bitInt = (Math.random() * pow2_53) & 0x1fffff\r\n ? function () { return mathfloor(Math.random() * pow2_53); }\r\n : function () { return ((Math.random() * 0x40000000 | 0) * 0x800000) +\r\n (Math.random() * 0x800000 | 0); };\r\n\r\n return function (dp) {\r\n var a, b, e, k, v,\r\n i = 0,\r\n c = [],\r\n rand = new BigNumber(ONE);\r\n\r\n if (dp == null) dp = DECIMAL_PLACES;\r\n else intCheck(dp, 0, MAX);\r\n\r\n k = mathceil(dp / LOG_BASE);\r\n\r\n if (CRYPTO) {\r\n\r\n // Browsers supporting crypto.getRandomValues.\r\n if (crypto.getRandomValues) {\r\n\r\n a = crypto.getRandomValues(new Uint32Array(k *= 2));\r\n\r\n for (; i < k;) {\r\n\r\n // 53 bits:\r\n // ((Math.pow(2, 32) - 1) * Math.pow(2, 21)).toString(2)\r\n // 11111 11111111 11111111 11111111 11100000 00000000 00000000\r\n // ((Math.pow(2, 32) - 1) >>> 11).toString(2)\r\n // 11111 11111111 11111111\r\n // 0x20000 is 2^21.\r\n v = a[i] * 0x20000 + (a[i + 1] >>> 11);\r\n\r\n // Rejection sampling:\r\n // 0 <= v < 9007199254740992\r\n // Probability that v >= 9e15, is\r\n // 7199254740992 / 9007199254740992 ~= 0.0008, i.e. 1 in 1251\r\n if (v >= 9e15) {\r\n b = crypto.getRandomValues(new Uint32Array(2));\r\n a[i] = b[0];\r\n a[i + 1] = b[1];\r\n } else {\r\n\r\n // 0 <= v <= 8999999999999999\r\n // 0 <= (v % 1e14) <= 99999999999999\r\n c.push(v % 1e14);\r\n i += 2;\r\n }\r\n }\r\n i = k / 2;\r\n\r\n // Node.js supporting crypto.randomBytes.\r\n } else if (crypto.randomBytes) {\r\n\r\n // buffer\r\n a = crypto.randomBytes(k *= 7);\r\n\r\n for (; i < k;) {\r\n\r\n // 0x1000000000000 is 2^48, 0x10000000000 is 2^40\r\n // 0x100000000 is 2^32, 0x1000000 is 2^24\r\n // 11111 11111111 11111111 11111111 11111111 11111111 11111111\r\n // 0 <= v < 9007199254740992\r\n v = ((a[i] & 31) * 0x1000000000000) + (a[i + 1] * 0x10000000000) +\r\n (a[i + 2] * 0x100000000) + (a[i + 3] * 0x1000000) +\r\n (a[i + 4] << 16) + (a[i + 5] << 8) + a[i + 6];\r\n\r\n if (v >= 9e15) {\r\n crypto.randomBytes(7).copy(a, i);\r\n } else {\r\n\r\n // 0 <= (v % 1e14) <= 99999999999999\r\n c.push(v % 1e14);\r\n i += 7;\r\n }\r\n }\r\n i = k / 7;\r\n } else {\r\n CRYPTO = false;\r\n throw Error\r\n (bignumberError + 'crypto unavailable');\r\n }\r\n }\r\n\r\n // Use Math.random.\r\n if (!CRYPTO) {\r\n\r\n for (; i < k;) {\r\n v = random53bitInt();\r\n if (v < 9e15) c[i++] = v % 1e14;\r\n }\r\n }\r\n\r\n k = c[--i];\r\n dp %= LOG_BASE;\r\n\r\n // Convert trailing digits to zeros according to dp.\r\n if (k && dp) {\r\n v = POWS_TEN[LOG_BASE - dp];\r\n c[i] = mathfloor(k / v) * v;\r\n }\r\n\r\n // Remove trailing elements which are zero.\r\n for (; c[i] === 0; c.pop(), i--);\r\n\r\n // Zero?\r\n if (i < 0) {\r\n c = [e = 0];\r\n } else {\r\n\r\n // Remove leading elements which are zero and adjust exponent accordingly.\r\n for (e = -1 ; c[0] === 0; c.splice(0, 1), e -= LOG_BASE);\r\n\r\n // Count the digits of the first element of c to determine leading zeros, and...\r\n for (i = 1, v = c[0]; v >= 10; v /= 10, i++);\r\n\r\n // adjust the exponent accordingly.\r\n if (i < LOG_BASE) e -= LOG_BASE - i;\r\n }\r\n\r\n rand.e = e;\r\n rand.c = c;\r\n return rand;\r\n };\r\n })();\r\n\r\n\r\n // PRIVATE FUNCTIONS\r\n\r\n\r\n // Called by BigNumber and BigNumber.prototype.toString.\r\n convertBase = (function () {\r\n var decimal = '0123456789';\r\n\r\n /*\r\n * Convert string of baseIn to an array of numbers of baseOut.\r\n * Eg. toBaseOut('255', 10, 16) returns [15, 15].\r\n * Eg. toBaseOut('ff', 16, 10) returns [2, 5, 5].\r\n */\r\n function toBaseOut(str, baseIn, baseOut, alphabet) {\r\n var j,\r\n arr = [0],\r\n arrL,\r\n i = 0,\r\n len = str.length;\r\n\r\n for (; i < len;) {\r\n for (arrL = arr.length; arrL--; arr[arrL] *= baseIn);\r\n\r\n arr[0] += alphabet.indexOf(str.charAt(i++));\r\n\r\n for (j = 0; j < arr.length; j++) {\r\n\r\n if (arr[j] > baseOut - 1) {\r\n if (arr[j + 1] == null) arr[j + 1] = 0;\r\n arr[j + 1] += arr[j] / baseOut | 0;\r\n arr[j] %= baseOut;\r\n }\r\n }\r\n }\r\n\r\n return arr.reverse();\r\n }\r\n\r\n // Convert a numeric string of baseIn to a numeric string of baseOut.\r\n // If the caller is toString, we are converting from base 10 to baseOut.\r\n // If the caller is BigNumber, we are converting from baseIn to base 10.\r\n return function (str, baseIn, baseOut, sign, callerIsToString) {\r\n var alphabet, d, e, k, r, x, xc, y,\r\n i = str.indexOf('.'),\r\n dp = DECIMAL_PLACES,\r\n rm = ROUNDING_MODE;\r\n\r\n // Non-integer.\r\n if (i >= 0) {\r\n k = POW_PRECISION;\r\n\r\n // Unlimited precision.\r\n POW_PRECISION = 0;\r\n str = str.replace('.', '');\r\n y = new BigNumber(baseIn);\r\n x = y.pow(str.length - i);\r\n POW_PRECISION = k;\r\n\r\n // Convert str as if an integer, then restore the fraction part by dividing the\r\n // result by its base raised to a power.\r\n\r\n y.c = toBaseOut(toFixedPoint(coeffToString(x.c), x.e, '0'),\r\n 10, baseOut, decimal);\r\n y.e = y.c.length;\r\n }\r\n\r\n // Convert the number as integer.\r\n\r\n xc = toBaseOut(str, baseIn, baseOut, callerIsToString\r\n ? (alphabet = ALPHABET, decimal)\r\n : (alphabet = decimal, ALPHABET));\r\n\r\n // xc now represents str as an integer and converted to baseOut. e is the exponent.\r\n e = k = xc.length;\r\n\r\n // Remove trailing zeros.\r\n for (; xc[--k] == 0; xc.pop());\r\n\r\n // Zero?\r\n if (!xc[0]) return alphabet.charAt(0);\r\n\r\n // Does str represent an integer? If so, no need for the division.\r\n if (i < 0) {\r\n --e;\r\n } else {\r\n x.c = xc;\r\n x.e = e;\r\n\r\n // The sign is needed for correct rounding.\r\n x.s = sign;\r\n x = div(x, y, dp, rm, baseOut);\r\n xc = x.c;\r\n r = x.r;\r\n e = x.e;\r\n }\r\n\r\n // xc now represents str converted to baseOut.\r\n\r\n // THe index of the rounding digit.\r\n d = e + dp + 1;\r\n\r\n // The rounding digit: the digit to the right of the digit that may be rounded up.\r\n i = xc[d];\r\n\r\n // Look at the rounding digits and mode to determine whether to round up.\r\n\r\n k = baseOut / 2;\r\n r = r || d < 0 || xc[d + 1] != null;\r\n\r\n r = rm < 4 ? (i != null || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2))\r\n : i > k || i == k &&(rm == 4 || r || rm == 6 && xc[d - 1] & 1 ||\r\n rm == (x.s < 0 ? 8 : 7));\r\n\r\n // If the index of the rounding digit is not greater than zero, or xc represents\r\n // zero, then the result of the base conversion is zero or, if rounding up, a value\r\n // such as 0.00001.\r\n if (d < 1 || !xc[0]) {\r\n\r\n // 1^-dp or 0\r\n str = r ? toFixedPoint(alphabet.charAt(1), -dp, alphabet.charAt(0))\r\n : alphabet.charAt(0);\r\n } else {\r\n\r\n // Truncate xc to the required number of decimal places.\r\n xc.length = d;\r\n\r\n // Round up?\r\n if (r) {\r\n\r\n // Rounding up may mean the previous digit has to be rounded up and so on.\r\n for (--baseOut; ++xc[--d] > baseOut;) {\r\n xc[d] = 0;\r\n\r\n if (!d) {\r\n ++e;\r\n xc = [1].concat(xc);\r\n }\r\n }\r\n }\r\n\r\n // Determine trailing zeros.\r\n for (k = xc.length; !xc[--k];);\r\n\r\n // E.g. [4, 11, 15] becomes 4bf.\r\n for (i = 0, str = ''; i <= k; str += alphabet.charAt(xc[i++]));\r\n\r\n // Add leading zeros, decimal point and trailing zeros as required.\r\n str = toFixedPoint(str, e, alphabet.charAt(0));\r\n }\r\n\r\n // The caller will add the sign.\r\n return str;\r\n };\r\n })();\r\n\r\n\r\n // Perform division in the specified base. Called by div and convertBase.\r\n div = (function () {\r\n\r\n // Assume non-zero x and k.\r\n function multiply(x, k, base) {\r\n var m, temp, xlo, xhi,\r\n carry = 0,\r\n i = x.length,\r\n klo = k % SQRT_BASE,\r\n khi = k / SQRT_BASE | 0;\r\n\r\n for (x = x.slice(); i--;) {\r\n xlo = x[i] % SQRT_BASE;\r\n xhi = x[i] / SQRT_BASE | 0;\r\n m = khi * xlo + xhi * klo;\r\n temp = klo * xlo + ((m % SQRT_BASE) * SQRT_BASE) + carry;\r\n carry = (temp / base | 0) + (m / SQRT_BASE | 0) + khi * xhi;\r\n x[i] = temp % base;\r\n }\r\n\r\n if (carry) x = [carry].concat(x);\r\n\r\n return x;\r\n }\r\n\r\n function compare(a, b, aL, bL) {\r\n var i, cmp;\r\n\r\n if (aL != bL) {\r\n cmp = aL > bL ? 1 : -1;\r\n } else {\r\n\r\n for (i = cmp = 0; i < aL; i++) {\r\n\r\n if (a[i] != b[i]) {\r\n cmp = a[i] > b[i] ? 1 : -1;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return cmp;\r\n }\r\n\r\n function subtract(a, b, aL, base) {\r\n var i = 0;\r\n\r\n // Subtract b from a.\r\n for (; aL--;) {\r\n a[aL] -= i;\r\n i = a[aL] < b[aL] ? 1 : 0;\r\n a[aL] = i * base + a[aL] - b[aL];\r\n }\r\n\r\n // Remove leading zeros.\r\n for (; !a[0] && a.length > 1; a.splice(0, 1));\r\n }\r\n\r\n // x: dividend, y: divisor.\r\n return function (x, y, dp, rm, base) {\r\n var cmp, e, i, more, n, prod, prodL, q, qc, rem, remL, rem0, xi, xL, yc0,\r\n yL, yz,\r\n s = x.s == y.s ? 1 : -1,\r\n xc = x.c,\r\n yc = y.c;\r\n\r\n // Either NaN, Infinity or 0?\r\n if (!xc || !xc[0] || !yc || !yc[0]) {\r\n\r\n return new BigNumber(\r\n\r\n // Return NaN if either NaN, or both Infinity or 0.\r\n !x.s || !y.s || (xc ? yc && xc[0] == yc[0] : !yc) ? NaN :\r\n\r\n // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.\r\n xc && xc[0] == 0 || !yc ? s * 0 : s / 0\r\n );\r\n }\r\n\r\n q = new BigNumber(s);\r\n qc = q.c = [];\r\n e = x.e - y.e;\r\n s = dp + e + 1;\r\n\r\n if (!base) {\r\n base = BASE;\r\n e = bitFloor(x.e / LOG_BASE) - bitFloor(y.e / LOG_BASE);\r\n s = s / LOG_BASE | 0;\r\n }\r\n\r\n // Result exponent may be one less then the current value of e.\r\n // The coefficients of the BigNumbers from convertBase may have trailing zeros.\r\n for (i = 0; yc[i] == (xc[i] || 0); i++);\r\n\r\n if (yc[i] > (xc[i] || 0)) e--;\r\n\r\n if (s < 0) {\r\n qc.push(1);\r\n more = true;\r\n } else {\r\n xL = xc.length;\r\n yL = yc.length;\r\n i = 0;\r\n s += 2;\r\n\r\n // Normalise xc and yc so highest order digit of yc is >= base / 2.\r\n\r\n n = mathfloor(base / (yc[0] + 1));\r\n\r\n // Not necessary, but to handle odd bases where yc[0] == (base / 2) - 1.\r\n // if (n > 1 || n++ == 1 && yc[0] < base / 2) {\r\n if (n > 1) {\r\n yc = multiply(yc, n, base);\r\n xc = multiply(xc, n, base);\r\n yL = yc.length;\r\n xL = xc.length;\r\n }\r\n\r\n xi = yL;\r\n rem = xc.slice(0, yL);\r\n remL = rem.length;\r\n\r\n // Add zeros to make remainder as long as divisor.\r\n for (; remL < yL; rem[remL++] = 0);\r\n yz = yc.slice();\r\n yz = [0].concat(yz);\r\n yc0 = yc[0];\r\n if (yc[1] >= base / 2) yc0++;\r\n // Not necessary, but to prevent trial digit n > base, when using base 3.\r\n // else if (base == 3 && yc0 == 1) yc0 = 1 + 1e-15;\r\n\r\n do {\r\n n = 0;\r\n\r\n // Compare divisor and remainder.\r\n cmp = compare(yc, rem, yL, remL);\r\n\r\n // If divisor < remainder.\r\n if (cmp < 0) {\r\n\r\n // Calculate trial digit, n.\r\n\r\n rem0 = rem[0];\r\n if (yL != remL) rem0 = rem0 * base + (rem[1] || 0);\r\n\r\n // n is how many times the divisor goes into the current remainder.\r\n n = mathfloor(rem0 / yc0);\r\n\r\n // Algorithm:\r\n // product = divisor multiplied by trial digit (n).\r\n // Compare product and remainder.\r\n // If product is greater than remainder:\r\n // Subtract divisor from product, decrement trial digit.\r\n // Subtract product from remainder.\r\n // If product was less than remainder at the last compare:\r\n // Compare new remainder and divisor.\r\n // If remainder is greater than divisor:\r\n // Subtract divisor from remainder, increment trial digit.\r\n\r\n if (n > 1) {\r\n\r\n // n may be > base only when base is 3.\r\n if (n >= base) n = base - 1;\r\n\r\n // product = divisor * trial digit.\r\n prod = multiply(yc, n, base);\r\n prodL = prod.length;\r\n remL = rem.length;\r\n\r\n // Compare product and remainder.\r\n // If product > remainder then trial digit n too high.\r\n // n is 1 too high about 5% of the time, and is not known to have\r\n // ever been more than 1 too high.\r\n while (compare(prod, rem, prodL, remL) == 1) {\r\n n--;\r\n\r\n // Subtract divisor from product.\r\n subtract(prod, yL < prodL ? yz : yc, prodL, base);\r\n prodL = prod.length;\r\n cmp = 1;\r\n }\r\n } else {\r\n\r\n // n is 0 or 1, cmp is -1.\r\n // If n is 0, there is no need to compare yc and rem again below,\r\n // so change cmp to 1 to avoid it.\r\n // If n is 1, leave cmp as -1, so yc and rem are compared again.\r\n if (n == 0) {\r\n\r\n // divisor < remainder, so n must be at least 1.\r\n cmp = n = 1;\r\n }\r\n\r\n // product = divisor\r\n prod = yc.slice();\r\n prodL = prod.length;\r\n }\r\n\r\n if (prodL < remL) prod = [0].concat(prod);\r\n\r\n // Subtract product from remainder.\r\n subtract(rem, prod, remL, base);\r\n remL = rem.length;\r\n\r\n // If product was < remainder.\r\n if (cmp == -1) {\r\n\r\n // Compare divisor and new remainder.\r\n // If divisor < new remainder, subtract divisor from remainder.\r\n // Trial digit n too low.\r\n // n is 1 too low about 5% of the time, and very rarely 2 too low.\r\n while (compare(yc, rem, yL, remL) < 1) {\r\n n++;\r\n\r\n // Subtract divisor from remainder.\r\n subtract(rem, yL < remL ? yz : yc, remL, base);\r\n remL = rem.length;\r\n }\r\n }\r\n } else if (cmp === 0) {\r\n n++;\r\n rem = [0];\r\n } // else cmp === 1 and n will be 0\r\n\r\n // Add the next digit, n, to the result array.\r\n qc[i++] = n;\r\n\r\n // Update the remainder.\r\n if (rem[0]) {\r\n rem[remL++] = xc[xi] || 0;\r\n } else {\r\n rem = [xc[xi]];\r\n remL = 1;\r\n }\r\n } while ((xi++ < xL || rem[0] != null) && s--);\r\n\r\n more = rem[0] != null;\r\n\r\n // Leading zero?\r\n if (!qc[0]) qc.splice(0, 1);\r\n }\r\n\r\n if (base == BASE) {\r\n\r\n // To calculate q.e, first get the number of digits of qc[0].\r\n for (i = 1, s = qc[0]; s >= 10; s /= 10, i++);\r\n\r\n round(q, dp + (q.e = i + e * LOG_BASE - 1) + 1, rm, more);\r\n\r\n // Caller is convertBase.\r\n } else {\r\n q.e = e;\r\n q.r = +more;\r\n }\r\n\r\n return q;\r\n };\r\n })();\r\n\r\n\r\n /*\r\n * Return a string representing the value of BigNumber n in fixed-point or exponential\r\n * notation rounded to the specified decimal places or significant digits.\r\n *\r\n * n: a BigNumber.\r\n * i: the index of the last digit required (i.e. the digit that may be rounded up).\r\n * rm: the rounding mode.\r\n * id: 1 (toExponential) or 2 (toPrecision).\r\n */\r\n function format(n, i, rm, id) {\r\n var c0, e, ne, len, str;\r\n\r\n if (rm == null) rm = ROUNDING_MODE;\r\n else intCheck(rm, 0, 8);\r\n\r\n if (!n.c) return n.toString();\r\n\r\n c0 = n.c[0];\r\n ne = n.e;\r\n\r\n if (i == null) {\r\n str = coeffToString(n.c);\r\n str = id == 1 || id == 2 && ne <= TO_EXP_NEG\r\n ? toExponential(str, ne)\r\n : toFixedPoint(str, ne, '0');\r\n } else {\r\n n = round(new BigNumber(n), i, rm);\r\n\r\n // n.e may have changed if the value was rounded up.\r\n e = n.e;\r\n\r\n str = coeffToString(n.c);\r\n len = str.length;\r\n\r\n // toPrecision returns exponential notation if the number of significant digits\r\n // specified is less than the number of digits necessary to represent the integer\r\n // part of the value in fixed-point notation.\r\n\r\n // Exponential notation.\r\n if (id == 1 || id == 2 && (i <= e || e <= TO_EXP_NEG)) {\r\n\r\n // Append zeros?\r\n for (; len < i; str += '0', len++);\r\n str = toExponential(str, e);\r\n\r\n // Fixed-point notation.\r\n } else {\r\n i -= ne;\r\n str = toFixedPoint(str, e, '0');\r\n\r\n // Append zeros?\r\n if (e + 1 > len) {\r\n if (--i > 0) for (str += '.'; i--; str += '0');\r\n } else {\r\n i += e - len;\r\n if (i > 0) {\r\n if (e + 1 == len) str += '.';\r\n for (; i--; str += '0');\r\n }\r\n }\r\n }\r\n }\r\n\r\n return n.s < 0 && c0 ? '-' + str : str;\r\n }\r\n\r\n\r\n // Handle BigNumber.max and BigNumber.min.\r\n function maxOrMin(args, method) {\r\n var m, n,\r\n i = 0;\r\n\r\n if (isArray(args[0])) args = args[0];\r\n m = new BigNumber(args[0]);\r\n\r\n for (; ++i < args.length;) {\r\n n = new BigNumber(args[i]);\r\n\r\n // If any number is NaN, return NaN.\r\n if (!n.s) {\r\n m = n;\r\n break;\r\n } else if (method.call(m, n)) {\r\n m = n;\r\n }\r\n }\r\n\r\n return m;\r\n }\r\n\r\n\r\n /*\r\n * Strip trailing zeros, calculate base 10 exponent and check against MIN_EXP and MAX_EXP.\r\n * Called by minus, plus and times.\r\n */\r\n function normalise(n, c, e) {\r\n var i = 1,\r\n j = c.length;\r\n\r\n // Remove trailing zeros.\r\n for (; !c[--j]; c.pop());\r\n\r\n // Calculate the base 10 exponent. First get the number of digits of c[0].\r\n for (j = c[0]; j >= 10; j /= 10, i++);\r\n\r\n // Overflow?\r\n if ((e = i + e * LOG_BASE - 1) > MAX_EXP) {\r\n\r\n // Infinity.\r\n n.c = n.e = null;\r\n\r\n // Underflow?\r\n } else if (e < MIN_EXP) {\r\n\r\n // Zero.\r\n n.c = [n.e = 0];\r\n } else {\r\n n.e = e;\r\n n.c = c;\r\n }\r\n\r\n return n;\r\n }\r\n\r\n\r\n // Handle values that fail the validity test in BigNumber.\r\n parseNumeric = (function () {\r\n var basePrefix = /^(-?)0([xbo])(?=\\w[\\w.]*$)/i,\r\n dotAfter = /^([^.]+)\\.$/,\r\n dotBefore = /^\\.([^.]+)$/,\r\n isInfinityOrNaN = /^-?(Infinity|NaN)$/,\r\n whitespaceOrPlus = /^\\s*\\+(?=[\\w.])|^\\s+|\\s+$/g;\r\n\r\n return function (x, str, isNum, b) {\r\n var base,\r\n s = isNum ? str : str.replace(whitespaceOrPlus, '');\r\n\r\n // No exception on ±Infinity or NaN.\r\n if (isInfinityOrNaN.test(s)) {\r\n x.s = isNaN(s) ? null : s < 0 ? -1 : 1;\r\n x.c = x.e = null;\r\n } else {\r\n if (!isNum) {\r\n\r\n // basePrefix = /^(-?)0([xbo])(?=\\w[\\w.]*$)/i\r\n s = s.replace(basePrefix, function (m, p1, p2) {\r\n base = (p2 = p2.toLowerCase()) == 'x' ? 16 : p2 == 'b' ? 2 : 8;\r\n return !b || b == base ? p1 : m;\r\n });\r\n\r\n if (b) {\r\n base = b;\r\n\r\n // E.g. '1.' to '1', '.1' to '0.1'\r\n s = s.replace(dotAfter, '$1').replace(dotBefore, '0.$1');\r\n }\r\n\r\n if (str != s) return new BigNumber(s, base);\r\n }\r\n\r\n // '[BigNumber Error] Not a number: {n}'\r\n // '[BigNumber Error] Not a base {b} number: {n}'\r\n if (BigNumber.DEBUG) {\r\n throw Error\r\n (bignumberError + 'Not a' + (b ? ' base ' + b : '') + ' number: ' + str);\r\n }\r\n\r\n // NaN\r\n x.c = x.e = x.s = null;\r\n }\r\n }\r\n })();\r\n\r\n\r\n /*\r\n * Round x to sd significant digits using rounding mode rm. Check for over/under-flow.\r\n * If r is truthy, it is known that there are more digits after the rounding digit.\r\n */\r\n function round(x, sd, rm, r) {\r\n var d, i, j, k, n, ni, rd,\r\n xc = x.c,\r\n pows10 = POWS_TEN;\r\n\r\n // if x is not Infinity or NaN...\r\n if (xc) {\r\n\r\n // rd is the rounding digit, i.e. the digit after the digit that may be rounded up.\r\n // n is a base 1e14 number, the value of the element of array x.c containing rd.\r\n // ni is the index of n within x.c.\r\n // d is the number of digits of n.\r\n // i is the index of rd within n including leading zeros.\r\n // j is the actual index of rd within n (if < 0, rd is a leading zero).\r\n out: {\r\n\r\n // Get the number of digits of the first element of xc.\r\n for (d = 1, k = xc[0]; k >= 10; k /= 10, d++);\r\n i = sd - d;\r\n\r\n // If the rounding digit is in the first element of xc...\r\n if (i < 0) {\r\n i += LOG_BASE;\r\n j = sd;\r\n n = xc[ni = 0];\r\n\r\n // Get the rounding digit at index j of n.\r\n rd = n / pows10[d - j - 1] % 10 | 0;\r\n } else {\r\n ni = mathceil((i + 1) / LOG_BASE);\r\n\r\n if (ni >= xc.length) {\r\n\r\n if (r) {\r\n\r\n // Needed by sqrt.\r\n for (; xc.length <= ni; xc.push(0));\r\n n = rd = 0;\r\n d = 1;\r\n i %= LOG_BASE;\r\n j = i - LOG_BASE + 1;\r\n } else {\r\n break out;\r\n }\r\n } else {\r\n n = k = xc[ni];\r\n\r\n // Get the number of digits of n.\r\n for (d = 1; k >= 10; k /= 10, d++);\r\n\r\n // Get the index of rd within n.\r\n i %= LOG_BASE;\r\n\r\n // Get the index of rd within n, adjusted for leading zeros.\r\n // The number of leading zeros of n is given by LOG_BASE - d.\r\n j = i - LOG_BASE + d;\r\n\r\n // Get the rounding digit at index j of n.\r\n rd = j < 0 ? 0 : n / pows10[d - j - 1] % 10 | 0;\r\n }\r\n }\r\n\r\n r = r || sd < 0 ||\r\n\r\n // Are there any non-zero digits after the rounding digit?\r\n // The expression n % pows10[d - j - 1] returns all digits of n to the right\r\n // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.\r\n xc[ni + 1] != null || (j < 0 ? n : n % pows10[d - j - 1]);\r\n\r\n r = rm < 4\r\n ? (rd || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2))\r\n : rd > 5 || rd == 5 && (rm == 4 || r || rm == 6 &&\r\n\r\n // Check whether the digit to the left of the rounding digit is odd.\r\n ((i > 0 ? j > 0 ? n / pows10[d - j] : 0 : xc[ni - 1]) % 10) & 1 ||\r\n rm == (x.s < 0 ? 8 : 7));\r\n\r\n if (sd < 1 || !xc[0]) {\r\n xc.length = 0;\r\n\r\n if (r) {\r\n\r\n // Convert sd to decimal places.\r\n sd -= x.e + 1;\r\n\r\n // 1, 0.1, 0.01, 0.001, 0.0001 etc.\r\n xc[0] = pows10[(LOG_BASE - sd % LOG_BASE) % LOG_BASE];\r\n x.e = -sd || 0;\r\n } else {\r\n\r\n // Zero.\r\n xc[0] = x.e = 0;\r\n }\r\n\r\n return x;\r\n }\r\n\r\n // Remove excess digits.\r\n if (i == 0) {\r\n xc.length = ni;\r\n k = 1;\r\n ni--;\r\n } else {\r\n xc.length = ni + 1;\r\n k = pows10[LOG_BASE - i];\r\n\r\n // E.g. 56700 becomes 56000 if 7 is the rounding digit.\r\n // j > 0 means i > number of leading zeros of n.\r\n xc[ni] = j > 0 ? mathfloor(n / pows10[d - j] % pows10[j]) * k : 0;\r\n }\r\n\r\n // Round up?\r\n if (r) {\r\n\r\n for (; ;) {\r\n\r\n // If the digit to be rounded up is in the first element of xc...\r\n if (ni == 0) {\r\n\r\n // i will be the length of xc[0] before k is added.\r\n for (i = 1, j = xc[0]; j >= 10; j /= 10, i++);\r\n j = xc[0] += k;\r\n for (k = 1; j >= 10; j /= 10, k++);\r\n\r\n // if i != k the length has increased.\r\n if (i != k) {\r\n x.e++;\r\n if (xc[0] == BASE) xc[0] = 1;\r\n }\r\n\r\n break;\r\n } else {\r\n xc[ni] += k;\r\n if (xc[ni] != BASE) break;\r\n xc[ni--] = 0;\r\n k = 1;\r\n }\r\n }\r\n }\r\n\r\n // Remove trailing zeros.\r\n for (i = xc.length; xc[--i] === 0; xc.pop());\r\n }\r\n\r\n // Overflow? Infinity.\r\n if (x.e > MAX_EXP) {\r\n x.c = x.e = null;\r\n\r\n // Underflow? Zero.\r\n } else if (x.e < MIN_EXP) {\r\n x.c = [x.e = 0];\r\n }\r\n }\r\n\r\n return x;\r\n }\r\n\r\n\r\n // PROTOTYPE/INSTANCE METHODS\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the absolute value of this BigNumber.\r\n */\r\n P.absoluteValue = P.abs = function () {\r\n var x = new BigNumber(this);\r\n if (x.s < 0) x.s = 1;\r\n return x;\r\n };\r\n\r\n\r\n /*\r\n * Return\r\n * 1 if the value of this BigNumber is greater than the value of BigNumber(y, b),\r\n * -1 if the value of this BigNumber is less than the value of BigNumber(y, b),\r\n * 0 if they have the same value,\r\n * or null if the value of either is NaN.\r\n */\r\n P.comparedTo = function (y, b) {\r\n return compare(this, new BigNumber(y, b));\r\n };\r\n\r\n\r\n /*\r\n * If dp is undefined or null or true or false, return the number of decimal places of the\r\n * value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN.\r\n *\r\n * Otherwise, if dp is a number, return a new BigNumber whose value is the value of this\r\n * BigNumber rounded to a maximum of dp decimal places using rounding mode rm, or\r\n * ROUNDING_MODE if rm is omitted.\r\n *\r\n * [dp] {number} Decimal places: integer, 0 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}'\r\n */\r\n P.decimalPlaces = P.dp = function (dp, rm) {\r\n var c, n, v,\r\n x = this;\r\n\r\n if (dp != null) {\r\n intCheck(dp, 0, MAX);\r\n if (rm == null) rm = ROUNDING_MODE;\r\n else intCheck(rm, 0, 8);\r\n\r\n return round(new BigNumber(x), dp + x.e + 1, rm);\r\n }\r\n\r\n if (!(c = x.c)) return null;\r\n n = ((v = c.length - 1) - bitFloor(this.e / LOG_BASE)) * LOG_BASE;\r\n\r\n // Subtract the number of trailing zeros of the last number.\r\n if (v = c[v]) for (; v % 10 == 0; v /= 10, n--);\r\n if (n < 0) n = 0;\r\n\r\n return n;\r\n };\r\n\r\n\r\n /*\r\n * n / 0 = I\r\n * n / N = N\r\n * n / I = 0\r\n * 0 / n = 0\r\n * 0 / 0 = N\r\n * 0 / N = N\r\n * 0 / I = 0\r\n * N / n = N\r\n * N / 0 = N\r\n * N / N = N\r\n * N / I = N\r\n * I / n = I\r\n * I / 0 = I\r\n * I / N = N\r\n * I / I = N\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber divided by the value of\r\n * BigNumber(y, b), rounded according to DECIMAL_PLACES and ROUNDING_MODE.\r\n */\r\n P.dividedBy = P.div = function (y, b) {\r\n return div(this, new BigNumber(y, b), DECIMAL_PLACES, ROUNDING_MODE);\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the integer part of dividing the value of this\r\n * BigNumber by the value of BigNumber(y, b).\r\n */\r\n P.dividedToIntegerBy = P.idiv = function (y, b) {\r\n return div(this, new BigNumber(y, b), 0, 1);\r\n };\r\n\r\n\r\n /*\r\n * Return a BigNumber whose value is the value of this BigNumber exponentiated by n.\r\n *\r\n * If m is present, return the result modulo m.\r\n * If n is negative round according to DECIMAL_PLACES and ROUNDING_MODE.\r\n * If POW_PRECISION is non-zero and m is not present, round to POW_PRECISION using ROUNDING_MODE.\r\n *\r\n * The modular power operation works efficiently when x, n, and m are integers, otherwise it\r\n * is equivalent to calculating x.exponentiatedBy(n).modulo(m) with a POW_PRECISION of 0.\r\n *\r\n * n {number|string|BigNumber} The exponent. An integer.\r\n * [m] {number|string|BigNumber} The modulus.\r\n *\r\n * '[BigNumber Error] Exponent not an integer: {n}'\r\n */\r\n P.exponentiatedBy = P.pow = function (n, m) {\r\n var half, isModExp, k, more, nIsBig, nIsNeg, nIsOdd, y,\r\n x = this;\r\n\r\n n = new BigNumber(n);\r\n\r\n // Allow NaN and ±Infinity, but not other non-integers.\r\n if (n.c && !n.isInteger()) {\r\n throw Error\r\n (bignumberError + 'Exponent not an integer: ' + n);\r\n }\r\n\r\n if (m != null) m = new BigNumber(m);\r\n\r\n // Exponent of MAX_SAFE_INTEGER is 15.\r\n nIsBig = n.e > 14;\r\n\r\n // If x is NaN, ±Infinity, ±0 or ±1, or n is ±Infinity, NaN or ±0.\r\n if (!x.c || !x.c[0] || x.c[0] == 1 && !x.e && x.c.length == 1 || !n.c || !n.c[0]) {\r\n\r\n // The sign of the result of pow when x is negative depends on the evenness of n.\r\n // If +n overflows to ±Infinity, the evenness of n would be not be known.\r\n y = new BigNumber(Math.pow(+x.valueOf(), nIsBig ? 2 - isOdd(n) : +n));\r\n return m ? y.mod(m) : y;\r\n }\r\n\r\n nIsNeg = n.s < 0;\r\n\r\n if (m) {\r\n\r\n // x % m returns NaN if abs(m) is zero, or m is NaN.\r\n if (m.c ? !m.c[0] : !m.s) return new BigNumber(NaN);\r\n\r\n isModExp = !nIsNeg && x.isInteger() && m.isInteger();\r\n\r\n if (isModExp) x = x.mod(m);\r\n\r\n // Overflow to ±Infinity: >=2**1e10 or >=1.0000024**1e15.\r\n // Underflow to ±0: <=0.79**1e10 or <=0.9999975**1e15.\r\n } else if (n.e > 9 && (x.e > 0 || x.e < -1 || (x.e == 0\r\n // [1, 240000000]\r\n ? x.c[0] > 1 || nIsBig && x.c[1] >= 24e7\r\n // [80000000000000] [99999750000000]\r\n : x.c[0] < 8e13 || nIsBig && x.c[0] <= 9999975e7))) {\r\n\r\n // If x is negative and n is odd, k = -0, else k = 0.\r\n k = x.s < 0 && isOdd(n) ? -0 : 0;\r\n\r\n // If x >= 1, k = ±Infinity.\r\n if (x.e > -1) k = 1 / k;\r\n\r\n // If n is negative return ±0, else return ±Infinity.\r\n return new BigNumber(nIsNeg ? 1 / k : k);\r\n\r\n } else if (POW_PRECISION) {\r\n\r\n // Truncating each coefficient array to a length of k after each multiplication\r\n // equates to truncating significant digits to POW_PRECISION + [28, 41],\r\n // i.e. there will be a minimum of 28 guard digits retained.\r\n k = mathceil(POW_PRECISION / LOG_BASE + 2);\r\n }\r\n\r\n if (nIsBig) {\r\n half = new BigNumber(0.5);\r\n nIsOdd = isOdd(n);\r\n } else {\r\n nIsOdd = n % 2;\r\n }\r\n\r\n if (nIsNeg) n.s = 1;\r\n\r\n y = new BigNumber(ONE);\r\n\r\n // Performs 54 loop iterations for n of 9007199254740991.\r\n for (; ;) {\r\n\r\n if (nIsOdd) {\r\n y = y.times(x);\r\n if (!y.c) break;\r\n\r\n if (k) {\r\n if (y.c.length > k) y.c.length = k;\r\n } else if (isModExp) {\r\n y = y.mod(m); //y = y.minus(div(y, m, 0, MODULO_MODE).times(m));\r\n }\r\n }\r\n\r\n if (nIsBig) {\r\n n = n.times(half);\r\n round(n, n.e + 1, 1);\r\n if (!n.c[0]) break;\r\n nIsBig = n.e > 14;\r\n nIsOdd = isOdd(n);\r\n } else {\r\n n = mathfloor(n / 2);\r\n if (!n) break;\r\n nIsOdd = n % 2;\r\n }\r\n\r\n x = x.times(x);\r\n\r\n if (k) {\r\n if (x.c && x.c.length > k) x.c.length = k;\r\n } else if (isModExp) {\r\n x = x.mod(m); //x = x.minus(div(x, m, 0, MODULO_MODE).times(m));\r\n }\r\n }\r\n\r\n if (isModExp) return y;\r\n if (nIsNeg) y = ONE.div(y);\r\n\r\n return m ? y.mod(m) : k ? round(y, POW_PRECISION, ROUNDING_MODE, more) : y;\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the value of this BigNumber rounded to an integer\r\n * using rounding mode rm, or ROUNDING_MODE if rm is omitted.\r\n *\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {rm}'\r\n */\r\n P.integerValue = function (rm) {\r\n var n = new BigNumber(this);\r\n if (rm == null) rm = ROUNDING_MODE;\r\n else intCheck(rm, 0, 8);\r\n return round(n, n.e + 1, rm);\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is equal to the value of BigNumber(y, b),\r\n * otherwise return false.\r\n */\r\n P.isEqualTo = P.eq = function (y, b) {\r\n return compare(this, new BigNumber(y, b)) === 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is a finite number, otherwise return false.\r\n */\r\n P.isFinite = function () {\r\n return !!this.c;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is greater than the value of BigNumber(y, b),\r\n * otherwise return false.\r\n */\r\n P.isGreaterThan = P.gt = function (y, b) {\r\n return compare(this, new BigNumber(y, b)) > 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is greater than or equal to the value of\r\n * BigNumber(y, b), otherwise return false.\r\n */\r\n P.isGreaterThanOrEqualTo = P.gte = function (y, b) {\r\n return (b = compare(this, new BigNumber(y, b))) === 1 || b === 0;\r\n\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is an integer, otherwise return false.\r\n */\r\n P.isInteger = function () {\r\n return !!this.c && bitFloor(this.e / LOG_BASE) > this.c.length - 2;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is less than the value of BigNumber(y, b),\r\n * otherwise return false.\r\n */\r\n P.isLessThan = P.lt = function (y, b) {\r\n return compare(this, new BigNumber(y, b)) < 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is less than or equal to the value of\r\n * BigNumber(y, b), otherwise return false.\r\n */\r\n P.isLessThanOrEqualTo = P.lte = function (y, b) {\r\n return (b = compare(this, new BigNumber(y, b))) === -1 || b === 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is NaN, otherwise return false.\r\n */\r\n P.isNaN = function () {\r\n return !this.s;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is negative, otherwise return false.\r\n */\r\n P.isNegative = function () {\r\n return this.s < 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is positive, otherwise return false.\r\n */\r\n P.isPositive = function () {\r\n return this.s > 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is 0 or -0, otherwise return false.\r\n */\r\n P.isZero = function () {\r\n return !!this.c && this.c[0] == 0;\r\n };\r\n\r\n\r\n /*\r\n * n - 0 = n\r\n * n - N = N\r\n * n - I = -I\r\n * 0 - n = -n\r\n * 0 - 0 = 0\r\n * 0 - N = N\r\n * 0 - I = -I\r\n * N - n = N\r\n * N - 0 = N\r\n * N - N = N\r\n * N - I = N\r\n * I - n = I\r\n * I - 0 = I\r\n * I - N = N\r\n * I - I = N\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber minus the value of\r\n * BigNumber(y, b).\r\n */\r\n P.minus = function (y, b) {\r\n var i, j, t, xLTy,\r\n x = this,\r\n a = x.s;\r\n\r\n y = new BigNumber(y, b);\r\n b = y.s;\r\n\r\n // Either NaN?\r\n if (!a || !b) return new BigNumber(NaN);\r\n\r\n // Signs differ?\r\n if (a != b) {\r\n y.s = -b;\r\n return x.plus(y);\r\n }\r\n\r\n var xe = x.e / LOG_BASE,\r\n ye = y.e / LOG_BASE,\r\n xc = x.c,\r\n yc = y.c;\r\n\r\n if (!xe || !ye) {\r\n\r\n // Either Infinity?\r\n if (!xc || !yc) return xc ? (y.s = -b, y) : new BigNumber(yc ? x : NaN);\r\n\r\n // Either zero?\r\n if (!xc[0] || !yc[0]) {\r\n\r\n // Return y if y is non-zero, x if x is non-zero, or zero if both are zero.\r\n return yc[0] ? (y.s = -b, y) : new BigNumber(xc[0] ? x :\r\n\r\n // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity\r\n ROUNDING_MODE == 3 ? -0 : 0);\r\n }\r\n }\r\n\r\n xe = bitFloor(xe);\r\n ye = bitFloor(ye);\r\n xc = xc.slice();\r\n\r\n // Determine which is the bigger number.\r\n if (a = xe - ye) {\r\n\r\n if (xLTy = a < 0) {\r\n a = -a;\r\n t = xc;\r\n } else {\r\n ye = xe;\r\n t = yc;\r\n }\r\n\r\n t.reverse();\r\n\r\n // Prepend zeros to equalise exponents.\r\n for (b = a; b--; t.push(0));\r\n t.reverse();\r\n } else {\r\n\r\n // Exponents equal. Check digit by digit.\r\n j = (xLTy = (a = xc.length) < (b = yc.length)) ? a : b;\r\n\r\n for (a = b = 0; b < j; b++) {\r\n\r\n if (xc[b] != yc[b]) {\r\n xLTy = xc[b] < yc[b];\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // x < y? Point xc to the array of the bigger number.\r\n if (xLTy) t = xc, xc = yc, yc = t, y.s = -y.s;\r\n\r\n b = (j = yc.length) - (i = xc.length);\r\n\r\n // Append zeros to xc if shorter.\r\n // No need to add zeros to yc if shorter as subtract only needs to start at yc.length.\r\n if (b > 0) for (; b--; xc[i++] = 0);\r\n b = BASE - 1;\r\n\r\n // Subtract yc from xc.\r\n for (; j > a;) {\r\n\r\n if (xc[--j] < yc[j]) {\r\n for (i = j; i && !xc[--i]; xc[i] = b);\r\n --xc[i];\r\n xc[j] += BASE;\r\n }\r\n\r\n xc[j] -= yc[j];\r\n }\r\n\r\n // Remove leading zeros and adjust exponent accordingly.\r\n for (; xc[0] == 0; xc.splice(0, 1), --ye);\r\n\r\n // Zero?\r\n if (!xc[0]) {\r\n\r\n // Following IEEE 754 (2008) 6.3,\r\n // n - n = +0 but n - n = -0 when rounding towards -Infinity.\r\n y.s = ROUNDING_MODE == 3 ? -1 : 1;\r\n y.c = [y.e = 0];\r\n return y;\r\n }\r\n\r\n // No need to check for Infinity as +x - +y != Infinity && -x - -y != Infinity\r\n // for finite x and y.\r\n return normalise(y, xc, ye);\r\n };\r\n\r\n\r\n /*\r\n * n % 0 = N\r\n * n % N = N\r\n * n % I = n\r\n * 0 % n = 0\r\n * -0 % n = -0\r\n * 0 % 0 = N\r\n * 0 % N = N\r\n * 0 % I = 0\r\n * N % n = N\r\n * N % 0 = N\r\n * N % N = N\r\n * N % I = N\r\n * I % n = N\r\n * I % 0 = N\r\n * I % N = N\r\n * I % I = N\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber modulo the value of\r\n * BigNumber(y, b). The result depends on the value of MODULO_MODE.\r\n */\r\n P.modulo = P.mod = function (y, b) {\r\n var q, s,\r\n x = this;\r\n\r\n y = new BigNumber(y, b);\r\n\r\n // Return NaN if x is Infinity or NaN, or y is NaN or zero.\r\n if (!x.c || !y.s || y.c && !y.c[0]) {\r\n return new BigNumber(NaN);\r\n\r\n // Return x if y is Infinity or x is zero.\r\n } else if (!y.c || x.c && !x.c[0]) {\r\n return new BigNumber(x);\r\n }\r\n\r\n if (MODULO_MODE == 9) {\r\n\r\n // Euclidian division: q = sign(y) * floor(x / abs(y))\r\n // r = x - qy where 0 <= r < abs(y)\r\n s = y.s;\r\n y.s = 1;\r\n q = div(x, y, 0, 3);\r\n y.s = s;\r\n q.s *= s;\r\n } else {\r\n q = div(x, y, 0, MODULO_MODE);\r\n }\r\n\r\n y = x.minus(q.times(y));\r\n\r\n // To match JavaScript %, ensure sign of zero is sign of dividend.\r\n if (!y.c[0] && MODULO_MODE == 1) y.s = x.s;\r\n\r\n return y;\r\n };\r\n\r\n\r\n /*\r\n * n * 0 = 0\r\n * n * N = N\r\n * n * I = I\r\n * 0 * n = 0\r\n * 0 * 0 = 0\r\n * 0 * N = N\r\n * 0 * I = N\r\n * N * n = N\r\n * N * 0 = N\r\n * N * N = N\r\n * N * I = N\r\n * I * n = I\r\n * I * 0 = N\r\n * I * N = N\r\n * I * I = I\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber multiplied by the value\r\n * of BigNumber(y, b).\r\n */\r\n P.multipliedBy = P.times = function (y, b) {\r\n var c, e, i, j, k, m, xcL, xlo, xhi, ycL, ylo, yhi, zc,\r\n base, sqrtBase,\r\n x = this,\r\n xc = x.c,\r\n yc = (y = new BigNumber(y, b)).c;\r\n\r\n // Either NaN, ±Infinity or ±0?\r\n if (!xc || !yc || !xc[0] || !yc[0]) {\r\n\r\n // Return NaN if either is NaN, or one is 0 and the other is Infinity.\r\n if (!x.s || !y.s || xc && !xc[0] && !yc || yc && !yc[0] && !xc) {\r\n y.c = y.e = y.s = null;\r\n } else {\r\n y.s *= x.s;\r\n\r\n // Return ±Infinity if either is ±Infinity.\r\n if (!xc || !yc) {\r\n y.c = y.e = null;\r\n\r\n // Return ±0 if either is ±0.\r\n } else {\r\n y.c = [0];\r\n y.e = 0;\r\n }\r\n }\r\n\r\n return y;\r\n }\r\n\r\n e = bitFloor(x.e / LOG_BASE) + bitFloor(y.e / LOG_BASE);\r\n y.s *= x.s;\r\n xcL = xc.length;\r\n ycL = yc.length;\r\n\r\n // Ensure xc points to longer array and xcL to its length.\r\n if (xcL < ycL) zc = xc, xc = yc, yc = zc, i = xcL, xcL = ycL, ycL = i;\r\n\r\n // Initialise the result array with zeros.\r\n for (i = xcL + ycL, zc = []; i--; zc.push(0));\r\n\r\n base = BASE;\r\n sqrtBase = SQRT_BASE;\r\n\r\n for (i = ycL; --i >= 0;) {\r\n c = 0;\r\n ylo = yc[i] % sqrtBase;\r\n yhi = yc[i] / sqrtBase | 0;\r\n\r\n for (k = xcL, j = i + k; j > i;) {\r\n xlo = xc[--k] % sqrtBase;\r\n xhi = xc[k] / sqrtBase | 0;\r\n m = yhi * xlo + xhi * ylo;\r\n xlo = ylo * xlo + ((m % sqrtBase) * sqrtBase) + zc[j] + c;\r\n c = (xlo / base | 0) + (m / sqrtBase | 0) + yhi * xhi;\r\n zc[j--] = xlo % base;\r\n }\r\n\r\n zc[j] = c;\r\n }\r\n\r\n if (c) {\r\n ++e;\r\n } else {\r\n zc.splice(0, 1);\r\n }\r\n\r\n return normalise(y, zc, e);\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the value of this BigNumber negated,\r\n * i.e. multiplied by -1.\r\n */\r\n P.negated = function () {\r\n var x = new BigNumber(this);\r\n x.s = -x.s || null;\r\n return x;\r\n };\r\n\r\n\r\n /*\r\n * n + 0 = n\r\n * n + N = N\r\n * n + I = I\r\n * 0 + n = n\r\n * 0 + 0 = 0\r\n * 0 + N = N\r\n * 0 + I = I\r\n * N + n = N\r\n * N + 0 = N\r\n * N + N = N\r\n * N + I = N\r\n * I + n = I\r\n * I + 0 = I\r\n * I + N = N\r\n * I + I = I\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber plus the value of\r\n * BigNumber(y, b).\r\n */\r\n P.plus = function (y, b) {\r\n var t,\r\n x = this,\r\n a = x.s;\r\n\r\n y = new BigNumber(y, b);\r\n b = y.s;\r\n\r\n // Either NaN?\r\n if (!a || !b) return new BigNumber(NaN);\r\n\r\n // Signs differ?\r\n if (a != b) {\r\n y.s = -b;\r\n return x.minus(y);\r\n }\r\n\r\n var xe = x.e / LOG_BASE,\r\n ye = y.e / LOG_BASE,\r\n xc = x.c,\r\n yc = y.c;\r\n\r\n if (!xe || !ye) {\r\n\r\n // Return ±Infinity if either ±Infinity.\r\n if (!xc || !yc) return new BigNumber(a / 0);\r\n\r\n // Either zero?\r\n // Return y if y is non-zero, x if x is non-zero, or zero if both are zero.\r\n if (!xc[0] || !yc[0]) return yc[0] ? y : new BigNumber(xc[0] ? x : a * 0);\r\n }\r\n\r\n xe = bitFloor(xe);\r\n ye = bitFloor(ye);\r\n xc = xc.slice();\r\n\r\n // Prepend zeros to equalise exponents. Faster to use reverse then do unshifts.\r\n if (a = xe - ye) {\r\n if (a > 0) {\r\n ye = xe;\r\n t = yc;\r\n } else {\r\n a = -a;\r\n t = xc;\r\n }\r\n\r\n t.reverse();\r\n for (; a--; t.push(0));\r\n t.reverse();\r\n }\r\n\r\n a = xc.length;\r\n b = yc.length;\r\n\r\n // Point xc to the longer array, and b to the shorter length.\r\n if (a - b < 0) t = yc, yc = xc, xc = t, b = a;\r\n\r\n // Only start adding at yc.length - 1 as the further digits of xc can be ignored.\r\n for (a = 0; b;) {\r\n a = (xc[--b] = xc[b] + yc[b] + a) / BASE | 0;\r\n xc[b] = BASE === xc[b] ? 0 : xc[b] % BASE;\r\n }\r\n\r\n if (a) {\r\n xc = [a].concat(xc);\r\n ++ye;\r\n }\r\n\r\n // No need to check for zero, as +x + +y != 0 && -x + -y != 0\r\n // ye = MAX_EXP + 1 possible\r\n return normalise(y, xc, ye);\r\n };\r\n\r\n\r\n /*\r\n * If sd is undefined or null or true or false, return the number of significant digits of\r\n * the value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN.\r\n * If sd is true include integer-part trailing zeros in the count.\r\n *\r\n * Otherwise, if sd is a number, return a new BigNumber whose value is the value of this\r\n * BigNumber rounded to a maximum of sd significant digits using rounding mode rm, or\r\n * ROUNDING_MODE if rm is omitted.\r\n *\r\n * sd {number|boolean} number: significant digits: integer, 1 to MAX inclusive.\r\n * boolean: whether to count integer-part trailing zeros: true or false.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}'\r\n */\r\n P.precision = P.sd = function (sd, rm) {\r\n var c, n, v,\r\n x = this;\r\n\r\n if (sd != null && sd !== !!sd) {\r\n intCheck(sd, 1, MAX);\r\n if (rm == null) rm = ROUNDING_MODE;\r\n else intCheck(rm, 0, 8);\r\n\r\n return round(new BigNumber(x), sd, rm);\r\n }\r\n\r\n if (!(c = x.c)) return null;\r\n v = c.length - 1;\r\n n = v * LOG_BASE + 1;\r\n\r\n if (v = c[v]) {\r\n\r\n // Subtract the number of trailing zeros of the last element.\r\n for (; v % 10 == 0; v /= 10, n--);\r\n\r\n // Add the number of digits of the first element.\r\n for (v = c[0]; v >= 10; v /= 10, n++);\r\n }\r\n\r\n if (sd && x.e + 1 > n) n = x.e + 1;\r\n\r\n return n;\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the value of this BigNumber shifted by k places\r\n * (powers of 10). Shift to the right if n > 0, and to the left if n < 0.\r\n *\r\n * k {number} Integer, -MAX_SAFE_INTEGER to MAX_SAFE_INTEGER inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {k}'\r\n */\r\n P.shiftedBy = function (k) {\r\n intCheck(k, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER);\r\n return this.times('1e' + k);\r\n };\r\n\r\n\r\n /*\r\n * sqrt(-n) = N\r\n * sqrt(N) = N\r\n * sqrt(-I) = N\r\n * sqrt(I) = I\r\n * sqrt(0) = 0\r\n * sqrt(-0) = -0\r\n *\r\n * Return a new BigNumber whose value is the square root of the value of this BigNumber,\r\n * rounded according to DECIMAL_PLACES and ROUNDING_MODE.\r\n */\r\n P.squareRoot = P.sqrt = function () {\r\n var m, n, r, rep, t,\r\n x = this,\r\n c = x.c,\r\n s = x.s,\r\n e = x.e,\r\n dp = DECIMAL_PLACES + 4,\r\n half = new BigNumber('0.5');\r\n\r\n // Negative/NaN/Infinity/zero?\r\n if (s !== 1 || !c || !c[0]) {\r\n return new BigNumber(!s || s < 0 && (!c || c[0]) ? NaN : c ? x : 1 / 0);\r\n }\r\n\r\n // Initial estimate.\r\n s = Math.sqrt(+x);\r\n\r\n // Math.sqrt underflow/overflow?\r\n // Pass x to Math.sqrt as integer, then adjust the exponent of the result.\r\n if (s == 0 || s == 1 / 0) {\r\n n = coeffToString(c);\r\n if ((n.length + e) % 2 == 0) n += '0';\r\n s = Math.sqrt(n);\r\n e = bitFloor((e + 1) / 2) - (e < 0 || e % 2);\r\n\r\n if (s == 1 / 0) {\r\n n = '1e' + e;\r\n } else {\r\n n = s.toExponential();\r\n n = n.slice(0, n.indexOf('e') + 1) + e;\r\n }\r\n\r\n r = new BigNumber(n);\r\n } else {\r\n r = new BigNumber(s + '');\r\n }\r\n\r\n // Check for zero.\r\n // r could be zero if MIN_EXP is changed after the this value was created.\r\n // This would cause a division by zero (x/t) and hence Infinity below, which would cause\r\n // coeffToString to throw.\r\n if (r.c[0]) {\r\n e = r.e;\r\n s = e + dp;\r\n if (s < 3) s = 0;\r\n\r\n // Newton-Raphson iteration.\r\n for (; ;) {\r\n t = r;\r\n r = half.times(t.plus(div(x, t, dp, 1)));\r\n\r\n if (coeffToString(t.c ).slice(0, s) === (n =\r\n coeffToString(r.c)).slice(0, s)) {\r\n\r\n // The exponent of r may here be one less than the final result exponent,\r\n // e.g 0.0009999 (e-4) --> 0.001 (e-3), so adjust s so the rounding digits\r\n // are indexed correctly.\r\n if (r.e < e) --s;\r\n n = n.slice(s - 3, s + 1);\r\n\r\n // The 4th rounding digit may be in error by -1 so if the 4 rounding digits\r\n // are 9999 or 4999 (i.e. approaching a rounding boundary) continue the\r\n // iteration.\r\n if (n == '9999' || !rep && n == '4999') {\r\n\r\n // On the first iteration only, check to see if rounding up gives the\r\n // exact result as the nines may infinitely repeat.\r\n if (!rep) {\r\n round(t, t.e + DECIMAL_PLACES + 2, 0);\r\n\r\n if (t.times(t).eq(x)) {\r\n r = t;\r\n break;\r\n }\r\n }\r\n\r\n dp += 4;\r\n s += 4;\r\n rep = 1;\r\n } else {\r\n\r\n // If rounding digits are null, 0{0,4} or 50{0,3}, check for exact\r\n // result. If not, then there are further digits and m will be truthy.\r\n if (!+n || !+n.slice(1) && n.charAt(0) == '5') {\r\n\r\n // Truncate to the first rounding digit.\r\n round(r, r.e + DECIMAL_PLACES + 2, 1);\r\n m = !r.times(r).eq(x);\r\n }\r\n\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return round(r, r.e + DECIMAL_PLACES + 1, ROUNDING_MODE, m);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber in exponential notation and\r\n * rounded using ROUNDING_MODE to dp fixed decimal places.\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}'\r\n */\r\n P.toExponential = function (dp, rm) {\r\n if (dp != null) {\r\n intCheck(dp, 0, MAX);\r\n dp++;\r\n }\r\n return format(this, dp, rm, 1);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber in fixed-point notation rounding\r\n * to dp fixed decimal places using rounding mode rm, or ROUNDING_MODE if rm is omitted.\r\n *\r\n * Note: as with JavaScript's number type, (-0).toFixed(0) is '0',\r\n * but e.g. (-0.00001).toFixed(0) is '-0'.\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}'\r\n */\r\n P.toFixed = function (dp, rm) {\r\n if (dp != null) {\r\n intCheck(dp, 0, MAX);\r\n dp = dp + this.e + 1;\r\n }\r\n return format(this, dp, rm);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber in fixed-point notation rounded\r\n * using rm or ROUNDING_MODE to dp decimal places, and formatted according to the properties\r\n * of the FORMAT object (see BigNumber.set).\r\n *\r\n * FORMAT = {\r\n * decimalSeparator : '.',\r\n * groupSeparator : ',',\r\n * groupSize : 3,\r\n * secondaryGroupSize : 0,\r\n * fractionGroupSeparator : '\\xA0', // non-breaking space\r\n * fractionGroupSize : 0\r\n * };\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}'\r\n */\r\n P.toFormat = function (dp, rm) {\r\n var str = this.toFixed(dp, rm);\r\n\r\n if (this.c) {\r\n var i,\r\n arr = str.split('.'),\r\n g1 = +FORMAT.groupSize,\r\n g2 = +FORMAT.secondaryGroupSize,\r\n groupSeparator = FORMAT.groupSeparator,\r\n intPart = arr[0],\r\n fractionPart = arr[1],\r\n isNeg = this.s < 0,\r\n intDigits = isNeg ? intPart.slice(1) : intPart,\r\n len = intDigits.length;\r\n\r\n if (g2) i = g1, g1 = g2, g2 = i, len -= i;\r\n\r\n if (g1 > 0 && len > 0) {\r\n i = len % g1 || g1;\r\n intPart = intDigits.substr(0, i);\r\n\r\n for (; i < len; i += g1) {\r\n intPart += groupSeparator + intDigits.substr(i, g1);\r\n }\r\n\r\n if (g2 > 0) intPart += groupSeparator + intDigits.slice(i);\r\n if (isNeg) intPart = '-' + intPart;\r\n }\r\n\r\n str = fractionPart\r\n ? intPart + FORMAT.decimalSeparator + ((g2 = +FORMAT.fractionGroupSize)\r\n ? fractionPart.replace(new RegExp('\\\\d{' + g2 + '}\\\\B', 'g'),\r\n '$&' + FORMAT.fractionGroupSeparator)\r\n : fractionPart)\r\n : intPart;\r\n }\r\n\r\n return str;\r\n };\r\n\r\n\r\n /*\r\n * Return a string array representing the value of this BigNumber as a simple fraction with\r\n * an integer numerator and an integer denominator. The denominator will be a positive\r\n * non-zero value less than or equal to the specified maximum denominator. If a maximum\r\n * denominator is not specified, the denominator will be the lowest value necessary to\r\n * represent the number exactly.\r\n *\r\n * [md] {number|string|BigNumber} Integer >= 1, or Infinity. The maximum denominator.\r\n *\r\n * '[BigNumber Error] Argument {not an integer|out of range} : {md}'\r\n */\r\n P.toFraction = function (md) {\r\n var arr, d, d0, d1, d2, e, exp, n, n0, n1, q, s,\r\n x = this,\r\n xc = x.c;\r\n\r\n if (md != null) {\r\n n = new BigNumber(md);\r\n\r\n // Throw if md is less than one or is not an integer, unless it is Infinity.\r\n if (!n.isInteger() && (n.c || n.s !== 1) || n.lt(ONE)) {\r\n throw Error\r\n (bignumberError + 'Argument ' +\r\n (n.isInteger() ? 'out of range: ' : 'not an integer: ') + md);\r\n }\r\n }\r\n\r\n if (!xc) return x.toString();\r\n\r\n d = new BigNumber(ONE);\r\n n1 = d0 = new BigNumber(ONE);\r\n d1 = n0 = new BigNumber(ONE);\r\n s = coeffToString(xc);\r\n\r\n // Determine initial denominator.\r\n // d is a power of 10 and the minimum max denominator that specifies the value exactly.\r\n e = d.e = s.length - x.e - 1;\r\n d.c[0] = POWS_TEN[(exp = e % LOG_BASE) < 0 ? LOG_BASE + exp : exp];\r\n md = !md || n.comparedTo(d) > 0 ? (e > 0 ? d : n1) : n;\r\n\r\n exp = MAX_EXP;\r\n MAX_EXP = 1 / 0;\r\n n = new BigNumber(s);\r\n\r\n // n0 = d1 = 0\r\n n0.c[0] = 0;\r\n\r\n for (; ;) {\r\n q = div(n, d, 0, 1);\r\n d2 = d0.plus(q.times(d1));\r\n if (d2.comparedTo(md) == 1) break;\r\n d0 = d1;\r\n d1 = d2;\r\n n1 = n0.plus(q.times(d2 = n1));\r\n n0 = d2;\r\n d = n.minus(q.times(d2 = d));\r\n n = d2;\r\n }\r\n\r\n d2 = div(md.minus(d0), d1, 0, 1);\r\n n0 = n0.plus(d2.times(n1));\r\n d0 = d0.plus(d2.times(d1));\r\n n0.s = n1.s = x.s;\r\n e *= 2;\r\n\r\n // Determine which fraction is closer to x, n0/d0 or n1/d1\r\n arr = div(n1, d1, e, ROUNDING_MODE).minus(x).abs().comparedTo(\r\n div(n0, d0, e, ROUNDING_MODE).minus(x).abs()) < 1\r\n ? [n1.toString(), d1.toString()]\r\n : [n0.toString(), d0.toString()];\r\n\r\n MAX_EXP = exp;\r\n return arr;\r\n };\r\n\r\n\r\n /*\r\n * Return the value of this BigNumber converted to a number primitive.\r\n */\r\n P.toNumber = function () {\r\n return +this;\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber rounded to sd significant digits\r\n * using rounding mode rm or ROUNDING_MODE. If sd is less than the number of digits\r\n * necessary to represent the integer part of the value in fixed-point notation, then use\r\n * exponential notation.\r\n *\r\n * [sd] {number} Significant digits. Integer, 1 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}'\r\n */\r\n P.toPrecision = function (sd, rm) {\r\n if (sd != null) intCheck(sd, 1, MAX);\r\n return format(this, sd, rm, 2);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber in base b, or base 10 if b is\r\n * omitted. If a base is specified, including base 10, round according to DECIMAL_PLACES and\r\n * ROUNDING_MODE. If a base is not specified, and this BigNumber has a positive exponent\r\n * that is equal to or greater than TO_EXP_POS, or a negative exponent equal to or less than\r\n * TO_EXP_NEG, return exponential notation.\r\n *\r\n * [b] {number} Integer, 2 to ALPHABET.length inclusive.\r\n *\r\n * '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}'\r\n */\r\n P.toString = function (b) {\r\n var str,\r\n n = this,\r\n s = n.s,\r\n e = n.e;\r\n\r\n // Infinity or NaN?\r\n if (e === null) {\r\n\r\n if (s) {\r\n str = 'Infinity';\r\n if (s < 0) str = '-' + str;\r\n } else {\r\n str = 'NaN';\r\n }\r\n } else {\r\n str = coeffToString(n.c);\r\n\r\n if (b == null) {\r\n str = e <= TO_EXP_NEG || e >= TO_EXP_POS\r\n ? toExponential(str, e)\r\n : toFixedPoint(str, e, '0');\r\n } else {\r\n intCheck(b, 2, ALPHABET.length, 'Base');\r\n str = convertBase(toFixedPoint(str, e, '0'), 10, b, s, true);\r\n }\r\n\r\n if (s < 0 && n.c[0]) str = '-' + str;\r\n }\r\n\r\n return str;\r\n };\r\n\r\n\r\n /*\r\n * Return as toString, but do not accept a base argument, and include the minus sign for\r\n * negative zero.\r\n */\r\n P.valueOf = P.toJSON = function () {\r\n var str,\r\n n = this,\r\n e = n.e;\r\n\r\n if (e === null) return n.toString();\r\n\r\n str = coeffToString(n.c);\r\n\r\n str = e <= TO_EXP_NEG || e >= TO_EXP_POS\r\n ? toExponential(str, e)\r\n : toFixedPoint(str, e, '0');\r\n\r\n return n.s < 0 ? '-' + str : str;\r\n };\r\n\r\n\r\n P._isBigNumber = true;\r\n\r\n if (configObject != null) BigNumber.set(configObject);\r\n\r\n return BigNumber;\r\n }\r\n\r\n\r\n // PRIVATE HELPER FUNCTIONS\r\n\r\n\r\n function bitFloor(n) {\r\n var i = n | 0;\r\n return n > 0 || n === i ? i : i - 1;\r\n }\r\n\r\n\r\n // Return a coefficient array as a string of base 10 digits.\r\n function coeffToString(a) {\r\n var s, z,\r\n i = 1,\r\n j = a.length,\r\n r = a[0] + '';\r\n\r\n for (; i < j;) {\r\n s = a[i++] + '';\r\n z = LOG_BASE - s.length;\r\n for (; z--; s = '0' + s);\r\n r += s;\r\n }\r\n\r\n // Determine trailing zeros.\r\n for (j = r.length; r.charCodeAt(--j) === 48;);\r\n return r.slice(0, j + 1 || 1);\r\n }\r\n\r\n\r\n // Compare the value of BigNumbers x and y.\r\n function compare(x, y) {\r\n var a, b,\r\n xc = x.c,\r\n yc = y.c,\r\n i = x.s,\r\n j = y.s,\r\n k = x.e,\r\n l = y.e;\r\n\r\n // Either NaN?\r\n if (!i || !j) return null;\r\n\r\n a = xc && !xc[0];\r\n b = yc && !yc[0];\r\n\r\n // Either zero?\r\n if (a || b) return a ? b ? 0 : -j : i;\r\n\r\n // Signs differ?\r\n if (i != j) return i;\r\n\r\n a = i < 0;\r\n b = k == l;\r\n\r\n // Either Infinity?\r\n if (!xc || !yc) return b ? 0 : !xc ^ a ? 1 : -1;\r\n\r\n // Compare exponents.\r\n if (!b) return k > l ^ a ? 1 : -1;\r\n\r\n j = (k = xc.length) < (l = yc.length) ? k : l;\r\n\r\n // Compare digit by digit.\r\n for (i = 0; i < j; i++) if (xc[i] != yc[i]) return xc[i] > yc[i] ^ a ? 1 : -1;\r\n\r\n // Compare lengths.\r\n return k == l ? 0 : k > l ^ a ? 1 : -1;\r\n }\r\n\r\n\r\n /*\r\n * Check that n is a primitive number, an integer, and in range, otherwise throw.\r\n */\r\n function intCheck(n, min, max, name) {\r\n if (n < min || n > max || n !== (n < 0 ? mathceil(n) : mathfloor(n))) {\r\n throw Error\r\n (bignumberError + (name || 'Argument') + (typeof n == 'number'\r\n ? n < min || n > max ? ' out of range: ' : ' not an integer: '\r\n : ' not a primitive number: ') + n);\r\n }\r\n }\r\n\r\n\r\n function isArray(obj) {\r\n return Object.prototype.toString.call(obj) == '[object Array]';\r\n }\r\n\r\n\r\n // Assumes finite n.\r\n function isOdd(n) {\r\n var k = n.c.length - 1;\r\n return bitFloor(n.e / LOG_BASE) == k && n.c[k] % 2 != 0;\r\n }\r\n\r\n\r\n function toExponential(str, e) {\r\n return (str.length > 1 ? str.charAt(0) + '.' + str.slice(1) : str) +\r\n (e < 0 ? 'e' : 'e+') + e;\r\n }\r\n\r\n\r\n function toFixedPoint(str, e, z) {\r\n var len, zs;\r\n\r\n // Negative exponent?\r\n if (e < 0) {\r\n\r\n // Prepend zeros.\r\n for (zs = z + '.'; ++e; zs += z);\r\n str = zs + str;\r\n\r\n // Positive exponent\r\n } else {\r\n len = str.length;\r\n\r\n // Append zeros.\r\n if (++e > len) {\r\n for (zs = z, e -= len; --e; zs += z);\r\n str += zs;\r\n } else if (e < len) {\r\n str = str.slice(0, e) + '.' + str.slice(e);\r\n }\r\n }\r\n\r\n return str;\r\n }\r\n\r\n\r\n // EXPORT\r\n\r\n\r\n BigNumber = clone();\r\n BigNumber['default'] = BigNumber.BigNumber = BigNumber;\r\n\r\n // AMD.\r\n if (typeof define == 'function' && define.amd) {\r\n define(function () { return BigNumber; });\r\n\r\n // Node.js and other environments that support module.exports.\r\n } else if (typeof module != 'undefined' && module.exports) {\r\n module.exports = BigNumber;\r\n\r\n // Browser.\r\n } else {\r\n if (!globalObject) {\r\n globalObject = typeof self != 'undefined' && self ? self : window;\r\n }\r\n\r\n globalObject.BigNumber = BigNumber;\r\n }\r\n})(this);\r\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.string = exports.address = exports.hexString = exports.bigInt = exports.bool = exports.uint64 = exports.uint32 = exports.uint8 = exports.bytes32 = exports.bytes8 = exports.bytes = exports.test = exports.ensure = exports.BadParameter = exports.isBigInt = exports.isUInt = exports.isHexBytes = exports.isHexString = exports.isDecString = void 0;\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nfunction isDecString(val) {\n return typeof val === 'string' && /^[0-9]+$/.test(val);\n}\nexports.isDecString = isDecString;\nfunction isHexString(val) {\n return typeof val === 'string' && /^0x[0-9a-f]+$/i.test(val);\n}\nexports.isHexString = isHexString;\nfunction isHexBytes(val, n) {\n if (typeof val !== 'string' || !/^0x[0-9a-f]*$/i.test(val)) {\n return false;\n }\n return n ? val.length === n * 2 + 2 : val.length % 2 === 0;\n}\nexports.isHexBytes = isHexBytes;\nfunction isUInt(val, bit) {\n if (val < 0 || !Number.isInteger(val)) {\n return false;\n }\n return bit ? val < Math.pow(2, bit) : true;\n}\nexports.isUInt = isUInt;\nfunction isBigInt(v) {\n return typeof v === 'string' ?\n (isDecString(v) || isHexString(v)) :\n isUInt(v, 0);\n}\nexports.isBigInt = isBigInt;\nclass BadParameter extends Error {\n constructor(msg) {\n super(msg);\n }\n}\nexports.BadParameter = BadParameter;\nBadParameter.prototype.name = 'BadParameter';\nfunction ensure(b, msg) {\n if (!b) {\n throw new BadParameter(msg);\n }\n}\nexports.ensure = ensure;\nconst V = require(\"validator-ts\");\nfunction test(value, scheme, context) {\n try {\n return V.validate(value, scheme, context);\n }\n catch (err) {\n if (err instanceof V.ValidationError) {\n throw new BadParameter(err.message);\n }\n throw err;\n }\n}\nexports.test = test;\n// rules\nfunction bytes(v) {\n return isHexBytes(v) ? '' : 'expected bytes in hex string';\n}\nexports.bytes = bytes;\nfunction bytes8(v) {\n return isHexBytes(v, 8) ? '' : 'expected bytes8';\n}\nexports.bytes8 = bytes8;\nfunction bytes32(v) {\n return isHexBytes(v, 32) ? '' : 'expected bytes32';\n}\nexports.bytes32 = bytes32;\nfunction uint8(v) {\n return isUInt(v, 8) ? '' : 'expected 8-bit unsigned integer';\n}\nexports.uint8 = uint8;\nfunction uint32(v) {\n return isUInt(v, 32) ? '' : 'expected 32-bit unsigned integer';\n}\nexports.uint32 = uint32;\nfunction uint64(v) {\n return isUInt(v, 64) ? '' : 'expected 64-bit unsigned integer';\n}\nexports.uint64 = uint64;\nfunction bool(v) {\n return typeof v === 'boolean' ? '' : 'expected boolean';\n}\nexports.bool = bool;\nfunction bigInt(v) {\n return isBigInt(v) ? '' : 'expected unsigned integer in number or string';\n}\nexports.bigInt = bigInt;\nfunction hexString(v) {\n return isHexString(v) ? '' : 'expected integer in hex string';\n}\nexports.hexString = hexString;\nfunction address(v) {\n return isHexBytes(v, 20) ? '' : 'expected address';\n}\nexports.address = address;\nfunction string(v) {\n return typeof v === 'string' ? '' : 'expected string';\n}\nexports.string = string;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnVsZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvcnVsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsc0VBQXNFO0FBQ3RFLFNBQWdCLFdBQVcsQ0FBQyxHQUFXO0lBQ25DLE9BQU8sT0FBTyxHQUFHLEtBQUssUUFBUSxJQUFJLFVBQVUsQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUE7QUFDMUQsQ0FBQztBQUZELGtDQUVDO0FBRUQsU0FBZ0IsV0FBVyxDQUFDLEdBQVc7SUFDbkMsT0FBTyxPQUFPLEdBQUcsS0FBSyxRQUFRLElBQUksZ0JBQWdCLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFBO0FBQ2hFLENBQUM7QUFGRCxrQ0FFQztBQUVELFNBQWdCLFVBQVUsQ0FBQyxHQUFXLEVBQUUsQ0FBVTtJQUM5QyxJQUFJLE9BQU8sR0FBRyxLQUFLLFFBQVEsSUFBSSxDQUFDLGdCQUFnQixDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRTtRQUN4RCxPQUFPLEtBQUssQ0FBQTtLQUNmO0lBQ0QsT0FBTyxDQUFDLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxNQUFNLEtBQUssQ0FBQyxHQUFHLENBQUMsR0FBRyxDQUFD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FCLE9BQU8sVUFBVSxDQUFDLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxrQkFBa0IsQ0FBQTtBQUN0RCxDQUFDO0FBRkQsMEJBRUM7QUFDRCxTQUFnQixNQUFNLENBQUMsQ0FBTTtJQUN6QixPQUFPLE9BQU8sQ0FBQyxLQUFLLFFBQVEsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxpQkFBaUIsQ0FBQTtBQUN6RCxDQUFDO0FBRkQsd0JBRUMifQ==",";(function (globalObject) {\r\n 'use strict';\r\n\r\n/*\r\n * bignumber.js v7.2.1\r\n * A JavaScript library for arbitrary-precision arithmetic.\r\n * https://github.com/MikeMcl/bignumber.js\r\n * Copyright (c) 2018 Michael Mclaughlin \r\n * MIT Licensed.\r\n *\r\n * BigNumber.prototype methods | BigNumber methods\r\n * |\r\n * absoluteValue abs | clone\r\n * comparedTo | config set\r\n * decimalPlaces dp | DECIMAL_PLACES\r\n * dividedBy div | ROUNDING_MODE\r\n * dividedToIntegerBy idiv | EXPONENTIAL_AT\r\n * exponentiatedBy pow | RANGE\r\n * integerValue | CRYPTO\r\n * isEqualTo eq | MODULO_MODE\r\n * isFinite | POW_PRECISION\r\n * isGreaterThan gt | FORMAT\r\n * isGreaterThanOrEqualTo gte | ALPHABET\r\n * isInteger | isBigNumber\r\n * isLessThan lt | maximum max\r\n * isLessThanOrEqualTo lte | minimum min\r\n * isNaN | random\r\n * isNegative |\r\n * isPositive |\r\n * isZero |\r\n * minus |\r\n * modulo mod |\r\n * multipliedBy times |\r\n * negated |\r\n * plus |\r\n * precision sd |\r\n * shiftedBy |\r\n * squareRoot sqrt |\r\n * toExponential |\r\n * toFixed |\r\n * toFormat |\r\n * toFraction |\r\n * toJSON |\r\n * toNumber |\r\n * toPrecision |\r\n * toString |\r\n * valueOf |\r\n *\r\n */\r\n\r\n\r\n var BigNumber,\r\n isNumeric = /^-?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?$/i,\r\n\r\n mathceil = Math.ceil,\r\n mathfloor = Math.floor,\r\n\r\n bignumberError = '[BigNumber Error] ',\r\n tooManyDigits = bignumberError + 'Number primitive has more than 15 significant digits: ',\r\n\r\n BASE = 1e14,\r\n LOG_BASE = 14,\r\n MAX_SAFE_INTEGER = 0x1fffffffffffff, // 2^53 - 1\r\n // MAX_INT32 = 0x7fffffff, // 2^31 - 1\r\n POWS_TEN = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13],\r\n SQRT_BASE = 1e7,\r\n\r\n // EDITABLE\r\n // The limit on the value of DECIMAL_PLACES, TO_EXP_NEG, TO_EXP_POS, MIN_EXP, MAX_EXP, and\r\n // the arguments to toExponential, toFixed, toFormat, and toPrecision.\r\n MAX = 1E9; // 0 to MAX_INT32\r\n\r\n\r\n /*\r\n * Create and return a BigNumber constructor.\r\n */\r\n function clone(configObject) {\r\n var div, convertBase, parseNumeric,\r\n P = BigNumber.prototype = { constructor: BigNumber, toString: null, valueOf: null },\r\n ONE = new BigNumber(1),\r\n\r\n\r\n //----------------------------- EDITABLE CONFIG DEFAULTS -------------------------------\r\n\r\n\r\n // The default values below must be integers within the inclusive ranges stated.\r\n // The values can also be changed at run-time using BigNumber.set.\r\n\r\n // The maximum number of decimal places for operations involving division.\r\n DECIMAL_PLACES = 20, // 0 to MAX\r\n\r\n // The rounding mode used when rounding to the above decimal places, and when using\r\n // toExponential, toFixed, toFormat and toPrecision, and round (default value).\r\n // UP 0 Away from zero.\r\n // DOWN 1 Towards zero.\r\n // CEIL 2 Towards +Infinity.\r\n // FLOOR 3 Towards -Infinity.\r\n // HALF_UP 4 Towards nearest neighbour. If equidistant, up.\r\n // HALF_DOWN 5 Towards nearest neighbour. If equidistant, down.\r\n // HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour.\r\n // HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity.\r\n // HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity.\r\n ROUNDING_MODE = 4, // 0 to 8\r\n\r\n // EXPONENTIAL_AT : [TO_EXP_NEG , TO_EXP_POS]\r\n\r\n // The exponent value at and beneath which toString returns exponential notation.\r\n // Number type: -7\r\n TO_EXP_NEG = -7, // 0 to -MAX\r\n\r\n // The exponent value at and above which toString returns exponential notation.\r\n // Number type: 21\r\n TO_EXP_POS = 21, // 0 to MAX\r\n\r\n // RANGE : [MIN_EXP, MAX_EXP]\r\n\r\n // The minimum exponent value, beneath which underflow to zero occurs.\r\n // Number type: -324 (5e-324)\r\n MIN_EXP = -1e7, // -1 to -MAX\r\n\r\n // The maximum exponent value, above which overflow to Infinity occurs.\r\n // Number type: 308 (1.7976931348623157e+308)\r\n // For MAX_EXP > 1e7, e.g. new BigNumber('1e100000000').plus(1) may be slow.\r\n MAX_EXP = 1e7, // 1 to MAX\r\n\r\n // Whether to use cryptographically-secure random number generation, if available.\r\n CRYPTO = false, // true or false\r\n\r\n // The modulo mode used when calculating the modulus: a mod n.\r\n // The quotient (q = a / n) is calculated according to the corresponding rounding mode.\r\n // The remainder (r) is calculated as: r = a - n * q.\r\n //\r\n // UP 0 The remainder is positive if the dividend is negative, else is negative.\r\n // DOWN 1 The remainder has the same sign as the dividend.\r\n // This modulo mode is commonly known as 'truncated division' and is\r\n // equivalent to (a % n) in JavaScript.\r\n // FLOOR 3 The remainder has the same sign as the divisor (Python %).\r\n // HALF_EVEN 6 This modulo mode implements the IEEE 754 remainder function.\r\n // EUCLID 9 Euclidian division. q = sign(n) * floor(a / abs(n)).\r\n // The remainder is always positive.\r\n //\r\n // The truncated division, floored division, Euclidian division and IEEE 754 remainder\r\n // modes are commonly used for the modulus operation.\r\n // Although the other rounding modes can also be used, they may not give useful results.\r\n MODULO_MODE = 1, // 0 to 9\r\n\r\n // The maximum number of significant digits of the result of the exponentiatedBy operation.\r\n // If POW_PRECISION is 0, there will be unlimited significant digits.\r\n POW_PRECISION = 0, // 0 to MAX\r\n\r\n // The format specification used by the BigNumber.prototype.toFormat method.\r\n FORMAT = {\r\n decimalSeparator: '.',\r\n groupSeparator: ',',\r\n groupSize: 3,\r\n secondaryGroupSize: 0,\r\n fractionGroupSeparator: '\\xA0', // non-breaking space\r\n fractionGroupSize: 0\r\n },\r\n\r\n // The alphabet used for base conversion.\r\n // It must be at least 2 characters long, with no '.' or repeated character.\r\n // '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_'\r\n ALPHABET = '0123456789abcdefghijklmnopqrstuvwxyz';\r\n\r\n\r\n //------------------------------------------------------------------------------------------\r\n\r\n\r\n // CONSTRUCTOR\r\n\r\n\r\n /*\r\n * The BigNumber constructor and exported function.\r\n * Create and return a new instance of a BigNumber object.\r\n *\r\n * n {number|string|BigNumber} A numeric value.\r\n * [b] {number} The base of n. Integer, 2 to ALPHABET.length inclusive.\r\n */\r\n function BigNumber(n, b) {\r\n var alphabet, c, caseChanged, e, i, isNum, len, str,\r\n x = this;\r\n\r\n // Enable constructor usage without new.\r\n if (!(x instanceof BigNumber)) {\r\n\r\n // Don't throw on constructor call without new (#81).\r\n // '[BigNumber Error] Constructor call without new: {n}'\r\n //throw Error(bignumberError + ' Constructor call without new: ' + n);\r\n return new BigNumber(n, b);\r\n }\r\n\r\n if (b == null) {\r\n\r\n // Duplicate.\r\n if (n instanceof BigNumber) {\r\n x.s = n.s;\r\n x.e = n.e;\r\n x.c = (n = n.c) ? n.slice() : n;\r\n return;\r\n }\r\n\r\n isNum = typeof n == 'number';\r\n\r\n if (isNum && n * 0 == 0) {\r\n\r\n // Use `1 / n` to handle minus zero also.\r\n x.s = 1 / n < 0 ? (n = -n, -1) : 1;\r\n\r\n // Faster path for integers.\r\n if (n === ~~n) {\r\n for (e = 0, i = n; i >= 10; i /= 10, e++);\r\n x.e = e;\r\n x.c = [n];\r\n return;\r\n }\r\n\r\n str = n + '';\r\n } else {\r\n if (!isNumeric.test(str = n + '')) return parseNumeric(x, str, isNum);\r\n x.s = str.charCodeAt(0) == 45 ? (str = str.slice(1), -1) : 1;\r\n }\r\n\r\n // Decimal point?\r\n if ((e = str.indexOf('.')) > -1) str = str.replace('.', '');\r\n\r\n // Exponential form?\r\n if ((i = str.search(/e/i)) > 0) {\r\n\r\n // Determine exponent.\r\n if (e < 0) e = i;\r\n e += +str.slice(i + 1);\r\n str = str.substring(0, i);\r\n } else if (e < 0) {\r\n\r\n // Integer.\r\n e = str.length;\r\n }\r\n\r\n } else {\r\n\r\n // '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}'\r\n intCheck(b, 2, ALPHABET.length, 'Base');\r\n str = n + '';\r\n\r\n // Allow exponential notation to be used with base 10 argument, while\r\n // also rounding to DECIMAL_PLACES as with other bases.\r\n if (b == 10) {\r\n x = new BigNumber(n instanceof BigNumber ? n : str);\r\n return round(x, DECIMAL_PLACES + x.e + 1, ROUNDING_MODE);\r\n }\r\n\r\n isNum = typeof n == 'number';\r\n\r\n if (isNum) {\r\n\r\n // Avoid potential interpretation of Infinity and NaN as base 44+ values.\r\n if (n * 0 != 0) return parseNumeric(x, str, isNum, b);\r\n\r\n x.s = 1 / n < 0 ? (str = str.slice(1), -1) : 1;\r\n\r\n // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}'\r\n if (BigNumber.DEBUG && str.replace(/^0\\.0*|\\./, '').length > 15) {\r\n throw Error\r\n (tooManyDigits + n);\r\n }\r\n\r\n // Prevent later check for length on converted number.\r\n isNum = false;\r\n } else {\r\n x.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1;\r\n }\r\n\r\n alphabet = ALPHABET.slice(0, b);\r\n e = i = 0;\r\n\r\n // Check that str is a valid base b number.\r\n // Don't use RegExp so alphabet can contain special characters.\r\n for (len = str.length; i < len; i++) {\r\n if (alphabet.indexOf(c = str.charAt(i)) < 0) {\r\n if (c == '.') {\r\n\r\n // If '.' is not the first character and it has not be found before.\r\n if (i > e) {\r\n e = len;\r\n continue;\r\n }\r\n } else if (!caseChanged) {\r\n\r\n // Allow e.g. hexadecimal 'FF' as well as 'ff'.\r\n if (str == str.toUpperCase() && (str = str.toLowerCase()) ||\r\n str == str.toLowerCase() && (str = str.toUpperCase())) {\r\n caseChanged = true;\r\n i = -1;\r\n e = 0;\r\n continue;\r\n }\r\n }\r\n\r\n return parseNumeric(x, n + '', isNum, b);\r\n }\r\n }\r\n\r\n str = convertBase(str, b, 10, x.s);\r\n\r\n // Decimal point?\r\n if ((e = str.indexOf('.')) > -1) str = str.replace('.', '');\r\n else e = str.length;\r\n }\r\n\r\n // Determine leading zeros.\r\n for (i = 0; str.charCodeAt(i) === 48; i++);\r\n\r\n // Determine trailing zeros.\r\n for (len = str.length; str.charCodeAt(--len) === 48;);\r\n\r\n str = str.slice(i, ++len);\r\n\r\n if (str) {\r\n len -= i;\r\n\r\n // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}'\r\n if (isNum && BigNumber.DEBUG &&\r\n len > 15 && (n > MAX_SAFE_INTEGER || n !== mathfloor(n))) {\r\n throw Error\r\n (tooManyDigits + (x.s * n));\r\n }\r\n\r\n e = e - i - 1;\r\n\r\n // Overflow?\r\n if (e > MAX_EXP) {\r\n\r\n // Infinity.\r\n x.c = x.e = null;\r\n\r\n // Underflow?\r\n } else if (e < MIN_EXP) {\r\n\r\n // Zero.\r\n x.c = [x.e = 0];\r\n } else {\r\n x.e = e;\r\n x.c = [];\r\n\r\n // Transform base\r\n\r\n // e is the base 10 exponent.\r\n // i is where to slice str to get the first element of the coefficient array.\r\n i = (e + 1) % LOG_BASE;\r\n if (e < 0) i += LOG_BASE;\r\n\r\n if (i < len) {\r\n if (i) x.c.push(+str.slice(0, i));\r\n\r\n for (len -= LOG_BASE; i < len;) {\r\n x.c.push(+str.slice(i, i += LOG_BASE));\r\n }\r\n\r\n str = str.slice(i);\r\n i = LOG_BASE - str.length;\r\n } else {\r\n i -= len;\r\n }\r\n\r\n for (; i--; str += '0');\r\n x.c.push(+str);\r\n }\r\n } else {\r\n\r\n // Zero.\r\n x.c = [x.e = 0];\r\n }\r\n }\r\n\r\n\r\n // CONSTRUCTOR PROPERTIES\r\n\r\n\r\n BigNumber.clone = clone;\r\n\r\n BigNumber.ROUND_UP = 0;\r\n BigNumber.ROUND_DOWN = 1;\r\n BigNumber.ROUND_CEIL = 2;\r\n BigNumber.ROUND_FLOOR = 3;\r\n BigNumber.ROUND_HALF_UP = 4;\r\n BigNumber.ROUND_HALF_DOWN = 5;\r\n BigNumber.ROUND_HALF_EVEN = 6;\r\n BigNumber.ROUND_HALF_CEIL = 7;\r\n BigNumber.ROUND_HALF_FLOOR = 8;\r\n BigNumber.EUCLID = 9;\r\n\r\n\r\n /*\r\n * Configure infrequently-changing library-wide settings.\r\n *\r\n * Accept an object with the following optional properties (if the value of a property is\r\n * a number, it must be an integer within the inclusive range stated):\r\n *\r\n * DECIMAL_PLACES {number} 0 to MAX\r\n * ROUNDING_MODE {number} 0 to 8\r\n * EXPONENTIAL_AT {number|number[]} -MAX to MAX or [-MAX to 0, 0 to MAX]\r\n * RANGE {number|number[]} -MAX to MAX (not zero) or [-MAX to -1, 1 to MAX]\r\n * CRYPTO {boolean} true or false\r\n * MODULO_MODE {number} 0 to 9\r\n * POW_PRECISION {number} 0 to MAX\r\n * ALPHABET {string} A string of two or more unique characters which does\r\n * not contain '.'.\r\n * FORMAT {object} An object with some of the following properties:\r\n * decimalSeparator {string}\r\n * groupSeparator {string}\r\n * groupSize {number}\r\n * secondaryGroupSize {number}\r\n * fractionGroupSeparator {string}\r\n * fractionGroupSize {number}\r\n *\r\n * (The values assigned to the above FORMAT object properties are not checked for validity.)\r\n *\r\n * E.g.\r\n * BigNumber.config({ DECIMAL_PLACES : 20, ROUNDING_MODE : 4 })\r\n *\r\n * Ignore properties/parameters set to null or undefined, except for ALPHABET.\r\n *\r\n * Return an object with the properties current values.\r\n */\r\n BigNumber.config = BigNumber.set = function (obj) {\r\n var p, v;\r\n\r\n if (obj != null) {\r\n\r\n if (typeof obj == 'object') {\r\n\r\n // DECIMAL_PLACES {number} Integer, 0 to MAX inclusive.\r\n // '[BigNumber Error] DECIMAL_PLACES {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'DECIMAL_PLACES')) {\r\n v = obj[p];\r\n intCheck(v, 0, MAX, p);\r\n DECIMAL_PLACES = v;\r\n }\r\n\r\n // ROUNDING_MODE {number} Integer, 0 to 8 inclusive.\r\n // '[BigNumber Error] ROUNDING_MODE {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'ROUNDING_MODE')) {\r\n v = obj[p];\r\n intCheck(v, 0, 8, p);\r\n ROUNDING_MODE = v;\r\n }\r\n\r\n // EXPONENTIAL_AT {number|number[]}\r\n // Integer, -MAX to MAX inclusive or\r\n // [integer -MAX to 0 inclusive, 0 to MAX inclusive].\r\n // '[BigNumber Error] EXPONENTIAL_AT {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'EXPONENTIAL_AT')) {\r\n v = obj[p];\r\n if (isArray(v)) {\r\n intCheck(v[0], -MAX, 0, p);\r\n intCheck(v[1], 0, MAX, p);\r\n TO_EXP_NEG = v[0];\r\n TO_EXP_POS = v[1];\r\n } else {\r\n intCheck(v, -MAX, MAX, p);\r\n TO_EXP_NEG = -(TO_EXP_POS = v < 0 ? -v : v);\r\n }\r\n }\r\n\r\n // RANGE {number|number[]} Non-zero integer, -MAX to MAX inclusive or\r\n // [integer -MAX to -1 inclusive, integer 1 to MAX inclusive].\r\n // '[BigNumber Error] RANGE {not a primitive number|not an integer|out of range|cannot be zero}: {v}'\r\n if (obj.hasOwnProperty(p = 'RANGE')) {\r\n v = obj[p];\r\n if (isArray(v)) {\r\n intCheck(v[0], -MAX, -1, p);\r\n intCheck(v[1], 1, MAX, p);\r\n MIN_EXP = v[0];\r\n MAX_EXP = v[1];\r\n } else {\r\n intCheck(v, -MAX, MAX, p);\r\n if (v) {\r\n MIN_EXP = -(MAX_EXP = v < 0 ? -v : v);\r\n } else {\r\n throw Error\r\n (bignumberError + p + ' cannot be zero: ' + v);\r\n }\r\n }\r\n }\r\n\r\n // CRYPTO {boolean} true or false.\r\n // '[BigNumber Error] CRYPTO not true or false: {v}'\r\n // '[BigNumber Error] crypto unavailable'\r\n if (obj.hasOwnProperty(p = 'CRYPTO')) {\r\n v = obj[p];\r\n if (v === !!v) {\r\n if (v) {\r\n if (typeof crypto != 'undefined' && crypto &&\r\n (crypto.getRandomValues || crypto.randomBytes)) {\r\n CRYPTO = v;\r\n } else {\r\n CRYPTO = !v;\r\n throw Error\r\n (bignumberError + 'crypto unavailable');\r\n }\r\n } else {\r\n CRYPTO = v;\r\n }\r\n } else {\r\n throw Error\r\n (bignumberError + p + ' not true or false: ' + v);\r\n }\r\n }\r\n\r\n // MODULO_MODE {number} Integer, 0 to 9 inclusive.\r\n // '[BigNumber Error] MODULO_MODE {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'MODULO_MODE')) {\r\n v = obj[p];\r\n intCheck(v, 0, 9, p);\r\n MODULO_MODE = v;\r\n }\r\n\r\n // POW_PRECISION {number} Integer, 0 to MAX inclusive.\r\n // '[BigNumber Error] POW_PRECISION {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'POW_PRECISION')) {\r\n v = obj[p];\r\n intCheck(v, 0, MAX, p);\r\n POW_PRECISION = v;\r\n }\r\n\r\n // FORMAT {object}\r\n // '[BigNumber Error] FORMAT not an object: {v}'\r\n if (obj.hasOwnProperty(p = 'FORMAT')) {\r\n v = obj[p];\r\n if (typeof v == 'object') FORMAT = v;\r\n else throw Error\r\n (bignumberError + p + ' not an object: ' + v);\r\n }\r\n\r\n // ALPHABET {string}\r\n // '[BigNumber Error] ALPHABET invalid: {v}'\r\n if (obj.hasOwnProperty(p = 'ALPHABET')) {\r\n v = obj[p];\r\n\r\n // Disallow if only one character, or contains '.' or a repeated character.\r\n if (typeof v == 'string' && !/^.$|\\.|(.).*\\1/.test(v)) {\r\n ALPHABET = v;\r\n } else {\r\n throw Error\r\n (bignumberError + p + ' invalid: ' + v);\r\n }\r\n }\r\n\r\n } else {\r\n\r\n // '[BigNumber Error] Object expected: {v}'\r\n throw Error\r\n (bignumberError + 'Object expected: ' + obj);\r\n }\r\n }\r\n\r\n return {\r\n DECIMAL_PLACES: DECIMAL_PLACES,\r\n ROUNDING_MODE: ROUNDING_MODE,\r\n EXPONENTIAL_AT: [TO_EXP_NEG, TO_EXP_POS],\r\n RANGE: [MIN_EXP, MAX_EXP],\r\n CRYPTO: CRYPTO,\r\n MODULO_MODE: MODULO_MODE,\r\n POW_PRECISION: POW_PRECISION,\r\n FORMAT: FORMAT,\r\n ALPHABET: ALPHABET\r\n };\r\n };\r\n\r\n\r\n /*\r\n * Return true if v is a BigNumber instance, otherwise return false.\r\n *\r\n * v {any}\r\n */\r\n BigNumber.isBigNumber = function (v) {\r\n return v instanceof BigNumber || v && v._isBigNumber === true || false;\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the maximum of the arguments.\r\n *\r\n * arguments {number|string|BigNumber}\r\n */\r\n BigNumber.maximum = BigNumber.max = function () {\r\n return maxOrMin(arguments, P.lt);\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the minimum of the arguments.\r\n *\r\n * arguments {number|string|BigNumber}\r\n */\r\n BigNumber.minimum = BigNumber.min = function () {\r\n return maxOrMin(arguments, P.gt);\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber with a random value equal to or greater than 0 and less than 1,\r\n * and with dp, or DECIMAL_PLACES if dp is omitted, decimal places (or less if trailing\r\n * zeros are produced).\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp}'\r\n * '[BigNumber Error] crypto unavailable'\r\n */\r\n BigNumber.random = (function () {\r\n var pow2_53 = 0x20000000000000;\r\n\r\n // Return a 53 bit integer n, where 0 <= n < 9007199254740992.\r\n // Check if Math.random() produces more than 32 bits of randomness.\r\n // If it does, assume at least 53 bits are produced, otherwise assume at least 30 bits.\r\n // 0x40000000 is 2^30, 0x800000 is 2^23, 0x1fffff is 2^21 - 1.\r\n var random53bitInt = (Math.random() * pow2_53) & 0x1fffff\r\n ? function () { return mathfloor(Math.random() * pow2_53); }\r\n : function () { return ((Math.random() * 0x40000000 | 0) * 0x800000) +\r\n (Math.random() * 0x800000 | 0); };\r\n\r\n return function (dp) {\r\n var a, b, e, k, v,\r\n i = 0,\r\n c = [],\r\n rand = new BigNumber(ONE);\r\n\r\n if (dp == null) dp = DECIMAL_PLACES;\r\n else intCheck(dp, 0, MAX);\r\n\r\n k = mathceil(dp / LOG_BASE);\r\n\r\n if (CRYPTO) {\r\n\r\n // Browsers supporting crypto.getRandomValues.\r\n if (crypto.getRandomValues) {\r\n\r\n a = crypto.getRandomValues(new Uint32Array(k *= 2));\r\n\r\n for (; i < k;) {\r\n\r\n // 53 bits:\r\n // ((Math.pow(2, 32) - 1) * Math.pow(2, 21)).toString(2)\r\n // 11111 11111111 11111111 11111111 11100000 00000000 00000000\r\n // ((Math.pow(2, 32) - 1) >>> 11).toString(2)\r\n // 11111 11111111 11111111\r\n // 0x20000 is 2^21.\r\n v = a[i] * 0x20000 + (a[i + 1] >>> 11);\r\n\r\n // Rejection sampling:\r\n // 0 <= v < 9007199254740992\r\n // Probability that v >= 9e15, is\r\n // 7199254740992 / 9007199254740992 ~= 0.0008, i.e. 1 in 1251\r\n if (v >= 9e15) {\r\n b = crypto.getRandomValues(new Uint32Array(2));\r\n a[i] = b[0];\r\n a[i + 1] = b[1];\r\n } else {\r\n\r\n // 0 <= v <= 8999999999999999\r\n // 0 <= (v % 1e14) <= 99999999999999\r\n c.push(v % 1e14);\r\n i += 2;\r\n }\r\n }\r\n i = k / 2;\r\n\r\n // Node.js supporting crypto.randomBytes.\r\n } else if (crypto.randomBytes) {\r\n\r\n // buffer\r\n a = crypto.randomBytes(k *= 7);\r\n\r\n for (; i < k;) {\r\n\r\n // 0x1000000000000 is 2^48, 0x10000000000 is 2^40\r\n // 0x100000000 is 2^32, 0x1000000 is 2^24\r\n // 11111 11111111 11111111 11111111 11111111 11111111 11111111\r\n // 0 <= v < 9007199254740992\r\n v = ((a[i] & 31) * 0x1000000000000) + (a[i + 1] * 0x10000000000) +\r\n (a[i + 2] * 0x100000000) + (a[i + 3] * 0x1000000) +\r\n (a[i + 4] << 16) + (a[i + 5] << 8) + a[i + 6];\r\n\r\n if (v >= 9e15) {\r\n crypto.randomBytes(7).copy(a, i);\r\n } else {\r\n\r\n // 0 <= (v % 1e14) <= 99999999999999\r\n c.push(v % 1e14);\r\n i += 7;\r\n }\r\n }\r\n i = k / 7;\r\n } else {\r\n CRYPTO = false;\r\n throw Error\r\n (bignumberError + 'crypto unavailable');\r\n }\r\n }\r\n\r\n // Use Math.random.\r\n if (!CRYPTO) {\r\n\r\n for (; i < k;) {\r\n v = random53bitInt();\r\n if (v < 9e15) c[i++] = v % 1e14;\r\n }\r\n }\r\n\r\n k = c[--i];\r\n dp %= LOG_BASE;\r\n\r\n // Convert trailing digits to zeros according to dp.\r\n if (k && dp) {\r\n v = POWS_TEN[LOG_BASE - dp];\r\n c[i] = mathfloor(k / v) * v;\r\n }\r\n\r\n // Remove trailing elements which are zero.\r\n for (; c[i] === 0; c.pop(), i--);\r\n\r\n // Zero?\r\n if (i < 0) {\r\n c = [e = 0];\r\n } else {\r\n\r\n // Remove leading elements which are zero and adjust exponent accordingly.\r\n for (e = -1 ; c[0] === 0; c.splice(0, 1), e -= LOG_BASE);\r\n\r\n // Count the digits of the first element of c to determine leading zeros, and...\r\n for (i = 1, v = c[0]; v >= 10; v /= 10, i++);\r\n\r\n // adjust the exponent accordingly.\r\n if (i < LOG_BASE) e -= LOG_BASE - i;\r\n }\r\n\r\n rand.e = e;\r\n rand.c = c;\r\n return rand;\r\n };\r\n })();\r\n\r\n\r\n // PRIVATE FUNCTIONS\r\n\r\n\r\n // Called by BigNumber and BigNumber.prototype.toString.\r\n convertBase = (function () {\r\n var decimal = '0123456789';\r\n\r\n /*\r\n * Convert string of baseIn to an array of numbers of baseOut.\r\n * Eg. toBaseOut('255', 10, 16) returns [15, 15].\r\n * Eg. toBaseOut('ff', 16, 10) returns [2, 5, 5].\r\n */\r\n function toBaseOut(str, baseIn, baseOut, alphabet) {\r\n var j,\r\n arr = [0],\r\n arrL,\r\n i = 0,\r\n len = str.length;\r\n\r\n for (; i < len;) {\r\n for (arrL = arr.length; arrL--; arr[arrL] *= baseIn);\r\n\r\n arr[0] += alphabet.indexOf(str.charAt(i++));\r\n\r\n for (j = 0; j < arr.length; j++) {\r\n\r\n if (arr[j] > baseOut - 1) {\r\n if (arr[j + 1] == null) arr[j + 1] = 0;\r\n arr[j + 1] += arr[j] / baseOut | 0;\r\n arr[j] %= baseOut;\r\n }\r\n }\r\n }\r\n\r\n return arr.reverse();\r\n }\r\n\r\n // Convert a numeric string of baseIn to a numeric string of baseOut.\r\n // If the caller is toString, we are converting from base 10 to baseOut.\r\n // If the caller is BigNumber, we are converting from baseIn to base 10.\r\n return function (str, baseIn, baseOut, sign, callerIsToString) {\r\n var alphabet, d, e, k, r, x, xc, y,\r\n i = str.indexOf('.'),\r\n dp = DECIMAL_PLACES,\r\n rm = ROUNDING_MODE;\r\n\r\n // Non-integer.\r\n if (i >= 0) {\r\n k = POW_PRECISION;\r\n\r\n // Unlimited precision.\r\n POW_PRECISION = 0;\r\n str = str.replace('.', '');\r\n y = new BigNumber(baseIn);\r\n x = y.pow(str.length - i);\r\n POW_PRECISION = k;\r\n\r\n // Convert str as if an integer, then restore the fraction part by dividing the\r\n // result by its base raised to a power.\r\n\r\n y.c = toBaseOut(toFixedPoint(coeffToString(x.c), x.e, '0'),\r\n 10, baseOut, decimal);\r\n y.e = y.c.length;\r\n }\r\n\r\n // Convert the number as integer.\r\n\r\n xc = toBaseOut(str, baseIn, baseOut, callerIsToString\r\n ? (alphabet = ALPHABET, decimal)\r\n : (alphabet = decimal, ALPHABET));\r\n\r\n // xc now represents str as an integer and converted to baseOut. e is the exponent.\r\n e = k = xc.length;\r\n\r\n // Remove trailing zeros.\r\n for (; xc[--k] == 0; xc.pop());\r\n\r\n // Zero?\r\n if (!xc[0]) return alphabet.charAt(0);\r\n\r\n // Does str represent an integer? If so, no need for the division.\r\n if (i < 0) {\r\n --e;\r\n } else {\r\n x.c = xc;\r\n x.e = e;\r\n\r\n // The sign is needed for correct rounding.\r\n x.s = sign;\r\n x = div(x, y, dp, rm, baseOut);\r\n xc = x.c;\r\n r = x.r;\r\n e = x.e;\r\n }\r\n\r\n // xc now represents str converted to baseOut.\r\n\r\n // THe index of the rounding digit.\r\n d = e + dp + 1;\r\n\r\n // The rounding digit: the digit to the right of the digit that may be rounded up.\r\n i = xc[d];\r\n\r\n // Look at the rounding digits and mode to determine whether to round up.\r\n\r\n k = baseOut / 2;\r\n r = r || d < 0 || xc[d + 1] != null;\r\n\r\n r = rm < 4 ? (i != null || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2))\r\n : i > k || i == k &&(rm == 4 || r || rm == 6 && xc[d - 1] & 1 ||\r\n rm == (x.s < 0 ? 8 : 7));\r\n\r\n // If the index of the rounding digit is not greater than zero, or xc represents\r\n // zero, then the result of the base conversion is zero or, if rounding up, a value\r\n // such as 0.00001.\r\n if (d < 1 || !xc[0]) {\r\n\r\n // 1^-dp or 0\r\n str = r ? toFixedPoint(alphabet.charAt(1), -dp, alphabet.charAt(0))\r\n : alphabet.charAt(0);\r\n } else {\r\n\r\n // Truncate xc to the required number of decimal places.\r\n xc.length = d;\r\n\r\n // Round up?\r\n if (r) {\r\n\r\n // Rounding up may mean the previous digit has to be rounded up and so on.\r\n for (--baseOut; ++xc[--d] > baseOut;) {\r\n xc[d] = 0;\r\n\r\n if (!d) {\r\n ++e;\r\n xc = [1].concat(xc);\r\n }\r\n }\r\n }\r\n\r\n // Determine trailing zeros.\r\n for (k = xc.length; !xc[--k];);\r\n\r\n // E.g. [4, 11, 15] becomes 4bf.\r\n for (i = 0, str = ''; i <= k; str += alphabet.charAt(xc[i++]));\r\n\r\n // Add leading zeros, decimal point and trailing zeros as required.\r\n str = toFixedPoint(str, e, alphabet.charAt(0));\r\n }\r\n\r\n // The caller will add the sign.\r\n return str;\r\n };\r\n })();\r\n\r\n\r\n // Perform division in the specified base. Called by div and convertBase.\r\n div = (function () {\r\n\r\n // Assume non-zero x and k.\r\n function multiply(x, k, base) {\r\n var m, temp, xlo, xhi,\r\n carry = 0,\r\n i = x.length,\r\n klo = k % SQRT_BASE,\r\n khi = k / SQRT_BASE | 0;\r\n\r\n for (x = x.slice(); i--;) {\r\n xlo = x[i] % SQRT_BASE;\r\n xhi = x[i] / SQRT_BASE | 0;\r\n m = khi * xlo + xhi * klo;\r\n temp = klo * xlo + ((m % SQRT_BASE) * SQRT_BASE) + carry;\r\n carry = (temp / base | 0) + (m / SQRT_BASE | 0) + khi * xhi;\r\n x[i] = temp % base;\r\n }\r\n\r\n if (carry) x = [carry].concat(x);\r\n\r\n return x;\r\n }\r\n\r\n function compare(a, b, aL, bL) {\r\n var i, cmp;\r\n\r\n if (aL != bL) {\r\n cmp = aL > bL ? 1 : -1;\r\n } else {\r\n\r\n for (i = cmp = 0; i < aL; i++) {\r\n\r\n if (a[i] != b[i]) {\r\n cmp = a[i] > b[i] ? 1 : -1;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return cmp;\r\n }\r\n\r\n function subtract(a, b, aL, base) {\r\n var i = 0;\r\n\r\n // Subtract b from a.\r\n for (; aL--;) {\r\n a[aL] -= i;\r\n i = a[aL] < b[aL] ? 1 : 0;\r\n a[aL] = i * base + a[aL] - b[aL];\r\n }\r\n\r\n // Remove leading zeros.\r\n for (; !a[0] && a.length > 1; a.splice(0, 1));\r\n }\r\n\r\n // x: dividend, y: divisor.\r\n return function (x, y, dp, rm, base) {\r\n var cmp, e, i, more, n, prod, prodL, q, qc, rem, remL, rem0, xi, xL, yc0,\r\n yL, yz,\r\n s = x.s == y.s ? 1 : -1,\r\n xc = x.c,\r\n yc = y.c;\r\n\r\n // Either NaN, Infinity or 0?\r\n if (!xc || !xc[0] || !yc || !yc[0]) {\r\n\r\n return new BigNumber(\r\n\r\n // Return NaN if either NaN, or both Infinity or 0.\r\n !x.s || !y.s || (xc ? yc && xc[0] == yc[0] : !yc) ? NaN :\r\n\r\n // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.\r\n xc && xc[0] == 0 || !yc ? s * 0 : s / 0\r\n );\r\n }\r\n\r\n q = new BigNumber(s);\r\n qc = q.c = [];\r\n e = x.e - y.e;\r\n s = dp + e + 1;\r\n\r\n if (!base) {\r\n base = BASE;\r\n e = bitFloor(x.e / LOG_BASE) - bitFloor(y.e / LOG_BASE);\r\n s = s / LOG_BASE | 0;\r\n }\r\n\r\n // Result exponent may be one less then the current value of e.\r\n // The coefficients of the BigNumbers from convertBase may have trailing zeros.\r\n for (i = 0; yc[i] == (xc[i] || 0); i++);\r\n\r\n if (yc[i] > (xc[i] || 0)) e--;\r\n\r\n if (s < 0) {\r\n qc.push(1);\r\n more = true;\r\n } else {\r\n xL = xc.length;\r\n yL = yc.length;\r\n i = 0;\r\n s += 2;\r\n\r\n // Normalise xc and yc so highest order digit of yc is >= base / 2.\r\n\r\n n = mathfloor(base / (yc[0] + 1));\r\n\r\n // Not necessary, but to handle odd bases where yc[0] == (base / 2) - 1.\r\n // if (n > 1 || n++ == 1 && yc[0] < base / 2) {\r\n if (n > 1) {\r\n yc = multiply(yc, n, base);\r\n xc = multiply(xc, n, base);\r\n yL = yc.length;\r\n xL = xc.length;\r\n }\r\n\r\n xi = yL;\r\n rem = xc.slice(0, yL);\r\n remL = rem.length;\r\n\r\n // Add zeros to make remainder as long as divisor.\r\n for (; remL < yL; rem[remL++] = 0);\r\n yz = yc.slice();\r\n yz = [0].concat(yz);\r\n yc0 = yc[0];\r\n if (yc[1] >= base / 2) yc0++;\r\n // Not necessary, but to prevent trial digit n > base, when using base 3.\r\n // else if (base == 3 && yc0 == 1) yc0 = 1 + 1e-15;\r\n\r\n do {\r\n n = 0;\r\n\r\n // Compare divisor and remainder.\r\n cmp = compare(yc, rem, yL, remL);\r\n\r\n // If divisor < remainder.\r\n if (cmp < 0) {\r\n\r\n // Calculate trial digit, n.\r\n\r\n rem0 = rem[0];\r\n if (yL != remL) rem0 = rem0 * base + (rem[1] || 0);\r\n\r\n // n is how many times the divisor goes into the current remainder.\r\n n = mathfloor(rem0 / yc0);\r\n\r\n // Algorithm:\r\n // product = divisor multiplied by trial digit (n).\r\n // Compare product and remainder.\r\n // If product is greater than remainder:\r\n // Subtract divisor from product, decrement trial digit.\r\n // Subtract product from remainder.\r\n // If product was less than remainder at the last compare:\r\n // Compare new remainder and divisor.\r\n // If remainder is greater than divisor:\r\n // Subtract divisor from remainder, increment trial digit.\r\n\r\n if (n > 1) {\r\n\r\n // n may be > base only when base is 3.\r\n if (n >= base) n = base - 1;\r\n\r\n // product = divisor * trial digit.\r\n prod = multiply(yc, n, base);\r\n prodL = prod.length;\r\n remL = rem.length;\r\n\r\n // Compare product and remainder.\r\n // If product > remainder then trial digit n too high.\r\n // n is 1 too high about 5% of the time, and is not known to have\r\n // ever been more than 1 too high.\r\n while (compare(prod, rem, prodL, remL) == 1) {\r\n n--;\r\n\r\n // Subtract divisor from product.\r\n subtract(prod, yL < prodL ? yz : yc, prodL, base);\r\n prodL = prod.length;\r\n cmp = 1;\r\n }\r\n } else {\r\n\r\n // n is 0 or 1, cmp is -1.\r\n // If n is 0, there is no need to compare yc and rem again below,\r\n // so change cmp to 1 to avoid it.\r\n // If n is 1, leave cmp as -1, so yc and rem are compared again.\r\n if (n == 0) {\r\n\r\n // divisor < remainder, so n must be at least 1.\r\n cmp = n = 1;\r\n }\r\n\r\n // product = divisor\r\n prod = yc.slice();\r\n prodL = prod.length;\r\n }\r\n\r\n if (prodL < remL) prod = [0].concat(prod);\r\n\r\n // Subtract product from remainder.\r\n subtract(rem, prod, remL, base);\r\n remL = rem.length;\r\n\r\n // If product was < remainder.\r\n if (cmp == -1) {\r\n\r\n // Compare divisor and new remainder.\r\n // If divisor < new remainder, subtract divisor from remainder.\r\n // Trial digit n too low.\r\n // n is 1 too low about 5% of the time, and very rarely 2 too low.\r\n while (compare(yc, rem, yL, remL) < 1) {\r\n n++;\r\n\r\n // Subtract divisor from remainder.\r\n subtract(rem, yL < remL ? yz : yc, remL, base);\r\n remL = rem.length;\r\n }\r\n }\r\n } else if (cmp === 0) {\r\n n++;\r\n rem = [0];\r\n } // else cmp === 1 and n will be 0\r\n\r\n // Add the next digit, n, to the result array.\r\n qc[i++] = n;\r\n\r\n // Update the remainder.\r\n if (rem[0]) {\r\n rem[remL++] = xc[xi] || 0;\r\n } else {\r\n rem = [xc[xi]];\r\n remL = 1;\r\n }\r\n } while ((xi++ < xL || rem[0] != null) && s--);\r\n\r\n more = rem[0] != null;\r\n\r\n // Leading zero?\r\n if (!qc[0]) qc.splice(0, 1);\r\n }\r\n\r\n if (base == BASE) {\r\n\r\n // To calculate q.e, first get the number of digits of qc[0].\r\n for (i = 1, s = qc[0]; s >= 10; s /= 10, i++);\r\n\r\n round(q, dp + (q.e = i + e * LOG_BASE - 1) + 1, rm, more);\r\n\r\n // Caller is convertBase.\r\n } else {\r\n q.e = e;\r\n q.r = +more;\r\n }\r\n\r\n return q;\r\n };\r\n })();\r\n\r\n\r\n /*\r\n * Return a string representing the value of BigNumber n in fixed-point or exponential\r\n * notation rounded to the specified decimal places or significant digits.\r\n *\r\n * n: a BigNumber.\r\n * i: the index of the last digit required (i.e. the digit that may be rounded up).\r\n * rm: the rounding mode.\r\n * id: 1 (toExponential) or 2 (toPrecision).\r\n */\r\n function format(n, i, rm, id) {\r\n var c0, e, ne, len, str;\r\n\r\n if (rm == null) rm = ROUNDING_MODE;\r\n else intCheck(rm, 0, 8);\r\n\r\n if (!n.c) return n.toString();\r\n\r\n c0 = n.c[0];\r\n ne = n.e;\r\n\r\n if (i == null) {\r\n str = coeffToString(n.c);\r\n str = id == 1 || id == 2 && ne <= TO_EXP_NEG\r\n ? toExponential(str, ne)\r\n : toFixedPoint(str, ne, '0');\r\n } else {\r\n n = round(new BigNumber(n), i, rm);\r\n\r\n // n.e may have changed if the value was rounded up.\r\n e = n.e;\r\n\r\n str = coeffToString(n.c);\r\n len = str.length;\r\n\r\n // toPrecision returns exponential notation if the number of significant digits\r\n // specified is less than the number of digits necessary to represent the integer\r\n // part of the value in fixed-point notation.\r\n\r\n // Exponential notation.\r\n if (id == 1 || id == 2 && (i <= e || e <= TO_EXP_NEG)) {\r\n\r\n // Append zeros?\r\n for (; len < i; str += '0', len++);\r\n str = toExponential(str, e);\r\n\r\n // Fixed-point notation.\r\n } else {\r\n i -= ne;\r\n str = toFixedPoint(str, e, '0');\r\n\r\n // Append zeros?\r\n if (e + 1 > len) {\r\n if (--i > 0) for (str += '.'; i--; str += '0');\r\n } else {\r\n i += e - len;\r\n if (i > 0) {\r\n if (e + 1 == len) str += '.';\r\n for (; i--; str += '0');\r\n }\r\n }\r\n }\r\n }\r\n\r\n return n.s < 0 && c0 ? '-' + str : str;\r\n }\r\n\r\n\r\n // Handle BigNumber.max and BigNumber.min.\r\n function maxOrMin(args, method) {\r\n var m, n,\r\n i = 0;\r\n\r\n if (isArray(args[0])) args = args[0];\r\n m = new BigNumber(args[0]);\r\n\r\n for (; ++i < args.length;) {\r\n n = new BigNumber(args[i]);\r\n\r\n // If any number is NaN, return NaN.\r\n if (!n.s) {\r\n m = n;\r\n break;\r\n } else if (method.call(m, n)) {\r\n m = n;\r\n }\r\n }\r\n\r\n return m;\r\n }\r\n\r\n\r\n /*\r\n * Strip trailing zeros, calculate base 10 exponent and check against MIN_EXP and MAX_EXP.\r\n * Called by minus, plus and times.\r\n */\r\n function normalise(n, c, e) {\r\n var i = 1,\r\n j = c.length;\r\n\r\n // Remove trailing zeros.\r\n for (; !c[--j]; c.pop());\r\n\r\n // Calculate the base 10 exponent. First get the number of digits of c[0].\r\n for (j = c[0]; j >= 10; j /= 10, i++);\r\n\r\n // Overflow?\r\n if ((e = i + e * LOG_BASE - 1) > MAX_EXP) {\r\n\r\n // Infinity.\r\n n.c = n.e = null;\r\n\r\n // Underflow?\r\n } else if (e < MIN_EXP) {\r\n\r\n // Zero.\r\n n.c = [n.e = 0];\r\n } else {\r\n n.e = e;\r\n n.c = c;\r\n }\r\n\r\n return n;\r\n }\r\n\r\n\r\n // Handle values that fail the validity test in BigNumber.\r\n parseNumeric = (function () {\r\n var basePrefix = /^(-?)0([xbo])(?=\\w[\\w.]*$)/i,\r\n dotAfter = /^([^.]+)\\.$/,\r\n dotBefore = /^\\.([^.]+)$/,\r\n isInfinityOrNaN = /^-?(Infinity|NaN)$/,\r\n whitespaceOrPlus = /^\\s*\\+(?=[\\w.])|^\\s+|\\s+$/g;\r\n\r\n return function (x, str, isNum, b) {\r\n var base,\r\n s = isNum ? str : str.replace(whitespaceOrPlus, '');\r\n\r\n // No exception on ±Infinity or NaN.\r\n if (isInfinityOrNaN.test(s)) {\r\n x.s = isNaN(s) ? null : s < 0 ? -1 : 1;\r\n x.c = x.e = null;\r\n } else {\r\n if (!isNum) {\r\n\r\n // basePrefix = /^(-?)0([xbo])(?=\\w[\\w.]*$)/i\r\n s = s.replace(basePrefix, function (m, p1, p2) {\r\n base = (p2 = p2.toLowerCase()) == 'x' ? 16 : p2 == 'b' ? 2 : 8;\r\n return !b || b == base ? p1 : m;\r\n });\r\n\r\n if (b) {\r\n base = b;\r\n\r\n // E.g. '1.' to '1', '.1' to '0.1'\r\n s = s.replace(dotAfter, '$1').replace(dotBefore, '0.$1');\r\n }\r\n\r\n if (str != s) return new BigNumber(s, base);\r\n }\r\n\r\n // '[BigNumber Error] Not a number: {n}'\r\n // '[BigNumber Error] Not a base {b} number: {n}'\r\n if (BigNumber.DEBUG) {\r\n throw Error\r\n (bignumberError + 'Not a' + (b ? ' base ' + b : '') + ' number: ' + str);\r\n }\r\n\r\n // NaN\r\n x.c = x.e = x.s = null;\r\n }\r\n }\r\n })();\r\n\r\n\r\n /*\r\n * Round x to sd significant digits using rounding mode rm. Check for over/under-flow.\r\n * If r is truthy, it is known that there are more digits after the rounding digit.\r\n */\r\n function round(x, sd, rm, r) {\r\n var d, i, j, k, n, ni, rd,\r\n xc = x.c,\r\n pows10 = POWS_TEN;\r\n\r\n // if x is not Infinity or NaN...\r\n if (xc) {\r\n\r\n // rd is the rounding digit, i.e. the digit after the digit that may be rounded up.\r\n // n is a base 1e14 number, the value of the element of array x.c containing rd.\r\n // ni is the index of n within x.c.\r\n // d is the number of digits of n.\r\n // i is the index of rd within n including leading zeros.\r\n // j is the actual index of rd within n (if < 0, rd is a leading zero).\r\n out: {\r\n\r\n // Get the number of digits of the first element of xc.\r\n for (d = 1, k = xc[0]; k >= 10; k /= 10, d++);\r\n i = sd - d;\r\n\r\n // If the rounding digit is in the first element of xc...\r\n if (i < 0) {\r\n i += LOG_BASE;\r\n j = sd;\r\n n = xc[ni = 0];\r\n\r\n // Get the rounding digit at index j of n.\r\n rd = n / pows10[d - j - 1] % 10 | 0;\r\n } else {\r\n ni = mathceil((i + 1) / LOG_BASE);\r\n\r\n if (ni >= xc.length) {\r\n\r\n if (r) {\r\n\r\n // Needed by sqrt.\r\n for (; xc.length <= ni; xc.push(0));\r\n n = rd = 0;\r\n d = 1;\r\n i %= LOG_BASE;\r\n j = i - LOG_BASE + 1;\r\n } else {\r\n break out;\r\n }\r\n } else {\r\n n = k = xc[ni];\r\n\r\n // Get the number of digits of n.\r\n for (d = 1; k >= 10; k /= 10, d++);\r\n\r\n // Get the index of rd within n.\r\n i %= LOG_BASE;\r\n\r\n // Get the index of rd within n, adjusted for leading zeros.\r\n // The number of leading zeros of n is given by LOG_BASE - d.\r\n j = i - LOG_BASE + d;\r\n\r\n // Get the rounding digit at index j of n.\r\n rd = j < 0 ? 0 : n / pows10[d - j - 1] % 10 | 0;\r\n }\r\n }\r\n\r\n r = r || sd < 0 ||\r\n\r\n // Are there any non-zero digits after the rounding digit?\r\n // The expression n % pows10[d - j - 1] returns all digits of n to the right\r\n // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.\r\n xc[ni + 1] != null || (j < 0 ? n : n % pows10[d - j - 1]);\r\n\r\n r = rm < 4\r\n ? (rd || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2))\r\n : rd > 5 || rd == 5 && (rm == 4 || r || rm == 6 &&\r\n\r\n // Check whether the digit to the left of the rounding digit is odd.\r\n ((i > 0 ? j > 0 ? n / pows10[d - j] : 0 : xc[ni - 1]) % 10) & 1 ||\r\n rm == (x.s < 0 ? 8 : 7));\r\n\r\n if (sd < 1 || !xc[0]) {\r\n xc.length = 0;\r\n\r\n if (r) {\r\n\r\n // Convert sd to decimal places.\r\n sd -= x.e + 1;\r\n\r\n // 1, 0.1, 0.01, 0.001, 0.0001 etc.\r\n xc[0] = pows10[(LOG_BASE - sd % LOG_BASE) % LOG_BASE];\r\n x.e = -sd || 0;\r\n } else {\r\n\r\n // Zero.\r\n xc[0] = x.e = 0;\r\n }\r\n\r\n return x;\r\n }\r\n\r\n // Remove excess digits.\r\n if (i == 0) {\r\n xc.length = ni;\r\n k = 1;\r\n ni--;\r\n } else {\r\n xc.length = ni + 1;\r\n k = pows10[LOG_BASE - i];\r\n\r\n // E.g. 56700 becomes 56000 if 7 is the rounding digit.\r\n // j > 0 means i > number of leading zeros of n.\r\n xc[ni] = j > 0 ? mathfloor(n / pows10[d - j] % pows10[j]) * k : 0;\r\n }\r\n\r\n // Round up?\r\n if (r) {\r\n\r\n for (; ;) {\r\n\r\n // If the digit to be rounded up is in the first element of xc...\r\n if (ni == 0) {\r\n\r\n // i will be the length of xc[0] before k is added.\r\n for (i = 1, j = xc[0]; j >= 10; j /= 10, i++);\r\n j = xc[0] += k;\r\n for (k = 1; j >= 10; j /= 10, k++);\r\n\r\n // if i != k the length has increased.\r\n if (i != k) {\r\n x.e++;\r\n if (xc[0] == BASE) xc[0] = 1;\r\n }\r\n\r\n break;\r\n } else {\r\n xc[ni] += k;\r\n if (xc[ni] != BASE) break;\r\n xc[ni--] = 0;\r\n k = 1;\r\n }\r\n }\r\n }\r\n\r\n // Remove trailing zeros.\r\n for (i = xc.length; xc[--i] === 0; xc.pop());\r\n }\r\n\r\n // Overflow? Infinity.\r\n if (x.e > MAX_EXP) {\r\n x.c = x.e = null;\r\n\r\n // Underflow? Zero.\r\n } else if (x.e < MIN_EXP) {\r\n x.c = [x.e = 0];\r\n }\r\n }\r\n\r\n return x;\r\n }\r\n\r\n\r\n // PROTOTYPE/INSTANCE METHODS\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the absolute value of this BigNumber.\r\n */\r\n P.absoluteValue = P.abs = function () {\r\n var x = new BigNumber(this);\r\n if (x.s < 0) x.s = 1;\r\n return x;\r\n };\r\n\r\n\r\n /*\r\n * Return\r\n * 1 if the value of this BigNumber is greater than the value of BigNumber(y, b),\r\n * -1 if the value of this BigNumber is less than the value of BigNumber(y, b),\r\n * 0 if they have the same value,\r\n * or null if the value of either is NaN.\r\n */\r\n P.comparedTo = function (y, b) {\r\n return compare(this, new BigNumber(y, b));\r\n };\r\n\r\n\r\n /*\r\n * If dp is undefined or null or true or false, return the number of decimal places of the\r\n * value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN.\r\n *\r\n * Otherwise, if dp is a number, return a new BigNumber whose value is the value of this\r\n * BigNumber rounded to a maximum of dp decimal places using rounding mode rm, or\r\n * ROUNDING_MODE if rm is omitted.\r\n *\r\n * [dp] {number} Decimal places: integer, 0 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}'\r\n */\r\n P.decimalPlaces = P.dp = function (dp, rm) {\r\n var c, n, v,\r\n x = this;\r\n\r\n if (dp != null) {\r\n intCheck(dp, 0, MAX);\r\n if (rm == null) rm = ROUNDING_MODE;\r\n else intCheck(rm, 0, 8);\r\n\r\n return round(new BigNumber(x), dp + x.e + 1, rm);\r\n }\r\n\r\n if (!(c = x.c)) return null;\r\n n = ((v = c.length - 1) - bitFloor(this.e / LOG_BASE)) * LOG_BASE;\r\n\r\n // Subtract the number of trailing zeros of the last number.\r\n if (v = c[v]) for (; v % 10 == 0; v /= 10, n--);\r\n if (n < 0) n = 0;\r\n\r\n return n;\r\n };\r\n\r\n\r\n /*\r\n * n / 0 = I\r\n * n / N = N\r\n * n / I = 0\r\n * 0 / n = 0\r\n * 0 / 0 = N\r\n * 0 / N = N\r\n * 0 / I = 0\r\n * N / n = N\r\n * N / 0 = N\r\n * N / N = N\r\n * N / I = N\r\n * I / n = I\r\n * I / 0 = I\r\n * I / N = N\r\n * I / I = N\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber divided by the value of\r\n * BigNumber(y, b), rounded according to DECIMAL_PLACES and ROUNDING_MODE.\r\n */\r\n P.dividedBy = P.div = function (y, b) {\r\n return div(this, new BigNumber(y, b), DECIMAL_PLACES, ROUNDING_MODE);\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the integer part of dividing the value of this\r\n * BigNumber by the value of BigNumber(y, b).\r\n */\r\n P.dividedToIntegerBy = P.idiv = function (y, b) {\r\n return div(this, new BigNumber(y, b), 0, 1);\r\n };\r\n\r\n\r\n /*\r\n * Return a BigNumber whose value is the value of this BigNumber exponentiated by n.\r\n *\r\n * If m is present, return the result modulo m.\r\n * If n is negative round according to DECIMAL_PLACES and ROUNDING_MODE.\r\n * If POW_PRECISION is non-zero and m is not present, round to POW_PRECISION using ROUNDING_MODE.\r\n *\r\n * The modular power operation works efficiently when x, n, and m are integers, otherwise it\r\n * is equivalent to calculating x.exponentiatedBy(n).modulo(m) with a POW_PRECISION of 0.\r\n *\r\n * n {number|string|BigNumber} The exponent. An integer.\r\n * [m] {number|string|BigNumber} The modulus.\r\n *\r\n * '[BigNumber Error] Exponent not an integer: {n}'\r\n */\r\n P.exponentiatedBy = P.pow = function (n, m) {\r\n var half, isModExp, k, more, nIsBig, nIsNeg, nIsOdd, y,\r\n x = this;\r\n\r\n n = new BigNumber(n);\r\n\r\n // Allow NaN and ±Infinity, but not other non-integers.\r\n if (n.c && !n.isInteger()) {\r\n throw Error\r\n (bignumberError + 'Exponent not an integer: ' + n);\r\n }\r\n\r\n if (m != null) m = new BigNumber(m);\r\n\r\n // Exponent of MAX_SAFE_INTEGER is 15.\r\n nIsBig = n.e > 14;\r\n\r\n // If x is NaN, ±Infinity, ±0 or ±1, or n is ±Infinity, NaN or ±0.\r\n if (!x.c || !x.c[0] || x.c[0] == 1 && !x.e && x.c.length == 1 || !n.c || !n.c[0]) {\r\n\r\n // The sign of the result of pow when x is negative depends on the evenness of n.\r\n // If +n overflows to ±Infinity, the evenness of n would be not be known.\r\n y = new BigNumber(Math.pow(+x.valueOf(), nIsBig ? 2 - isOdd(n) : +n));\r\n return m ? y.mod(m) : y;\r\n }\r\n\r\n nIsNeg = n.s < 0;\r\n\r\n if (m) {\r\n\r\n // x % m returns NaN if abs(m) is zero, or m is NaN.\r\n if (m.c ? !m.c[0] : !m.s) return new BigNumber(NaN);\r\n\r\n isModExp = !nIsNeg && x.isInteger() && m.isInteger();\r\n\r\n if (isModExp) x = x.mod(m);\r\n\r\n // Overflow to ±Infinity: >=2**1e10 or >=1.0000024**1e15.\r\n // Underflow to ±0: <=0.79**1e10 or <=0.9999975**1e15.\r\n } else if (n.e > 9 && (x.e > 0 || x.e < -1 || (x.e == 0\r\n // [1, 240000000]\r\n ? x.c[0] > 1 || nIsBig && x.c[1] >= 24e7\r\n // [80000000000000] [99999750000000]\r\n : x.c[0] < 8e13 || nIsBig && x.c[0] <= 9999975e7))) {\r\n\r\n // If x is negative and n is odd, k = -0, else k = 0.\r\n k = x.s < 0 && isOdd(n) ? -0 : 0;\r\n\r\n // If x >= 1, k = ±Infinity.\r\n if (x.e > -1) k = 1 / k;\r\n\r\n // If n is negative return ±0, else return ±Infinity.\r\n return new BigNumber(nIsNeg ? 1 / k : k);\r\n\r\n } else if (POW_PRECISION) {\r\n\r\n // Truncating each coefficient array to a length of k after each multiplication\r\n // equates to truncating significant digits to POW_PRECISION + [28, 41],\r\n // i.e. there will be a minimum of 28 guard digits retained.\r\n k = mathceil(POW_PRECISION / LOG_BASE + 2);\r\n }\r\n\r\n if (nIsBig) {\r\n half = new BigNumber(0.5);\r\n nIsOdd = isOdd(n);\r\n } else {\r\n nIsOdd = n % 2;\r\n }\r\n\r\n if (nIsNeg) n.s = 1;\r\n\r\n y = new BigNumber(ONE);\r\n\r\n // Performs 54 loop iterations for n of 9007199254740991.\r\n for (; ;) {\r\n\r\n if (nIsOdd) {\r\n y = y.times(x);\r\n if (!y.c) break;\r\n\r\n if (k) {\r\n if (y.c.length > k) y.c.length = k;\r\n } else if (isModExp) {\r\n y = y.mod(m); //y = y.minus(div(y, m, 0, MODULO_MODE).times(m));\r\n }\r\n }\r\n\r\n if (nIsBig) {\r\n n = n.times(half);\r\n round(n, n.e + 1, 1);\r\n if (!n.c[0]) break;\r\n nIsBig = n.e > 14;\r\n nIsOdd = isOdd(n);\r\n } else {\r\n n = mathfloor(n / 2);\r\n if (!n) break;\r\n nIsOdd = n % 2;\r\n }\r\n\r\n x = x.times(x);\r\n\r\n if (k) {\r\n if (x.c && x.c.length > k) x.c.length = k;\r\n } else if (isModExp) {\r\n x = x.mod(m); //x = x.minus(div(x, m, 0, MODULO_MODE).times(m));\r\n }\r\n }\r\n\r\n if (isModExp) return y;\r\n if (nIsNeg) y = ONE.div(y);\r\n\r\n return m ? y.mod(m) : k ? round(y, POW_PRECISION, ROUNDING_MODE, more) : y;\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the value of this BigNumber rounded to an integer\r\n * using rounding mode rm, or ROUNDING_MODE if rm is omitted.\r\n *\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {rm}'\r\n */\r\n P.integerValue = function (rm) {\r\n var n = new BigNumber(this);\r\n if (rm == null) rm = ROUNDING_MODE;\r\n else intCheck(rm, 0, 8);\r\n return round(n, n.e + 1, rm);\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is equal to the value of BigNumber(y, b),\r\n * otherwise return false.\r\n */\r\n P.isEqualTo = P.eq = function (y, b) {\r\n return compare(this, new BigNumber(y, b)) === 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is a finite number, otherwise return false.\r\n */\r\n P.isFinite = function () {\r\n return !!this.c;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is greater than the value of BigNumber(y, b),\r\n * otherwise return false.\r\n */\r\n P.isGreaterThan = P.gt = function (y, b) {\r\n return compare(this, new BigNumber(y, b)) > 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is greater than or equal to the value of\r\n * BigNumber(y, b), otherwise return false.\r\n */\r\n P.isGreaterThanOrEqualTo = P.gte = function (y, b) {\r\n return (b = compare(this, new BigNumber(y, b))) === 1 || b === 0;\r\n\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is an integer, otherwise return false.\r\n */\r\n P.isInteger = function () {\r\n return !!this.c && bitFloor(this.e / LOG_BASE) > this.c.length - 2;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is less than the value of BigNumber(y, b),\r\n * otherwise return false.\r\n */\r\n P.isLessThan = P.lt = function (y, b) {\r\n return compare(this, new BigNumber(y, b)) < 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is less than or equal to the value of\r\n * BigNumber(y, b), otherwise return false.\r\n */\r\n P.isLessThanOrEqualTo = P.lte = function (y, b) {\r\n return (b = compare(this, new BigNumber(y, b))) === -1 || b === 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is NaN, otherwise return false.\r\n */\r\n P.isNaN = function () {\r\n return !this.s;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is negative, otherwise return false.\r\n */\r\n P.isNegative = function () {\r\n return this.s < 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is positive, otherwise return false.\r\n */\r\n P.isPositive = function () {\r\n return this.s > 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is 0 or -0, otherwise return false.\r\n */\r\n P.isZero = function () {\r\n return !!this.c && this.c[0] == 0;\r\n };\r\n\r\n\r\n /*\r\n * n - 0 = n\r\n * n - N = N\r\n * n - I = -I\r\n * 0 - n = -n\r\n * 0 - 0 = 0\r\n * 0 - N = N\r\n * 0 - I = -I\r\n * N - n = N\r\n * N - 0 = N\r\n * N - N = N\r\n * N - I = N\r\n * I - n = I\r\n * I - 0 = I\r\n * I - N = N\r\n * I - I = N\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber minus the value of\r\n * BigNumber(y, b).\r\n */\r\n P.minus = function (y, b) {\r\n var i, j, t, xLTy,\r\n x = this,\r\n a = x.s;\r\n\r\n y = new BigNumber(y, b);\r\n b = y.s;\r\n\r\n // Either NaN?\r\n if (!a || !b) return new BigNumber(NaN);\r\n\r\n // Signs differ?\r\n if (a != b) {\r\n y.s = -b;\r\n return x.plus(y);\r\n }\r\n\r\n var xe = x.e / LOG_BASE,\r\n ye = y.e / LOG_BASE,\r\n xc = x.c,\r\n yc = y.c;\r\n\r\n if (!xe || !ye) {\r\n\r\n // Either Infinity?\r\n if (!xc || !yc) return xc ? (y.s = -b, y) : new BigNumber(yc ? x : NaN);\r\n\r\n // Either zero?\r\n if (!xc[0] || !yc[0]) {\r\n\r\n // Return y if y is non-zero, x if x is non-zero, or zero if both are zero.\r\n return yc[0] ? (y.s = -b, y) : new BigNumber(xc[0] ? x :\r\n\r\n // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity\r\n ROUNDING_MODE == 3 ? -0 : 0);\r\n }\r\n }\r\n\r\n xe = bitFloor(xe);\r\n ye = bitFloor(ye);\r\n xc = xc.slice();\r\n\r\n // Determine which is the bigger number.\r\n if (a = xe - ye) {\r\n\r\n if (xLTy = a < 0) {\r\n a = -a;\r\n t = xc;\r\n } else {\r\n ye = xe;\r\n t = yc;\r\n }\r\n\r\n t.reverse();\r\n\r\n // Prepend zeros to equalise exponents.\r\n for (b = a; b--; t.push(0));\r\n t.reverse();\r\n } else {\r\n\r\n // Exponents equal. Check digit by digit.\r\n j = (xLTy = (a = xc.length) < (b = yc.length)) ? a : b;\r\n\r\n for (a = b = 0; b < j; b++) {\r\n\r\n if (xc[b] != yc[b]) {\r\n xLTy = xc[b] < yc[b];\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // x < y? Point xc to the array of the bigger number.\r\n if (xLTy) t = xc, xc = yc, yc = t, y.s = -y.s;\r\n\r\n b = (j = yc.length) - (i = xc.length);\r\n\r\n // Append zeros to xc if shorter.\r\n // No need to add zeros to yc if shorter as subtract only needs to start at yc.length.\r\n if (b > 0) for (; b--; xc[i++] = 0);\r\n b = BASE - 1;\r\n\r\n // Subtract yc from xc.\r\n for (; j > a;) {\r\n\r\n if (xc[--j] < yc[j]) {\r\n for (i = j; i && !xc[--i]; xc[i] = b);\r\n --xc[i];\r\n xc[j] += BASE;\r\n }\r\n\r\n xc[j] -= yc[j];\r\n }\r\n\r\n // Remove leading zeros and adjust exponent accordingly.\r\n for (; xc[0] == 0; xc.splice(0, 1), --ye);\r\n\r\n // Zero?\r\n if (!xc[0]) {\r\n\r\n // Following IEEE 754 (2008) 6.3,\r\n // n - n = +0 but n - n = -0 when rounding towards -Infinity.\r\n y.s = ROUNDING_MODE == 3 ? -1 : 1;\r\n y.c = [y.e = 0];\r\n return y;\r\n }\r\n\r\n // No need to check for Infinity as +x - +y != Infinity && -x - -y != Infinity\r\n // for finite x and y.\r\n return normalise(y, xc, ye);\r\n };\r\n\r\n\r\n /*\r\n * n % 0 = N\r\n * n % N = N\r\n * n % I = n\r\n * 0 % n = 0\r\n * -0 % n = -0\r\n * 0 % 0 = N\r\n * 0 % N = N\r\n * 0 % I = 0\r\n * N % n = N\r\n * N % 0 = N\r\n * N % N = N\r\n * N % I = N\r\n * I % n = N\r\n * I % 0 = N\r\n * I % N = N\r\n * I % I = N\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber modulo the value of\r\n * BigNumber(y, b). The result depends on the value of MODULO_MODE.\r\n */\r\n P.modulo = P.mod = function (y, b) {\r\n var q, s,\r\n x = this;\r\n\r\n y = new BigNumber(y, b);\r\n\r\n // Return NaN if x is Infinity or NaN, or y is NaN or zero.\r\n if (!x.c || !y.s || y.c && !y.c[0]) {\r\n return new BigNumber(NaN);\r\n\r\n // Return x if y is Infinity or x is zero.\r\n } else if (!y.c || x.c && !x.c[0]) {\r\n return new BigNumber(x);\r\n }\r\n\r\n if (MODULO_MODE == 9) {\r\n\r\n // Euclidian division: q = sign(y) * floor(x / abs(y))\r\n // r = x - qy where 0 <= r < abs(y)\r\n s = y.s;\r\n y.s = 1;\r\n q = div(x, y, 0, 3);\r\n y.s = s;\r\n q.s *= s;\r\n } else {\r\n q = div(x, y, 0, MODULO_MODE);\r\n }\r\n\r\n y = x.minus(q.times(y));\r\n\r\n // To match JavaScript %, ensure sign of zero is sign of dividend.\r\n if (!y.c[0] && MODULO_MODE == 1) y.s = x.s;\r\n\r\n return y;\r\n };\r\n\r\n\r\n /*\r\n * n * 0 = 0\r\n * n * N = N\r\n * n * I = I\r\n * 0 * n = 0\r\n * 0 * 0 = 0\r\n * 0 * N = N\r\n * 0 * I = N\r\n * N * n = N\r\n * N * 0 = N\r\n * N * N = N\r\n * N * I = N\r\n * I * n = I\r\n * I * 0 = N\r\n * I * N = N\r\n * I * I = I\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber multiplied by the value\r\n * of BigNumber(y, b).\r\n */\r\n P.multipliedBy = P.times = function (y, b) {\r\n var c, e, i, j, k, m, xcL, xlo, xhi, ycL, ylo, yhi, zc,\r\n base, sqrtBase,\r\n x = this,\r\n xc = x.c,\r\n yc = (y = new BigNumber(y, b)).c;\r\n\r\n // Either NaN, ±Infinity or ±0?\r\n if (!xc || !yc || !xc[0] || !yc[0]) {\r\n\r\n // Return NaN if either is NaN, or one is 0 and the other is Infinity.\r\n if (!x.s || !y.s || xc && !xc[0] && !yc || yc && !yc[0] && !xc) {\r\n y.c = y.e = y.s = null;\r\n } else {\r\n y.s *= x.s;\r\n\r\n // Return ±Infinity if either is ±Infinity.\r\n if (!xc || !yc) {\r\n y.c = y.e = null;\r\n\r\n // Return ±0 if either is ±0.\r\n } else {\r\n y.c = [0];\r\n y.e = 0;\r\n }\r\n }\r\n\r\n return y;\r\n }\r\n\r\n e = bitFloor(x.e / LOG_BASE) + bitFloor(y.e / LOG_BASE);\r\n y.s *= x.s;\r\n xcL = xc.length;\r\n ycL = yc.length;\r\n\r\n // Ensure xc points to longer array and xcL to its length.\r\n if (xcL < ycL) zc = xc, xc = yc, yc = zc, i = xcL, xcL = ycL, ycL = i;\r\n\r\n // Initialise the result array with zeros.\r\n for (i = xcL + ycL, zc = []; i--; zc.push(0));\r\n\r\n base = BASE;\r\n sqrtBase = SQRT_BASE;\r\n\r\n for (i = ycL; --i >= 0;) {\r\n c = 0;\r\n ylo = yc[i] % sqrtBase;\r\n yhi = yc[i] / sqrtBase | 0;\r\n\r\n for (k = xcL, j = i + k; j > i;) {\r\n xlo = xc[--k] % sqrtBase;\r\n xhi = xc[k] / sqrtBase | 0;\r\n m = yhi * xlo + xhi * ylo;\r\n xlo = ylo * xlo + ((m % sqrtBase) * sqrtBase) + zc[j] + c;\r\n c = (xlo / base | 0) + (m / sqrtBase | 0) + yhi * xhi;\r\n zc[j--] = xlo % base;\r\n }\r\n\r\n zc[j] = c;\r\n }\r\n\r\n if (c) {\r\n ++e;\r\n } else {\r\n zc.splice(0, 1);\r\n }\r\n\r\n return normalise(y, zc, e);\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the value of this BigNumber negated,\r\n * i.e. multiplied by -1.\r\n */\r\n P.negated = function () {\r\n var x = new BigNumber(this);\r\n x.s = -x.s || null;\r\n return x;\r\n };\r\n\r\n\r\n /*\r\n * n + 0 = n\r\n * n + N = N\r\n * n + I = I\r\n * 0 + n = n\r\n * 0 + 0 = 0\r\n * 0 + N = N\r\n * 0 + I = I\r\n * N + n = N\r\n * N + 0 = N\r\n * N + N = N\r\n * N + I = N\r\n * I + n = I\r\n * I + 0 = I\r\n * I + N = N\r\n * I + I = I\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber plus the value of\r\n * BigNumber(y, b).\r\n */\r\n P.plus = function (y, b) {\r\n var t,\r\n x = this,\r\n a = x.s;\r\n\r\n y = new BigNumber(y, b);\r\n b = y.s;\r\n\r\n // Either NaN?\r\n if (!a || !b) return new BigNumber(NaN);\r\n\r\n // Signs differ?\r\n if (a != b) {\r\n y.s = -b;\r\n return x.minus(y);\r\n }\r\n\r\n var xe = x.e / LOG_BASE,\r\n ye = y.e / LOG_BASE,\r\n xc = x.c,\r\n yc = y.c;\r\n\r\n if (!xe || !ye) {\r\n\r\n // Return ±Infinity if either ±Infinity.\r\n if (!xc || !yc) return new BigNumber(a / 0);\r\n\r\n // Either zero?\r\n // Return y if y is non-zero, x if x is non-zero, or zero if both are zero.\r\n if (!xc[0] || !yc[0]) return yc[0] ? y : new BigNumber(xc[0] ? x : a * 0);\r\n }\r\n\r\n xe = bitFloor(xe);\r\n ye = bitFloor(ye);\r\n xc = xc.slice();\r\n\r\n // Prepend zeros to equalise exponents. Faster to use reverse then do unshifts.\r\n if (a = xe - ye) {\r\n if (a > 0) {\r\n ye = xe;\r\n t = yc;\r\n } else {\r\n a = -a;\r\n t = xc;\r\n }\r\n\r\n t.reverse();\r\n for (; a--; t.push(0));\r\n t.reverse();\r\n }\r\n\r\n a = xc.length;\r\n b = yc.length;\r\n\r\n // Point xc to the longer array, and b to the shorter length.\r\n if (a - b < 0) t = yc, yc = xc, xc = t, b = a;\r\n\r\n // Only start adding at yc.length - 1 as the further digits of xc can be ignored.\r\n for (a = 0; b;) {\r\n a = (xc[--b] = xc[b] + yc[b] + a) / BASE | 0;\r\n xc[b] = BASE === xc[b] ? 0 : xc[b] % BASE;\r\n }\r\n\r\n if (a) {\r\n xc = [a].concat(xc);\r\n ++ye;\r\n }\r\n\r\n // No need to check for zero, as +x + +y != 0 && -x + -y != 0\r\n // ye = MAX_EXP + 1 possible\r\n return normalise(y, xc, ye);\r\n };\r\n\r\n\r\n /*\r\n * If sd is undefined or null or true or false, return the number of significant digits of\r\n * the value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN.\r\n * If sd is true include integer-part trailing zeros in the count.\r\n *\r\n * Otherwise, if sd is a number, return a new BigNumber whose value is the value of this\r\n * BigNumber rounded to a maximum of sd significant digits using rounding mode rm, or\r\n * ROUNDING_MODE if rm is omitted.\r\n *\r\n * sd {number|boolean} number: significant digits: integer, 1 to MAX inclusive.\r\n * boolean: whether to count integer-part trailing zeros: true or false.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}'\r\n */\r\n P.precision = P.sd = function (sd, rm) {\r\n var c, n, v,\r\n x = this;\r\n\r\n if (sd != null && sd !== !!sd) {\r\n intCheck(sd, 1, MAX);\r\n if (rm == null) rm = ROUNDING_MODE;\r\n else intCheck(rm, 0, 8);\r\n\r\n return round(new BigNumber(x), sd, rm);\r\n }\r\n\r\n if (!(c = x.c)) return null;\r\n v = c.length - 1;\r\n n = v * LOG_BASE + 1;\r\n\r\n if (v = c[v]) {\r\n\r\n // Subtract the number of trailing zeros of the last element.\r\n for (; v % 10 == 0; v /= 10, n--);\r\n\r\n // Add the number of digits of the first element.\r\n for (v = c[0]; v >= 10; v /= 10, n++);\r\n }\r\n\r\n if (sd && x.e + 1 > n) n = x.e + 1;\r\n\r\n return n;\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the value of this BigNumber shifted by k places\r\n * (powers of 10). Shift to the right if n > 0, and to the left if n < 0.\r\n *\r\n * k {number} Integer, -MAX_SAFE_INTEGER to MAX_SAFE_INTEGER inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {k}'\r\n */\r\n P.shiftedBy = function (k) {\r\n intCheck(k, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER);\r\n return this.times('1e' + k);\r\n };\r\n\r\n\r\n /*\r\n * sqrt(-n) = N\r\n * sqrt(N) = N\r\n * sqrt(-I) = N\r\n * sqrt(I) = I\r\n * sqrt(0) = 0\r\n * sqrt(-0) = -0\r\n *\r\n * Return a new BigNumber whose value is the square root of the value of this BigNumber,\r\n * rounded according to DECIMAL_PLACES and ROUNDING_MODE.\r\n */\r\n P.squareRoot = P.sqrt = function () {\r\n var m, n, r, rep, t,\r\n x = this,\r\n c = x.c,\r\n s = x.s,\r\n e = x.e,\r\n dp = DECIMAL_PLACES + 4,\r\n half = new BigNumber('0.5');\r\n\r\n // Negative/NaN/Infinity/zero?\r\n if (s !== 1 || !c || !c[0]) {\r\n return new BigNumber(!s || s < 0 && (!c || c[0]) ? NaN : c ? x : 1 / 0);\r\n }\r\n\r\n // Initial estimate.\r\n s = Math.sqrt(+x);\r\n\r\n // Math.sqrt underflow/overflow?\r\n // Pass x to Math.sqrt as integer, then adjust the exponent of the result.\r\n if (s == 0 || s == 1 / 0) {\r\n n = coeffToString(c);\r\n if ((n.length + e) % 2 == 0) n += '0';\r\n s = Math.sqrt(n);\r\n e = bitFloor((e + 1) / 2) - (e < 0 || e % 2);\r\n\r\n if (s == 1 / 0) {\r\n n = '1e' + e;\r\n } else {\r\n n = s.toExponential();\r\n n = n.slice(0, n.indexOf('e') + 1) + e;\r\n }\r\n\r\n r = new BigNumber(n);\r\n } else {\r\n r = new BigNumber(s + '');\r\n }\r\n\r\n // Check for zero.\r\n // r could be zero if MIN_EXP is changed after the this value was created.\r\n // This would cause a division by zero (x/t) and hence Infinity below, which would cause\r\n // coeffToString to throw.\r\n if (r.c[0]) {\r\n e = r.e;\r\n s = e + dp;\r\n if (s < 3) s = 0;\r\n\r\n // Newton-Raphson iteration.\r\n for (; ;) {\r\n t = r;\r\n r = half.times(t.plus(div(x, t, dp, 1)));\r\n\r\n if (coeffToString(t.c ).slice(0, s) === (n =\r\n coeffToString(r.c)).slice(0, s)) {\r\n\r\n // The exponent of r may here be one less than the final result exponent,\r\n // e.g 0.0009999 (e-4) --> 0.001 (e-3), so adjust s so the rounding digits\r\n // are indexed correctly.\r\n if (r.e < e) --s;\r\n n = n.slice(s - 3, s + 1);\r\n\r\n // The 4th rounding digit may be in error by -1 so if the 4 rounding digits\r\n // are 9999 or 4999 (i.e. approaching a rounding boundary) continue the\r\n // iteration.\r\n if (n == '9999' || !rep && n == '4999') {\r\n\r\n // On the first iteration only, check to see if rounding up gives the\r\n // exact result as the nines may infinitely repeat.\r\n if (!rep) {\r\n round(t, t.e + DECIMAL_PLACES + 2, 0);\r\n\r\n if (t.times(t).eq(x)) {\r\n r = t;\r\n break;\r\n }\r\n }\r\n\r\n dp += 4;\r\n s += 4;\r\n rep = 1;\r\n } else {\r\n\r\n // If rounding digits are null, 0{0,4} or 50{0,3}, check for exact\r\n // result. If not, then there are further digits and m will be truthy.\r\n if (!+n || !+n.slice(1) && n.charAt(0) == '5') {\r\n\r\n // Truncate to the first rounding digit.\r\n round(r, r.e + DECIMAL_PLACES + 2, 1);\r\n m = !r.times(r).eq(x);\r\n }\r\n\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return round(r, r.e + DECIMAL_PLACES + 1, ROUNDING_MODE, m);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber in exponential notation and\r\n * rounded using ROUNDING_MODE to dp fixed decimal places.\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}'\r\n */\r\n P.toExponential = function (dp, rm) {\r\n if (dp != null) {\r\n intCheck(dp, 0, MAX);\r\n dp++;\r\n }\r\n return format(this, dp, rm, 1);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber in fixed-point notation rounding\r\n * to dp fixed decimal places using rounding mode rm, or ROUNDING_MODE if rm is omitted.\r\n *\r\n * Note: as with JavaScript's number type, (-0).toFixed(0) is '0',\r\n * but e.g. (-0.00001).toFixed(0) is '-0'.\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}'\r\n */\r\n P.toFixed = function (dp, rm) {\r\n if (dp != null) {\r\n intCheck(dp, 0, MAX);\r\n dp = dp + this.e + 1;\r\n }\r\n return format(this, dp, rm);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber in fixed-point notation rounded\r\n * using rm or ROUNDING_MODE to dp decimal places, and formatted according to the properties\r\n * of the FORMAT object (see BigNumber.set).\r\n *\r\n * FORMAT = {\r\n * decimalSeparator : '.',\r\n * groupSeparator : ',',\r\n * groupSize : 3,\r\n * secondaryGroupSize : 0,\r\n * fractionGroupSeparator : '\\xA0', // non-breaking space\r\n * fractionGroupSize : 0\r\n * };\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}'\r\n */\r\n P.toFormat = function (dp, rm) {\r\n var str = this.toFixed(dp, rm);\r\n\r\n if (this.c) {\r\n var i,\r\n arr = str.split('.'),\r\n g1 = +FORMAT.groupSize,\r\n g2 = +FORMAT.secondaryGroupSize,\r\n groupSeparator = FORMAT.groupSeparator,\r\n intPart = arr[0],\r\n fractionPart = arr[1],\r\n isNeg = this.s < 0,\r\n intDigits = isNeg ? intPart.slice(1) : intPart,\r\n len = intDigits.length;\r\n\r\n if (g2) i = g1, g1 = g2, g2 = i, len -= i;\r\n\r\n if (g1 > 0 && len > 0) {\r\n i = len % g1 || g1;\r\n intPart = intDigits.substr(0, i);\r\n\r\n for (; i < len; i += g1) {\r\n intPart += groupSeparator + intDigits.substr(i, g1);\r\n }\r\n\r\n if (g2 > 0) intPart += groupSeparator + intDigits.slice(i);\r\n if (isNeg) intPart = '-' + intPart;\r\n }\r\n\r\n str = fractionPart\r\n ? intPart + FORMAT.decimalSeparator + ((g2 = +FORMAT.fractionGroupSize)\r\n ? fractionPart.replace(new RegExp('\\\\d{' + g2 + '}\\\\B', 'g'),\r\n '$&' + FORMAT.fractionGroupSeparator)\r\n : fractionPart)\r\n : intPart;\r\n }\r\n\r\n return str;\r\n };\r\n\r\n\r\n /*\r\n * Return a string array representing the value of this BigNumber as a simple fraction with\r\n * an integer numerator and an integer denominator. The denominator will be a positive\r\n * non-zero value less than or equal to the specified maximum denominator. If a maximum\r\n * denominator is not specified, the denominator will be the lowest value necessary to\r\n * represent the number exactly.\r\n *\r\n * [md] {number|string|BigNumber} Integer >= 1, or Infinity. The maximum denominator.\r\n *\r\n * '[BigNumber Error] Argument {not an integer|out of range} : {md}'\r\n */\r\n P.toFraction = function (md) {\r\n var arr, d, d0, d1, d2, e, exp, n, n0, n1, q, s,\r\n x = this,\r\n xc = x.c;\r\n\r\n if (md != null) {\r\n n = new BigNumber(md);\r\n\r\n // Throw if md is less than one or is not an integer, unless it is Infinity.\r\n if (!n.isInteger() && (n.c || n.s !== 1) || n.lt(ONE)) {\r\n throw Error\r\n (bignumberError + 'Argument ' +\r\n (n.isInteger() ? 'out of range: ' : 'not an integer: ') + md);\r\n }\r\n }\r\n\r\n if (!xc) return x.toString();\r\n\r\n d = new BigNumber(ONE);\r\n n1 = d0 = new BigNumber(ONE);\r\n d1 = n0 = new BigNumber(ONE);\r\n s = coeffToString(xc);\r\n\r\n // Determine initial denominator.\r\n // d is a power of 10 and the minimum max denominator that specifies the value exactly.\r\n e = d.e = s.length - x.e - 1;\r\n d.c[0] = POWS_TEN[(exp = e % LOG_BASE) < 0 ? LOG_BASE + exp : exp];\r\n md = !md || n.comparedTo(d) > 0 ? (e > 0 ? d : n1) : n;\r\n\r\n exp = MAX_EXP;\r\n MAX_EXP = 1 / 0;\r\n n = new BigNumber(s);\r\n\r\n // n0 = d1 = 0\r\n n0.c[0] = 0;\r\n\r\n for (; ;) {\r\n q = div(n, d, 0, 1);\r\n d2 = d0.plus(q.times(d1));\r\n if (d2.comparedTo(md) == 1) break;\r\n d0 = d1;\r\n d1 = d2;\r\n n1 = n0.plus(q.times(d2 = n1));\r\n n0 = d2;\r\n d = n.minus(q.times(d2 = d));\r\n n = d2;\r\n }\r\n\r\n d2 = div(md.minus(d0), d1, 0, 1);\r\n n0 = n0.plus(d2.times(n1));\r\n d0 = d0.plus(d2.times(d1));\r\n n0.s = n1.s = x.s;\r\n e *= 2;\r\n\r\n // Determine which fraction is closer to x, n0/d0 or n1/d1\r\n arr = div(n1, d1, e, ROUNDING_MODE).minus(x).abs().comparedTo(\r\n div(n0, d0, e, ROUNDING_MODE).minus(x).abs()) < 1\r\n ? [n1.toString(), d1.toString()]\r\n : [n0.toString(), d0.toString()];\r\n\r\n MAX_EXP = exp;\r\n return arr;\r\n };\r\n\r\n\r\n /*\r\n * Return the value of this BigNumber converted to a number primitive.\r\n */\r\n P.toNumber = function () {\r\n return +this;\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber rounded to sd significant digits\r\n * using rounding mode rm or ROUNDING_MODE. If sd is less than the number of digits\r\n * necessary to represent the integer part of the value in fixed-point notation, then use\r\n * exponential notation.\r\n *\r\n * [sd] {number} Significant digits. Integer, 1 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}'\r\n */\r\n P.toPrecision = function (sd, rm) {\r\n if (sd != null) intCheck(sd, 1, MAX);\r\n return format(this, sd, rm, 2);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber in base b, or base 10 if b is\r\n * omitted. If a base is specified, including base 10, round according to DECIMAL_PLACES and\r\n * ROUNDING_MODE. If a base is not specified, and this BigNumber has a positive exponent\r\n * that is equal to or greater than TO_EXP_POS, or a negative exponent equal to or less than\r\n * TO_EXP_NEG, return exponential notation.\r\n *\r\n * [b] {number} Integer, 2 to ALPHABET.length inclusive.\r\n *\r\n * '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}'\r\n */\r\n P.toString = function (b) {\r\n var str,\r\n n = this,\r\n s = n.s,\r\n e = n.e;\r\n\r\n // Infinity or NaN?\r\n if (e === null) {\r\n\r\n if (s) {\r\n str = 'Infinity';\r\n if (s < 0) str = '-' + str;\r\n } else {\r\n str = 'NaN';\r\n }\r\n } else {\r\n str = coeffToString(n.c);\r\n\r\n if (b == null) {\r\n str = e <= TO_EXP_NEG || e >= TO_EXP_POS\r\n ? toExponential(str, e)\r\n : toFixedPoint(str, e, '0');\r\n } else {\r\n intCheck(b, 2, ALPHABET.length, 'Base');\r\n str = convertBase(toFixedPoint(str, e, '0'), 10, b, s, true);\r\n }\r\n\r\n if (s < 0 && n.c[0]) str = '-' + str;\r\n }\r\n\r\n return str;\r\n };\r\n\r\n\r\n /*\r\n * Return as toString, but do not accept a base argument, and include the minus sign for\r\n * negative zero.\r\n */\r\n P.valueOf = P.toJSON = function () {\r\n var str,\r\n n = this,\r\n e = n.e;\r\n\r\n if (e === null) return n.toString();\r\n\r\n str = coeffToString(n.c);\r\n\r\n str = e <= TO_EXP_NEG || e >= TO_EXP_POS\r\n ? toExponential(str, e)\r\n : toFixedPoint(str, e, '0');\r\n\r\n return n.s < 0 ? '-' + str : str;\r\n };\r\n\r\n\r\n P._isBigNumber = true;\r\n\r\n if (configObject != null) BigNumber.set(configObject);\r\n\r\n return BigNumber;\r\n }\r\n\r\n\r\n // PRIVATE HELPER FUNCTIONS\r\n\r\n\r\n function bitFloor(n) {\r\n var i = n | 0;\r\n return n > 0 || n === i ? i : i - 1;\r\n }\r\n\r\n\r\n // Return a coefficient array as a string of base 10 digits.\r\n function coeffToString(a) {\r\n var s, z,\r\n i = 1,\r\n j = a.length,\r\n r = a[0] + '';\r\n\r\n for (; i < j;) {\r\n s = a[i++] + '';\r\n z = LOG_BASE - s.length;\r\n for (; z--; s = '0' + s);\r\n r += s;\r\n }\r\n\r\n // Determine trailing zeros.\r\n for (j = r.length; r.charCodeAt(--j) === 48;);\r\n return r.slice(0, j + 1 || 1);\r\n }\r\n\r\n\r\n // Compare the value of BigNumbers x and y.\r\n function compare(x, y) {\r\n var a, b,\r\n xc = x.c,\r\n yc = y.c,\r\n i = x.s,\r\n j = y.s,\r\n k = x.e,\r\n l = y.e;\r\n\r\n // Either NaN?\r\n if (!i || !j) return null;\r\n\r\n a = xc && !xc[0];\r\n b = yc && !yc[0];\r\n\r\n // Either zero?\r\n if (a || b) return a ? b ? 0 : -j : i;\r\n\r\n // Signs differ?\r\n if (i != j) return i;\r\n\r\n a = i < 0;\r\n b = k == l;\r\n\r\n // Either Infinity?\r\n if (!xc || !yc) return b ? 0 : !xc ^ a ? 1 : -1;\r\n\r\n // Compare exponents.\r\n if (!b) return k > l ^ a ? 1 : -1;\r\n\r\n j = (k = xc.length) < (l = yc.length) ? k : l;\r\n\r\n // Compare digit by digit.\r\n for (i = 0; i < j; i++) if (xc[i] != yc[i]) return xc[i] > yc[i] ^ a ? 1 : -1;\r\n\r\n // Compare lengths.\r\n return k == l ? 0 : k > l ^ a ? 1 : -1;\r\n }\r\n\r\n\r\n /*\r\n * Check that n is a primitive number, an integer, and in range, otherwise throw.\r\n */\r\n function intCheck(n, min, max, name) {\r\n if (n < min || n > max || n !== (n < 0 ? mathceil(n) : mathfloor(n))) {\r\n throw Error\r\n (bignumberError + (name || 'Argument') + (typeof n == 'number'\r\n ? n < min || n > max ? ' out of range: ' : ' not an integer: '\r\n : ' not a primitive number: ') + n);\r\n }\r\n }\r\n\r\n\r\n function isArray(obj) {\r\n return Object.prototype.toString.call(obj) == '[object Array]';\r\n }\r\n\r\n\r\n // Assumes finite n.\r\n function isOdd(n) {\r\n var k = n.c.length - 1;\r\n return bitFloor(n.e / LOG_BASE) == k && n.c[k] % 2 != 0;\r\n }\r\n\r\n\r\n function toExponential(str, e) {\r\n return (str.length > 1 ? str.charAt(0) + '.' + str.slice(1) : str) +\r\n (e < 0 ? 'e' : 'e+') + e;\r\n }\r\n\r\n\r\n function toFixedPoint(str, e, z) {\r\n var len, zs;\r\n\r\n // Negative exponent?\r\n if (e < 0) {\r\n\r\n // Prepend zeros.\r\n for (zs = z + '.'; ++e; zs += z);\r\n str = zs + str;\r\n\r\n // Positive exponent\r\n } else {\r\n len = str.length;\r\n\r\n // Append zeros.\r\n if (++e > len) {\r\n for (zs = z, e -= len; --e; zs += z);\r\n str += zs;\r\n } else if (e < len) {\r\n str = str.slice(0, e) + '.' + str.slice(e);\r\n }\r\n }\r\n\r\n return str;\r\n }\r\n\r\n\r\n // EXPORT\r\n\r\n\r\n BigNumber = clone();\r\n BigNumber['default'] = BigNumber.BigNumber = BigNumber;\r\n\r\n // AMD.\r\n if (typeof define == 'function' && define.amd) {\r\n define(function () { return BigNumber; });\r\n\r\n // Node.js and other environments that support module.exports.\r\n } else if (typeof module != 'undefined' && module.exports) {\r\n module.exports = BigNumber;\r\n\r\n // Browser.\r\n } else {\r\n if (!globalObject) {\r\n globalObject = typeof self != 'undefined' && self ? self : window;\r\n }\r\n\r\n globalObject.BigNumber = BigNumber;\r\n }\r\n})(this);\r\n","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse {\n\t\tvar a = factory();\n\t\tfor(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];\n\t}\n})(self, function() {\nreturn /******/ (() => { // webpackBootstrap\n/******/ \tvar __webpack_modules__ = ({\n\n/***/ 4628:\n/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {\n\n\"use strict\";\n// ESM COMPAT FLAG\n__webpack_require__.r(__webpack_exports__);\n\n// EXPORTS\n__webpack_require__.d(__webpack_exports__, {\n \"Connex\": () => /* binding */ ConnexClass,\n \"default\": () => /* binding */ esm\n});\n\n// EXTERNAL MODULE: ../framework/node_modules/@vechain/ethers/utils/abi-coder.js\nvar abi_coder = __webpack_require__(2046);\n// EXTERNAL MODULE: ../framework/node_modules/js-sha3/src/sha3.js\nvar sha3 = __webpack_require__(747);\n// CONCATENATED MODULE: ../framework/node_modules/thor-devkit/esm/keccak.js\n/* provided dependency */ var Buffer = __webpack_require__(8764)[\"Buffer\"];\n\n/**\n * computes keccak256 hash of given data\n * @param data one or more Buffer | string\n */\nfunction keccak256(...data) {\n const h = sha3.keccak_256.create();\n data.forEach(d => {\n if (Buffer.isBuffer(d)) {\n h.update(d);\n }\n else {\n h.update(Buffer.from(d, 'utf8'));\n }\n });\n return Buffer.from(h.digest());\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2VjY2FrLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2tlY2Nhay50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sU0FBUyxDQUFBO0FBQ3BDOzs7R0FHRztBQUNILE1BQU0sVUFBVSxTQUFTLENBQUMsR0FBRyxJQUE0QjtJQUNyRCxNQUFNLENBQUMsR0FBRyxVQUFVLENBQUMsTUFBTSxFQUFFLENBQUE7SUFDN0IsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUMsRUFBRTtRQUNiLElBQUksTUFBTSxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsRUFBRTtZQUNwQixDQUFDLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFBO1NBQ2Q7YUFBTTtZQUNILENBQUMsQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDLEVBQUUsTUFBTSxDQUFDLENBQUMsQ0FBQTtTQUNuQztJQUNMLENBQUMsQ0FBQyxDQUFBO0lBQ0YsT0FBTyxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxDQUFBO0FBQ2xDLENBQUMifQ==\n// CONCATENATED MODULE: ../framework/node_modules/thor-devkit/esm/abi.js\n/* provided dependency */ var abi_Buffer = __webpack_require__(8764)[\"Buffer\"];\n\n\nclass Coder extends abi_coder.AbiCoder {\n constructor() {\n super((type, value) => {\n if ((type.match(/^u?int/) && !Array.isArray(value) && typeof value !== 'object') ||\n value._ethersType === 'BigNumber') {\n return value.toString();\n }\n return value;\n });\n }\n encode(types, values) {\n try {\n return super.encode(types, values);\n }\n catch (err) {\n if (err.reason) {\n throw new Error(err.reason);\n }\n throw err;\n }\n }\n decode(types, data) {\n try {\n return super.decode(types, data);\n }\n catch (err) {\n if (err.reason) {\n throw new Error(err.reason);\n }\n throw err;\n }\n }\n}\nconst coder = new Coder();\nfunction formatSignature(fragment) {\n try {\n return (0,abi_coder.formatSignature)(fragment)\n .replace(/\\(tuple\\(/g, '((')\n .replace(/\\,tuple\\(/g, ',(');\n }\n catch (err) {\n if (err.reason) {\n throw new Error(err.reason);\n }\n throw err;\n }\n}\n/** encode/decode parameters of contract function call, event log, according to ABI JSON */\nvar abi;\n(function (abi) {\n /**\n * encode single parameter\n * @param type type of the parameter\n * @param value value of the parameter\n * @returns encoded value in hex string\n */\n function encodeParameter(type, value) {\n return coder.encode([type], [value]);\n }\n abi.encodeParameter = encodeParameter;\n /**\n * decode single parameter\n * @param type type of the parameter\n * @param data encoded parameter in hex string\n * @returns decoded value\n */\n function decodeParameter(type, data) {\n return coder.decode([type], data)[0];\n }\n abi.decodeParameter = decodeParameter;\n /**\n * encode a group of parameters\n * @param types type array\n * @param values value array\n * @returns encoded values in hex string\n */\n function encodeParameters(types, values) {\n return coder.encode(types, values);\n }\n abi.encodeParameters = encodeParameters;\n /**\n * decode a group of parameters\n * @param types type array\n * @param data encoded values in hex string\n * @returns decoded object\n */\n function decodeParameters(types, data) {\n const result = coder.decode(types, data);\n const decoded = {};\n types.forEach((t, i) => {\n decoded[i] = result[i];\n if (t.name) {\n decoded[t.name] = result[i];\n }\n });\n return decoded;\n }\n abi.decodeParameters = decodeParameters;\n /** for contract function */\n class Function {\n /**\n * create a function object\n * @param definition abi definition of the function\n */\n constructor(definition) {\n this.definition = definition;\n this.canonicalName = formatSignature(definition);\n this.signature = '0x' + keccak256(this.canonicalName).slice(0, 4).toString('hex');\n }\n /**\n * encode input parameters into call data\n * @param args arguments for the function\n */\n encode(...args) {\n return this.signature + encodeParameters(this.definition.inputs, args).slice(2);\n }\n /**\n * decode output data\n * @param outputData output data to decode\n */\n decode(outputData) {\n return decodeParameters(this.definition.outputs, outputData);\n }\n }\n abi.Function = Function;\n /** for contract event */\n class Event {\n /** for contract event */\n constructor(definition) {\n this.definition = definition;\n this.canonicalName = formatSignature(definition);\n this.signature = '0x' + keccak256(this.canonicalName).toString('hex');\n }\n /**\n * encode an object of indexed keys into topics.\n * @param indexed an object contains indexed keys\n */\n encode(indexed) {\n const topics = [];\n if (!this.definition.anonymous) {\n topics.push(this.signature);\n }\n for (const input of this.definition.inputs) {\n if (!input.indexed) {\n continue;\n }\n const value = indexed[input.name];\n if (value === undefined || value === null) {\n topics.push(null);\n }\n else {\n let topic;\n // https://docs.soliditylang.org/en/v0.8.11/abi-spec.html#encoding-of-indexed-event-parameters\n if (isValueType(input.type)) {\n topic = encodeParameter(input.type, value);\n }\n else {\n if (input.type === 'string') {\n topic = '0x' + keccak256(value).toString('hex');\n }\n else if (typeof value === 'string' && /^0x[0-9a-f]+$/i.test(value) && value.length % 2 === 0) {\n // value is encoded\n topic = '0x' + keccak256(abi_Buffer.from(value.slice(2), 'hex')).toString('hex');\n }\n else {\n throw new Error(`event.encode: invalid ${input.type} value`);\n }\n }\n topics.push(topic);\n }\n }\n return topics;\n }\n /**\n * decode event log\n * @param data data in event output\n * @param topics topics in event\n */\n decode(data, topics) {\n if (!this.definition.anonymous) {\n topics = topics.slice(1);\n }\n if (this.definition.inputs.filter(t => t.indexed).length !== topics.length) {\n throw new Error('invalid topics count');\n }\n const decodedNonIndexed = coder.decode(this.definition.inputs.filter(t => !t.indexed), data);\n const decoded = {};\n this.definition.inputs.forEach((t, i) => {\n if (t.indexed) {\n const topic = topics.shift();\n decoded[i] = isValueType(t.type) ? decodeParameter(t.type, topic) : topic;\n }\n else {\n decoded[i] = decodedNonIndexed.shift();\n }\n if (t.name) {\n decoded[t.name] = decoded[i];\n }\n });\n return decoded;\n }\n }\n abi.Event = Event;\n function isValueType(type) {\n return type === 'address' || type === 'bool' || /^(u?int)([0-9]*)$/.test(type) || /^bytes([0-9]+)$/.test(type);\n }\n})(abi || (abi = {}));\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2FiaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLGVBQWUsSUFBSSxnQkFBZ0IsRUFBRSxNQUFNLGlDQUFpQyxDQUFBO0FBQy9GLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxVQUFVLENBQUE7QUFFcEMsTUFBTSxLQUFNLFNBQVEsUUFBUTtJQUN4QjtRQUNJLEtBQUssQ0FBQyxDQUFDLElBQUksRUFBRSxLQUFLLEVBQUUs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UcsQ0FBQTtvQkFDN0IsT0FBTyxDQUFDLENBQUMsQ0FBQyxHQUFHLFdBQVcsQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLGVBQWUsQ0FBQyxDQUFDLENBQUMsSUFBSSxFQUFFLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUE7aUJBQzVFO3FCQUFNO29CQUNILE9BQU8sQ0FBQyxDQUFDLENBQUMsR0FBRyxpQkFBaUIsQ0FBQyxLQUFLLEVBQUUsQ0FBQTtpQkFDekM7Z0JBQ0QsSUFBSSxDQUFDLENBQUMsSUFBSSxFQUFFO29CQUNSLE9BQU8sQ0FBQyxDQUFDLENBQUMsSUFBSSxDQUFDLEdBQUcsT0FBTyxDQUFDLENBQUMsQ0FBQyxDQUFBO2lCQUMvQjtZQUNMLENBQUMsQ0FBQyxDQUFBO1lBQ0YsT0FBTyxPQUFPLENBQUE7UUFDbEIsQ0FBQztLQUNKO0lBakZZLFNBQUssUUFpRmpCLENBQUE7SUFxQkQsU0FBUyxXQUFXLENBQUMsSUFBWTtRQUM3QixPQUFPLElBQUksS0FBSyxTQUFTLElBQUksSUFBSSxLQUFLLE1BQU0sSUFBSSxtQkFBbUIsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLElBQUksaUJBQWlCLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFBO0lBQ2xILENBQUM7QUFDTCxDQUFDLEVBbE5nQixHQUFHLEtBQUgsR0FBRyxRQWtObkIifQ==\n// CONCATENATED MODULE: ../framework/esm/revert-reason.js\n\n// https://docs.soliditylang.org/en/v0.8.16/control-structures.html#error-handling-assert-require-revert-and-exceptions\n// builtin errors in solidity, Error(string) and Panic(uint256)\nconst errorSelector = '0x' + keccak256('Error(string)').toString('hex').slice(0, 8);\nconst panicSelector = '0x' + keccak256('Panic(uint256)').toString('hex').slice(0, 8);\nfunction decodeRevertReason(data) {\n try {\n if (data.startsWith(errorSelector)) {\n return abi.decodeParameter('string', '0x' + data.slice(errorSelector.length));\n }\n else if (data.startsWith(panicSelector)) {\n const decoded = abi.decodeParameter('uint256', '0x' + data.slice(panicSelector.length));\n return `Panic(0x${parseInt(decoded).toString(16).padStart(2, '0')})`;\n }\n return '';\n }\n catch (_a) {\n return '';\n }\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmV2ZXJ0LXJlYXNvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9yZXZlcnQtcmVhc29uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxHQUFHLEVBQUUsU0FBUyxFQUFFLE1BQU0sYUFBYSxDQUFBO0FBRTVDLHVIQUF1SDtBQUN2SCwrREFBK0Q7QUFFL0QsTUFBTSxhQUFhLEdBQUcsSUFBSSxHQUFHLFNBQVMsQ0FBQyxlQUFlLENBQUMsQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDLENBQUMsS0FBSyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQTtBQUNuRixNQUFNLGFBQWEsR0FBRyxJQUFJLEdBQUcsU0FBUyxDQUFDLGdCQUFnQixDQUFDLENBQUMsUUFBUSxDQUFDLEtBQUssQ0FBQyxDQUFDLEtBQUssQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUE7QUFFcEYsTUFBTSxVQUFVLGtCQUFrQixDQUFDLElBQVk7SUFDM0MsSUFBSTtRQUNBLElBQUksSUFBSSxDQUFDLFVBQVUsQ0FBQyxhQUFhLENBQUMsRUFBRTtZQUNoQyxPQUFPLEdBQUcsQ0FBQyxlQUFlLENBQUMsUUFBUSxFQUFFLElBQUksR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLGFBQWEsQ0FBQyxNQUFNLENBQUMsQ0FBVyxDQUFBO1NBQzFGO2FBQU0sSUFBSSxJQUFJLENBQUMsVUFBVSxDQUFDLGFBQWEsQ0FBQyxFQUFFO1lBQ3ZDLE1BQU0sT0FBTyxHQUFHLEdBQUcsQ0FBQyxlQUFlLENBQUMsU0FBUyxFQUFFLElBQUksR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLGFBQWEsQ0FBQyxNQUFNLENBQUMsQ0FBVyxDQUFBO1lBQ2pHLE9BQU8sV0FBVyxRQUFRLENBQUMsT0FBTyxDQUFDLENBQUMsUUFBUSxDQUFDLEVBQUUsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxDQUFDLEVBQUUsR0FBRyxDQUFDLEdBQUcsQ0FBQTtTQUN2RTtRQUNELE9BQU8sRUFBRSxDQUFBO0tBQ1o7SUFBQyxXQUFNO1FBQ0osT0FBTyxFQUFFLENBQUE7S0FDWjtBQUNMLENBQUMifQ==\n// EXTERNAL MODULE: ../framework/node_modules/validator-ts/dist/index.js\nvar dist = __webpack_require__(6462);\n// CONCATENATED MODULE: ../framework/esm/rules.js\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nfunction isDecString(val) {\n return typeof val === 'string' && /^[0-9]+$/.test(val);\n}\nfunction isHexString(val) {\n return typeof val === 'string' && /^0x[0-9a-f]+$/i.test(val);\n}\nfunction isHexBytes(val, n) {\n if (typeof val !== 'string' || !/^0x[0-9a-f]*$/i.test(val)) {\n return false;\n }\n return n ? val.length === n * 2 + 2 : val.length % 2 === 0;\n}\nfunction isUInt(val, bit) {\n if (val < 0 || !Number.isInteger(val)) {\n return false;\n }\n return bit ? val < Math.pow(2, bit) : true;\n}\nfunction isBigInt(v) {\n return typeof v === 'string' ?\n (isDecString(v) || isHexString(v)) :\n isUInt(v, 0);\n}\nclass BadParameter extends Error {\n constructor(msg) {\n super(msg);\n }\n}\nBadParameter.prototype.name = 'BadParameter';\nfunction ensure(b, msg) {\n if (!b) {\n throw new BadParameter(msg);\n }\n}\n\nfunction test(value, scheme, context) {\n try {\n return dist.validate(value, scheme, context);\n }\n catch (err) {\n if (err instanceof dist.ValidationError) {\n throw new BadParameter(err.message);\n }\n throw err;\n }\n}\n// rules\nfunction bytes(v) {\n return isHexBytes(v) ? '' : 'expected bytes in hex string';\n}\nfunction bytes8(v) {\n return isHexBytes(v, 8) ? '' : 'expected bytes8';\n}\nfunction bytes32(v) {\n return isHexBytes(v, 32) ? '' : 'expected bytes32';\n}\nfunction uint8(v) {\n return isUInt(v, 8) ? '' : 'expected 8-bit unsigned integer';\n}\nfunction uint32(v) {\n return isUInt(v, 32) ? '' : 'expected 32-bit unsigned integer';\n}\nfunction uint64(v) {\n return isUInt(v, 64) ? '' : 'expected 64-bit unsigned integer';\n}\nfunction bool(v) {\n return typeof v === 'boolean' ? '' : 'expected boolean';\n}\nfunction bigInt(v) {\n return isBigInt(v) ? '' : 'expected unsigned integer in number or string';\n}\nfunction hexString(v) {\n return isHexString(v) ? '' : 'expected integer in hex string';\n}\nfunction address(v) {\n return isHexBytes(v, 20) ? '' : 'expected address';\n}\nfunction string(v) {\n return typeof v === 'string' ? '' : 'expected string';\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnVsZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvcnVsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsc0VBQXNFO0FBQ3RFLE1BQU0sVUFBVSxXQUFXLENBQUMsR0FBVztJQUNuQyxPQUFPLE9BQU8sR0FBRyxLQUFLLFFBQVEsSUFBSSxVQUFVLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFBO0FBQzFELENBQUM7QUFFRCxNQUFNLFVBQVUsV0FBVyxDQUFDLEdBQVc7SUFDbkMsT0FBTyxPQUFPLEdBQUcsS0FBSyxRQUFRLElBQUksZ0JBQWdCLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFBO0FBQ2hFLENBQUM7QUFFRCxNQUFNL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0lBQzVCLE9BQU8sV0FBVyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLGdDQUFnQyxDQUFBO0FBQ2pFLENBQUM7QUFDRCxNQUFNLFVBQVUsT0FBTyxDQUFDLENBQU07SUFDMUIsT0FBTyxVQUFVLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLGtCQUFrQixDQUFBO0FBQ3RELENBQUM7QUFDRCxNQUFNLFVBQVUsTUFBTSxDQUFDLENBQU07SUFDekIsT0FBTyxPQUFPLENBQUMsS0FBSyxRQUFRLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsaUJBQWlCLENBQUE7QUFDekQsQ0FBQyJ9\n// CONCATENATED MODULE: ../framework/esm/filter.js\n\nconst MAX_LIMIT = 256;\nfunction newFilter(readyDriver, kind, criteria) {\n const filterBody = {\n range: {\n unit: 'block',\n from: 0,\n to: Math.pow(2, 32) - 1\n },\n options: {\n offset: 0,\n limit: 10\n },\n criteriaSet: criteria,\n order: 'asc'\n };\n let cacheHints;\n return {\n range(range) {\n test(range, {\n unit: v => (v === 'block' || v === 'time') ? '' : `expected 'block' or 'time'`,\n from: uint64,\n to: uint64\n }, 'arg0');\n ensure(range.from <= range.to, 'arg0.from: expected <= arg0.to');\n filterBody.range = Object.assign({}, range);\n return this;\n },\n order(order) {\n ensure(order === 'asc' || order === 'desc', `arg0: expected 'asc' or 'desc'`);\n filterBody.order = order;\n return this;\n },\n cache(hints) {\n cacheHints = test(hints, [address], 'arg0').map(t => t.toLowerCase());\n return this;\n },\n apply(offset, limit) {\n test(offset, uint64, 'arg0');\n ensure(limit >= 0 && limit <= MAX_LIMIT && Number.isInteger(limit), `arg1: expected unsigned integer <= ${MAX_LIMIT}`);\n filterBody.options.offset = offset;\n filterBody.options.limit = limit;\n if (kind === 'transfer') {\n return readyDriver.then(d => d.filterTransferLogs(filterBody, cacheHints));\n }\n else {\n return readyDriver.then(d => d.filterEventLogs(filterBody, cacheHints));\n }\n }\n };\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2ZpbHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssQ0FBQyxNQUFNLFNBQVMsQ0FBQTtBQUU1QixNQUFNLFNBQVMsR0FBRyxHQUFHLENBQUE7QUFFckIsTUFBTSxVQUFVLFNBQVMsQ0FDckIsV0FBbUMsRUFDbkMsSUFBTyxFQUNQLFFBQTBDO0lBRzFDLE1BQU0sVUFBVSxHQUFHO1FBQ2YsS0FBSyxFQUFFO1lBQ0gsSUFBSSxFQUFFLE9BQU87WUFDYixJQUFJLEVBQUUsQ0FBQztZQUNQLEVBQUUsRUFBRSxTQUFBLENBQUMsRUFBSSxFQUFFLENBQUEsR0FBRyxDQUFDO1NBQ2xCO1FBQ0QsT0FBTyxFQUFFO1lBQ0wsTUFBTSxFQUFFLENBQUM7WUFDVCxLQUFLLEVBQUUsRUFBRTtTQUNaO1FBQ0QsV0FBVyxFQUFFLFFBQVE7UUFDckIsS0FBSyxFQUFFLEtBQUs7S0FDZixDQUFBO0lBRUQsSUFBSSxVQUFnQyxDQUFBO0lBRXBDLE9BQU87UUFDSCxLQUFLLENBQUMsS0FBSztZQUNQLENBQUMsQ0FBQyxJQUFJLENBQUMsS0FBSyxFQUFFO2dCQUNWLElBQUksRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxLQUFLLE9BQU8sSUFBSSxDQUFDLEtBQUssTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsNEJBQTRCO2dCQUM5RSxJQUFJLEVBQUUsQ0FB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FDLEVBQ2hFLHNDQUFzQyxTQUFTLEVBQUUsQ0FBQyxDQUFBO1lBRXRELFVBQVUsQ0FBQyxPQUFPLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQTtZQUNsQyxVQUFVLENBQUMsT0FBTyxDQUFDLEtBQUssR0FBRyxLQUFLLENBQUE7WUFFaEMsSUFBSSxJQUFJLEtBQUssVUFBVSxFQUFFO2dCQUNyQixPQUFPLFdBQVcsQ0FBQyxJQUFJLENBQU0sQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsa0JBQWtCLENBQUMsVUFBaUIsRUFBRSxVQUFVLENBQUMsQ0FBQyxDQUFBO2FBQ3pGO2lCQUFNO2dCQUNILE9BQU8sV0FBVyxDQUFDLElBQUksQ0FBTSxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxlQUFlLENBQUMsVUFBaUIsRUFBRSxVQUFVLENBQUMsQ0FBQyxDQUFBO2FBQ3RGO1FBQ0wsQ0FBQztLQUNKLENBQUE7QUFDTCxDQUFDIn0=\n// EXTERNAL MODULE: ../framework/node_modules/bignumber.js/bignumber.js\nvar bignumber = __webpack_require__(634);\nvar bignumber_default = /*#__PURE__*/__webpack_require__.n(bignumber);\n\n// CONCATENATED MODULE: ../framework/esm/vendor.js\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\n\n\n\nfunction newVendor(driver) {\n return {\n sign: (kind, msg) => {\n if (kind === 'tx') {\n test(msg, [clauseScheme], 'arg1');\n return newTxSigningService(Promise.resolve(driver), msg);\n }\n else if (kind === 'cert') {\n test(msg, {\n purpose: v => (v === 'agreement' || v === 'identification') ?\n '' : `expected 'agreement' or 'identification'`,\n payload: {\n type: v => v === 'text' ? '' : `expected 'text'`,\n content: string\n }\n }, 'arg1');\n return newCertSigningService(Promise.resolve(driver), msg);\n }\n else {\n throw new BadParameter(`arg0: expected 'tx' or 'cert'`);\n }\n }\n };\n}\nfunction newTxSigningService(readyDriver, msg) {\n const opts = {};\n return {\n signer(addr) {\n opts.signer = test(addr, address, 'arg0').toLowerCase();\n return this;\n },\n gas(gas) {\n opts.gas = test(gas, uint64, 'arg0');\n return this;\n },\n dependsOn(txid) {\n opts.dependsOn = test(txid, bytes32, 'arg0').toLowerCase();\n return this;\n },\n link(url) {\n opts.link = test(url, string, 'arg0');\n return this;\n },\n comment(text) {\n opts.comment = test(text, string, 'arg0');\n return this;\n },\n delegate(url, signer) {\n ensure(typeof url === 'string', `arg0: expected url string`);\n test(signer, dist.optional(address), 'arg1');\n opts.delegator = { url, signer: signer && signer.toLowerCase() };\n return this;\n },\n accepted(cb) {\n ensure(typeof cb === 'function', 'arg0: expected function');\n opts.onAccepted = cb;\n return this;\n },\n request() {\n const transformedMsg = msg.map(c => (Object.assign(Object.assign({}, c), { value: new (bignumber_default())(c.value).toString(10) })));\n return (() => __awaiter(this, void 0, void 0, function* () {\n try {\n const driver = yield readyDriver;\n return yield driver.signTx(transformedMsg, opts);\n }\n catch (err) {\n throw new Rejected(err.message);\n }\n }))();\n }\n };\n}\nfunction newCertSigningService(readyDriver, msg) {\n const opts = {};\n return {\n signer(addr) {\n opts.signer = test(addr, address, 'arg0').toLowerCase();\n return this;\n },\n link(url) {\n opts.link = test(url, string, 'arg0');\n return this;\n },\n accepted(cb) {\n ensure(typeof cb === 'function', 'arg0: expected function');\n opts.onAccepted = cb;\n return this;\n },\n request() {\n return (() => __awaiter(this, void 0, void 0, function* () {\n try {\n const driver = yield readyDriver;\n return yield driver.signCert(msg, opts);\n }\n catch (err) {\n throw new Rejected(err.message);\n }\n }))();\n }\n };\n}\nclass Rejected extends Error {\n constructor(msg) {\n super(msg);\n }\n}\nRejected.prototype.name = 'Rejected';\nconst clauseScheme = {\n to: dist.nullable(address),\n value: bigInt,\n data: dist.optional(bytes),\n comment: dist.optional(string),\n abi: dist.optional(v => {\n if (!(v instanceof Object)) {\n return 'expected object';\n }\n try {\n new abi.Function(v).signature;\n return '';\n }\n catch (err) {\n return `expected valid ABI (${err.message})`;\n }\n })\n};\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVuZG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3ZlbmRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSxPQUFPLEtBQUssQ0FBQyxNQUFNLFNBQVMsQ0FBQTtBQUM1QixPQUFPLEtBQUssQ0FBQyxNQUFNLGNBQWMsQ0FBQTtBQUNqQyxPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0sYUFBYSxDQUFBO0FBQ2pDLE9BQU8sU0FBUyxNQUFNLGNBQWMsQ0FBQTtBQUVwQyxNQUFNLFVBQVUsU0FBUyxDQUFDLE1BQXFCO0lBQzNDLE9BQU87UUFDSCxJQUFJLEVBQUUsQ0FBMEIsSUFBTyxFQUFFLEdBQXlFLEVBQU8sRUFBRTtZQUN2SCxJQUFJLElBQUksS0FBSyxJQUFJLEVBQUU7Z0JBQ2YsQ0FBQyxDQUFDLElBQUksQ0FBQyxHQUE4QixFQUFFLENBQUMsWUFBWSxDQUFDLEVBQUUsTUFBTSxDQUFDLENBQUE7Z0JBQzlELE9BQU8sbUJBQW1CLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUMsRUFBRSxHQUE4QixDQUFDLENBQUE7YUFDdEY7aUJBQU0sSUFBSSxJQUFJLEtBQUssTUFBTSxFQUFFO2dCQUN4Q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dBQVc7UUFDbkIsS0FBSyxDQUFDLEdBQUcsQ0FBQyxDQUFBO0lBQ2QsQ0FBQztDQUNKO0FBRUQsUUFBUSxDQUFDLFNBQVMsQ0FBQyxJQUFJLEdBQUcsVUFBVSxDQUFBO0FBRXBDLE1BQU0sWUFBWSxHQUE4QztJQUM1RCxFQUFFLEVBQUUsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsT0FBTyxDQUFDO0lBQ3pCLEtBQUssRUFBRSxDQUFDLENBQUMsTUFBTTtJQUNmLElBQUksRUFBRSxDQUFDLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUM7SUFDekIsT0FBTyxFQUFFLENBQUMsQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDLE1BQU0sQ0FBQztJQUM3QixHQUFHLEVBQUUsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsRUFBRTtRQUNoQixJQUFJLENBQUMsQ0FBQyxDQUFDLFlBQVksTUFBTSxDQUFDLEVBQUU7WUFDeEIsT0FBTyxpQkFBaUIsQ0FBQTtTQUMzQjtRQUNELElBQUk7WUFDQSxJQUFJLEdBQUcsQ0FBQyxRQUFRLENBQUMsQ0FBUSxDQUFDLENBQUMsU0FBUyxDQUFBO1lBQ3BDLE9BQU8sRUFBRSxDQUFBO1NBQ1o7UUFBQyxPQUFPLEdBQUcsRUFBRTtZQUNWLE9BQU8sdUJBQXVCLEdBQUcsQ0FBQyxPQUFPLEdBQUcsQ0FBQTtTQUMvQztJQUNMLENBQUMsQ0FBQztDQUNMLENBQUEifQ==\n// CONCATENATED MODULE: ../framework/esm/account-visitor.js\n\n\n\n\n\nfunction newAccountVisitor(readyDriver, addr) {\n return {\n get address() { return addr; },\n get: () => {\n return readyDriver.then(d => d.getAccount(addr, d.head.id));\n },\n getCode: () => {\n return readyDriver.then(d => d.getCode(addr, d.head.id));\n },\n getStorage: key => {\n key = test(key, bytes32, 'arg0').toLowerCase();\n return readyDriver.then(d => d.getStorage(addr, key, d.head.id));\n },\n method: jsonABI => {\n let coder;\n try {\n coder = new abi.Function(JSON.parse(JSON.stringify(jsonABI)));\n }\n catch (err) {\n throw new BadParameter(`arg0: expected valid ABI (${err.message})`);\n }\n return newMethod(readyDriver, addr, coder);\n },\n event: jsonABI => {\n let coder;\n try {\n coder = new abi.Event(JSON.parse(JSON.stringify(jsonABI)));\n }\n catch (err) {\n throw new BadParameter(`arg0: expected valid ABI (${err.message})`);\n }\n return newEvent(readyDriver, addr, coder);\n }\n };\n}\nfunction newMethod(readyDriver, addr, coder) {\n let value = 0;\n const opts = {};\n let cacheHints;\n return {\n value(val) {\n value = test(val, bigInt, 'arg0');\n return this;\n },\n caller(addr) {\n opts.caller = test(addr, address, 'arg0').toLowerCase();\n return this;\n },\n gas(gas) {\n opts.gas = test(gas, uint64, 'arg0');\n return this;\n },\n gasPrice(gp) {\n opts.gasPrice = test(gp, bigInt, 'arg0').toString().toLowerCase();\n return this;\n },\n gasPayer(addr) {\n opts.gasPayer = test(addr, address, 'arg0').toLowerCase();\n return this;\n },\n cache(hints) {\n cacheHints = test(hints, [address], 'arg0').map(t => t.toLowerCase());\n return this;\n },\n asClause: (...args) => {\n const inputsLen = (coder.definition.inputs || []).length;\n ensure(inputsLen === args.length, `args count expected ${inputsLen}`);\n try {\n const data = coder.encode(...args);\n return {\n to: addr,\n value: value.toString().toLowerCase(),\n data\n };\n }\n catch (err) {\n throw new BadParameter(`args can not be encoded (${err.message})`);\n }\n },\n call(...args) {\n const clause = this.asClause(...args);\n return readyDriver.then(d => d.explain(Object.assign({ clauses: [clause] }, opts), d.head.id, cacheHints))\n .then(outputs => outputs[0])\n .then(output => {\n if (output.reverted) {\n const revertReason = decodeRevertReason(output.data);\n return Object.assign(Object.assign({}, output), { revertReason, decoded: {} });\n }\n else {\n const decoded = coder.decode(output.data);\n return Object.assign(Object.assign({}, output), { decoded });\n }\n });\n },\n transact(...args) {\n const clause = this.asClause(...args);\n return newTxSigningService(readyDriver, [Object.assign(Object.assign({}, clause), { abi: coder.definition })]);\n }\n };\n}\nfunction newEvent(readyDriver, addr, coder) {\n const encode = (indexed) => {\n const topics = coder.encode(indexed);\n return {\n address: addr,\n topic0: topics[0] || undefined,\n topic1: topics[1] || undefined,\n topic2: topics[2] || undefined,\n topic3: topics[3] || undefined,\n topic4: topics[4] || undefined\n };\n };\n return {\n asCriteria: indexed => {\n try {\n return encode(indexed);\n }\n catch (err) {\n throw new BadParameter(`arg0: can not be encoded (${err.message})`);\n }\n },\n filter: (indexed) => {\n test(indexed, [{}], 'arg0');\n if (indexed.length === 0) {\n indexed = [{}];\n }\n const criteria = indexed.map((o, i) => {\n try {\n return encode(o);\n }\n catch (err) {\n throw new BadParameter(`arg0.#${i}: can not be encoded (${err.message})`);\n }\n });\n const filter = newFilter(readyDriver, 'event', criteria);\n return {\n range(range) {\n filter.range(range);\n return this;\n },\n order(order) {\n filter.order(order);\n return this;\n },\n cache(hints) {\n filter.cache(hints);\n return this;\n },\n apply(offset, limit) {\n return filter.apply(offset, limit)\n .then(events => events.map(event => {\n const decoded = coder.decode(event.data, event.topics);\n return Object.assign(Object.assign({}, event), { decoded });\n }));\n }\n };\n }\n };\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3VudC12aXNpdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2FjY291bnQtdmlzaXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0sYUFBYSxDQUFBO0FBQ2pDLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGlCQUFpQixDQUFBO0FBQ3BELE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxVQUFVLENBQUE7QUFDcEMsT0FBTyxFQUFFLG1CQUFtQixFQUFFLE1BQU0sVUFBVSxDQU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LE9BQU8sR0FBRyxLQUFLLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUUsS0FBSyxDQUFDLE1BQU0sQ0FBQyxDQUFBO3dCQUN0RCx1Q0FBWSxLQUFLLEtBQUUsT0FBTyxJQUFFO29CQUNoQyxDQUFDLENBQUMsQ0FBQyxDQUFBO2dCQUNYLENBQUM7YUFDSixDQUFBO1FBQ0wsQ0FBQztLQUNKLENBQUE7QUFDTCxDQUFDIn0=\n// CONCATENATED MODULE: ../framework/esm/block-visitor.js\nfunction newBlockVisitor(driver, revision) {\n return {\n get revision() { return revision; },\n get: () => driver.getBlock(revision)\n };\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxvY2stdmlzaXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9ibG9jay12aXNpdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sVUFBVSxlQUFlLENBQzNCLE1BQXFCLEVBQ3JCLFFBQXlCO0lBR3pCLE9BQU87UUFDSCxJQUFJLFFBQVEsS0FBSyxPQUFPLFFBQVEsQ0FBQSxDQUFDLENBQUM7UUFDbEMsR0FBRyxFQUFFLEdBQUcsRUFBRSxDQUFDLE1BQU0sQ0FBQyxRQUFRLENBQUMsUUFBUSxDQUFDO0tBQ3ZDLENBQUE7QUFDTCxDQUFDIn0=\n// CONCATENATED MODULE: ../framework/esm/tx-visitor.js\nfunction newTxVisitor(readyDriver, id) {\n let allowPending = false;\n return {\n get id() {\n return id;\n },\n allowPending() {\n allowPending = true;\n return this;\n },\n get: () => readyDriver.then(d => d.getTransaction(id, allowPending)),\n getReceipt: () => readyDriver.then(d => d.getReceipt(id))\n };\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHgtdmlzaXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy90eC12aXNpdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sVUFBVSxZQUFZLENBQ3hCLFdBQW1DLEVBQ25DLEVBQVU7SUFFVixJQUFJLFlBQVksR0FBRyxLQUFLLENBQUE7SUFDeEIsT0FBTztRQUNILElBQUksRUFBRTtZQUNGLE9BQU8sRUFBRSxDQUFBO1FBQ2IsQ0FBQztRQUNELFlBQVk7WUFDUixZQUFZLEdBQUcsSUFBSSxDQUFBO1lBQ25CLE9BQU8sSUFBSSxDQUFBO1FBQ2YsQ0FBQztRQUNELEdBQUcsRUFBRSxHQUFHLEVBQUUsQ0FBQyxXQUFXLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLGNBQWMsQ0FBQyxFQUFFLEVBQUUsWUFBWSxDQUFDLENBQUM7UUFDcEUsVUFBVSxFQUFFLEdBQUcsRUFBRSxDQUFDLFdBQVcsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsVUFBVSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0tBQzVELENBQUE7QUFDTCxDQUFDIn0=\n// CONCATENATED MODULE: ../framework/esm/head-tracker.js\nvar head_tracker_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nconst checkpointInterval = 180;\nfunction newHeadTracker(driver) {\n let head = Object.assign({}, driver.head);\n let finalized = driver.genesis.id;\n let resolvers = [];\n void (() => head_tracker_awaiter(this, void 0, void 0, function* () {\n for (;;) {\n try {\n const newHead = yield driver.pollHead();\n if (newHead.id !== head.id && newHead.number >= head.number) {\n if (head.number === 0 || (newHead.number + 1) % checkpointInterval === 0) {\n try {\n const finalizedBlk = yield driver.getBlock('finalized');\n if (finalizedBlk && finalizedBlk.id != finalized) {\n finalized = finalizedBlk.id;\n }\n }\n catch (_a) {\n void 0;\n }\n }\n head = Object.assign({}, newHead);\n const resolversCopy = resolvers;\n resolvers = [];\n resolversCopy.forEach(r => r(newHead));\n }\n else {\n yield new Promise(resolve => setTimeout(resolve, 1 * 1000));\n }\n }\n catch (_b) {\n // rejection from driver.getHead means driver closed\n break;\n }\n }\n }))();\n const genesisTs = driver.genesis.timestamp;\n return {\n get head() { return head; },\n get progress() {\n const nowTsMs = Date.now();\n const headTsMs = head.timestamp * 1000;\n if (nowTsMs - headTsMs < 30 * 1000) {\n return 1;\n }\n const genesisTsMs = genesisTs * 1000;\n const p = (headTsMs - genesisTsMs) / (nowTsMs - genesisTsMs);\n return p < 0 ? NaN : p;\n },\n get finalized() { return finalized; },\n ticker: () => {\n let lastHeadId = head.id;\n return {\n next: () => {\n return new Promise(resolve => {\n if (lastHeadId !== head.id) {\n return resolve(Object.assign({}, head));\n }\n resolvers.push(newHead => {\n resolve(Object.assign({}, newHead));\n });\n }).then(h => {\n lastHeadId = h.id;\n return h;\n });\n }\n };\n }\n };\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhZC10cmFja2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2hlYWQtdHJhY2tlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSw2RUFBNkU7QUFDN0UsTUFBTSxrQkFBa0IsR0FBRyxHQUFHLENBQUE7QUFFOUIsTUFBTSxVQ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0FBQyxDQUFDO1FBQ3BDLE1BQU0sRUFBRSxHQUFHLEVBQUU7WUFDVCxJQUFJLFVBQVUsR0FBRyxJQUFJLENBQUMsRUFBRSxDQUFBO1lBQ3hCLE9BQU87Z0JBQ0gsSUFBSSxFQUFFLEdBQUcsRUFBRTtvQkFDUCxPQUFPLElBQUksT0FBTyxDQUE2QixPQUFPLENBQUMsRUFBRTt3QkFDckQsSUFBSSxVQUFVLEtBQUssSUFBSSxDQUFDLEVBQUUsRUFBRTs0QkFDeEIsT0FBTyxPQUFPLG1CQUFNLElBQUksRUFBRyxDQUFBO3lCQUM5Qjt3QkFDRCxTQUFTLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxFQUFFOzRCQUNyQixPQUFPLG1CQUFNLE9BQU8sRUFBRyxDQUFBO3dCQUMzQixDQUFDLENBQUMsQ0FBQTtvQkFDTixDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEVBQUU7d0JBQ1IsVUFBVSxHQUFHLENBQUMsQ0FBQyxFQUFFLENBQUE7d0JBQ2pCLE9BQU8sQ0FBQyxDQUFBO29CQUNaLENBQUMsQ0FBQyxDQUFBO2dCQUNOLENBQUM7YUFDSixDQUFBO1FBQ0wsQ0FBQztLQUNKLENBQUE7QUFDTCxDQUFDIn0=\n// CONCATENATED MODULE: ../framework/esm/explainer.js\n\n\n\nfunction newExplainer(readyDriver, clauses) {\n const opts = {};\n let cacheHints;\n return {\n caller(addr) {\n opts.caller = test(addr, address, 'arg0').toLowerCase();\n return this;\n },\n gas(gas) {\n opts.gas = test(gas, uint64, 'arg0');\n return this;\n },\n gasPrice(gp) {\n opts.gasPrice = test(gp, bigInt, 'arg0').toString().toLowerCase();\n return this;\n },\n gasPayer(addr) {\n opts.gasPayer = test(addr, address, 'arg0').toLowerCase();\n return this;\n },\n cache(hints) {\n cacheHints = test(hints, [address], 'arg0').map(t => t.toLowerCase());\n return this;\n },\n execute() {\n const transformedClauses = clauses.map(c => {\n return {\n to: c.to ? c.to.toLowerCase() : null,\n value: new (bignumber_default())(c.value).toString(10),\n data: (c.data || '0x').toLowerCase()\n };\n });\n return readyDriver.then(d => d.explain(Object.assign({ clauses: transformedClauses }, opts), d.head.id, cacheHints))\n .then(outputs => {\n return outputs.map(o => {\n if (o.reverted) {\n const revertReason = decodeRevertReason(o.data);\n return Object.assign(Object.assign({}, o), { revertReason });\n }\n return o;\n });\n });\n }\n };\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhwbGFpbmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2V4cGxhaW5lci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQTtBQUNwRCxPQUFPLEtBQUssQ0FBQyxNQUFNLFNBQVMsQ0FBQTtBQUM1QixPQUFPLFNBQVMsTUFBTSxjQUFjLENBQUE7QUFFcEMsTUFBTSxVQUFVLFlBQVksQ0FBQyxXQUFtQyxFQUFFLE9BQTJCO0lBQ3pGLE1BQU0sSUFBSSxHQUtOLEVBQUUsQ0FBQTtJQUNOLElBQUksVUFBZ0MsQ0FBQTtJQUVwQyxPQUFPO1FBQ0gsTUFBTSxDQUFDLElBQUk7WUFDUCxJQUFJLENBQUMsTUFBTSxHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLENBQUMsQ0FBQyxPQUFPLEVBQUUsTUFBTSxDQUFDLENBQUMsV0FBVyxFQUFFLENBQUE7WUFDM0QsT0FBTyxJQUFJLENBQUE7UUFDZixDQUFDO1FBQ0QsR0FBRyxDQUFDLEdBQUc7WUFDSCxJQUFJLENBQUMsR0FBRyxHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxNQUFNLEVBQUUsTUFBTSxDQUFDLEN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LLENBQUMsQ0FBQyxRQUFRLENBQUMsRUFBRSxDQUFDO29CQUMxQyxJQUFJLEVBQUUsQ0FBQyxDQUFDLENBQUMsSUFBSSxJQUFJLElBQUksQ0FBQyxDQUFDLFdBQVcsRUFBRTtpQkFDdkMsQ0FBQTtZQUNMLENBQUMsQ0FBQyxDQUFBO1lBRUYsT0FBTyxXQUFXLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLE9BQU8saUJBRTlCLE9BQU8sRUFBRSxrQkFBa0IsSUFDeEIsSUFBSSxHQUVYLENBQUMsQ0FBQyxJQUFJLENBQUMsRUFBRSxFQUFFLFVBQVUsQ0FBQyxDQUFDO2lCQUN0QixJQUFJLENBQUMsT0FBTyxDQUFDLEVBQUU7Z0JBQ1osT0FBTyxPQUFPLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFO29CQUNuQixJQUFJLENBQUMsQ0FBQyxRQUFRLEVBQUU7d0JBQ1osTUFBTSxZQUFZLEdBQUcsa0JBQWtCLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFBO3dCQUMvQyx1Q0FBWSxDQUFDLEtBQUUsWUFBWSxJQUFFO3FCQUNoQztvQkFDRCxPQUFPLENBQUMsQ0FBQTtnQkFDWixDQUFDLENBQUMsQ0FBQTtZQUNOLENBQUMsQ0FBQyxDQUFBO1FBQ1YsQ0FBQztLQUNKLENBQUE7QUFDTCxDQUFDIn0=\n// CONCATENATED MODULE: ../framework/esm/thor.js\nvar thor_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\n\n\n\n\n\n\n\nfunction newThor(driver) {\n const headTracker = newHeadTracker(driver);\n const readyDriver = (() => thor_awaiter(this, void 0, void 0, function* () {\n if (headTracker.head.number > 0) {\n return driver;\n }\n yield headTracker.ticker().next();\n return driver;\n }))();\n const genesis = JSON.parse(JSON.stringify(driver.genesis));\n return {\n get genesis() { return genesis; },\n get status() {\n return {\n head: headTracker.head,\n progress: headTracker.progress,\n finalized: headTracker.finalized\n };\n },\n ticker: () => headTracker.ticker(),\n account: addr => {\n addr = test(addr, address, 'arg0').toLowerCase();\n return newAccountVisitor(readyDriver, addr);\n },\n block: revision => {\n if (typeof revision === 'undefined') {\n revision = driver.head.id;\n }\n else {\n ensure(typeof revision === 'string' ? isHexBytes(revision, 32) : isUInt(revision, 32), 'arg0: expected bytes32 or unsigned 32-bit integer');\n }\n return newBlockVisitor(driver, typeof revision === 'string' ? revision.toLowerCase() : revision);\n },\n transaction: id => {\n id = test(id, bytes32, 'arg0').toLowerCase();\n return newTxVisitor(readyDriver, id);\n },\n filter: (kind, criteria) => {\n ensure(kind === 'event' || kind === 'transfer', `arg0: expected 'event' or 'transfer'`);\n if (kind === 'event') {\n test(criteria, [eventCriteriaScheme], 'arg1');\n return newFilter(readyDriver, 'event', criteria\n .map(c => {\n return {\n address: c.address ? c.address.toLowerCase() : undefined,\n topic0: c.topic0 ? c.topic0.toLowerCase() : undefined,\n topic1: c.topic1 ? c.topic1.toLowerCase() : undefined,\n topic2: c.topic2 ? c.topic2.toLowerCase() : undefined,\n topic3: c.topic3 ? c.topic3.toLowerCase() : undefined,\n topic4: c.topic4 ? c.topic4.toLowerCase() : undefined\n };\n }));\n }\n else {\n test(criteria, [transferCriteriaScheme], 'arg1');\n return newFilter(readyDriver, 'transfer', criteria\n .map(c => {\n return {\n txOrigin: c.txOrigin ? c.txOrigin.toLowerCase() : undefined,\n sender: c.sender ? c.sender.toLowerCase() : undefined,\n recipient: c.recipient ? c.recipient.toLowerCase() : undefined\n };\n }));\n }\n },\n explain: (clauses) => {\n test(clauses, [thor_clauseScheme], 'arg0');\n return newExplainer(readyDriver, clauses);\n }\n };\n}\nconst thor_clauseScheme = {\n to: dist.nullable(address),\n value: bigInt,\n data: dist.optional(bytes)\n};\nconst eventCriteriaScheme = {\n address: dist.optional(address),\n topic0: dist.optional(bytes32),\n topic1: dist.optional(bytes32),\n topic2: dist.optional(bytes32),\n topic3: dist.optional(bytes32),\n topic4: dist.optional(bytes32)\n};\nconst transferCriteriaScheme = {\n sender: dist.optional(address),\n recipient: dist.optional(address),\n txOrigin: dist.optional(address)\n};\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGhvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy90aG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLG1CQUFtQixDQUFBO0FBQ3JELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQTtBQUNqRCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sY0FBYyxDQUFBO0FBQzNDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxVQUFVLENBQUE7QUFDcEMsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGdCQUFnQixDQUFBO0FBQy9DLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxhQUFhLENBQUE7QUFDMUMsT0FBTyxLQUFLLENBQUMsTUFBTSxTQUFTLENBQUE7QUFDNUIsT0FBTyxLQUFLLENBQUMsTUFBTSxjQUFjLENBQUE7QUFFakMsTUFBTSxVQUFVLE9BQU8sQ0FBQyxNQUFxQjtJQUN6QyxNQUFNLFdBQVcsR0FBRyxjQUFjLENBQUMsTUFBTSxDQUFDLENBQUE7S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EVBQUUsQ0FBQyxDQUFDLE1BQU07SUFDZixJQUFJLEVBQUUsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsS0FBSyxDQUFDO0NBQzVCLENBQUE7QUFFRCxNQUFNLG1CQUFtQixHQUFtRDtJQUN4RSxPQUFPLEVBQUUsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsT0FBTyxDQUFDO0lBQzlCLE1BQU0sRUFBRSxDQUFDLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxPQUFPLENBQUM7SUFDN0IsTUFBTSxFQUFFLENBQUMsQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDLE9BQU8sQ0FBQztJQUM3QixNQUFNLEVBQUUsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsT0FBTyxDQUFDO0lBQzdCLE1BQU0sRUFBRSxDQUFDLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxPQUFPLENBQUM7SUFDN0IsTUFBTSxFQUFFLENBQUMsQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDLE9BQU8sQ0FBQztDQUNoQyxDQUFBO0FBQ0QsTUFBTSxzQkFBc0IsR0FBc0Q7SUFDOUUsTUFBTSxFQUFFLENBQUMsQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDLE9BQU8sQ0FBQztJQUM3QixTQUFTLEVBQUUsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsT0FBTyxDQUFDO0lBQ2hDLFFBQVEsRUFBRSxDQUFDLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxPQUFPLENBQUM7Q0FDbEMsQ0FBQSJ9\n// CONCATENATED MODULE: ../framework/esm/driver-guard.js\n\n\nfunction newDriverGuard(driver, errHandler) {\n const test = (obj, scheme, path) => {\n try {\n dist.validate(obj, scheme, path);\n }\n catch (err) {\n if (errHandler) {\n errHandler(err);\n }\n else {\n // tslint:disable-next-line:no-console\n console.warn(`Connex-Driver[MALFORMED RESPONSE]: ${err.message}`);\n }\n }\n return obj;\n };\n const genesis = test(driver.genesis, blockScheme, 'genesis');\n return {\n genesis,\n get head() {\n return test(driver.head, headScheme, 'head');\n },\n pollHead() {\n return driver.pollHead()\n .then(h => test(h, headScheme, 'getHead()'));\n },\n getBlock(revision) {\n return driver.getBlock(revision)\n .then(b => b ? test(b, blockScheme, 'getBlock()') : b);\n },\n getTransaction(id, allowPending) {\n return driver.getTransaction(id, allowPending)\n .then(tx => tx ? test(tx, txScheme, 'getTransaction()') : tx);\n },\n getReceipt(id) {\n return driver.getReceipt(id)\n .then(r => r ? test(r, receiptScheme, 'getReceipt()') : r);\n },\n getAccount(addr, revision) {\n return driver.getAccount(addr, revision)\n .then(a => test(a, {\n balance: hexString,\n energy: hexString,\n hasCode: bool\n }, 'getAccount()'));\n },\n getCode(addr, revision) {\n return driver.getCode(addr, revision)\n .then(c => test(c, {\n code: bytes\n }, 'getCode()'));\n },\n getStorage(addr, key, revision) {\n return driver.getStorage(addr, key, revision)\n .then(s => test(s, {\n value: bytes32\n }, 'getStorage()'));\n },\n explain(arg, revision) {\n return driver.explain(arg, revision)\n .then(r => test(r, [vmOutputScheme], 'explain()'));\n },\n filterEventLogs(arg) {\n return driver.filterEventLogs(arg)\n .then(r => test(r, [eventWithMetaScheme], 'filterEventLogs()'));\n },\n filterTransferLogs(arg) {\n return driver.filterTransferLogs(arg)\n .then(r => test(r, [transferWithMetaScheme], 'filterTransferLogs()'));\n },\n signTx(msg, options) {\n return driver.signTx(msg, options)\n .then(r => test(r, {\n txid: bytes32,\n signer: address\n }, 'signTx()'));\n },\n signCert(msg, options) {\n return driver.signCert(msg, options)\n .then(r => test(r, {\n annex: {\n domain: string,\n timestamp: uint64,\n signer: address\n },\n signature: v => isHexBytes(v, 65) ? '' : 'expected 65 bytes'\n }, 'signCert()'));\n }\n };\n}\nconst headScheme = {\n id: bytes32,\n number: uint32,\n timestamp: uint64,\n parentID: bytes32,\n txsFeatures: dist.optional(uint32),\n gasLimit: uint64\n};\nconst blockScheme = {\n id: bytes32,\n number: uint32,\n size: uint32,\n parentID: bytes32,\n timestamp: uint64,\n gasLimit: uint64,\n beneficiary: address,\n gasUsed: uint64,\n totalScore: uint64,\n txsRoot: bytes32,\n txsFeatures: dist.optional(uint32),\n stateRoot: bytes32,\n receiptsRoot: bytes32,\n signer: address,\n com: dist.optional(bool),\n isFinalized: dist.optional(bool),\n isTrunk: bool,\n transactions: [bytes32]\n};\nconst txScheme = {\n id: bytes32,\n chainTag: uint8,\n blockRef: bytes8,\n expiration: uint32,\n gasPriceCoef: uint8,\n gas: uint64,\n origin: address,\n delegator: dist.nullable(dist.optional(address)),\n nonce: hexString,\n dependsOn: dist.nullable(bytes32),\n size: uint32,\n clauses: [{\n to: dist.nullable(address),\n value: hexString,\n data: bytes\n }],\n meta: dist.nullable({\n blockID: bytes32,\n blockNumber: uint32,\n blockTimestamp: uint64\n })\n};\nconst logMetaScheme = {\n blockID: bytes32,\n blockNumber: uint32,\n blockTimestamp: uint64,\n txID: bytes32,\n txOrigin: address,\n clauseIndex: uint32\n};\nconst eventScheme = {\n address: address,\n topics: [bytes32],\n data: bytes,\n};\nconst eventWithMetaScheme = Object.assign(Object.assign({}, eventScheme), { meta: logMetaScheme });\nconst transferScheme = {\n sender: address,\n recipient: address,\n amount: hexString,\n};\nconst transferWithMetaScheme = Object.assign(Object.assign({}, transferScheme), { meta: logMetaScheme });\nconst receiptScheme = {\n gasUsed: uint64,\n gasPayer: address,\n paid: hexString,\n reward: hexString,\n reverted: bool,\n outputs: [{\n contractAddress: dist.nullable(address),\n events: [eventScheme],\n transfers: [transferScheme]\n }],\n meta: {\n blockID: bytes32,\n blockNumber: uint32,\n blockTimestamp: uint64,\n txID: bytes32,\n txOrigin: address\n }\n};\nconst vmOutputScheme = {\n data: bytes,\n vmError: string,\n gasUsed: uint64,\n reverted: bool,\n revertReason: () => '',\n events: [{\n address: address,\n topics: [bytes32],\n data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FBTztLQUN0QjtDQUNKLENBQUE7QUFFRCxNQUFNLGNBQWMsR0FBK0I7SUFDL0MsSUFBSSxFQUFFLENBQUMsQ0FBQyxLQUFLO0lBQ2IsT0FBTyxFQUFFLENBQUMsQ0FBQyxNQUFNO0lBQ2pCLE9BQU8sRUFBRSxDQUFDLENBQUMsTUFBTTtJQUNqQixRQUFRLEVBQUUsQ0FBQyxDQUFDLElBQUk7SUFDaEIsWUFBWSxFQUFFLEdBQUcsRUFBRSxDQUFDLEVBQUU7SUFDdEIsTUFBTSxFQUFFLENBQUM7WUFDTCxPQUFPLEVBQUUsQ0FBQyxDQUFDLE9BQU87WUFDbEIsTUFBTSxFQUFFLENBQUMsQ0FBQyxDQUFDLE9BQU8sQ0FBQztZQUNuQixJQUFJLEVBQUUsQ0FBQyxDQUFDLEtBQUs7U0FDaEIsQ0FBQztJQUNGLFNBQVMsRUFBRSxDQUFDO1lBQ1IsTUFBTSxFQUFFLENBQUMsQ0FBQyxPQUFPO1lBQ2pCLFNBQVMsRUFBRSxDQUFDLENBQUMsT0FBTztZQUNwQixNQUFNLEVBQUUsQ0FBQyxDQUFDLFNBQVM7U0FDdEIsQ0FBQztDQUNMLENBQUEifQ==\n// CONCATENATED MODULE: ../framework/esm/index.js\n\n\n\n/**\n * Class implements Connex interface\n */\nclass Framework {\n /**\n * constructor\n * @param driver the driver instance\n */\n constructor(driver) {\n this.thor = newThor(driver);\n this.vendor = newVendor(driver);\n }\n /**\n * create a wrapper for driver, to validate responses. it should be helpful to make sure driver is properly\n * implemented in development stage.\n * @param driver the driver to be wrapped\n * @param errorHandler optional error handler. If omitted, error message will be printed via console.warn.\n */\n static guardDriver(driver, errorHandler) {\n return newDriverGuard(driver, errorHandler);\n }\n}\n\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLFFBQVEsQ0FBQTtBQUNoQyxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sVUFBVSxDQUFBO0FBQ3BDLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQTtBQUUvQzs7R0FFRztBQUNILE1BQU0sT0FBTyxTQUFTO0lBaUJsQjs7O09BR0c7SUFDSCxZQUFZLE1BQXFCO1FBQzdCLElBQUksQ0FBQyxJQUFJLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFBO1FBQzNCLElBQUksQ0FBQyxNQUFNLEdBQUcsU0FBUyxDQUFDLE1BQU0sQ0FBQyxDQUFBO0lBQ25DLENBQUM7SUF2QkQ7Ozs7O09BS0c7SUFDSSxNQUFNLENBQUMsV0FBVyxDQUNyQixNQUFxQixFQUNyQixZQUFtQztRQUVuQyxPQUFPLGNBQWMsQ0FBQyxNQUFNLEVBQUUsWUFBWSxDQUFDLENBQUE7SUFDL0MsQ0FBQztDQWFKO0FBRUQsT0FBTyxFQUFFLFNBQVMsRUFBRSxDQUFBIn0=\n// CONCATENATED MODULE: ./esm/config.js\nconst genesisBlocks = {\n main: {\n number: 0,\n id: '0x00000000851caf3cfdb6e899cf5958bfb1ac3413d346d43539627e6be7ec1b4a',\n size: 170,\n parentID: '0xffffffff53616c757465202620526573706563742c20457468657265756d2100',\n timestamp: 1530316800,\n gasLimit: 10000000,\n beneficiary: '0x0000000000000000000000000000000000000000',\n gasUsed: 0,\n totalScore: 0,\n txsRoot: '0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0',\n txsFeatures: 0,\n stateRoot: '0x09bfdf9e24dd5cd5b63f3c1b5d58b97ff02ca0490214a021ed7d99b93867839c',\n receiptsRoot: '0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0',\n signer: '0x0000000000000000000000000000000000000000',\n isTrunk: true,\n transactions: []\n },\n test: {\n number: 0,\n id: '0x000000000b2bce3c70bc649a02749e8687721b09ed2e15997f466536b20bb127',\n size: 170,\n parentID: '0xffffffff00000000000000000000000000000000000000000000000000000000',\n timestamp: 1530014400,\n gasLimit: 10000000,\n beneficiary: '0x0000000000000000000000000000000000000000',\n gasUsed: 0,\n totalScore: 0,\n txsRoot: '0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0',\n txsFeatures: 0,\n stateRoot: '0x4ec3af0acbad1ae467ad569337d2fe8576fe303928d35b8cdd91de47e9ac84bb',\n receiptsRoot: '0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0',\n signer: '0x0000000000000000000000000000000000000000',\n isTrunk: true,\n transactions: []\n }\n};\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxhQUFhLEdBQUc7SUFDekIsSUFBSSxFQUFFO1FBQ0YsTUFBTSxFQUFFLENBQUM7UUFDVCxFQUFFLEVBQUUsb0VBQW9FO1FBQ3hFLElBQUksRUFBRSxHQUFHO1FBQ1QsUUFBUSxFQUFFLG9FQUFvRTtRQUM5RSxTQUFTLEVBQUUsVUFBVTtRQUNyQixRQUFRLEVBQUUsUUFBUTtRQUNsQixXQUFXLEVBQUUsNENBQTRDO1FBQ3pELE9BQU8sRUFBRSxDQUFDO1FBQ1YsVUFBVSxFQUFFLENBQUM7UUFDYixPQUFPLEVBQUUsb0VBQW9FO1FBQzdFLFdBQVcsRUFBRSxDQUFDO1FBQ2QsU0FBUyxFQUFFLG9FQUFvRTtRQUMvRSxZQUFZLEVBQUUsb0VBQW9FO1FBQ2xGLE1BQU0sRUFBRSw0Q0FBNEM7UUFDcEQsT0FBTyxFQUFFLElBQUk7UUFDYixZQUFZLEVBQUUsRUFBRTtLQUNuQjtJQUNELElBQUksRUFBRTtRQUNGLE1BQU0sRUFBRSxDQUFDO1FBQ1QsRUFBRSxFQUFFLG9FQUFvRTtRQUN4RSxJQUFJLEVBQUUsR0FBRztRQUNULFFBQVEsRUFBRSxvRUFBb0U7UUFDOUUsU0FBUyxFQUFFLFVBQVU7UUFDckIsUUFBUSxFQUFFLFFBQVE7UUFDbEIsV0FBVyxFQUFFLDRDQUE0QztRQUN6RCxPQUFPLEVBQUUsQ0FBQztRQUNWLFVBQVUsRUFBRSxDQUFDO1FBQ2IsT0FBTyxFQUFFLG9FQUFvRTtRQUM3RSxXQUFXLEVBQUUsQ0FBQztRQUNkLFNBQVMsRUFBRSxvRUFBb0U7UUFDL0UsWUFBWSxFQUFFLG9FQUFvRTtRQUNsRixNQUFNLEVBQUUsNENBQTRDO1FBQ3BELE9BQU8sRUFBRSxJQUFJO1FBQ2IsWUFBWSxFQUFFLEVBQUU7S0FDbkI7Q0FDSixDQUFBIn0=\n// EXTERNAL MODULE: ./node_modules/@vechain/ethers/utils/abi-coder.js\nvar utils_abi_coder = __webpack_require__(4795);\n// EXTERNAL MODULE: ./node_modules/js-sha3/src/sha3.js\nvar src_sha3 = __webpack_require__(1094);\n// CONCATENATED MODULE: ./node_modules/thor-devkit/esm/keccak.js\n/* provided dependency */ var keccak_Buffer = __webpack_require__(8764)[\"Buffer\"];\n\n/**\n * computes keccak256 hash of given data\n * @param data one or more Buffer | string\n */\nfunction keccak_keccak256(...data) {\n const h = src_sha3.keccak_256.create();\n data.forEach(d => {\n if (keccak_Buffer.isBuffer(d)) {\n h.update(d);\n }\n else {\n h.update(keccak_Buffer.from(d, 'utf8'));\n }\n });\n return keccak_Buffer.from(h.digest());\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2VjY2FrLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2tlY2Nhay50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sU0FBUyxDQUFBO0FBQ3BDOzs7R0FHRztBQUNILE1BQU0sVUFBVSxTQUFTLENBQUMsR0FBRyxJQUE0QjtJQUNyRCxNQUFNLENBQUMsR0FBRyxVQUFVLENBQUMsTUFBTSxFQUFFLENBQUE7SUFDN0IsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUMsRUFBRTtRQUNiLElBQUksTUFBTSxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsRUFBRTtZQUNwQixDQUFDLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFBO1NBQ2Q7YUFBTTtZQUNILENBQUMsQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDLEVBQUUsTUFBTSxDQUFDLENBQUMsQ0FBQTtTQUNuQztJQUNMLENBQUMsQ0FBQyxDQUFBO0lBQ0YsT0FBTyxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxDQUFBO0FBQ2xDLENBQUMifQ==\n// CONCATENATED MODULE: ./node_modules/thor-devkit/esm/abi.js\n/* provided dependency */ var esm_abi_Buffer = __webpack_require__(8764)[\"Buffer\"];\n\n\nclass abi_Coder extends utils_abi_coder.AbiCoder {\n constructor() {\n super((type, value) => {\n if ((type.match(/^u?int/) && !Array.isArray(value) && typeof value !== 'object') ||\n value._ethersType === 'BigNumber') {\n return value.toString();\n }\n return value;\n });\n }\n encode(types, values) {\n try {\n return super.encode(types, values);\n }\n catch (err) {\n if (err.reason) {\n throw new Error(err.reason);\n }\n throw err;\n }\n }\n decode(types, data) {\n try {\n return super.decode(types, data);\n }\n catch (err) {\n if (err.reason) {\n throw new Error(err.reason);\n }\n throw err;\n }\n }\n}\nconst esm_abi_coder = new abi_Coder();\nfunction abi_formatSignature(fragment) {\n try {\n return (0,utils_abi_coder.formatSignature)(fragment)\n .replace(/\\(tuple\\(/g, '((')\n .replace(/\\,tuple\\(/g, ',(');\n }\n catch (err) {\n if (err.reason) {\n throw new Error(err.reason);\n }\n throw err;\n }\n}\n/** encode/decode parameters of contract function call, event log, according to ABI JSON */\nvar abi_abi;\n(function (abi) {\n /**\n * encode single parameter\n * @param type type of the parameter\n * @param value value of the parameter\n * @returns encoded value in hex string\n */\n function encodeParameter(type, value) {\n return esm_abi_coder.encode([type], [value]);\n }\n abi.encodeParameter = encodeParameter;\n /**\n * decode single parameter\n * @param type type of the parameter\n * @param data encoded parameter in hex string\n * @returns decoded value\n */\n function decodeParameter(type, data) {\n return esm_abi_coder.decode([type], data)[0];\n }\n abi.decodeParameter = decodeParameter;\n /**\n * encode a group of parameters\n * @param types type array\n * @param values value array\n * @returns encoded values in hex string\n */\n function encodeParameters(types, values) {\n return esm_abi_coder.encode(types, values);\n }\n abi.encodeParameters = encodeParameters;\n /**\n * decode a group of parameters\n * @param types type array\n * @param data encoded values in hex string\n * @returns decoded object\n */\n function decodeParameters(types, data) {\n const result = esm_abi_coder.decode(types, data);\n const decoded = {};\n types.forEach((t, i) => {\n decoded[i] = result[i];\n if (t.name) {\n decoded[t.name] = result[i];\n }\n });\n return decoded;\n }\n abi.decodeParameters = decodeParameters;\n /** for contract function */\n class Function {\n /**\n * create a function object\n * @param definition abi definition of the function\n */\n constructor(definition) {\n this.definition = definition;\n this.canonicalName = abi_formatSignature(definition);\n this.signature = '0x' + keccak_keccak256(this.canonicalName).slice(0, 4).toString('hex');\n }\n /**\n * encode input parameters into call data\n * @param args arguments for the function\n */\n encode(...args) {\n return this.signature + encodeParameters(this.definition.inputs, args).slice(2);\n }\n /**\n * decode output data\n * @param outputData output data to decode\n */\n decode(outputData) {\n return decodeParameters(this.definition.outputs, outputData);\n }\n }\n abi.Function = Function;\n /** for contract event */\n class Event {\n /** for contract event */\n constructor(definition) {\n this.definition = definition;\n this.canonicalName = abi_formatSignature(definition);\n this.signature = '0x' + keccak_keccak256(this.canonicalName).toString('hex');\n }\n /**\n * encode an object of indexed keys into topics.\n * @param indexed an object contains indexed keys\n */\n encode(indexed) {\n const topics = [];\n if (!this.definition.anonymous) {\n topics.push(this.signature);\n }\n for (const input of this.definition.inputs) {\n if (!input.indexed) {\n continue;\n }\n const value = indexed[input.name];\n if (value === undefined || value === null) {\n topics.push(null);\n }\n else {\n let topic;\n // https://docs.soliditylang.org/en/v0.8.11/abi-spec.html#encoding-of-indexed-event-parameters\n if (isValueType(input.type)) {\n topic = encodeParameter(input.type, value);\n }\n else {\n if (input.type === 'string') {\n topic = '0x' + keccak_keccak256(value).toString('hex');\n }\n else if (typeof value === 'string' && /^0x[0-9a-f]+$/i.test(value) && value.length % 2 === 0) {\n // value is encoded\n topic = '0x' + keccak_keccak256(esm_abi_Buffer.from(value.slice(2), 'hex')).toString('hex');\n }\n else {\n throw new Error(`event.encode: invalid ${input.type} value`);\n }\n }\n topics.push(topic);\n }\n }\n return topics;\n }\n /**\n * decode event log\n * @param data data in event output\n * @param topics topics in event\n */\n decode(data, topics) {\n if (!this.definition.anonymous) {\n topics = topics.slice(1);\n }\n if (this.definition.inputs.filter(t => t.indexed).length !== topics.length) {\n throw new Error('invalid topics count');\n }\n const decodedNonIndexed = esm_abi_coder.decode(this.definition.inputs.filter(t => !t.indexed), data);\n const decoded = {};\n this.definition.inputs.forEach((t, i) => {\n if (t.indexed) {\n const topic = topics.shift();\n decoded[i] = isValueType(t.type) ? decodeParameter(t.type, topic) : topic;\n }\n else {\n decoded[i] = decodedNonIndexed.shift();\n }\n if (t.name) {\n decoded[t.name] = decoded[i];\n }\n });\n return decoded;\n }\n }\n abi.Event = Event;\n function isValueType(type) {\n return type === 'address' || type === 'bool' || /^(u?int)([0-9]*)$/.test(type) || /^bytes([0-9]+)$/.test(type);\n }\n})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BQU0sSUFBSSxtQkFBbUIsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLElBQUksaUJBQWlCLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxDQUFBO0lBQ2xILENBQUM7QUFDTCxDQUFDLEVBbE5nQixHQUFHLEtBQUgsR0FBRyxRQWtObkIifQ==\n// EXTERNAL MODULE: ../framework/dist/rules.js\nvar rules = __webpack_require__(2253);\n// CONCATENATED MODULE: ./esm/compat.js\nvar compat_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\n\n/** ports connex v1 to connex v2 */\nfunction compat1(connex1) {\n const t1 = connex1.thor;\n const v1 = connex1.vendor;\n return {\n get thor() {\n const t2 = {\n get genesis() { return t1.genesis; },\n get status() {\n const s = t1.status;\n return Object.assign(Object.assign({}, s), { head: Object.assign(Object.assign({}, s.head), { gasLimit: 20000000 }), finalized: '0000000000000000000000000000000000000000000000000000000000000000' });\n },\n ticker: () => {\n const t = t1.ticker();\n return {\n next: () => t.next().then(h => (Object.assign(Object.assign({}, h), { gasLimit: 20000000 })))\n };\n },\n account: addr => {\n const a1 = t1.account(addr);\n return {\n get address() { return a1.address; },\n get: () => a1.get(),\n getCode: () => a1.getCode(),\n getStorage: key => a1.getStorage(key),\n method: jsonABI => compat_newMethod(a1, jsonABI, this),\n event: jsonABI => compat_newEvent(a1, jsonABI, this)\n };\n },\n block: rev => t1.block(rev),\n transaction: id => t1.transaction(id),\n filter: (kind, criteria) => {\n const f1 = t1.filter(kind);\n f1.criteria(criteria);\n return {\n range(r) { f1.range(r); return this; },\n order(o) { f1.order(o); return this; },\n cache() { console.warn('filter :cache is not supported in compat mode'); return this; },\n apply(offset, limit) {\n return f1.apply(offset, limit);\n }\n };\n },\n explain: (clauses) => {\n const e1 = t1.explain();\n return {\n caller(addr) { e1.caller(addr); return this; },\n gas(gas) { e1.gas(gas); return this; },\n gasPrice(gp) { e1.gasPrice(gp); return this; },\n gasPayer(addr) { console.warn(\"gasPayer is not supported in compat mode\"); return this; },\n cache() { console.warn('explainer :cache is not supported in compat mode'); return this; },\n execute: () => e1.execute(clauses)\n };\n }\n };\n return t2;\n },\n get vendor() {\n return {\n sign: (kind, msg) => {\n let onAccepted;\n if (kind === 'tx') {\n const s1 = v1.sign(kind);\n const s2 = {\n signer(addr) { s1.signer(addr); return this; },\n gas(gas) { s1.gas(gas); return this; },\n dependsOn(txid) { s1.dependsOn(txid); return this; },\n link(url) { s1.link(url); return this; },\n comment(text) { s1.comment(text); return this; },\n delegate(url) {\n rules/* ensure */.zx(typeof url === 'string', `arg0: expected url string`);\n s1.delegate((unsignedTx) => compat_awaiter(this, void 0, void 0, function* () {\n const res = yield fetch(url, {\n method: 'POST',\n body: JSON.stringify(unsignedTx),\n headers: {\n \"Content-Type\": 'application/json'\n }\n });\n return res.json();\n }));\n return this;\n },\n accepted(cb) { onAccepted = cb; return this; },\n request: () => {\n onAccepted && onAccepted();\n return s1.request(msg);\n }\n };\n return s2;\n }\n else {\n const s1 = v1.sign(kind);\n const s2 = {\n signer(addr) { s1.signer(addr); return this; },\n link(url) { s1.link(url); return this; },\n accepted(cb) {\n onAccepted = cb;\n return this;\n },\n request: () => {\n onAccepted && onAccepted();\n return s1.request(msg);\n }\n };\n return s2;\n }\n }\n };\n }\n };\n}\nconst compat_newMethod = (acc, jsonABI, connex) => {\n const coder = new abi_abi.Function(JSON.parse(JSON.stringify(jsonABI)));\n let value = 0;\n const opts = {};\n return {\n value(val) {\n value = rules/* test */.Bu(val, rules/* bigInt */.Kw, 'arg0');\n return this;\n },\n caller(addr) {\n opts.caller = rules/* test */.Bu(addr, rules/* address */.Lk, 'arg0').toLowerCase();\n return this;\n },\n gas(gas) {\n opts.gas = rules/* test */.Bu(gas, rules/* uint64 */.H9, 'arg0');\n return this;\n },\n gasPrice(gp) {\n opts.gasPrice = rules/* test */.Bu(gp, rules/* bigInt */.Kw, 'arg0').toString().toLowerCase();\n return this;\n },\n gasPayer(addr) { console.warn(\"gasPayer is not supported in compat mode\"); return this; },\n cache(hints) { console.warn(\"account.method :cache is not supported in compat mode\"); return this; },\n asClause: (...args) => {\n const inputsLen = (coder.definition.inputs || []).length;\n rules/* ensure */.zx(inputsLen === args.length, `args count expected ${inputsLen}`);\n try {\n const data = coder.encode(...args);\n return {\n to: acc.address,\n value: value.toString().toLowerCase(),\n data\n };\n }\n catch (err) {\n throw new rules/* BadParameter */.F8(`args can not be encoded (${err.message})`);\n }\n },\n call(...args) {\n const clause = this.asClause(...args);\n const explainer = connex.thor.explain([clause]);\n if (opts.caller)\n explainer.caller(opts.caller);\n if (opts.gas)\n explainer.gas(opts.gas);\n if (opts.gasPrice)\n explainer.gasPrice(opts.gasPrice);\n return explainer.execute().then(outputs => {\n const out = Object.assign(Object.assign({}, outputs[0]), { decoded: {} });\n if (!out.reverted && out.data !== '0x') {\n out.decoded = coder.decode(out.data);\n }\n return out;\n });\n },\n transact(...args) {\n const clause = this.asClause(...args);\n return connex.vendor.sign('tx', [clause]);\n }\n };\n};\nconst compat_newEvent = (acc, jsonABI, connex) => {\n const coder = new abi_abi.Event(JSON.parse(JSON.stringify(jsonABI)));\n const encode = (indexed) => {\n const topics = coder.encode(indexed);\n return {\n address: acc.address,\n topic0: topics[0] || undefined,\n topic1: topics[1] || undefined,\n topic2: topics[2] || undefined,\n topic3: topics[3] || undefined,\n topic4: topics[4] || undefined\n };\n };\n return {\n asCriteria: indexed => {\n try {\n return encode(indexed);\n }\n catch (err) {\n throw new rules/* BadParameter */.F8(`arg0: can not be encoded (${err.message})`);\n }\n },\n filter(indexed) {\n rules/* test */.Bu(indexed, [{}], 'arg0');\n if (indexed.length === 0) {\n indexed = [{}];\n }\n const criteriaSet = indexed.map((o, i) => {\n try {\n return encode(o);\n }\n catch (err) {\n throw new rules/* BadParameter */.F8(`arg0.#${i}: can not be encoded (${err.message})`);\n }\n });\n const filter = connex.thor.filter('event', criteriaSet);\n return {\n range(r) { filter.range(r); return this; },\n order(o) { filter.order(o); return this; },\n cache() { console.warn('account.event :cache is not supported in compat mode'); return this; },\n apply(offset, limit) {\n return filter.apply(offset, limit).then(events => events.map(e => {\n const event = Object.assign(Object.assign({}, e), { decoded: {} });\n event.decoded = coder.decode(event.data, event.topics);\n return event;\n }));\n }\n };\n }\n };\n};\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGF0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NvbXBhdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSxPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0sYUFBYSxDQUFBO0FBQ2pDLE9BQU8sS0FBSyxDQUFDLE1BQU0sc0NBQXNDLENBQUE7QUFFekQsbUNBQW1DO0FBQ25DLE1BQU0sVUFBVSxPQUFPLENBQUMsT0FBZ0I7SUFDcEMsTUFBTSxFQUFFLEdBQUcsT0FBTyxDQUFDLElBQUksQ0FBQTtJQUN2QixNQUFNLEVBQUUsR0FBRyxPQUFPLENBQUMsTUFBTSxDQUFBO0lBQ3pCLE9BQU87UUFDSCxJQUFJLElBQUk7WUFDSixNQUFNLEVBQUUsR0FBZ0I7Z0JBQ3BCLElBQUksT0FBTyxLQUFLLE9BQU8sRUFBRSxDQUFDLE9BQU8sQ0FBQSxDQUFDLENBQUM7Z0JBQ25DLElBQUksTUFBTTtvQkFDTixNQUFNLENBQUMsR0FBRyxFQUFFLENBQUMsTUFBTSxDQUFBO29CQUNuQix1Q0FD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UFDLENBQUE7WUFDdkQsT0FBTztnQkFDSCxLQUFLLENBQUMsQ0FBQyxJQUFJLE1BQU0sQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxPQUFPLElBQUksQ0FBQSxDQUFDLENBQUM7Z0JBQ3pDLEtBQUssQ0FBQyxDQUFDLElBQUksTUFBTSxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLE9BQU8sSUFBSSxDQUFBLENBQUMsQ0FBQztnQkFDekMsS0FBSyxLQUFLLE9BQU8sQ0FBQyxJQUFJLENBQUMsc0RBQXNELENBQUMsQ0FBQyxDQUFDLE9BQU8sSUFBSSxDQUFBLENBQUMsQ0FBQztnQkFDN0YsS0FBSyxDQUFDLE1BQU0sRUFBRSxLQUFLO29CQUNmLE9BQU8sTUFBTSxDQUFDLEtBQUssQ0FBQyxNQUFNLEVBQUUsS0FBSyxDQUFDLENBQUMsSUFBSSxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUMsTUFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsRUFBRTt3QkFDN0QsTUFBTSxLQUFLLG1DQUF5RSxDQUFDLEtBQUUsT0FBTyxFQUFFLEVBQUUsR0FBQyxDQUFBO3dCQUNuRyxLQUFLLENBQUMsT0FBTyxHQUFHLEtBQUssQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDLElBQUksRUFBRSxLQUFLLENBQUMsTUFBTSxDQUFDLENBQUE7d0JBQ3RELE9BQU8sS0FBSyxDQUFBO29CQUNoQixDQUFDLENBQUMsQ0FBQyxDQUFBO2dCQUNQLENBQUM7YUFDSixDQUFBO1FBQ0wsQ0FBQztLQUNKLENBQUE7QUFDTCxDQUFDLENBQUEifQ==\n// CONCATENATED MODULE: ../driver/esm/promint.js\n/** class to make promise interruptable */\nclass PromInt {\n constructor() {\n this.rejectors = new Set();\n }\n /**\n * interrupt all wrapped promises\n */\n interrupt() {\n const rejectors = this.rejectors;\n this.rejectors = new Set();\n rejectors.forEach(r => r(new InterruptedError()));\n }\n /**\n * wrap the promise\n * @param p the given promise\n * @returns the wrapped promise which will raise InterruptedError on interruption\n */\n wrap(p) {\n return new Promise((resolve, reject) => {\n const rejectors = this.rejectors;\n rejectors.add(reject);\n void p.then(resolve)\n .catch(reject)\n .then(() => rejectors.delete(reject));\n });\n }\n}\nclass InterruptedError extends Error {\n constructor() {\n super('promise interrupted');\n }\n}\nInterruptedError.prototype.name = 'InterruptedError';\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvbWludC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9wcm9taW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLDBDQUEwQztBQUMxQyxNQUFNLE9BQU8sT0FBTztJQUFwQjtRQUNZLGNBQVMsR0FBRyxJQUFJLEdBQUcsRUFBd0IsQ0FBQTtJQTJCdkQsQ0FBQztJQXpCRzs7T0FFRztJQUNJLFNBQVM7UUFDWixNQUFNLFNBQVMsR0FBRyxJQUFJLENBQUMsU0FBUyxDQUFBO1FBQ2hDLElBQUksQ0FBQyxTQUFTLEdBQUcsSUFBSSxHQUFHLEVBQUUsQ0FBQTtRQUUxQixTQUFTLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLElBQUksZ0JBQWdCLEVBQUUsQ0FBQyxDQUFDLENBQUE7SUFDckQsQ0FBQztJQUVEOzs7O09BSUc7SUFDSSxJQUFJLENBQUksQ0FBYTtRQUN4QixPQUFPLElBQUksT0FBTyxDQUFJLENBQUMsT0FBTyxFQUFFLE1BQU0sRUFBRSxFQUFFO1lBQ3RDLE1BQU0sU0FBUyxHQUFHLElBQUksQ0FBQyxTQUFTLENBQUE7WUFDaEMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxNQUFNLENBQUMsQ0FBQTtZQUVyQixLQUFLLENBQUMsQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO2lCQUNmLEtBQUssQ0FBQyxNQUFNLENBQUM7aUJBQ2IsSUFBSSxDQUFDLEdBQUcsRUFBRSxDQUFDLFNBQVMsQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQTtRQUM3QyxDQUFDLENBQUMsQ0FBQTtJQUNOLENBQUM7Q0FDSjtBQUVELE1BQU0sT0FBTyxnQkFBaUIsU0FBUSxLQUFLO0lBQ3ZDO1FBQ0ksS0FBSyxDQUFDLHFCQUFxQixDQUFDLENBQUE7SUFDaEMsQ0FBQztDQUNKO0FBRUQsZ0JBQWdCLENBQUMsU0FBUyxDQUFDLElBQUksR0FBRyxrQkFBa0IsQ0FBQSJ9\n// EXTERNAL MODULE: ../driver/node_modules/lru-cache/index.js\nvar lru_cache = __webpack_require__(9992);\n// EXTERNAL MODULE: ../driver/node_modules/bignumber.js/bignumber.js\nvar bignumber_js_bignumber = __webpack_require__(4491);\nvar bignumber_js_bignumber_default = /*#__PURE__*/__webpack_require__.n(bignumber_js_bignumber);\n\n// CONCATENATED MODULE: ../driver/node_modules/thor-devkit/esm/blake2b.js\n/* provided dependency */ var blake2b_Buffer = __webpack_require__(8764)[\"Buffer\"];\nconst blake = __webpack_require__(1161);\n/**\n * computes blake2b 256bit hash of given data\n * @param data one or more Buffer | string\n */\nfunction blake2b256(...data) {\n const ctx = blake.blake2bInit(32, null);\n data.forEach(d => {\n if (blake2b_Buffer.isBuffer(d)) {\n blake.blake2bUpdate(ctx, d);\n }\n else {\n blake.blake2bUpdate(ctx, blake2b_Buffer.from(d, 'utf8'));\n }\n });\n return blake2b_Buffer.from(blake.blake2bFinal(ctx));\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxha2UyYi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9ibGFrZTJiLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sS0FBSyxHQUFHLE9BQU8sQ0FBQyxTQUFTLENBQUMsQ0FBQTtBQUVoQzs7O0dBR0c7QUFDSCxNQUFNLFVBQVUsVUFBVSxDQUFDLEdBQUcsSUFBNEI7SUFDdEQsTUFBTSxHQUFHLEdBQUcsS0FBSyxDQUFDLFdBQVcsQ0FBQyxFQUFFLEVBQUUsSUFBSSxDQUFDLENBQUE7SUFDdkMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUMsRUFBRTtRQUNiLElBQUksTUFBTSxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsRUFBRTtZQUNwQixLQUFLLENBQUMsYUFBYSxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsQ0FBQTtTQUM5QjthQUFNO1lBQ0gsS0FBSyxDQUFDLGFBQWEsQ0FBQyxHQUFHLEVBQUUsTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDLEVBQUUsTUFBTSxDQUFDLENBQUMsQ0FBQTtTQUNuRDtJQUNMLENBQUMsQ0FBQyxDQUFBO0lBQ0YsT0FBTyxNQUFNLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxZQUFZLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQTtBQUMvQyxDQUFDIn0=\n// CONCATENATED MODULE: ../driver/esm/bloom.js\n\nfunction bloom_newFilter(bits, k) {\n const nBits = bits.length * 8;\n return {\n contains(key) {\n let hash = blake2b256(key).readUInt32BE(0);\n const delta = (hash >>> 17) | (hash << 15 >>> 0);\n for (let i = 0; i < k; i++) {\n const bitPos = hash % nBits;\n const index = bitPos >>> 3;\n const bit = 1 << (bitPos % 8);\n if (!(bits[index] & bit)) {\n return false;\n }\n hash = (hash + delta) >>> 0;\n }\n return true;\n }\n };\n}\n// // test vector\n// const bits = Buffer.from('63b2a4758c74e246c818e080b870437f5327a15cf81172512d98e61c54361a851ba8f108420e6b2b74a4196fb8e7bfe2b96c985e49abddb21c0600063997c93edb7c54921551600bcfc80fb62bfcd045c030b328eb8b5498e06dce610d22e901201226226441b8da094141526e0e58f5baf53064d63d598a4024bf68e0', 'hex')\n// const f = newFilter(bits, 6)\n// for (let i = 0; i < 100; i++) {\n// if (!f.contains(Buffer.from(i + ''))) {\n// throw new Error('should return true')\n// }\n// }\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxvb20uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvYmxvb20udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGFBQWEsQ0FBQTtBQUV4QyxNQUFNLFVBQVUsU0FBUyxDQUFDLElBQVksRUFBRSxDQUFTO0lBQzdDLE1BQU0sS0FBSyxHQUFHLElBQUksQ0FBQyxNQUFNLEdBQUcsQ0FBQyxDQUFBO0lBQzdCLE9BQU87UUFDSCxRQUFRLENBQUMsR0FBVztZQUNoQixJQUFJLElBQUksR0FBRyxVQUFVLENBQUMsR0FBRyxDQUFDLENBQUMsWUFBWSxDQUFDLENBQUMsQ0FBQyxDQUFBO1lBQzFDLE1BQU0sS0FBSyxHQUFHLENBQUMsSUFBSSxLQUFLLEVBQUUsQ0FBQyxHQUFHLENBQUMsSUFBSSxJQUFJLEVBQUUsS0FBSyxDQUFDLENBQUMsQ0FBQTtZQUNoRCxLQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsRUFBRSxFQUFFO2dCQUN4QixNQUFNLE1BQU0sR0FBRyxJQUFJLEdBQUcsS0FBSyxDQUFBO2dCQUMzQixNQUFNLEtBQUssR0FBRyxNQUFNLEtBQUssQ0FBQyxDQUFBO2dCQUMxQixNQUFNLEdBQUcsR0FBRyxDQUFDLElBQUksQ0FBQyxNQUFNLEdBQUcsQ0FBQyxDQUFDLENBQUE7Z0JBQzdCLElBQUksQ0FBQyxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsR0FBRyxHQUFHLENBQUMsRUFBRTtvQkFDdEIsT0FBTyxLQUFLLENBQUE7aUJBQ2Y7Z0JBQ0QsSUFBSSxHQUFHLENBQUMsSUFBSSxHQUFHLEtBQUssQ0FBQyxLQUFLLENBQUMsQ0FBQTthQUM5QjtZQUNELE9BQU8sSUFBSSxDQUFBO1FBQ2YsQ0FBQztLQUNKLENBQUE7QUFDTCxDQUFDO0FBQ0QsaUJBQWlCO0FBQ2pCLGdTQUFnUztBQUNoUywrQkFBK0I7QUFDL0Isa0NBQWtDO0FBQ2xDLDhDQUE4QztBQUM5QyxnREFBZ0Q7QUFDaEQsUUFBUTtBQUNSLElBQUkifQ==\n// CONCATENATED MODULE: ../driver/esm/cache.js\n/* provided dependency */ var cache_Buffer = __webpack_require__(8764)[\"Buffer\"];\nvar cache_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\n\n\nconst WINDOW_LEN = 12;\nclass Cache {\n constructor() {\n this.irreversible = {\n blocks: new lru_cache(256),\n txs: new lru_cache(512),\n receipts: new lru_cache(512)\n };\n this.window = [];\n }\n handleNewBlock(head, bloom, block) {\n while (this.window.length > 0) {\n const top = this.window[this.window.length - 1];\n if (top.id === head.id) {\n return;\n }\n if (top.id === head.parentID) {\n break;\n }\n this.window.pop();\n }\n this.window.push(Object.assign(Object.assign({}, head), { bloom: bloom ? bloom_newFilter(cache_Buffer.from(bloom.bits.slice(2), 'hex'), bloom.k) : undefined, block, accounts: new Map(), txs: new Map(), receipts: new Map(), tied: new Map() }));\n // shift out old slots and move cached items into frozen cache\n while (this.window.length > WINDOW_LEN) {\n const bottom = this.window.shift();\n bottom.txs.forEach((v, k) => this.irreversible.txs.set(k, v));\n bottom.receipts.forEach((v, k) => this.irreversible.receipts.set(k, v));\n if (bottom.block) {\n this.irreversible.blocks.set(bottom.block.id, bottom.block);\n this.irreversible.blocks.set(bottom.block.number, bottom.block);\n }\n }\n }\n getBlock(revision, fetch) {\n return cache_awaiter(this, void 0, void 0, function* () {\n let block = this.irreversible.blocks.get(revision) || null;\n if (block) {\n return block;\n }\n const { slot } = this.findSlot(revision);\n if (slot && slot.block) {\n return slot.block;\n }\n block = yield fetch();\n if (block) {\n if (slot && slot.id === block.id) {\n slot.block = block;\n }\n if (this.isIrreversible(block.number)) {\n this.irreversible.blocks.set(block.id, block);\n if (block.isTrunk) {\n this.irreversible.blocks.set(block.number, block);\n }\n }\n }\n return block;\n });\n }\n getTx(txid, fetch) {\n return cache_awaiter(this, void 0, void 0, function* () {\n let tx = this.irreversible.txs.get(txid) || null;\n if (tx) {\n return tx;\n }\n for (const slot of this.window) {\n tx = slot.txs.get(txid) || null;\n if (tx) {\n return tx;\n }\n }\n tx = yield fetch();\n if (tx && tx.meta) { // only cache non-pending tx\n const { slot } = this.findSlot(tx.meta.blockID);\n if (slot) {\n slot.txs.set(txid, tx);\n }\n if (this.isIrreversible(tx.meta.blockNumber)) {\n this.irreversible.txs.set(txid, tx);\n }\n }\n return tx;\n });\n }\n getReceipt(txid, fetch) {\n return cache_awaiter(this, void 0, void 0, function* () {\n let receipt = this.irreversible.receipts.get(txid) || null;\n if (receipt) {\n return receipt;\n }\n for (const slot of this.window) {\n receipt = slot.receipts.get(txid) || null;\n if (receipt) {\n return receipt;\n }\n }\n receipt = yield fetch();\n if (receipt) {\n const { slot } = this.findSlot(receipt.meta.blockID);\n if (slot) {\n slot.receipts.set(txid, receipt);\n }\n if (this.isIrreversible(receipt.meta.blockNumber)) {\n this.irreversible.receipts.set(txid, receipt);\n }\n }\n return receipt;\n });\n }\n getAccount(addr, revision, fetch) {\n return cache_awaiter(this, void 0, void 0, function* () {\n const found = this.findSlot(revision);\n for (let i = found.index; i >= 0; i--) {\n const slot = this.window[i];\n const acc = slot.accounts.get(addr);\n if (acc) {\n if (i !== found.index) {\n found.slot.accounts.set(addr, acc);\n }\n return acc.snapshot(found.slot.timestamp);\n }\n if (!slot.bloom || testBytesHex(slot.bloom, addr)) {\n // account might be dirty\n break;\n }\n }\n const accObj = yield fetch();\n if (found.slot) {\n found.slot.accounts.set(addr, new Account(accObj, found.slot.timestamp));\n }\n return accObj;\n });\n }\n /**\n * get cached entry which is tied to a batch of addresses\n * @param key the cache key\n * @param revision block id where cache bound to\n * @param fetch to fetch value when cache missing\n * @param hints array of tied addresses, as the gist to invalidate cache key. undefined means the key is always\n * invalidated on different revision.\n */\n getTied(key, revision, fetch, hints) {\n return cache_awaiter(this, void 0, void 0, function* () {\n const found = this.findSlot(revision);\n for (let i = found.index; i >= 0; i--) {\n const slot = this.window[i];\n const v = slot.tied.get(key);\n if (v) {\n if (i !== found.index) {\n found.slot.tied.set(key, v);\n }\n return v;\n }\n if (!slot.bloom || !hints) {\n break;\n }\n // if hints.length === 0, never invalidate cache\n if (hints.some(t => testBytesHex(slot.bloom, t))) {\n // might be dirty\n break;\n }\n }\n const value = yield fetch();\n if (found.slot) {\n found.slot.tied.set(key, value);\n }\n return value;\n });\n }\n findSlot(revision) {\n const index = this.window.findIndex(s => s.id === revision || s.number === revision);\n if (index >= 0) {\n return { slot: this.window[index], index };\n }\n return { index };\n }\n isIrreversible(n) {\n if (this.window.length > 0) {\n return n < this.window[this.window.length - 1].number - WINDOW_LEN;\n }\n return false;\n }\n}\nfunction testBytesHex(filter, hex) {\n let buf = cache_Buffer.from(hex.slice(2), 'hex');\n const nzIndex = buf.findIndex(v => v !== 0);\n if (nzIndex < 0) {\n buf = cache_Buffer.alloc(0);\n }\n else {\n buf = buf.slice(nzIndex);\n }\n return filter.contains(buf);\n}\nconst ENERGY_GROWTH_RATE = 5000000000;\nclass Account {\n constructor(obj, initTimestamp) {\n this.obj = obj;\n this.initTimestamp = initTimestamp;\n }\n snapshot(timestamp) {\n return Object.assign(Object.assign({}, this.obj), { energy: this.energyAt(timestamp) });\n }\n energyAt(timestamp) {\n if (timestamp < this.initTimestamp) {\n return this.obj.energy;\n }\n return '0x' + new (bignumber_js_bignumber_default())(this.obj.balance)\n .times(timestamp - this.initTimestamp)\n .times(ENERGY_GROWTH_RATE)\n .dividedToIntegerBy(1e18)\n .plus(this.obj.energy)\n .toString(16);\n }\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FjaGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvY2FjaGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQUEsT0FBTyxLQUFLLEdBQUcsTUFBTSxXQUFXLENBQUE7QUFDaEMsT0FBTyxTQUFTLE1BQU0sY0FBYyxDQUFBO0FBQ3BDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxTQUFTLENBQUE7QUFFbkMsTUFBTSxVQUFVLEdBQUcsRUFBRSxDQUFBO0FBWXJCLE1BQU0sT0FBTyxLQUFLO0lBQWxCO1FBQ3FCLGlCQUFZLEdBQUc7WUFDNUIsTUFBTSxFQUFFLElBQUksR0FBRyxDQUFxQyxHQUFHLENBQUM7WUFDeEQsR0FBRyxFQUFFLElBQUksR0FBRyxDQUFrQyxHQUFHLENBQUM7WUFDbEQsUUFBUSxFQUFFLElBQUksR0FBRyxDQUEwQyxHQUFHLENBQUM7U0FDbEUsQ0FBQTtRQUNnQixXQUFNLEdBQVcsRUFBRSxDQUFBO0lBc054QyxDQUFDO0lBcE5VLGNBQWMsQ0FDakIsSUFBZ0MsRUFDaEMsS0FB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ODULE: ../driver/esm/common.js\nfunction sleep(ms) {\n return new Promise(resolve => setTimeout(resolve, ms));\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NvbW1vbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxNQUFNLFVBQVUsS0FBSyxDQUFDLEVBQVU7SUFDNUIsT0FBTyxJQUFJLE9BQU8sQ0FBQyxPQUFPLENBQUMsRUFBRSxDQUFDLFVBQVUsQ0FBQyxPQUFPLEVBQUUsRUFBRSxDQUFDLENBQUMsQ0FBQTtBQUMxRCxDQUFDIn0=\n// CONCATENATED MODULE: ../driver/esm/driver-no-vendor.js\nvar driver_no_vendor_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\n\n\n\n/** class implements Connex.Driver leaves out Vendor related methods */\nclass DriverNoVendor {\n constructor(net, genesis, initialHead) {\n this.net = net;\n this.genesis = genesis;\n this.headResolvers = [];\n this.int = new PromInt();\n this.cache = new Cache();\n // to merge concurrent identical remote requests\n this.pendingRequests = {};\n if (initialHead) {\n this.head = initialHead;\n }\n else {\n this.head = {\n id: genesis.id,\n number: genesis.number,\n timestamp: genesis.timestamp,\n parentID: genesis.parentID,\n txsFeatures: genesis.txsFeatures,\n gasLimit: genesis.gasLimit\n };\n }\n void this.headTrackerLoop();\n }\n // close the driver to prevent mem leak\n close() {\n this.int.interrupt();\n }\n // implementations\n pollHead() {\n return this.int.wrap(new Promise(resolve => {\n this.headResolvers.push(() => resolve(this.head));\n }));\n }\n getBlock(revision) {\n return this.cache.getBlock(revision, () => this.httpGet(`blocks/${revision}`));\n }\n getTransaction(id, allowPending) {\n return this.cache.getTx(id, () => {\n const query = { head: this.head.id };\n if (allowPending) {\n query.pending = 'true';\n }\n return this.httpGet(`transactions/${id}`, query);\n });\n }\n getReceipt(id) {\n return this.cache.getReceipt(id, () => this.httpGet(`transactions/${id}/receipt`, { head: this.head.id }));\n }\n getAccount(addr, revision) {\n return this.cache.getAccount(addr, revision, () => this.httpGet(`accounts/${addr}`, { revision }));\n }\n getCode(addr, revision) {\n return this.cache.getTied(`code-${addr}`, revision, () => this.httpGet(`accounts/${addr}/code`, { revision }));\n }\n getStorage(addr, key, revision) {\n return this.cache.getTied(`storage-${addr}-${key}`, revision, () => this.httpGet(`accounts/${addr}/storage/${key}`, { revision }));\n }\n explain(arg, revision, cacheHints) {\n const cacheKey = `explain-${blake2b256(JSON.stringify(arg)).toString('hex')}`;\n return this.cache.getTied(cacheKey, revision, () => this.httpPost('accounts/*', arg, { revision }), cacheHints);\n }\n filterEventLogs(arg, cacheHints) {\n const cacheKey = `event-${blake2b256(JSON.stringify(arg)).toString('hex')}`;\n return this.cache.getTied(cacheKey, this.head.id, () => this.httpPost('logs/event', arg), cacheHints);\n }\n filterTransferLogs(arg, cacheHints) {\n const cacheKey = `transfer-${blake2b256(JSON.stringify(arg)).toString('hex')}`;\n return this.cache.getTied(cacheKey, this.head.id, () => this.httpPost('logs/transfer', arg), cacheHints);\n }\n signTx(msg, options) {\n throw new Error('not implemented');\n }\n signCert(msg, options) {\n throw new Error('not implemented');\n }\n //////\n mergeRequest(req, ...keyParts) {\n const key = JSON.stringify(keyParts);\n const pending = this.pendingRequests[key];\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n if (pending) {\n return pending;\n }\n return this.pendingRequests[key] = (() => driver_no_vendor_awaiter(this, void 0, void 0, function* () {\n try {\n return yield req();\n }\n finally {\n delete this.pendingRequests[key];\n }\n }))();\n }\n httpGet(path, query) {\n return this.mergeRequest(() => {\n return this.net.http('GET', path, {\n query,\n validateResponseHeader: this.headerValidator\n });\n }, path, query || '');\n }\n httpPost(path, body, query) {\n return this.mergeRequest(() => {\n return this.net.http('POST', path, {\n query,\n body,\n validateResponseHeader: this.headerValidator\n });\n }, path, query || '', body || '');\n }\n get headerValidator() {\n return (headers) => {\n const xgid = headers['x-genesis-id'];\n if (xgid && xgid !== this.genesis.id) {\n throw new Error(`responded 'x-genesis-id' not matched`);\n }\n };\n }\n emitNewHead() {\n const resolvers = this.headResolvers;\n this.headResolvers = [];\n resolvers.forEach(r => r());\n }\n headTrackerLoop() {\n return driver_no_vendor_awaiter(this, void 0, void 0, function* () {\n for (;;) {\n let attemptWs = false;\n try {\n const best = yield this.int.wrap(this.httpGet('blocks/best'));\n if (best.id !== this.head.id && best.number >= this.head.number) {\n this.head = {\n id: best.id,\n number: best.number,\n timestamp: best.timestamp,\n parentID: best.parentID,\n txsFeatures: best.txsFeatures,\n gasLimit: best.gasLimit\n };\n this.cache.handleNewBlock(this.head, undefined, best);\n this.emitNewHead();\n if (Date.now() - this.head.timestamp * 1000 < 60 * 1000) {\n // nearly synced\n attemptWs = true;\n }\n }\n }\n catch (err) {\n if (err instanceof InterruptedError) {\n break;\n }\n }\n if (attemptWs) {\n try {\n yield this.trackWs();\n }\n catch (err) {\n if (err instanceof InterruptedError) {\n break;\n }\n }\n }\n try {\n yield this.int.wrap(sleep(8 * 1000));\n }\n catch (_a) {\n break;\n }\n }\n });\n }\n trackWs() {\n return driver_no_vendor_awaiter(this, void 0, void 0, function* () {\n const wsPath = `subscriptions/beat2?pos=${this.head.parentID}`;\n const wsr = this.net.openWebSocketReader(wsPath);\n try {\n for (;;) {\n const data = yield this.int.wrap(wsr.read());\n const beat = JSON.parse(data);\n if (!beat.obsolete && beat.id !== this.head.id && beat.number >= this.head.number) {\n this.head = {\n id: beat.id,\n number: beat.number,\n timestamp: beat.timestamp,\n parentID: beat.parentID,\n txsFeatures: beat.txsFeatures,\n gasLimit: beat.gasLimit\n };\n this.cache.handleNewBlock(this.head, { k: beat.k, bits: beat.bloom });\n this.emitNewHead();\n }\n }\n }\n finally {\n wsr.close();\n }\n });\n }\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJpdmVyLW5vLXZlbmRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9kcml2ZXItbm8tdmVuZG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUNBLE9BQU8sRUFBRSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxXQUFXLENBQUE7QUFDckQsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLFNBQVMsQ0FBQTtBQUMvQixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sYUFBYSxDQUFBO0FBQ3hDLE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxVQUFVLENBQUE7QUFFaEMsdUVBQXVFO0FBQ3ZFLE1BQU0sT0FBTyxjQUFjO0lBU3ZCLFlBQ3VCLEdBQVEsRUFDbEIsT0FBMEIsRUFDbkMsV0FBd0M7UUFGckIsUUFBRyxHQUFILEdBQUcsQ0FBSztRQUNsQixZQUFPLEdBQVAsT0FBTyxDQUFtQjtRQVIvQixrQkFBYSxHQUFHLEVBQXVCLENBQUE7UUFDOUIsUUFBRyxHQUFHLElBQUksT0FBTyxFQUFFLENBQUE7UUFDbkIsVUFBSyxHQUFHLElBQUksS0FBSyxFQUFFLENBQUE7UUFDcEMsZ0RBQWdEO1FBQy9CLG9CQUFlLEdBQWlDLEVBQUUsQ0FBQTtRQU8vRCxJQUFJLFdBQVcsRUFBRTtZQUNiLElBQUksQ0FBQyxJQUFJLEdBQUcsV0FBVyxDQUFBO1NBQzFCO2FBQU07WUFD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FFLElBQUksRUFBRSxJQUFJLENBQUMsS0FBSyxFQUFFLENBQUMsQ0FBQTt3QkFDckUsSUFBSSxDQUFDLFdBQVcsRUFBRSxDQUFBO3FCQUNyQjtpQkFDSjthQUNKO29CQUFTO2dCQUNOLEdBQUcsQ0FBQyxLQUFLLEVBQUUsQ0FBQTthQUNkO1FBQ0wsQ0FBQztLQUFBO0NBQ0oifQ==\n// EXTERNAL MODULE: ../driver/node_modules/axios/index.js\nvar axios = __webpack_require__(8416);\nvar axios_default = /*#__PURE__*/__webpack_require__.n(axios);\n\n// EXTERNAL MODULE: ../driver/node_modules/isomorphic-ws/browser.js\nvar browser = __webpack_require__(9347);\n// CONCATENATED MODULE: ../driver/esm/simple-websocket-reader.js\n\nclass SimpleWebSocketReader {\n constructor(url, timeout = 30 * 1000) {\n this.timeout = timeout;\n this.callbacks = [];\n this.ws = new browser(url);\n this.ws.onmessage = ev => {\n try {\n const cbs = this.callbacks;\n this.callbacks = [];\n cbs.forEach(cb => cb(ev.data));\n }\n catch (err) {\n this.setError(err);\n this.ws.close();\n }\n };\n this.ws.onerror = ev => {\n this.setError(ev.error);\n this.ws.close();\n };\n this.ws.onclose = () => {\n this.setError(new Error('closed'));\n };\n }\n read() {\n return new Promise((resolve, reject) => {\n if (this.error) {\n return reject(this.error);\n }\n const timer = setTimeout(() => {\n reject(new Error('ws read timeout'));\n }, this.timeout);\n this.callbacks.push((data, err) => {\n clearTimeout(timer);\n if (err) {\n return reject(err);\n }\n resolve(data);\n });\n });\n }\n close() {\n this.ws.close();\n }\n setError(err) {\n if (!this.error) {\n this.error = err;\n const cbs = this.callbacks;\n this.callbacks = [];\n cbs.forEach(cb => cb(null, err));\n }\n }\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2ltcGxlLXdlYnNvY2tldC1yZWFkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvc2ltcGxlLXdlYnNvY2tldC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LE1BQU0sR0FBRyxHQUFHLElBQUksQ0FBQyxTQUFTLENBQUE7WUFDMUIsSUFBSSxDQUFDLFNBQVMsR0FBRyxFQUFFLENBQUE7WUFDbkIsR0FBRyxDQUFDLE9BQU8sQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxJQUFJLEVBQUUsR0FBRyxDQUFDLENBQUMsQ0FBQTtTQUNuQztJQUNMLENBQUM7Q0FDSiJ9\n// EXTERNAL MODULE: ./node_modules/url/url.js\nvar url_url = __webpack_require__(8575);\n// CONCATENATED MODULE: ./dummy-http-agent.js\nclass Agent {\n constructor(){\n return undefined\n }\n}\n\n// CONCATENATED MODULE: ../driver/esm/simple-net.js\nvar simple_net_awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\n\n\n\n\n/** class simply implements Net interface */\nclass SimpleNet {\n constructor(baseURL, timeout = 30 * 1000, wsTimeout = 30 * 1000) {\n this.baseURL = baseURL;\n this.wsTimeout = wsTimeout;\n this.axios = axios_default().create({\n httpAgent: new Agent({ keepAlive: true }),\n httpsAgent: new Agent({ keepAlive: true }),\n baseURL,\n timeout\n });\n }\n http(method, path, params) {\n return simple_net_awaiter(this, void 0, void 0, function* () {\n params = params || {};\n try {\n const resp = yield this.axios.request({\n method,\n url: path,\n data: params.body,\n headers: params.headers,\n params: params.query\n });\n if (params.validateResponseHeader) {\n params.validateResponseHeader(resp.headers);\n }\n return resp.data;\n }\n catch (err) {\n if (err.isAxiosError) {\n throw convertError(err);\n }\n throw new Error(`${method} ${(0,url_url/* resolve */.DB)(this.baseURL, path)}: ${err.message}`);\n }\n });\n }\n openWebSocketReader(path) {\n const url = (0,url_url/* resolve */.DB)(this.baseURL, path)\n .replace(/^http:/i, 'ws:')\n .replace(/^https:/i, 'wss:');\n return new SimpleWebSocketReader(url, this.wsTimeout);\n }\n}\nfunction convertError(err) {\n if (err.response) {\n const resp = err.response;\n if (typeof resp.data === 'string') {\n let text = resp.data.trim();\n if (text.length > 50) {\n text = text.slice(0, 50) + '...';\n }\n return new Error(`${resp.status} ${err.config.method} ${err.config.url}: ${text}`);\n }\n else {\n return new Error(`${resp.status} ${err.config.method} ${err.config.url}`);\n }\n }\n else {\n return new Error(`${err.config.method} ${err.config.url}: ${err.message}`);\n }\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2ltcGxlLW5ldC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9zaW1wbGUtbmV0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUNBLE9BQU8sS0FBb0MsTUFBTSxPQUFPLENBQUE7QUFDeEQsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sMkJBQTJCLENBQUE7QUFDakUsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLEtBQUssQ0FBQTtBQUM3QixPQUFPLEVBQUUsS0FBSyxJQUFJLFNBQVMsRUFBRSxNQUFNLE1BQU0sQ0FBQTtBQUN6QyxPQUFPLEVBQUUsS0FBSyxJQUFJLFVBQVUsRUFBRSxNQUFNLE9BQU8sQ0FBQTtBQUUzQyw0Q0FBNEM7QUFDNUMsTUFBTSxPQUFPLFNBQVM7SUFHbEIsWUFDYSxPQUFlLEVBQ3hCLE9BQU8sR0FBRyxFQUFFLEdBQUcsSUFBSSxFQUNGLFlBQVksRUFBRSxHQUFHLElBQUk7UUFGN0IsWUFBTyxHQUFQLE9BQU8sQ0FBUT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DQUFBO1NBQ3JGO2FBQU07WUFDSCxPQUFPLElBQUksS0FBSyxDQUFDLEdBQUcsSUFBSSxDQUFDLE1BQU0sSUFBSSxHQUFHLENBQUMsTUFBTSxDQUFDLE1BQU0sSUFBSSxHQUFHLENBQUMsTUFBTSxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUE7U0FDNUU7S0FDSjtTQUFNO1FBQ0gsT0FBTyxJQUFJLEtBQUssQ0FBQyxHQUFHLEdBQUcsQ0FBQyxNQUFNLENBQUMsTUFBTSxJQUFJLEdBQUcsQ0FBQyxNQUFNLENBQUMsR0FBRyxLQUFLLEdBQUcsQ0FBQyxPQUFPLEVBQUUsQ0FBQyxDQUFBO0tBQzdFO0FBQ0wsQ0FBQyJ9\n// CONCATENATED MODULE: ./esm/script-loader.js\n// maps src to library promise\nconst cache = {};\nfunction loadLibrary(src, libName) {\n let lib = cache[src];\n if (!lib) {\n const script = document.createElement('script');\n cache[src] = lib = new Promise((resolve, reject) => {\n script.onload = () => resolve(window[libName]);\n script.onerror = err => reject(new Error(err.toString()));\n });\n script.src = src;\n document.body.appendChild(script);\n }\n return lib;\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NyaXB0LWxvYWRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9zY3JpcHQtbG9hZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDhCQUE4QjtBQUM5QixNQUFNLEtBQUssR0FBcUMsRUFBRSxDQUFBO0FBRWxELE1BQU0sVUFBVSxXQUFXLENBQUksR0FBVyxFQUFFLE9BQWU7SUFDdkQsSUFBSSxHQUFHLEdBQUcsS0FBSyxDQUFDLEdBQUcsQ0FBMkIsQ0FBQTtJQUM5QyxJQUFJLENBQUMsR0FBRyxFQUFFO1FBQ04sTUFBTSxNQUFNLEdBQUcsUUFBUSxDQUFDLGFBQWEsQ0FBQyxRQUFRLENBQUMsQ0FBQTtRQUMvQyxLQUFLLENBQUMsR0FBRyxDQUFDLEdBQUcsR0FBRyxHQUFHLElBQUksT0FBTyxDQUFDLENBQUMsT0FBTyxFQUFFLE1BQU0sRUFBRSxFQUFFO1lBQy9DLE1BQU0sQ0FBQyxNQUFNLEdBQUcsR0FBRyxFQUFFLENBQUMsT0FBTyxDQUFFLE1BQWdCLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQTtZQUN6RCxNQUFNLENBQUMsT0FBTyxHQUFHLEdBQUcsQ0FBQyxFQUFFLENBQUMsTUFBTSxDQUFDLElBQUksS0FBSyxDQUFDLEdBQUcsQ0FBQyxRQUFRLEVBQUUsQ0FBQyxDQUFDLENBQUE7UUFDN0QsQ0FBQyxDQUFDLENBQUE7UUFDRixNQUFNLENBQUMsR0FBRyxHQUFHLEdBQUcsQ0FBQTtRQUNoQixRQUFRLENBQUMsSUFBSSxDQUFDLFdBQVcsQ0FBQyxNQUFNLENBQUMsQ0FBQTtLQUNwQztJQUNELE9BQU8sR0FBRyxDQUFBO0FBQ2QsQ0FBQyJ9\n// EXTERNAL MODULE: ./node_modules/randombytes/browser.js\nvar randombytes_browser = __webpack_require__(1798);\nvar randombytes_browser_default = /*#__PURE__*/__webpack_require__.n(randombytes_browser);\n\n// CONCATENATED MODULE: ./node_modules/thor-devkit/esm/blake2b.js\n/* provided dependency */ var esm_blake2b_Buffer = __webpack_require__(8764)[\"Buffer\"];\nconst blake2b_blake = __webpack_require__(1191);\n/**\n * computes blake2b 256bit hash of given data\n * @param data one or more Buffer | string\n */\nfunction blake2b_blake2b256(...data) {\n const ctx = blake2b_blake.blake2bInit(32, null);\n data.forEach(d => {\n if (esm_blake2b_Buffer.isBuffer(d)) {\n blake2b_blake.blake2bUpdate(ctx, d);\n }\n else {\n blake2b_blake.blake2bUpdate(ctx, esm_blake2b_Buffer.from(d, 'utf8'));\n }\n });\n return esm_blake2b_Buffer.from(blake2b_blake.blake2bFinal(ctx));\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxha2UyYi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9ibGFrZTJiLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sS0FBSyxHQUFHLE9BQU8sQ0FBQyxTQUFTLENBQUMsQ0FBQTtBQUVoQzs7O0dBR0c7QUFDSCxNQUFNLFVBQVUsVUFBVSxDQUFDLEdBQUcsSUFBNEI7SUFDdEQsTUFBTSxHQUFHLEdBQUcsS0FBSyxDQUFDLFdBQVcsQ0FBQyxFQUFFLEVBQUUsSUFBSSxDQUFDLENBQUE7SUFDdkMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUMsRUFBRTtRQUNiLElBQUksTUFBTSxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsRUFBRTtZQUNwQixLQUFLLENBQUMsYUFBYSxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUMsQ0FBQTtTQUM5QjthQUFNO1lBQ0gsS0FBSyxDQUFDLGFBQWEsQ0FBQyxHQUFHLEVBQUUsTUFBTSxDQUFDLElBQUksQ0FBQyxDQUFDLEVBQUUsTUFBTSxDQUFDLENBQUMsQ0FBQTtTQUNuRDtJQUNMLENBQUMsQ0FBQyxDQUFBO0lBQ0YsT0FBTyxNQUFNLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxZQUFZLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQTtBQUMvQyxDQUFDIn0=\n// CONCATENATED MODULE: ./esm/driver.js\n/* eslint-disable @typescript-eslint/no-unused-vars */\n\n\n\n\nconst BUDDY_SRC = 'https://unpkg.com/@vechain/connex-wallet-buddy@0.1';\nconst BUDDY_LIB_NAME = 'ConnexWalletBuddy';\n/** the driver implements vendor methods only */\nclass DriverVendorOnly {\n constructor(genesisId, useExtension) {\n this.signer = this.initSigner(genesisId, useExtension);\n }\n get genesis() { throw new Error('not implemented'); }\n get head() { throw new Error('not implemented'); }\n pollHead() { throw new Error('not implemented'); }\n getBlock(revision) { throw new Error('not implemented'); }\n getTransaction(id, allowPending) { throw new Error('not implemented'); }\n getReceipt(id) { throw new Error('not implemented'); }\n getAccount(addr, revision) { throw new Error('not implemented'); }\n getCode(addr, revision) { throw new Error('not implemented'); }\n getStorage(addr, key, revision) { throw new Error('not implemented'); }\n explain(arg, revision, cacheHints) { throw new Error('not implemented'); }\n filterEventLogs(arg) { throw new Error('not implemented'); }\n filterTransferLogs(arg) { throw new Error('not implemented'); }\n signTx(msg, options) {\n return this.signer.then(b => b.signTx(msg, options));\n }\n signCert(msg, options) {\n return this.signer.then(b => b.signCert(msg, options));\n }\n initSigner(genesisId, useExtension) {\n if (useExtension) {\n return Promise.resolve(window.vechain.newConnexSigner(genesisId));\n }\n return loadLibrary(BUDDY_SRC, BUDDY_LIB_NAME).then(lib => lib.create(genesisId, () => randombytes_browser_default()(16).toString('hex'), val => blake2b_blake2b256(val).toString('hex')));\n }\n}\n/** fully implemented Connex.Driver */\nclass FullDriver extends DriverNoVendor {\n constructor(node, genesis, useExtension) {\n super(new SimpleNet(node), genesis);\n this.vd = new DriverVendorOnly(genesis.id, useExtension);\n }\n signTx(msg, options) {\n return this.vd.signTx(msg, options);\n }\n signCert(msg, options) {\n return this.vd.signCert(msg, options);\n }\n}\nconst driver_cache = {};\n/**\n * create full driver\n * @param node the url of thor node\n * @param genesis the enforced genesis block\n */\nfunction createFull(node, genesis, useExtension) {\n const key = blake2b_blake2b256(JSON.stringify({\n node,\n genesis,\n useExtension\n })).toString('hex');\n let driver = driver_cache[key];\n if (!driver) {\n driver_cache[key] = driver = new FullDriver(node, genesis, useExtension);\n }\n return driver;\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJpdmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2Rya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dDO1FBQ2pFLE9BQU8sSUFBSSxDQUFDLEVBQUUsQ0FBQyxNQUFNLENBQUMsR0FBRyxFQUFFLE9BQU8sQ0FBQyxDQUFBO0lBQ3ZDLENBQUM7SUFDRCxRQUFRLENBQUMsR0FBOEIsRUFBRSxPQUFrQztRQUN2RSxPQUFPLElBQUksQ0FBQyxFQUFFLENBQUMsUUFBUSxDQUFDLEdBQUcsRUFBRSxPQUFPLENBQUMsQ0FBQTtJQUN6QyxDQUFDO0NBQ0o7QUFFRCxNQUFNLEtBQUssR0FBK0IsRUFBRSxDQUFBO0FBRTVDOzs7O0dBSUc7QUFDSCxNQUFNLFVBQVUsVUFBVSxDQUFDLElBQVksRUFBRSxPQUEwQixFQUFFLFlBQXFCO0lBQ3RGLE1BQU0sR0FBRyxHQUFHLFVBQVUsQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDO1FBQ2xDLElBQUk7UUFDSixPQUFPO1FBQ1AsWUFBWTtLQUNmLENBQUMsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxLQUFLLENBQUMsQ0FBQTtJQUVuQixJQUFJLE1BQU0sR0FBRyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUE7SUFDdkIsSUFBSSxDQUFDLE1BQU0sRUFBRTtRQUNULEtBQUssQ0FBQyxHQUFHLENBQUMsR0FBRyxNQUFNLEdBQUcsSUFBSSxVQUFVLENBQUMsSUFBSSxFQUFFLE9BQU8sRUFBRSxZQUFZLENBQUMsQ0FBQTtLQUNwRTtJQUNELE9BQU8sTUFBTSxDQUFBO0FBQ2pCLENBQUMifQ==\n// CONCATENATED MODULE: ./esm/index.js\n\n\n\n\n\n/** convert options.network to Connex.Thor.Block */\nfunction normalizeNetwork(n) {\n n = n || 'main';\n if (typeof n === 'string') {\n const gb = genesisBlocks[n];\n if (!gb) {\n throw new Error('invalid network');\n }\n return gb;\n }\n else {\n return n;\n }\n}\n/** convert network name to genesis id */\nfunction normalizeGenesisId(id) {\n id = id || 'main';\n if (/^0x[0-9a-f]{64}$/.test(id)) {\n return id;\n }\n const gb = genesisBlocks[id];\n if (gb) {\n return gb.id;\n }\n throw new Error('invalid genesis id');\n}\n/** Vendor class which can work standalone to provides signing-services only */\nclass VendorClass {\n constructor(genesisId, opts) {\n genesisId = normalizeGenesisId(genesisId);\n if (!(opts && opts.noV1Compat)) {\n try {\n // to detect injected connex\n const injected = window.connex;\n if (injected && injected.thor.genesis.id === genesisId) {\n // injected genesis id matched\n if (/^1\\./.test(injected.version)) {\n // wrap v1 vendor to v2\n return compat1(injected).vendor;\n }\n }\n }\n catch ( /**/_a) { /**/ }\n }\n // detect the extension injected vechain\n const useExtension = !(opts && opts.noExtension) && !!window.vechain;\n const driver = new DriverVendorOnly(genesisId, useExtension);\n const vendor = newVendor(driver);\n return {\n get sign() {\n return vendor.sign.bind(vendor);\n }\n };\n }\n}\n/** Connex class */\nclass ConnexClass {\n constructor(opts) {\n const genesis = normalizeNetwork(opts.network);\n if (!opts.noV1Compat) {\n try {\n // to detect injected connex\n const injected = window.connex;\n if (injected && injected.thor.genesis.id === genesis.id) {\n // injected genesis id matched\n if (/^1\\./.test(injected.version)) {\n // wrap v1 to v2\n return compat1(injected);\n }\n }\n }\n catch ( /**/_a) { /**/ }\n }\n // detect the extension injected vechain\n const useExtension = !opts.noExtension && !!window.vechain;\n const driver = createFull(opts.node, genesis, useExtension);\n const framework = new Framework(driver);\n return {\n get thor() { return framework.thor; },\n get vendor() { return framework.vendor; }\n };\n }\n}\nConnexClass.Vendor = VendorClass;\n/* harmony default export */ const esm = (ConnexClass);\n\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLDJCQUEyQixDQUFBO0FBQ3JELE9BQU8sR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TUFBTSxLQUFLLE9BQU8sU0FBUyxDQUFDLE1BQU0sQ0FBQSxDQUFDLENBQUM7U0FDM0MsQ0FBQTtJQUNMLENBQUM7O0FBN0JlLGtCQUFNLEdBQUcsV0FBVyxDQUFBO0FBZ0N4QyxlQUFlLFdBQVcsQ0FBQTtBQUMxQixPQUFPLEVBQUUsV0FBVyxJQUFJLE1BQU0sRUFBRSxDQUFBIn0=\n\n/***/ }),\n\n/***/ 5641:\n/***/ ((__unused_webpack_module, exports) => {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.version = \"4.0.27-5\";\n\n\n/***/ }),\n\n/***/ 3695:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar bignumber_1 = __webpack_require__(8341);\nvar AddressZero = '0x0000000000000000000000000000000000000000';\nexports.AddressZero = AddressZero;\nvar HashZero = '0x0000000000000000000000000000000000000000000000000000000000000000';\nexports.HashZero = HashZero;\n// NFKD (decomposed)\n//const EtherSymbol = '\\uD835\\uDF63';\n// NFKC (composed)\nvar EtherSymbol = '\\u039e';\nexports.EtherSymbol = EtherSymbol;\nvar NegativeOne = bignumber_1.bigNumberify(-1);\nexports.NegativeOne = NegativeOne;\nvar Zero = bignumber_1.bigNumberify(0);\nexports.Zero = Zero;\nvar One = bignumber_1.bigNumberify(1);\nexports.One = One;\nvar Two = bignumber_1.bigNumberify(2);\nexports.Two = Two;\nvar WeiPerEther = bignumber_1.bigNumberify('1000000000000000000');\nexports.WeiPerEther = WeiPerEther;\nvar MaxUint256 = bignumber_1.bigNumberify('0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff');\nexports.MaxUint256 = MaxUint256;\n\n\n/***/ }),\n\n/***/ 4615:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar _version_1 = __webpack_require__(5641);\n// Unknown Error\nexports.UNKNOWN_ERROR = 'UNKNOWN_ERROR';\n// Not implemented\nexports.NOT_IMPLEMENTED = 'NOT_IMPLEMENTED';\n// Missing new operator to an object\n// - name: The name of the class\nexports.MISSING_NEW = 'MISSING_NEW';\n// Call exception\n// - transaction: the transaction\n// - address?: the contract address\n// - args?: The arguments passed into the function\n// - method?: The Solidity method signature\n// - errorSignature?: The EIP848 error signature\n// - errorArgs?: The EIP848 error parameters\n// - reason: The reason (only for EIP848 \"Error(string)\")\nexports.CALL_EXCEPTION = 'CALL_EXCEPTION';\n// Invalid argument (e.g. value is incompatible with type) to a function:\n// - argument: The argument name that was invalid\n// - value: The value of the argument\nexports.INVALID_ARGUMENT = 'INVALID_ARGUMENT';\n// Missing argument to a function:\n// - count: The number of arguments received\n// - expectedCount: The number of arguments expected\nexports.MISSING_ARGUMENT = 'MISSING_ARGUMENT';\n// Too many arguments\n// - count: The number of arguments received\n// - expectedCount: The number of arguments expected\nexports.UNEXPECTED_ARGUMENT = 'UNEXPECTED_ARGUMENT';\n// Numeric Fault\n// - operation: the operation being executed\n// - fault: the reason this faulted\nexports.NUMERIC_FAULT = 'NUMERIC_FAULT';\n// Insufficien funds (< value + gasLimit * gasPrice)\n// - transaction: the transaction attempted\nexports.INSUFFICIENT_FUNDS = 'INSUFFICIENT_FUNDS';\n// Nonce has already been used\n// - transaction: the transaction attempted\nexports.NONCE_EXPIRED = 'NONCE_EXPIRED';\n// The replacement fee for the transaction is too low\n// - transaction: the transaction attempted\nexports.REPLACEMENT_UNDERPRICED = 'REPLACEMENT_UNDERPRICED';\n// Unsupported operation\n// - operation\nexports.UNSUPPORTED_OPERATION = 'UNSUPPORTED_OPERATION';\nvar _permanentCensorErrors = false;\nvar _censorErrors = false;\n// @TODO: Enum\nfunction throwError(message, code, params) {\n if (_censorErrors) {\n throw new Error('unknown error');\n }\n if (!code) {\n code = exports.UNKNOWN_ERROR;\n }\n if (!params) {\n params = {};\n }\n var messageDetails = [];\n Object.keys(params).forEach(function (key) {\n try {\n messageDetails.push(key + '=' + JSON.stringify(params[key]));\n }\n catch (error) {\n messageDetails.push(key + '=' + JSON.stringify(params[key].toString()));\n }\n });\n messageDetails.push(\"version=\" + _version_1.version);\n var reason = message;\n if (messageDetails.length) {\n message += ' (' + messageDetails.join(', ') + ')';\n }\n // @TODO: Any??\n var error = new Error(message);\n error.reason = reason;\n error.code = code;\n Object.keys(params).forEach(function (key) {\n error[key] = params[key];\n });\n throw error;\n}\nexports.throwError = throwError;\nfunction checkNew(self, kind) {\n if (!(self instanceof kind)) {\n throwError('missing new', exports.MISSING_NEW, { name: kind.name });\n }\n}\nexports.checkNew = checkNew;\nfunction checkArgumentCount(count, expectedCount, suffix) {\n if (!suffix) {\n suffix = '';\n }\n if (count < expectedCount) {\n throwError('missing argument' + suffix, exports.MISSING_ARGUMENT, { count: count, expectedCount: expectedCount });\n }\n if (count > expectedCount) {\n throwError('too many arguments' + suffix, exports.UNEXPECTED_ARGUMENT, { count: count, expectedCount: expectedCount });\n }\n}\nexports.checkArgumentCount = checkArgumentCount;\nfunction setCensorship(censorship, permanent) {\n if (_permanentCensorErrors) {\n throwError('error censorship permanent', exports.UNSUPPORTED_OPERATION, { operation: 'setCensorship' });\n }\n _censorErrors = !!censorship;\n _permanentCensorErrors = !!permanent;\n}\nexports.setCensorship = setCensorship;\nfunction checkNormalize() {\n try {\n // Make sure all forms of normalization are supported\n [\"NFD\", \"NFC\", \"NFKD\", \"NFKC\"].forEach(function (form) {\n try {\n \"test\".normalize(form);\n }\n catch (error) {\n throw new Error('missing ' + form);\n }\n });\n if (String.fromCharCode(0xe9).normalize('NFD') !== String.fromCharCode(0x65, 0x0301)) {\n throw new Error('broken implementation');\n }\n }\n catch (error) {\n throwError('platform missing String.prototype.normalize', exports.UNSUPPORTED_OPERATION, { operation: 'String.prototype.normalize', form: error.message });\n }\n}\nexports.checkNormalize = checkNormalize;\nvar LogLevels = { debug: 1, \"default\": 2, info: 2, warn: 3, error: 4, off: 5 };\nvar LogLevel = LogLevels[\"default\"];\nfunction setLogLevel(logLevel) {\n var level = LogLevels[logLevel];\n if (level == null) {\n warn(\"invliad log level - \" + logLevel);\n return;\n }\n LogLevel = level;\n}\nexports.setLogLevel = setLogLevel;\nfunction log(logLevel, args) {\n if (LogLevel > LogLevels[logLevel]) {\n return;\n }\n console.log.apply(console, args);\n}\nfunction warn() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n log(\"warn\", args);\n}\nexports.warn = warn;\nfunction info() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n log(\"info\", args);\n}\nexports.info = info;\n\n\n/***/ }),\n\n/***/ 4795:\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n// See: https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI\nvar constants_1 = __webpack_require__(3695);\nvar errors = __importStar(__webpack_require__(4615));\nvar address_1 = __webpack_require__(8332);\nvar bignumber_1 = __webpack_require__(8341);\nvar bytes_1 = __webpack_require__(8722);\nvar utf8_1 = __webpack_require__(6253);\nvar properties_1 = __webpack_require__(4498);\n///////////////////////////////\nvar paramTypeBytes = new RegExp(/^bytes([0-9]*)$/);\nvar paramTypeNumber = new RegExp(/^(u?int)([0-9]*)$/);\nvar paramTypeArray = new RegExp(/^(.*)\\[([0-9]*)\\]$/);\nexports.defaultCoerceFunc = function (type, value) {\n var match = type.match(paramTypeNumber);\n if (match && parseInt(match[2]) <= 48) {\n return value.toNumber();\n }\n return value;\n};\n///////////////////////////////////\n// Parsing for Solidity Signatures\nvar regexParen = new RegExp(\"^([^)(]*)\\\\((.*)\\\\)([^)(]*)$\");\nvar regexIdentifier = new RegExp(\"^[A-Za-z_][A-Za-z0-9_]*$\");\nfunction verifyType(type) {\n // These need to be transformed to their full description\n if (type.match(/^uint($|[^1-9])/)) {\n type = 'uint256' + type.substring(4);\n }\n else if (type.match(/^int($|[^1-9])/)) {\n type = 'int256' + type.substring(3);\n }\n return type;\n}\nfunction parseParam(param, allowIndexed) {\n var originalParam = param;\n function throwError(i) {\n throw new Error('unexpected character \"' + originalParam[i] + '\" at position ' + i + ' in \"' + originalParam + '\"');\n }\n param = param.replace(/\\s/g, ' ');\n var parent = { type: '', name: '', state: { allowType: true } };\n var node = parent;\n for (var i = 0; i < param.length; i++) {\n var c = param[i];\n switch (c) {\n case '(':\n if (!node.state.allowParams) {\n throwError(i);\n }\n node.state.allowType = false;\n node.type = verifyType(node.type);\n node.components = [{ type: '', name: '', parent: node, state: { allowType: true } }];\n node = node.components[0];\n break;\n case ')':\n delete node.state;\n if (allowIndexed && node.name === 'indexed') {\n node.indexed = true;\n node.name = '';\n }\n node.type = verifyType(node.type);\n var child = node;\n node = node.parent;\n if (!node) {\n throwError(i);\n }\n delete child.parent;\n node.state.allowParams = false;\n node.state.allowName = true;\n node.state.allowArray = true;\n break;\n case ',':\n delete node.state;\n if (allowIndexed && node.name === 'indexed') {\n node.indexed = true;\n node.name = '';\n }\n node.type = verifyType(node.type);\n var sibling = { type: '', name: '', parent: node.parent, state: { allowType: true } };\n node.parent.components.push(sibling);\n delete node.parent;\n node = sibling;\n break;\n // Hit a space...\n case ' ':\n // If reading type, the type is done and may read a param or name\n if (node.state.allowType) {\n if (node.type !== '') {\n node.type = verifyType(node.type);\n delete node.state.allowType;\n node.state.allowName = true;\n node.state.allowParams = true;\n }\n }\n // If reading name, the name is done\n if (node.state.allowName) {\n if (node.name !== '') {\n if (allowIndexed && node.name === 'indexed') {\n node.indexed = true;\n node.name = '';\n }\n else {\n node.state.allowName = false;\n }\n }\n }\n break;\n case '[':\n if (!node.state.allowArray) {\n throwError(i);\n }\n node.type += c;\n node.state.allowArray = false;\n node.state.allowName = false;\n node.state.readArray = true;\n break;\n case ']':\n if (!node.state.readArray) {\n throwError(i);\n }\n node.type += c;\n node.state.readArray = false;\n node.state.allowArray = true;\n node.state.allowName = true;\n break;\n default:\n if (node.state.allowType) {\n node.type += c;\n node.state.allowParams = true;\n node.state.allowArray = true;\n }\n else if (node.state.allowName) {\n node.name += c;\n delete node.state.allowArray;\n }\n else if (node.state.readArray) {\n node.type += c;\n }\n else {\n throwError(i);\n }\n }\n }\n if (node.parent) {\n throw new Error(\"unexpected eof\");\n }\n delete parent.state;\n if (allowIndexed && node.name === 'indexed') {\n node.indexed = true;\n node.name = '';\n }\n parent.type = verifyType(parent.type);\n return parent;\n}\n// @TODO: Better return type\nfunction parseSignatureEvent(fragment) {\n var abi = {\n anonymous: false,\n inputs: [],\n name: '',\n type: 'event'\n };\n var match = fragment.match(regexParen);\n if (!match) {\n throw new Error('invalid event: ' + fragment);\n }\n abi.name = match[1].trim();\n splitNesting(match[2]).forEach(function (param) {\n param = parseParam(param, true);\n param.indexed = !!param.indexed;\n abi.inputs.push(param);\n });\n match[3].split(' ').forEach(function (modifier) {\n switch (modifier) {\n case 'anonymous':\n abi.anonymous = true;\n break;\n case '':\n break;\n default:\n errors.info('unknown modifier: ' + modifier);\n }\n });\n if (abi.name && !abi.name.match(regexIdentifier)) {\n throw new Error('invalid identifier: \"' + abi.name + '\"');\n }\n return abi;\n}\nfunction parseSignatureFunction(fragment) {\n var abi = {\n constant: false,\n gas: null,\n inputs: [],\n name: '',\n outputs: [],\n payable: false,\n stateMutability: null,\n type: 'function'\n };\n var comps = fragment.split('@');\n if (comps.length !== 1) {\n if (comps.length > 2) {\n throw new Error('invalid signature');\n }\n if (!comps[1].match(/^[0-9]+$/)) {\n throw new Error('invalid signature gas');\n }\n abi.gas = bignumber_1.bigNumberify(comps[1]);\n fragment = comps[0];\n }\n comps = fragment.split(' returns ');\n var left = comps[0].match(regexParen);\n if (!left) {\n throw new Error('invalid signature');\n }\n abi.name = left[1].trim();\n if (!abi.name.match(regexIdentifier)) {\n throw new Error('invalid identifier: \"' + left[1] + '\"');\n }\n splitNesting(left[2]).forEach(function (param) {\n abi.inputs.push(parseParam(param));\n });\n left[3].split(' ').forEach(function (modifier) {\n switch (modifier) {\n case 'constant':\n abi.constant = true;\n break;\n case 'payable':\n abi.payable = true;\n abi.stateMutability = 'payable';\n break;\n case 'pure':\n abi.constant = true;\n abi.stateMutability = 'pure';\n break;\n case 'view':\n abi.constant = true;\n abi.stateMutability = 'view';\n break;\n case 'external':\n case 'public':\n case '':\n break;\n default:\n errors.info('unknown modifier: ' + modifier);\n }\n });\n // We have outputs\n if (comps.length > 1) {\n var right = comps[1].match(regexParen);\n if (right[1].trim() != '' || right[3].trim() != '') {\n throw new Error('unexpected tokens');\n }\n splitNesting(right[2]).forEach(function (param) {\n abi.outputs.push(parseParam(param));\n });\n }\n if (abi.name === 'constructor') {\n abi.type = \"constructor\";\n if (abi.outputs.length) {\n throw new Error('constructor may not have outputs');\n }\n delete abi.name;\n delete abi.outputs;\n }\n return abi;\n}\nfunction parseParamType(type) {\n return parseParam(type, true);\n}\nexports.parseParamType = parseParamType;\n// @TODO: Allow a second boolean to expose names\nfunction formatParamType(paramType) {\n return getParamCoder(exports.defaultCoerceFunc, paramType).type;\n}\nexports.formatParamType = formatParamType;\n// @TODO: Allow a second boolean to expose names and modifiers\nfunction formatSignature(fragment) {\n return fragment.name + '(' + fragment.inputs.map(function (i) { return formatParamType(i); }).join(',') + ')';\n}\nexports.formatSignature = formatSignature;\nfunction parseSignature(fragment) {\n if (typeof (fragment) === 'string') {\n // Make sure the \"returns\" is surrounded by a space and all whitespace is exactly one space\n fragment = fragment.replace(/\\s/g, ' ');\n fragment = fragment.replace(/\\(/g, ' (').replace(/\\)/g, ') ').replace(/\\s+/g, ' ');\n fragment = fragment.trim();\n if (fragment.substring(0, 6) === 'event ') {\n return parseSignatureEvent(fragment.substring(6).trim());\n }\n else {\n if (fragment.substring(0, 9) === 'function ') {\n fragment = fragment.substring(9);\n }\n return parseSignatureFunction(fragment.trim());\n }\n }\n throw new Error('unknown signature');\n}\nexports.parseSignature = parseSignature;\nvar Coder = /** @class */ (function () {\n function Coder(coerceFunc, name, type, localName, dynamic) {\n this.coerceFunc = coerceFunc;\n this.name = name;\n this.type = type;\n this.localName = localName;\n this.dynamic = dynamic;\n }\n return Coder;\n}());\n// Clones the functionality of an existing Coder, but without a localName\nvar CoderAnonymous = /** @class */ (function (_super) {\n __extends(CoderAnonymous, _super);\n function CoderAnonymous(coder) {\n var _this = _super.call(this, coder.coerceFunc, coder.name, coder.type, undefined, coder.dynamic) || this;\n properties_1.defineReadOnly(_this, 'coder', coder);\n return _this;\n }\n CoderAnonymous.prototype.encode = function (value) { return this.coder.encode(value); };\n CoderAnonymous.prototype.decode = function (data, offset) { return this.coder.decode(data, offset); };\n return CoderAnonymous;\n}(Coder));\nvar CoderNull = /** @class */ (function (_super) {\n __extends(CoderNull, _super);\n function CoderNull(coerceFunc, localName) {\n return _super.call(this, coerceFunc, 'null', '', localName, false) || this;\n }\n CoderNull.prototype.encode = function (value) {\n return bytes_1.arrayify([]);\n };\n CoderNull.prototype.decode = function (data, offset) {\n if (offset > data.length) {\n throw new Error('invalid null');\n }\n return {\n consumed: 0,\n value: this.coerceFunc('null', undefined)\n };\n };\n return CoderNull;\n}(Coder));\nvar CoderNumber = /** @class */ (function (_super) {\n __extends(CoderNumber, _super);\n function CoderNumber(coerceFunc, size, signed, localName) {\n var _this = this;\n var name = ((signed ? 'int' : 'uint') + (size * 8));\n _this = _super.call(this, coerceFunc, name, name, localName, false) || this;\n _this.size = size;\n _this.signed = signed;\n return _this;\n }\n CoderNumber.prototype.encode = function (value) {\n try {\n var v = bignumber_1.bigNumberify(value);\n if (this.signed) {\n var bounds = constants_1.MaxUint256.maskn(this.size * 8 - 1);\n if (v.gt(bounds)) {\n throw new Error('out-of-bounds');\n }\n bounds = bounds.add(constants_1.One).mul(constants_1.NegativeOne);\n if (v.lt(bounds)) {\n throw new Error('out-of-bounds');\n }\n }\n else if (v.lt(constants_1.Zero) || v.gt(constants_1.MaxUint256.maskn(this.size * 8))) {\n throw new Error('out-of-bounds');\n }\n v = v.toTwos(this.size * 8).maskn(this.size * 8);\n if (this.signed) {\n v = v.fromTwos(this.size * 8).toTwos(256);\n }\n return bytes_1.padZeros(bytes_1.arrayify(v), 32);\n }\n catch (error) {\n errors.throwError('invalid number value', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: this.name,\n value: value\n });\n }\n return null;\n };\n CoderNumber.prototype.decode = function (data, offset) {\n if (data.length < offset + 32) {\n errors.throwError('insufficient data for ' + this.name + ' type', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: this.name,\n value: bytes_1.hexlify(data.slice(offset, offset + 32))\n });\n }\n var junkLength = 32 - this.size;\n var value = bignumber_1.bigNumberify(data.slice(offset + junkLength, offset + 32));\n if (this.signed) {\n value = value.fromTwos(this.size * 8);\n }\n else {\n value = value.maskn(this.size * 8);\n }\n return {\n consumed: 32,\n value: this.coerceFunc(this.name, value),\n };\n };\n return CoderNumber;\n}(Coder));\nvar uint256Coder = new CoderNumber(function (type, value) { return value; }, 32, false, 'none');\nvar CoderBoolean = /** @class */ (function (_super) {\n __extends(CoderBoolean, _super);\n function CoderBoolean(coerceFunc, localName) {\n return _super.call(this, coerceFunc, 'bool', 'bool', localName, false) || this;\n }\n CoderBoolean.prototype.encode = function (value) {\n return uint256Coder.encode(!!value ? 1 : 0);\n };\n CoderBoolean.prototype.decode = function (data, offset) {\n try {\n var result = uint256Coder.decode(data, offset);\n }\n catch (error) {\n if (error.reason === 'insufficient data for uint256 type') {\n errors.throwError('insufficient data for boolean type', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'boolean',\n value: error.value\n });\n }\n throw error;\n }\n return {\n consumed: result.consumed,\n value: this.coerceFunc('bool', !result.value.isZero())\n };\n };\n return CoderBoolean;\n}(Coder));\nvar CoderFixedBytes = /** @class */ (function (_super) {\n __extends(CoderFixedBytes, _super);\n function CoderFixedBytes(coerceFunc, length, localName) {\n var _this = this;\n var name = ('bytes' + length);\n _this = _super.call(this, coerceFunc, name, name, localName, false) || this;\n _this.length = length;\n return _this;\n }\n CoderFixedBytes.prototype.encode = function (value) {\n var result = new Uint8Array(32);\n try {\n var data = bytes_1.arrayify(value);\n if (data.length !== this.length) {\n throw new Error('incorrect data length');\n }\n result.set(data);\n }\n catch (error) {\n errors.throwError('invalid ' + this.name + ' value', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: this.name,\n value: (error.value || value)\n });\n }\n return result;\n };\n CoderFixedBytes.prototype.decode = function (data, offset) {\n if (data.length < offset + 32) {\n errors.throwError('insufficient data for ' + name + ' type', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: this.name,\n value: bytes_1.hexlify(data.slice(offset, offset + 32))\n });\n }\n return {\n consumed: 32,\n value: this.coerceFunc(this.name, bytes_1.hexlify(data.slice(offset, offset + this.length)))\n };\n };\n return CoderFixedBytes;\n}(Coder));\nvar CoderAddress = /** @class */ (function (_super) {\n __extends(CoderAddress, _super);\n function CoderAddress(coerceFunc, localName) {\n return _super.call(this, coerceFunc, 'address', 'address', localName, false) || this;\n }\n CoderAddress.prototype.encode = function (value) {\n var result = new Uint8Array(32);\n try {\n result.set(bytes_1.arrayify(address_1.getAddress(value, false)), 12);\n }\n catch (error) {\n errors.throwError('invalid address', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'address',\n value: value\n });\n }\n return result;\n };\n CoderAddress.prototype.decode = function (data, offset) {\n if (data.length < offset + 32) {\n errors.throwError('insufficuent data for address type', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'address',\n value: bytes_1.hexlify(data.slice(offset, offset + 32))\n });\n }\n return {\n consumed: 32,\n value: this.coerceFunc('address', address_1.getAddress(bytes_1.hexlify(data.slice(offset + 12, offset + 32)), false))\n };\n };\n return CoderAddress;\n}(Coder));\nfunction _encodeDynamicBytes(value) {\n var dataLength = 32 * Math.ceil(value.length / 32);\n var padding = new Uint8Array(dataLength - value.length);\n return bytes_1.concat([\n uint256Coder.encode(value.length),\n value,\n padding\n ]);\n}\nfunction _decodeDynamicBytes(data, offset, localName) {\n if (data.length < offset + 32) {\n errors.throwError('insufficient data for dynamicBytes length', errors.INVALID_ARGUMENT, {\n arg: localName,\n coderType: 'dynamicBytes',\n value: bytes_1.hexlify(data.slice(offset, offset + 32))\n });\n }\n var length = uint256Coder.decode(data, offset).value;\n try {\n length = length.toNumber();\n }\n catch (error) {\n errors.throwError('dynamic bytes count too large', errors.INVALID_ARGUMENT, {\n arg: localName,\n coderType: 'dynamicBytes',\n value: length.toString()\n });\n }\n if (data.length < offset + 32 + length) {\n errors.throwError('insufficient data for dynamicBytes type', errors.INVALID_ARGUMENT, {\n arg: localName,\n coderType: 'dynamicBytes',\n value: bytes_1.hexlify(data.slice(offset, offset + 32 + length))\n });\n }\n return {\n consumed: 32 + 32 * Math.ceil(length / 32),\n value: data.slice(offset + 32, offset + 32 + length),\n };\n}\nvar CoderDynamicBytes = /** @class */ (function (_super) {\n __extends(CoderDynamicBytes, _super);\n function CoderDynamicBytes(coerceFunc, localName) {\n return _super.call(this, coerceFunc, 'bytes', 'bytes', localName, true) || this;\n }\n CoderDynamicBytes.prototype.encode = function (value) {\n try {\n return _encodeDynamicBytes(bytes_1.arrayify(value));\n }\n catch (error) {\n errors.throwError('invalid bytes value', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'bytes',\n value: error.value\n });\n }\n return null;\n };\n CoderDynamicBytes.prototype.decode = function (data, offset) {\n var result = _decodeDynamicBytes(data, offset, this.localName);\n result.value = this.coerceFunc('bytes', bytes_1.hexlify(result.value));\n return result;\n };\n return CoderDynamicBytes;\n}(Coder));\nvar CoderString = /** @class */ (function (_super) {\n __extends(CoderString, _super);\n function CoderString(coerceFunc, localName) {\n return _super.call(this, coerceFunc, 'string', 'string', localName, true) || this;\n }\n CoderString.prototype.encode = function (value) {\n if (typeof (value) !== 'string') {\n errors.throwError('invalid string value', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'string',\n value: value\n });\n }\n return _encodeDynamicBytes(utf8_1.toUtf8Bytes(value));\n };\n CoderString.prototype.decode = function (data, offset) {\n var result = _decodeDynamicBytes(data, offset, this.localName);\n result.value = this.coerceFunc('string', utf8_1.toUtf8String(result.value));\n return result;\n };\n return CoderString;\n}(Coder));\nfunction alignSize(size) {\n return 32 * Math.ceil(size / 32);\n}\nfunction pack(coders, values) {\n if (Array.isArray(values)) {\n // do nothing\n }\n else if (values && typeof (values) === 'object') {\n var arrayValues = [];\n coders.forEach(function (coder) {\n arrayValues.push(values[coder.localName]);\n });\n values = arrayValues;\n }\n else {\n errors.throwError('invalid tuple value', errors.INVALID_ARGUMENT, {\n coderType: 'tuple',\n value: values\n });\n }\n if (coders.length !== values.length) {\n errors.throwError('types/value length mismatch', errors.INVALID_ARGUMENT, {\n coderType: 'tuple',\n value: values\n });\n }\n var parts = [];\n coders.forEach(function (coder, index) {\n parts.push({ dynamic: coder.dynamic, value: coder.encode(values[index]) });\n });\n var staticSize = 0, dynamicSize = 0;\n parts.forEach(function (part) {\n if (part.dynamic) {\n staticSize += 32;\n dynamicSize += alignSize(part.value.length);\n }\n else {\n staticSize += alignSize(part.value.length);\n }\n });\n var offset = 0, dynamicOffset = staticSize;\n var data = new Uint8Array(staticSize + dynamicSize);\n parts.forEach(function (part) {\n if (part.dynamic) {\n //uint256Coder.encode(dynamicOffset).copy(data, offset);\n data.set(uint256Coder.encode(dynamicOffset), offset);\n offset += 32;\n //part.value.copy(data, dynamicOffset); @TODO\n data.set(part.value, dynamicOffset);\n dynamicOffset += alignSize(part.value.length);\n }\n else {\n //part.value.copy(data, offset); @TODO\n data.set(part.value, offset);\n offset += alignSize(part.value.length);\n }\n });\n return data;\n}\nfunction unpack(coders, data, offset) {\n var baseOffset = offset;\n var consumed = 0;\n var value = [];\n coders.forEach(function (coder) {\n if (coder.dynamic) {\n var dynamicOffset = uint256Coder.decode(data, offset);\n var result = coder.decode(data, baseOffset + dynamicOffset.value.toNumber());\n // The dynamic part is leap-frogged somewhere else; doesn't count towards size\n result.consumed = dynamicOffset.consumed;\n }\n else {\n var result = coder.decode(data, offset);\n }\n if (result.value != undefined) {\n value.push(result.value);\n }\n offset += result.consumed;\n consumed += result.consumed;\n });\n coders.forEach(function (coder, index) {\n var name = coder.localName;\n if (!name) {\n return;\n }\n if (name === 'length') {\n name = '_length';\n }\n if (value[name] != null) {\n return;\n }\n value[name] = value[index];\n });\n return {\n value: value,\n consumed: consumed\n };\n}\nvar CoderArray = /** @class */ (function (_super) {\n __extends(CoderArray, _super);\n function CoderArray(coerceFunc, coder, length, localName) {\n var _this = this;\n var type = (coder.type + '[' + (length >= 0 ? length : '') + ']');\n var dynamic = (length === -1 || coder.dynamic);\n _this = _super.call(this, coerceFunc, 'array', type, localName, dynamic) || this;\n _this.coder = coder;\n _this.length = length;\n return _this;\n }\n CoderArray.prototype.encode = function (value) {\n if (!Array.isArray(value)) {\n errors.throwError('expected array value', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'array',\n value: value\n });\n }\n var count = this.length;\n var result = new Uint8Array(0);\n if (count === -1) {\n count = value.length;\n result = uint256Coder.encode(count);\n }\n errors.checkArgumentCount(count, value.length, ' in coder array' + (this.localName ? (\" \" + this.localName) : \"\"));\n var coders = [];\n for (var i = 0; i < value.length; i++) {\n coders.push(this.coder);\n }\n return bytes_1.concat([result, pack(coders, value)]);\n };\n CoderArray.prototype.decode = function (data, offset) {\n // @TODO:\n //if (data.length < offset + length * 32) { throw new Error('invalid array'); }\n var consumed = 0;\n var count = this.length;\n if (count === -1) {\n try {\n var decodedLength = uint256Coder.decode(data, offset);\n }\n catch (error) {\n errors.throwError('insufficient data for dynamic array length', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'array',\n value: error.value\n });\n }\n try {\n count = decodedLength.value.toNumber();\n }\n catch (error) {\n errors.throwError('array count too large', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'array',\n value: decodedLength.value.toString()\n });\n }\n consumed += decodedLength.consumed;\n offset += decodedLength.consumed;\n }\n var coders = [];\n for (var i = 0; i < count; i++) {\n coders.push(new CoderAnonymous(this.coder));\n }\n var result = unpack(coders, data, offset);\n result.consumed += consumed;\n result.value = this.coerceFunc(this.type, result.value);\n return result;\n };\n return CoderArray;\n}(Coder));\nvar CoderTuple = /** @class */ (function (_super) {\n __extends(CoderTuple, _super);\n function CoderTuple(coerceFunc, coders, localName) {\n var _this = this;\n var dynamic = false;\n var types = [];\n coders.forEach(function (coder) {\n if (coder.dynamic) {\n dynamic = true;\n }\n types.push(coder.type);\n });\n var type = ('tuple(' + types.join(',') + ')');\n _this = _super.call(this, coerceFunc, 'tuple', type, localName, dynamic) || this;\n _this.coders = coders;\n return _this;\n }\n CoderTuple.prototype.encode = function (value) {\n return pack(this.coders, value);\n };\n CoderTuple.prototype.decode = function (data, offset) {\n var result = unpack(this.coders, data, offset);\n result.value = this.coerceFunc(this.type, result.value);\n return result;\n };\n return CoderTuple;\n}(Coder));\n/*\nfunction getTypes(coders) {\n var type = coderTuple(coders).type;\n return type.substring(6, type.length - 1);\n}\n*/\nfunction splitNesting(value) {\n value = value.trim();\n var result = [];\n var accum = '';\n var depth = 0;\n for (var offset = 0; offset < value.length; offset++) {\n var c = value[offset];\n if (c === ',' && depth === 0) {\n result.push(accum);\n accum = '';\n }\n else {\n accum += c;\n if (c === '(') {\n depth++;\n }\n else if (c === ')') {\n depth--;\n if (depth === -1) {\n throw new Error('unbalanced parenthsis');\n }\n }\n }\n }\n if (accum) {\n result.push(accum);\n }\n return result;\n}\n// @TODO: Is there a way to return \"class\"?\nvar paramTypeSimple = {\n address: CoderAddress,\n bool: CoderBoolean,\n string: CoderString,\n bytes: CoderDynamicBytes,\n};\nfunction getTupleParamCoder(coerceFunc, components, localName) {\n if (!components) {\n components = [];\n }\n var coders = [];\n components.forEach(function (component) {\n coders.push(getParamCoder(coerceFunc, component));\n });\n return new CoderTuple(coerceFunc, coders, localName);\n}\nfunction getParamCoder(coerceFunc, param) {\n var coder = paramTypeSimple[param.type];\n if (coder) {\n return new coder(coerceFunc, param.name);\n }\n var match = param.type.match(paramTypeNumber);\n if (match) {\n var size = parseInt(match[2] || \"256\");\n if (size === 0 || size > 256 || (size % 8) !== 0) {\n errors.throwError('invalid ' + match[1] + ' bit length', errors.INVALID_ARGUMENT, {\n arg: 'param',\n value: param\n });\n }\n return new CoderNumber(coerceFunc, size / 8, (match[1] === 'int'), param.name);\n }\n var match = param.type.match(paramTypeBytes);\n if (match) {\n var size = parseInt(match[1]);\n if (size === 0 || size > 32) {\n errors.throwError('invalid bytes length', errors.INVALID_ARGUMENT, {\n arg: 'param',\n value: param\n });\n }\n return new CoderFixedBytes(coerceFunc, size, param.name);\n }\n var match = param.type.match(paramTypeArray);\n if (match) {\n var size = parseInt(match[2] || \"-1\");\n param = properties_1.shallowCopy(param);\n param.type = match[1];\n param = properties_1.deepCopy(param);\n return new CoderArray(coerceFunc, getParamCoder(coerceFunc, param), size, param.name);\n }\n if (param.type.substring(0, 5) === 'tuple') {\n return getTupleParamCoder(coerceFunc, param.components, param.name);\n }\n if (param.type === '') {\n return new CoderNull(coerceFunc, param.name);\n }\n errors.throwError('invalid type', errors.INVALID_ARGUMENT, {\n arg: 'type',\n value: param.type\n });\n return null;\n}\nvar AbiCoder = /** @class */ (function () {\n function AbiCoder(coerceFunc) {\n errors.checkNew(this, AbiCoder);\n if (!coerceFunc) {\n coerceFunc = exports.defaultCoerceFunc;\n }\n properties_1.defineReadOnly(this, 'coerceFunc', coerceFunc);\n }\n AbiCoder.prototype.encode = function (types, values) {\n if (types.length !== values.length) {\n errors.throwError('types/values length mismatch', errors.INVALID_ARGUMENT, {\n count: { types: types.length, values: values.length },\n value: { types: types, values: values }\n });\n }\n var coders = [];\n types.forEach(function (type) {\n // Convert types to type objects\n // - \"uint foo\" => { type: \"uint\", name: \"foo\" }\n // - \"tuple(uint, uint)\" => { type: \"tuple\", components: [ { type: \"uint\" }, { type: \"uint\" }, ] }\n var typeObject = null;\n if (typeof (type) === 'string') {\n typeObject = parseParam(type);\n }\n else {\n typeObject = type;\n }\n coders.push(getParamCoder(this.coerceFunc, typeObject));\n }, this);\n return bytes_1.hexlify(new CoderTuple(this.coerceFunc, coders, '_').encode(values));\n };\n AbiCoder.prototype.decode = function (types, data) {\n var coders = [];\n types.forEach(function (type) {\n // See encode for details\n var typeObject = null;\n if (typeof (type) === 'string') {\n typeObject = parseParam(type);\n }\n else {\n typeObject = properties_1.deepCopy(type);\n }\n coders.push(getParamCoder(this.coerceFunc, typeObject));\n }, this);\n return new CoderTuple(this.coerceFunc, coders, '_').decode(bytes_1.arrayify(data), 0).value;\n };\n return AbiCoder;\n}());\nexports.AbiCoder = AbiCoder;\nexports.defaultAbiCoder = new AbiCoder();\n\n\n/***/ }),\n\n/***/ 8332:\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n// We use this for base 36 maths\nvar bn_js_1 = __importDefault(__webpack_require__(3550));\nvar bytes_1 = __webpack_require__(8722);\nvar keccak256_1 = __webpack_require__(9095);\nvar rlp_1 = __webpack_require__(8440);\nvar errors = __webpack_require__(4615);\n///////////////////////////////\nfunction getChecksumAddress(address) {\n if (typeof (address) !== 'string' || !address.match(/^0x[0-9A-Fa-f]{40}$/)) {\n errors.throwError('invalid address', errors.INVALID_ARGUMENT, { arg: 'address', value: address });\n }\n address = address.toLowerCase();\n var chars = address.substring(2).split('');\n var hashed = new Uint8Array(40);\n for (var i_1 = 0; i_1 < 40; i_1++) {\n hashed[i_1] = chars[i_1].charCodeAt(0);\n }\n hashed = bytes_1.arrayify(keccak256_1.keccak256(hashed));\n for (var i = 0; i < 40; i += 2) {\n if ((hashed[i >> 1] >> 4) >= 8) {\n chars[i] = chars[i].toUpperCase();\n }\n if ((hashed[i >> 1] & 0x0f) >= 8) {\n chars[i + 1] = chars[i + 1].toUpperCase();\n }\n }\n return '0x' + chars.join('');\n}\n// Shims for environments that are missing some required constants and functions\nvar MAX_SAFE_INTEGER = 0x1fffffffffffff;\nfunction log10(x) {\n if (Math.log10) {\n return Math.log10(x);\n }\n return Math.log(x) / Math.LN10;\n}\n// See: https://en.wikipedia.org/wiki/International_Bank_Account_Number\n// Create lookup table\nvar ibanLookup = {};\nfor (var i = 0; i < 10; i++) {\n ibanLookup[String(i)] = String(i);\n}\nfor (var i = 0; i < 26; i++) {\n ibanLookup[String.fromCharCode(65 + i)] = String(10 + i);\n}\n// How many decimal digits can we process? (for 64-bit float, this is 15)\nvar safeDigits = Math.floor(log10(MAX_SAFE_INTEGER));\nfunction ibanChecksum(address) {\n address = address.toUpperCase();\n address = address.substring(4) + address.substring(0, 2) + '00';\n var expanded = '';\n address.split('').forEach(function (c) {\n expanded += ibanLookup[c];\n });\n // Javascript can handle integers safely up to 15 (decimal) digits\n while (expanded.length >= safeDigits) {\n var block = expanded.substring(0, safeDigits);\n expanded = parseInt(block, 10) % 97 + expanded.substring(block.length);\n }\n var checksum = String(98 - (parseInt(expanded, 10) % 97));\n while (checksum.length < 2) {\n checksum = '0' + checksum;\n }\n return checksum;\n}\n;\nfunction getAddress(address, checksum) {\n if (checksum === void 0) { checksum = true; }\n var result = null;\n if (typeof (address) !== 'string') {\n errors.throwError('invalid address', errors.INVALID_ARGUMENT, { arg: 'address', value: address });\n }\n if (address.match(/^(0x)?[0-9a-fA-F]{40}$/)) {\n // Missing the 0x prefix\n if (address.substring(0, 2) !== '0x') {\n address = '0x' + address;\n }\n if (checksum) {\n result = getChecksumAddress(address);\n // It is a checksummed address with a bad checksum\n if (address.match(/([A-F].*[a-f])|([a-f].*[A-F])/) && result !== address) {\n errors.throwError('bad address checksum', errors.INVALID_ARGUMENT, { arg: 'address', value: address });\n }\n }\n else {\n result = address;\n }\n // Maybe ICAP? (we only support direct mode)\n }\n else if (address.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) {\n // It is an ICAP address with a bad checksum\n if (address.substring(2, 4) !== ibanChecksum(address)) {\n errors.throwError('bad icap checksum', errors.INVALID_ARGUMENT, { arg: 'address', value: address });\n }\n result = (new bn_js_1.default.BN(address.substring(4), 36)).toString(16);\n while (result.length < 40) {\n result = '0' + result;\n }\n result = checksum ? getChecksumAddress('0x' + result) : '0x' + result;\n }\n else {\n errors.throwError('invalid address', errors.INVALID_ARGUMENT, { arg: 'address', value: address });\n }\n return result;\n}\nexports.getAddress = getAddress;\nfunction getIcapAddress(address) {\n var base36 = (new bn_js_1.default.BN(getAddress(address).substring(2), 16)).toString(36).toUpperCase();\n while (base36.length < 30) {\n base36 = '0' + base36;\n }\n return 'XE' + ibanChecksum('XE00' + base36) + base36;\n}\nexports.getIcapAddress = getIcapAddress;\n// http://ethereum.stackexchange.com/questions/760/how-is-the-address-of-an-ethereum-contract-computed\nfunction getContractAddress(transaction) {\n if (!transaction.from) {\n throw new Error('missing from address');\n }\n var nonce = transaction.nonce;\n return getAddress('0x' + keccak256_1.keccak256(rlp_1.encode([\n getAddress(transaction.from),\n bytes_1.stripZeros(bytes_1.hexlify(nonce))\n ])).substring(26));\n}\nexports.getContractAddress = getContractAddress;\n\n\n/***/ }),\n\n/***/ 8341:\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n/**\n * BigNumber\n *\n * A wrapper around the BN.js object. We use the BN.js library\n * because it is used by elliptic, so it is required regardles.\n *\n */\nvar bn_js_1 = __importDefault(__webpack_require__(3550));\nvar bytes_1 = __webpack_require__(8722);\nvar properties_1 = __webpack_require__(4498);\nvar errors = __importStar(__webpack_require__(4615));\nvar BN_1 = new bn_js_1.default.BN(-1);\nfunction toHex(bn) {\n var value = bn.toString(16);\n if (value[0] === '-') {\n if ((value.length % 2) === 0) {\n return '-0x0' + value.substring(1);\n }\n return \"-0x\" + value.substring(1);\n }\n if ((value.length % 2) === 1) {\n return '0x0' + value;\n }\n return '0x' + value;\n}\nfunction toBN(value) {\n return _bnify(bigNumberify(value));\n}\nfunction toBigNumber(bn) {\n return new BigNumber(toHex(bn));\n}\nfunction _bnify(value) {\n var hex = value._hex;\n if (hex[0] === '-') {\n return (new bn_js_1.default.BN(hex.substring(3), 16)).mul(BN_1);\n }\n return new bn_js_1.default.BN(hex.substring(2), 16);\n}\nvar BigNumber = /** @class */ (function () {\n function BigNumber(value) {\n errors.checkNew(this, BigNumber);\n properties_1.setType(this, 'BigNumber');\n if (typeof (value) === 'string') {\n if (bytes_1.isHexString(value)) {\n if (value == '0x') {\n value = '0x0';\n }\n properties_1.defineReadOnly(this, '_hex', value);\n }\n else if (value[0] === '-' && bytes_1.isHexString(value.substring(1))) {\n properties_1.defineReadOnly(this, '_hex', value);\n }\n else if (value.match(/^-?[0-9]*$/)) {\n if (value == '') {\n value = '0';\n }\n properties_1.defineReadOnly(this, '_hex', toHex(new bn_js_1.default.BN(value)));\n }\n else {\n errors.throwError('invalid BigNumber string value', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n }\n else if (typeof (value) === 'number') {\n if (parseInt(String(value)) !== value) {\n errors.throwError('underflow', errors.NUMERIC_FAULT, { operation: 'setValue', fault: 'underflow', value: value, outputValue: parseInt(String(value)) });\n }\n try {\n properties_1.defineReadOnly(this, '_hex', toHex(new bn_js_1.default.BN(value)));\n }\n catch (error) {\n errors.throwError('overflow', errors.NUMERIC_FAULT, { operation: 'setValue', fault: 'overflow', details: error.message });\n }\n }\n else if (value instanceof BigNumber) {\n properties_1.defineReadOnly(this, '_hex', value._hex);\n }\n else if (value.toHexString) {\n properties_1.defineReadOnly(this, '_hex', toHex(toBN(value.toHexString())));\n }\n else if (value._hex && bytes_1.isHexString(value._hex)) {\n properties_1.defineReadOnly(this, '_hex', value._hex);\n }\n else if (bytes_1.isArrayish(value)) {\n properties_1.defineReadOnly(this, '_hex', toHex(new bn_js_1.default.BN(bytes_1.hexlify(value).substring(2), 16)));\n }\n else {\n errors.throwError('invalid BigNumber value', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n }\n BigNumber.prototype.fromTwos = function (value) {\n return toBigNumber(_bnify(this).fromTwos(value));\n };\n BigNumber.prototype.toTwos = function (value) {\n return toBigNumber(_bnify(this).toTwos(value));\n };\n BigNumber.prototype.abs = function () {\n if (this._hex[0] === '-') {\n return toBigNumber(_bnify(this).mul(BN_1));\n }\n return this;\n };\n BigNumber.prototype.add = function (other) {\n return toBigNumber(_bnify(this).add(toBN(other)));\n };\n BigNumber.prototype.sub = function (other) {\n return toBigNumber(_bnify(this).sub(toBN(other)));\n };\n BigNumber.prototype.div = function (other) {\n var o = bigNumberify(other);\n if (o.isZero()) {\n errors.throwError('division by zero', errors.NUMERIC_FAULT, { operation: 'divide', fault: 'division by zero' });\n }\n return toBigNumber(_bnify(this).div(toBN(other)));\n };\n BigNumber.prototype.mul = function (other) {\n return toBigNumber(_bnify(this).mul(toBN(other)));\n };\n BigNumber.prototype.mod = function (other) {\n return toBigNumber(_bnify(this).mod(toBN(other)));\n };\n BigNumber.prototype.pow = function (other) {\n return toBigNumber(_bnify(this).pow(toBN(other)));\n };\n BigNumber.prototype.maskn = function (value) {\n return toBigNumber(_bnify(this).maskn(value));\n };\n BigNumber.prototype.eq = function (other) {\n return _bnify(this).eq(toBN(other));\n };\n BigNumber.prototype.lt = function (other) {\n return _bnify(this).lt(toBN(other));\n };\n BigNumber.prototype.lte = function (other) {\n return _bnify(this).lte(toBN(other));\n };\n BigNumber.prototype.gt = function (other) {\n return _bnify(this).gt(toBN(other));\n };\n BigNumber.prototype.gte = function (other) {\n return _bnify(this).gte(toBN(other));\n };\n BigNumber.prototype.isZero = function () {\n return _bnify(this).isZero();\n };\n BigNumber.prototype.toNumber = function () {\n try {\n return _bnify(this).toNumber();\n }\n catch (error) {\n errors.throwError('overflow', errors.NUMERIC_FAULT, { operation: 'setValue', fault: 'overflow', details: error.message });\n }\n return null;\n };\n BigNumber.prototype.toString = function () {\n return _bnify(this).toString(10);\n };\n BigNumber.prototype.toHexString = function () {\n return this._hex;\n };\n BigNumber.isBigNumber = function (value) {\n return properties_1.isType(value, 'BigNumber');\n };\n return BigNumber;\n}());\nexports.BigNumber = BigNumber;\nfunction bigNumberify(value) {\n if (BigNumber.isBigNumber(value)) {\n return value;\n }\n return new BigNumber(value);\n}\nexports.bigNumberify = bigNumberify;\n\n\n/***/ }),\n\n/***/ 8722:\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\n\"use strict\";\n\n/**\n * Conversion Utilities\n *\n */\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar errors = __importStar(__webpack_require__(4615));\n///////////////////////////////\nfunction isHexable(value) {\n return !!(value.toHexString);\n}\nexports.isHexable = isHexable;\nfunction addSlice(array) {\n if (array.slice) {\n return array;\n }\n array.slice = function () {\n var args = Array.prototype.slice.call(arguments);\n return addSlice(new Uint8Array(Array.prototype.slice.apply(array, args)));\n };\n return array;\n}\nfunction isArrayish(value) {\n if (!value || parseInt(String(value.length)) != value.length || typeof (value) === 'string') {\n return false;\n }\n for (var i = 0; i < value.length; i++) {\n var v = value[i];\n if (v < 0 || v >= 256 || parseInt(String(v)) != v) {\n return false;\n }\n }\n return true;\n}\nexports.isArrayish = isArrayish;\nfunction arrayify(value) {\n if (value == null) {\n errors.throwError('cannot convert null value to array', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n if (isHexable(value)) {\n value = value.toHexString();\n }\n if (typeof (value) === 'string') {\n var match = value.match(/^(0x)?[0-9a-fA-F]*$/);\n if (!match) {\n errors.throwError('invalid hexidecimal string', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n if (match[1] !== '0x') {\n errors.throwError('hex string must have 0x prefix', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n value = value.substring(2);\n if (value.length % 2) {\n value = '0' + value;\n }\n var result = [];\n for (var i = 0; i < value.length; i += 2) {\n result.push(parseInt(value.substr(i, 2), 16));\n }\n return addSlice(new Uint8Array(result));\n }\n if (isArrayish(value)) {\n return addSlice(new Uint8Array(value));\n }\n errors.throwError('invalid arrayify value', null, { arg: 'value', value: value, type: typeof (value) });\n return null;\n}\nexports.arrayify = arrayify;\nfunction concat(objects) {\n var arrays = [];\n var length = 0;\n for (var i = 0; i < objects.length; i++) {\n var object = arrayify(objects[i]);\n arrays.push(object);\n length += object.length;\n }\n var result = new Uint8Array(length);\n var offset = 0;\n for (var i = 0; i < arrays.length; i++) {\n result.set(arrays[i], offset);\n offset += arrays[i].length;\n }\n return addSlice(result);\n}\nexports.concat = concat;\nfunction stripZeros(value) {\n var result = arrayify(value);\n if (result.length === 0) {\n return result;\n }\n // Find the first non-zero entry\n var start = 0;\n while (result[start] === 0) {\n start++;\n }\n // If we started with zeros, strip them\n if (start) {\n result = result.slice(start);\n }\n return result;\n}\nexports.stripZeros = stripZeros;\nfunction padZeros(value, length) {\n value = arrayify(value);\n if (length < value.length) {\n throw new Error('cannot pad');\n }\n var result = new Uint8Array(length);\n result.set(value, length - value.length);\n return addSlice(result);\n}\nexports.padZeros = padZeros;\nfunction isHexString(value, length) {\n if (typeof (value) !== 'string' || !value.match(/^0x[0-9A-Fa-f]*$/)) {\n return false;\n }\n if (length && value.length !== 2 + 2 * length) {\n return false;\n }\n return true;\n}\nexports.isHexString = isHexString;\nvar HexCharacters = '0123456789abcdef';\nfunction hexlify(value) {\n if (isHexable(value)) {\n return value.toHexString();\n }\n if (typeof (value) === 'number') {\n if (value < 0) {\n errors.throwError('cannot hexlify negative value', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n // @TODO: Roll this into the above error as a numeric fault (overflow); next version, not backward compatible\n // We can about (value == MAX_INT) to as well, since that may indicate we underflowed already\n if (value >= 9007199254740991) {\n errors.throwError(\"out-of-range\", errors.NUMERIC_FAULT, {\n operartion: \"hexlify\",\n fault: \"out-of-safe-range\"\n });\n }\n var hex = '';\n while (value) {\n hex = HexCharacters[value & 0x0f] + hex;\n value = Math.floor(value / 16);\n }\n if (hex.length) {\n if (hex.length % 2) {\n hex = '0' + hex;\n }\n return '0x' + hex;\n }\n return '0x00';\n }\n if (typeof (value) === 'string') {\n var match = value.match(/^(0x)?[0-9a-fA-F]*$/);\n if (!match) {\n errors.throwError('invalid hexidecimal string', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n if (match[1] !== '0x') {\n errors.throwError('hex string must have 0x prefix', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n if (value.length % 2) {\n value = '0x0' + value.substring(2);\n }\n return value;\n }\n if (isArrayish(value)) {\n var result = [];\n for (var i = 0; i < value.length; i++) {\n var v = value[i];\n result.push(HexCharacters[(v & 0xf0) >> 4] + HexCharacters[v & 0x0f]);\n }\n return '0x' + result.join('');\n }\n errors.throwError('invalid hexlify value', null, { arg: 'value', value: value });\n return 'never';\n}\nexports.hexlify = hexlify;\nfunction hexDataLength(data) {\n if (!isHexString(data) || (data.length % 2) !== 0) {\n return null;\n }\n return (data.length - 2) / 2;\n}\nexports.hexDataLength = hexDataLength;\nfunction hexDataSlice(data, offset, endOffset) {\n if (!isHexString(data)) {\n errors.throwError('invalid hex data', errors.INVALID_ARGUMENT, { arg: 'value', value: data });\n }\n if ((data.length % 2) !== 0) {\n errors.throwError('hex data length must be even', errors.INVALID_ARGUMENT, { arg: 'value', value: data });\n }\n offset = 2 + 2 * offset;\n if (endOffset != null) {\n return '0x' + data.substring(offset, 2 + 2 * endOffset);\n }\n return '0x' + data.substring(offset);\n}\nexports.hexDataSlice = hexDataSlice;\nfunction hexStripZeros(value) {\n if (!isHexString(value)) {\n errors.throwError('invalid hex string', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n while (value.length > 3 && value.substring(0, 3) === '0x0') {\n value = '0x' + value.substring(3);\n }\n return value;\n}\nexports.hexStripZeros = hexStripZeros;\nfunction hexZeroPad(value, length) {\n if (!isHexString(value)) {\n errors.throwError('invalid hex string', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n while (value.length < 2 * length + 2) {\n value = '0x0' + value.substring(2);\n }\n return value;\n}\nexports.hexZeroPad = hexZeroPad;\nfunction isSignature(value) {\n return (value && value.r != null && value.s != null);\n}\nfunction splitSignature(signature) {\n var v = 0;\n var r = '0x', s = '0x';\n if (isSignature(signature)) {\n if (signature.v == null && signature.recoveryParam == null) {\n errors.throwError('at least on of recoveryParam or v must be specified', errors.INVALID_ARGUMENT, { argument: 'signature', value: signature });\n }\n r = hexZeroPad(signature.r, 32);\n s = hexZeroPad(signature.s, 32);\n v = signature.v;\n if (typeof (v) === 'string') {\n v = parseInt(v, 16);\n }\n var recoveryParam = signature.recoveryParam;\n if (recoveryParam == null && signature.v != null) {\n recoveryParam = 1 - (v % 2);\n }\n v = 27 + recoveryParam;\n }\n else {\n var bytes = arrayify(signature);\n if (bytes.length !== 65) {\n throw new Error('invalid signature');\n }\n r = hexlify(bytes.slice(0, 32));\n s = hexlify(bytes.slice(32, 64));\n v = bytes[64];\n if (v !== 27 && v !== 28) {\n v = 27 + (v % 2);\n }\n }\n return {\n r: r,\n s: s,\n recoveryParam: (v - 27),\n v: v\n };\n}\nexports.splitSignature = splitSignature;\nfunction joinSignature(signature) {\n signature = splitSignature(signature);\n return hexlify(concat([\n signature.r,\n signature.s,\n (signature.recoveryParam ? '0x1c' : '0x1b')\n ]));\n}\nexports.joinSignature = joinSignature;\n\n\n/***/ }),\n\n/***/ 9095:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar sha3 = __webpack_require__(1094);\nvar bytes_1 = __webpack_require__(8722);\nfunction keccak256(data) {\n return '0x' + sha3.keccak_256(bytes_1.arrayify(data));\n}\nexports.keccak256 = keccak256;\n\n\n/***/ }),\n\n/***/ 4498:\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar errors = __importStar(__webpack_require__(4615));\nfunction defineReadOnly(object, name, value) {\n Object.defineProperty(object, name, {\n enumerable: true,\n value: value,\n writable: false,\n });\n}\nexports.defineReadOnly = defineReadOnly;\n// There are some issues with instanceof with npm link, so we use this\n// to ensure types are what we expect.\nfunction setType(object, type) {\n Object.defineProperty(object, '_ethersType', { configurable: false, value: type, writable: false });\n}\nexports.setType = setType;\nfunction isType(object, type) {\n return (object && object._ethersType === type);\n}\nexports.isType = isType;\nfunction resolveProperties(object) {\n var result = {};\n var promises = [];\n Object.keys(object).forEach(function (key) {\n var value = object[key];\n if (value instanceof Promise) {\n promises.push(value.then(function (value) {\n result[key] = value;\n return null;\n }));\n }\n else {\n result[key] = value;\n }\n });\n return Promise.all(promises).then(function () {\n return result;\n });\n}\nexports.resolveProperties = resolveProperties;\nfunction checkProperties(object, properties) {\n if (!object || typeof (object) !== 'object') {\n errors.throwError('invalid object', errors.INVALID_ARGUMENT, {\n argument: 'object',\n value: object\n });\n }\n Object.keys(object).forEach(function (key) {\n if (!properties[key]) {\n errors.throwError('invalid object key - ' + key, errors.INVALID_ARGUMENT, {\n argument: 'transaction',\n value: object,\n key: key\n });\n }\n });\n}\nexports.checkProperties = checkProperties;\nfunction shallowCopy(object) {\n var result = {};\n for (var key in object) {\n result[key] = object[key];\n }\n return result;\n}\nexports.shallowCopy = shallowCopy;\nvar opaque = { boolean: true, number: true, string: true };\nfunction deepCopy(object, frozen) {\n // Opaque objects are not mutable, so safe to copy by assignment\n if (object === undefined || object === null || opaque[typeof (object)]) {\n return object;\n }\n // Arrays are mutable, so we need to create a copy\n if (Array.isArray(object)) {\n var result = object.map(function (item) { return deepCopy(item, frozen); });\n if (frozen) {\n Object.freeze(result);\n }\n return result;\n }\n if (typeof (object) === 'object') {\n // Some internal objects, which are already immutable\n if (isType(object, 'BigNumber')) {\n return object;\n }\n if (isType(object, 'Description')) {\n return object;\n }\n if (isType(object, 'Indexed')) {\n return object;\n }\n var result = {};\n for (var key in object) {\n var value = object[key];\n if (value === undefined) {\n continue;\n }\n defineReadOnly(result, key, deepCopy(value, frozen));\n }\n if (frozen) {\n Object.freeze(result);\n }\n return result;\n }\n // The function type is also immutable, so safe to copy by assignment\n if (typeof (object) === 'function') {\n return object;\n }\n throw new Error('Cannot deepCopy ' + typeof (object));\n}\nexports.deepCopy = deepCopy;\n// See: https://github.com/isaacs/inherits/blob/master/inherits_browser.js\nfunction inherits(ctor, superCtor) {\n ctor.super_ = superCtor;\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n}\nfunction inheritable(parent) {\n return function (child) {\n inherits(child, parent);\n defineReadOnly(child, 'inherits', inheritable(child));\n };\n}\nexports.inheritable = inheritable;\n\n\n/***/ }),\n\n/***/ 8440:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\"use strict\";\n\n//See: https://github.com/ethereum/wiki/wiki/RLP\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar bytes_1 = __webpack_require__(8722);\nfunction arrayifyInteger(value) {\n var result = [];\n while (value) {\n result.unshift(value & 0xff);\n value >>= 8;\n }\n return result;\n}\nfunction unarrayifyInteger(data, offset, length) {\n var result = 0;\n for (var i = 0; i < length; i++) {\n result = (result * 256) + data[offset + i];\n }\n return result;\n}\nfunction _encode(object) {\n if (Array.isArray(object)) {\n var payload = [];\n object.forEach(function (child) {\n payload = payload.concat(_encode(child));\n });\n if (payload.length <= 55) {\n payload.unshift(0xc0 + payload.length);\n return payload;\n }\n var length = arrayifyInteger(payload.length);\n length.unshift(0xf7 + length.length);\n return length.concat(payload);\n }\n var data = Array.prototype.slice.call(bytes_1.arrayify(object));\n if (data.length === 1 && data[0] <= 0x7f) {\n return data;\n }\n else if (data.length <= 55) {\n data.unshift(0x80 + data.length);\n return data;\n }\n var length = arrayifyInteger(data.length);\n length.unshift(0xb7 + length.length);\n return length.concat(data);\n}\nfunction encode(object) {\n return bytes_1.hexlify(_encode(object));\n}\nexports.encode = encode;\nfunction _decodeChildren(data, offset, childOffset, length) {\n var result = [];\n while (childOffset < offset + 1 + length) {\n var decoded = _decode(data, childOffset);\n result.push(decoded.result);\n childOffset += decoded.consumed;\n if (childOffset > offset + 1 + length) {\n throw new Error('invalid rlp');\n }\n }\n return { consumed: (1 + length), result: result };\n}\n// returns { consumed: number, result: Object }\nfunction _decode(data, offset) {\n if (data.length === 0) {\n throw new Error('invalid rlp data');\n }\n // Array with extra length prefix\n if (data[offset] >= 0xf8) {\n var lengthLength = data[offset] - 0xf7;\n if (offset + 1 + lengthLength > data.length) {\n throw new Error('too short');\n }\n var length = unarrayifyInteger(data, offset + 1, lengthLength);\n if (offset + 1 + lengthLength + length > data.length) {\n throw new Error('to short');\n }\n return _decodeChildren(data, offset, offset + 1 + lengthLength, lengthLength + length);\n }\n else if (data[offset] >= 0xc0) {\n var length = data[offset] - 0xc0;\n if (offset + 1 + length > data.length) {\n throw new Error('invalid rlp data');\n }\n return _decodeChildren(data, offset, offset + 1, length);\n }\n else if (data[offset] >= 0xb8) {\n var lengthLength = data[offset] - 0xb7;\n if (offset + 1 + lengthLength > data.length) {\n throw new Error('invalid rlp data');\n }\n var length = unarrayifyInteger(data, offset + 1, lengthLength);\n if (offset + 1 + lengthLength + length > data.length) {\n throw new Error('invalid rlp data');\n }\n var result = bytes_1.hexlify(data.slice(offset + 1 + lengthLength, offset + 1 + lengthLength + length));\n return { consumed: (1 + lengthLength + length), result: result };\n }\n else if (data[offset] >= 0x80) {\n var length = data[offset] - 0x80;\n if (offset + 1 + length > data.length) {\n throw new Error('invlaid rlp data');\n }\n var result = bytes_1.hexlify(data.slice(offset + 1, offset + 1 + length));\n return { consumed: (1 + length), result: result };\n }\n return { consumed: 1, result: bytes_1.hexlify(data[offset]) };\n}\nfunction decode(data) {\n var bytes = bytes_1.arrayify(data);\n var decoded = _decode(bytes, 0);\n if (decoded.consumed !== bytes.length) {\n throw new Error('invalid rlp data');\n }\n return decoded.result;\n}\nexports.decode = decode;\n\n\n/***/ }),\n\n/***/ 6253:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar constants_1 = __webpack_require__(3695);\nvar errors_1 = __webpack_require__(4615);\nvar bytes_1 = __webpack_require__(8722);\n///////////////////////////////\nvar UnicodeNormalizationForm;\n(function (UnicodeNormalizationForm) {\n UnicodeNormalizationForm[\"current\"] = \"\";\n UnicodeNormalizationForm[\"NFC\"] = \"NFC\";\n UnicodeNormalizationForm[\"NFD\"] = \"NFD\";\n UnicodeNormalizationForm[\"NFKC\"] = \"NFKC\";\n UnicodeNormalizationForm[\"NFKD\"] = \"NFKD\";\n})(UnicodeNormalizationForm = exports.UnicodeNormalizationForm || (exports.UnicodeNormalizationForm = {}));\n;\n// http://stackoverflow.com/questions/18729405/how-to-convert-utf8-string-to-byte-array\nfunction toUtf8Bytes(str, form) {\n if (form === void 0) { form = UnicodeNormalizationForm.current; }\n if (form != UnicodeNormalizationForm.current) {\n errors_1.checkNormalize();\n str = str.normalize(form);\n }\n var result = [];\n for (var i = 0; i < str.length; i++) {\n var c = str.charCodeAt(i);\n if (c < 0x80) {\n result.push(c);\n }\n else if (c < 0x800) {\n result.push((c >> 6) | 0xc0);\n result.push((c & 0x3f) | 0x80);\n }\n else if ((c & 0xfc00) == 0xd800) {\n i++;\n var c2 = str.charCodeAt(i);\n if (i >= str.length || (c2 & 0xfc00) !== 0xdc00) {\n throw new Error('invalid utf-8 string');\n }\n // Surrogate Pair\n c = 0x10000 + ((c & 0x03ff) << 10) + (c2 & 0x03ff);\n result.push((c >> 18) | 0xf0);\n result.push(((c >> 12) & 0x3f) | 0x80);\n result.push(((c >> 6) & 0x3f) | 0x80);\n result.push((c & 0x3f) | 0x80);\n }\n else {\n result.push((c >> 12) | 0xe0);\n result.push(((c >> 6) & 0x3f) | 0x80);\n result.push((c & 0x3f) | 0x80);\n }\n }\n return bytes_1.arrayify(result);\n}\nexports.toUtf8Bytes = toUtf8Bytes;\n;\n// http://stackoverflow.com/questions/13356493/decode-utf-8-with-javascript#13691499\nfunction toUtf8String(bytes, ignoreErrors) {\n bytes = bytes_1.arrayify(bytes);\n var result = '';\n var i = 0;\n // Invalid bytes are ignored\n while (i < bytes.length) {\n var c = bytes[i++];\n // 0xxx xxxx\n if (c >> 7 === 0) {\n result += String.fromCharCode(c);\n continue;\n }\n // Multibyte; how many bytes left for this character?\n var extraLength = null;\n var overlongMask = null;\n // 110x xxxx 10xx xxxx\n if ((c & 0xe0) === 0xc0) {\n extraLength = 1;\n overlongMask = 0x7f;\n // 1110 xxxx 10xx xxxx 10xx xxxx\n }\n else if ((c & 0xf0) === 0xe0) {\n extraLength = 2;\n overlongMask = 0x7ff;\n // 1111 0xxx 10xx xxxx 10xx xxxx 10xx xxxx\n }\n else if ((c & 0xf8) === 0xf0) {\n extraLength = 3;\n overlongMask = 0xffff;\n }\n else {\n if (!ignoreErrors) {\n if ((c & 0xc0) === 0x80) {\n throw new Error('invalid utf8 byte sequence; unexpected continuation byte');\n }\n throw new Error('invalid utf8 byte sequence; invalid prefix');\n }\n continue;\n }\n // Do we have enough bytes in our data?\n if (i + extraLength > bytes.length) {\n if (!ignoreErrors) {\n throw new Error('invalid utf8 byte sequence; too short');\n }\n // If there is an invalid unprocessed byte, skip continuation bytes\n for (; i < bytes.length; i++) {\n if (bytes[i] >> 6 !== 0x02) {\n break;\n }\n }\n continue;\n }\n // Remove the length prefix from the char\n var res = c & ((1 << (8 - extraLength - 1)) - 1);\n for (var j = 0; j < extraLength; j++) {\n var nextChar = bytes[i];\n // Invalid continuation byte\n if ((nextChar & 0xc0) != 0x80) {\n res = null;\n break;\n }\n ;\n res = (res << 6) | (nextChar & 0x3f);\n i++;\n }\n if (res === null) {\n if (!ignoreErrors) {\n throw new Error('invalid utf8 byte sequence; invalid continuation byte');\n }\n continue;\n }\n // Check for overlong seuences (more bytes than needed)\n if (res <= overlongMask) {\n if (!ignoreErrors) {\n throw new Error('invalid utf8 byte sequence; overlong');\n }\n continue;\n }\n // Maximum code point\n if (res > 0x10ffff) {\n if (!ignoreErrors) {\n throw new Error('invalid utf8 byte sequence; out-of-range');\n }\n continue;\n }\n // Reserved for UTF-16 surrogate halves\n if (res >= 0xd800 && res <= 0xdfff) {\n if (!ignoreErrors) {\n throw new Error('invalid utf8 byte sequence; utf-16 surrogate');\n }\n continue;\n }\n if (res <= 0xffff) {\n result += String.fromCharCode(res);\n continue;\n }\n res -= 0x10000;\n result += String.fromCharCode(((res >> 10) & 0x3ff) + 0xd800, (res & 0x3ff) + 0xdc00);\n }\n return result;\n}\nexports.toUtf8String = toUtf8String;\nfunction formatBytes32String(text) {\n // Get the bytes\n var bytes = toUtf8Bytes(text);\n // Check we have room for null-termination\n if (bytes.length > 31) {\n throw new Error('bytes32 string must be less than 32 bytes');\n }\n // Zero-pad (implicitly null-terminates)\n return bytes_1.hexlify(bytes_1.concat([bytes, constants_1.HashZero]).slice(0, 32));\n}\nexports.formatBytes32String = formatBytes32String;\nfunction parseBytes32String(bytes) {\n var data = bytes_1.arrayify(bytes);\n // Must be 32 bytes with a null-termination\n if (data.length !== 32) {\n throw new Error('invalid bytes32 - not 32 bytes long');\n }\n if (data[31] !== 0) {\n throw new Error('invalid bytes32 sdtring - no null terminator');\n }\n // Find the null termination\n var length = 31;\n while (data[length - 1] === 0) {\n length--;\n }\n // Determine the string value\n return toUtf8String(data.slice(0, length));\n}\nexports.parseBytes32String = parseBytes32String;\n\n\n/***/ }),\n\n/***/ 9742:\n/***/ ((__unused_webpack_module, exports) => {\n\n\"use strict\";\n\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(\n uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)\n ))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n\n\n/***/ }),\n\n/***/ 8442:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n// Blake2B in pure Javascript\n// Adapted from the reference implementation in RFC7693\n// Ported to Javascript by DC - https://github.com/dcposch\n\nconst util = __webpack_require__(9488)\n\n// 64-bit unsigned addition\n// Sets v[a,a+1] += v[b,b+1]\n// v should be a Uint32Array\nfunction ADD64AA (v, a, b) {\n const o0 = v[a] + v[b]\n let o1 = v[a + 1] + v[b + 1]\n if (o0 >= 0x100000000) {\n o1++\n }\n v[a] = o0\n v[a + 1] = o1\n}\n\n// 64-bit unsigned addition\n// Sets v[a,a+1] += b\n// b0 is the low 32 bits of b, b1 represents the high 32 bits\nfunction ADD64AC (v, a, b0, b1) {\n let o0 = v[a] + b0\n if (b0 < 0) {\n o0 += 0x100000000\n }\n let o1 = v[a + 1] + b1\n if (o0 >= 0x100000000) {\n o1++\n }\n v[a] = o0\n v[a + 1] = o1\n}\n\n// Little-endian byte access\nfunction B2B_GET32 (arr, i) {\n return arr[i] ^ (arr[i + 1] << 8) ^ (arr[i + 2] << 16) ^ (arr[i + 3] << 24)\n}\n\n// G Mixing function\n// The ROTRs are inlined for speed\nfunction B2B_G (a, b, c, d, ix, iy) {\n const x0 = m[ix]\n const x1 = m[ix + 1]\n const y0 = m[iy]\n const y1 = m[iy + 1]\n\n ADD64AA(v, a, b) // v[a,a+1] += v[b,b+1] ... in JS we must store a uint64 as two uint32s\n ADD64AC(v, a, x0, x1) // v[a, a+1] += x ... x0 is the low 32 bits of x, x1 is the high 32 bits\n\n // v[d,d+1] = (v[d,d+1] xor v[a,a+1]) rotated to the right by 32 bits\n let xor0 = v[d] ^ v[a]\n let xor1 = v[d + 1] ^ v[a + 1]\n v[d] = xor1\n v[d + 1] = xor0\n\n ADD64AA(v, c, d)\n\n // v[b,b+1] = (v[b,b+1] xor v[c,c+1]) rotated right by 24 bits\n xor0 = v[b] ^ v[c]\n xor1 = v[b + 1] ^ v[c + 1]\n v[b] = (xor0 >>> 24) ^ (xor1 << 8)\n v[b + 1] = (xor1 >>> 24) ^ (xor0 << 8)\n\n ADD64AA(v, a, b)\n ADD64AC(v, a, y0, y1)\n\n // v[d,d+1] = (v[d,d+1] xor v[a,a+1]) rotated right by 16 bits\n xor0 = v[d] ^ v[a]\n xor1 = v[d + 1] ^ v[a + 1]\n v[d] = (xor0 >>> 16) ^ (xor1 << 16)\n v[d + 1] = (xor1 >>> 16) ^ (xor0 << 16)\n\n ADD64AA(v, c, d)\n\n // v[b,b+1] = (v[b,b+1] xor v[c,c+1]) rotated right by 63 bits\n xor0 = v[b] ^ v[c]\n xor1 = v[b + 1] ^ v[c + 1]\n v[b] = (xor1 >>> 31) ^ (xor0 << 1)\n v[b + 1] = (xor0 >>> 31) ^ (xor1 << 1)\n}\n\n// Initialization Vector\nconst BLAKE2B_IV32 = new Uint32Array([\n 0xf3bcc908,\n 0x6a09e667,\n 0x84caa73b,\n 0xbb67ae85,\n 0xfe94f82b,\n 0x3c6ef372,\n 0x5f1d36f1,\n 0xa54ff53a,\n 0xade682d1,\n 0x510e527f,\n 0x2b3e6c1f,\n 0x9b05688c,\n 0xfb41bd6b,\n 0x1f83d9ab,\n 0x137e2179,\n 0x5be0cd19\n])\n\nconst SIGMA8 = [\n 0,\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 13,\n 14,\n 15,\n 14,\n 10,\n 4,\n 8,\n 9,\n 15,\n 13,\n 6,\n 1,\n 12,\n 0,\n 2,\n 11,\n 7,\n 5,\n 3,\n 11,\n 8,\n 12,\n 0,\n 5,\n 2,\n 15,\n 13,\n 10,\n 14,\n 3,\n 6,\n 7,\n 1,\n 9,\n 4,\n 7,\n 9,\n 3,\n 1,\n 13,\n 12,\n 11,\n 14,\n 2,\n 6,\n 5,\n 10,\n 4,\n 0,\n 15,\n 8,\n 9,\n 0,\n 5,\n 7,\n 2,\n 4,\n 10,\n 15,\n 14,\n 1,\n 11,\n 12,\n 6,\n 8,\n 3,\n 13,\n 2,\n 12,\n 6,\n 10,\n 0,\n 11,\n 8,\n 3,\n 4,\n 13,\n 7,\n 5,\n 15,\n 14,\n 1,\n 9,\n 12,\n 5,\n 1,\n 15,\n 14,\n 13,\n 4,\n 10,\n 0,\n 7,\n 6,\n 3,\n 9,\n 2,\n 8,\n 11,\n 13,\n 11,\n 7,\n 14,\n 12,\n 1,\n 3,\n 9,\n 5,\n 0,\n 15,\n 4,\n 8,\n 6,\n 2,\n 10,\n 6,\n 15,\n 14,\n 9,\n 11,\n 3,\n 0,\n 8,\n 12,\n 2,\n 13,\n 7,\n 1,\n 4,\n 10,\n 5,\n 10,\n 2,\n 8,\n 4,\n 7,\n 6,\n 1,\n 5,\n 15,\n 11,\n 9,\n 14,\n 3,\n 12,\n 13,\n 0,\n 0,\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 13,\n 14,\n 15,\n 14,\n 10,\n 4,\n 8,\n 9,\n 15,\n 13,\n 6,\n 1,\n 12,\n 0,\n 2,\n 11,\n 7,\n 5,\n 3\n]\n\n// These are offsets into a uint64 buffer.\n// Multiply them all by 2 to make them offsets into a uint32 buffer,\n// because this is Javascript and we don't have uint64s\nconst SIGMA82 = new Uint8Array(\n SIGMA8.map(function (x) {\n return x * 2\n })\n)\n\n// Compression function. 'last' flag indicates last block.\n// Note we're representing 16 uint64s as 32 uint32s\nconst v = new Uint32Array(32)\nconst m = new Uint32Array(32)\nfunction blake2bCompress (ctx, last) {\n let i = 0\n\n // init work variables\n for (i = 0; i < 16; i++) {\n v[i] = ctx.h[i]\n v[i + 16] = BLAKE2B_IV32[i]\n }\n\n // low 64 bits of offset\n v[24] = v[24] ^ ctx.t\n v[25] = v[25] ^ (ctx.t / 0x100000000)\n // high 64 bits not supported, offset may not be higher than 2**53-1\n\n // last block flag set ?\n if (last) {\n v[28] = ~v[28]\n v[29] = ~v[29]\n }\n\n // get little-endian words\n for (i = 0; i < 32; i++) {\n m[i] = B2B_GET32(ctx.b, 4 * i)\n }\n\n // twelve rounds of mixing\n // uncomment the DebugPrint calls to log the computation\n // and match the RFC sample documentation\n // util.debugPrint(' m[16]', m, 64)\n for (i = 0; i < 12; i++) {\n // util.debugPrint(' (i=' + (i < 10 ? ' ' : '') + i + ') v[16]', v, 64)\n B2B_G(0, 8, 16, 24, SIGMA82[i * 16 + 0], SIGMA82[i * 16 + 1])\n B2B_G(2, 10, 18, 26, SIGMA82[i * 16 + 2], SIGMA82[i * 16 + 3])\n B2B_G(4, 12, 20, 28, SIGMA82[i * 16 + 4], SIGMA82[i * 16 + 5])\n B2B_G(6, 14, 22, 30, SIGMA82[i * 16 + 6], SIGMA82[i * 16 + 7])\n B2B_G(0, 10, 20, 30, SIGMA82[i * 16 + 8], SIGMA82[i * 16 + 9])\n B2B_G(2, 12, 22, 24, SIGMA82[i * 16 + 10], SIGMA82[i * 16 + 11])\n B2B_G(4, 14, 16, 26, SIGMA82[i * 16 + 12], SIGMA82[i * 16 + 13])\n B2B_G(6, 8, 18, 28, SIGMA82[i * 16 + 14], SIGMA82[i * 16 + 15])\n }\n // util.debugPrint(' (i=12) v[16]', v, 64)\n\n for (i = 0; i < 16; i++) {\n ctx.h[i] = ctx.h[i] ^ v[i] ^ v[i + 16]\n }\n // util.debugPrint('h[8]', ctx.h, 64)\n}\n\n// Creates a BLAKE2b hashing context\n// Requires an output length between 1 and 64 bytes\n// Takes an optional Uint8Array key\nfunction blake2bInit (outlen, key) {\n if (outlen === 0 || outlen > 64) {\n throw new Error('Illegal output length, expected 0 < length <= 64')\n }\n if (key && key.length > 64) {\n throw new Error('Illegal key, expected Uint8Array with 0 < length <= 64')\n }\n\n // state, 'param block'\n const ctx = {\n b: new Uint8Array(128),\n h: new Uint32Array(16),\n t: 0, // input count\n c: 0, // pointer within buffer\n outlen: outlen // output length in bytes\n }\n\n // initialize hash state\n for (let i = 0; i < 16; i++) {\n ctx.h[i] = BLAKE2B_IV32[i]\n }\n const keylen = key ? key.length : 0\n ctx.h[0] ^= 0x01010000 ^ (keylen << 8) ^ outlen\n\n // key the hash, if applicable\n if (key) {\n blake2bUpdate(ctx, key)\n // at the end\n ctx.c = 128\n }\n\n return ctx\n}\n\n// Updates a BLAKE2b streaming hash\n// Requires hash context and Uint8Array (byte array)\nfunction blake2bUpdate (ctx, input) {\n for (let i = 0; i < input.length; i++) {\n if (ctx.c === 128) {\n // buffer full ?\n ctx.t += ctx.c // add counters\n blake2bCompress(ctx, false) // compress (not last)\n ctx.c = 0 // counter to zero\n }\n ctx.b[ctx.c++] = input[i]\n }\n}\n\n// Completes a BLAKE2b streaming hash\n// Returns a Uint8Array containing the message digest\nfunction blake2bFinal (ctx) {\n ctx.t += ctx.c // mark last block offset\n\n while (ctx.c < 128) {\n // fill up with zeros\n ctx.b[ctx.c++] = 0\n }\n blake2bCompress(ctx, true) // final block flag = 1\n\n // little endian convert and store\n const out = new Uint8Array(ctx.outlen)\n for (let i = 0; i < ctx.outlen; i++) {\n out[i] = ctx.h[i >> 2] >> (8 * (i & 3))\n }\n return out\n}\n\n// Computes the BLAKE2B hash of a string or byte array, and returns a Uint8Array\n//\n// Returns a n-byte Uint8Array\n//\n// Parameters:\n// - input - the input bytes, as a string, Buffer or Uint8Array\n// - key - optional key Uint8Array, up to 64 bytes\n// - outlen - optional output length in bytes, default 64\nfunction blake2b (input, key, outlen) {\n // preprocess inputs\n outlen = outlen || 64\n input = util.normalizeInput(input)\n\n // do the math\n const ctx = blake2bInit(outlen, key)\n blake2bUpdate(ctx, input)\n return blake2bFinal(ctx)\n}\n\n// Computes the BLAKE2B hash of a string or byte array\n//\n// Returns an n-byte hash in hex, all lowercase\n//\n// Parameters:\n// - input - the input bytes, as a string, Buffer, or Uint8Array\n// - key - optional key Uint8Array, up to 64 bytes\n// - outlen - optional output length in bytes, default 64\nfunction blake2bHex (input, key, outlen) {\n const output = blake2b(input, key, outlen)\n return util.toHex(output)\n}\n\nmodule.exports = {\n blake2b: blake2b,\n blake2bHex: blake2bHex,\n blake2bInit: blake2bInit,\n blake2bUpdate: blake2bUpdate,\n blake2bFinal: blake2bFinal\n}\n\n\n/***/ }),\n\n/***/ 5297:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n// BLAKE2s hash function in pure Javascript\n// Adapted from the reference implementation in RFC7693\n// Ported to Javascript by DC - https://github.com/dcposch\n\nconst util = __webpack_require__(9488)\n\n// Little-endian byte access.\n// Expects a Uint8Array and an index\n// Returns the little-endian uint32 at v[i..i+3]\nfunction B2S_GET32 (v, i) {\n return v[i] ^ (v[i + 1] << 8) ^ (v[i + 2] << 16) ^ (v[i + 3] << 24)\n}\n\n// Mixing function G.\nfunction B2S_G (a, b, c, d, x, y) {\n v[a] = v[a] + v[b] + x\n v[d] = ROTR32(v[d] ^ v[a], 16)\n v[c] = v[c] + v[d]\n v[b] = ROTR32(v[b] ^ v[c], 12)\n v[a] = v[a] + v[b] + y\n v[d] = ROTR32(v[d] ^ v[a], 8)\n v[c] = v[c] + v[d]\n v[b] = ROTR32(v[b] ^ v[c], 7)\n}\n\n// 32-bit right rotation\n// x should be a uint32\n// y must be between 1 and 31, inclusive\nfunction ROTR32 (x, y) {\n return (x >>> y) ^ (x << (32 - y))\n}\n\n// Initialization Vector.\nconst BLAKE2S_IV = new Uint32Array([\n 0x6a09e667,\n 0xbb67ae85,\n 0x3c6ef372,\n 0xa54ff53a,\n 0x510e527f,\n 0x9b05688c,\n 0x1f83d9ab,\n 0x5be0cd19\n])\n\nconst SIGMA = new Uint8Array([\n 0,\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 13,\n 14,\n 15,\n 14,\n 10,\n 4,\n 8,\n 9,\n 15,\n 13,\n 6,\n 1,\n 12,\n 0,\n 2,\n 11,\n 7,\n 5,\n 3,\n 11,\n 8,\n 12,\n 0,\n 5,\n 2,\n 15,\n 13,\n 10,\n 14,\n 3,\n 6,\n 7,\n 1,\n 9,\n 4,\n 7,\n 9,\n 3,\n 1,\n 13,\n 12,\n 11,\n 14,\n 2,\n 6,\n 5,\n 10,\n 4,\n 0,\n 15,\n 8,\n 9,\n 0,\n 5,\n 7,\n 2,\n 4,\n 10,\n 15,\n 14,\n 1,\n 11,\n 12,\n 6,\n 8,\n 3,\n 13,\n 2,\n 12,\n 6,\n 10,\n 0,\n 11,\n 8,\n 3,\n 4,\n 13,\n 7,\n 5,\n 15,\n 14,\n 1,\n 9,\n 12,\n 5,\n 1,\n 15,\n 14,\n 13,\n 4,\n 10,\n 0,\n 7,\n 6,\n 3,\n 9,\n 2,\n 8,\n 11,\n 13,\n 11,\n 7,\n 14,\n 12,\n 1,\n 3,\n 9,\n 5,\n 0,\n 15,\n 4,\n 8,\n 6,\n 2,\n 10,\n 6,\n 15,\n 14,\n 9,\n 11,\n 3,\n 0,\n 8,\n 12,\n 2,\n 13,\n 7,\n 1,\n 4,\n 10,\n 5,\n 10,\n 2,\n 8,\n 4,\n 7,\n 6,\n 1,\n 5,\n 15,\n 11,\n 9,\n 14,\n 3,\n 12,\n 13,\n 0\n])\n\n// Compression function. \"last\" flag indicates last block\nconst v = new Uint32Array(16)\nconst m = new Uint32Array(16)\nfunction blake2sCompress (ctx, last) {\n let i = 0\n for (i = 0; i < 8; i++) {\n // init work variables\n v[i] = ctx.h[i]\n v[i + 8] = BLAKE2S_IV[i]\n }\n\n v[12] ^= ctx.t // low 32 bits of offset\n v[13] ^= ctx.t / 0x100000000 // high 32 bits\n if (last) {\n // last block flag set ?\n v[14] = ~v[14]\n }\n\n for (i = 0; i < 16; i++) {\n // get little-endian words\n m[i] = B2S_GET32(ctx.b, 4 * i)\n }\n\n // ten rounds of mixing\n // uncomment the DebugPrint calls to log the computation\n // and match the RFC sample documentation\n // util.debugPrint(' m[16]', m, 32)\n for (i = 0; i < 10; i++) {\n // util.debugPrint(' (i=' + i + ') v[16]', v, 32)\n B2S_G(0, 4, 8, 12, m[SIGMA[i * 16 + 0]], m[SIGMA[i * 16 + 1]])\n B2S_G(1, 5, 9, 13, m[SIGMA[i * 16 + 2]], m[SIGMA[i * 16 + 3]])\n B2S_G(2, 6, 10, 14, m[SIGMA[i * 16 + 4]], m[SIGMA[i * 16 + 5]])\n B2S_G(3, 7, 11, 15, m[SIGMA[i * 16 + 6]], m[SIGMA[i * 16 + 7]])\n B2S_G(0, 5, 10, 15, m[SIGMA[i * 16 + 8]], m[SIGMA[i * 16 + 9]])\n B2S_G(1, 6, 11, 12, m[SIGMA[i * 16 + 10]], m[SIGMA[i * 16 + 11]])\n B2S_G(2, 7, 8, 13, m[SIGMA[i * 16 + 12]], m[SIGMA[i * 16 + 13]])\n B2S_G(3, 4, 9, 14, m[SIGMA[i * 16 + 14]], m[SIGMA[i * 16 + 15]])\n }\n // util.debugPrint(' (i=10) v[16]', v, 32)\n\n for (i = 0; i < 8; i++) {\n ctx.h[i] ^= v[i] ^ v[i + 8]\n }\n // util.debugPrint('h[8]', ctx.h, 32)\n}\n\n// Creates a BLAKE2s hashing context\n// Requires an output length between 1 and 32 bytes\n// Takes an optional Uint8Array key\nfunction blake2sInit (outlen, key) {\n if (!(outlen > 0 && outlen <= 32)) {\n throw new Error('Incorrect output length, should be in [1, 32]')\n }\n const keylen = key ? key.length : 0\n if (key && !(keylen > 0 && keylen <= 32)) {\n throw new Error('Incorrect key length, should be in [1, 32]')\n }\n\n const ctx = {\n h: new Uint32Array(BLAKE2S_IV), // hash state\n b: new Uint8Array(64), // input block\n c: 0, // pointer within block\n t: 0, // input count\n outlen: outlen // output length in bytes\n }\n ctx.h[0] ^= 0x01010000 ^ (keylen << 8) ^ outlen\n\n if (keylen > 0) {\n blake2sUpdate(ctx, key)\n ctx.c = 64 // at the end\n }\n\n return ctx\n}\n\n// Updates a BLAKE2s streaming hash\n// Requires hash context and Uint8Array (byte array)\nfunction blake2sUpdate (ctx, input) {\n for (let i = 0; i < input.length; i++) {\n if (ctx.c === 64) {\n // buffer full ?\n ctx.t += ctx.c // add counters\n blake2sCompress(ctx, false) // compress (not last)\n ctx.c = 0 // counter to zero\n }\n ctx.b[ctx.c++] = input[i]\n }\n}\n\n// Completes a BLAKE2s streaming hash\n// Returns a Uint8Array containing the message digest\nfunction blake2sFinal (ctx) {\n ctx.t += ctx.c // mark last block offset\n while (ctx.c < 64) {\n // fill up with zeros\n ctx.b[ctx.c++] = 0\n }\n blake2sCompress(ctx, true) // final block flag = 1\n\n // little endian convert and store\n const out = new Uint8Array(ctx.outlen)\n for (let i = 0; i < ctx.outlen; i++) {\n out[i] = (ctx.h[i >> 2] >> (8 * (i & 3))) & 0xff\n }\n return out\n}\n\n// Computes the BLAKE2S hash of a string or byte array, and returns a Uint8Array\n//\n// Returns a n-byte Uint8Array\n//\n// Parameters:\n// - input - the input bytes, as a string, Buffer, or Uint8Array\n// - key - optional key Uint8Array, up to 32 bytes\n// - outlen - optional output length in bytes, default 64\nfunction blake2s (input, key, outlen) {\n // preprocess inputs\n outlen = outlen || 32\n input = util.normalizeInput(input)\n\n // do the math\n const ctx = blake2sInit(outlen, key)\n blake2sUpdate(ctx, input)\n return blake2sFinal(ctx)\n}\n\n// Computes the BLAKE2S hash of a string or byte array\n//\n// Returns an n-byte hash in hex, all lowercase\n//\n// Parameters:\n// - input - the input bytes, as a string, Buffer, or Uint8Array\n// - key - optional key Uint8Array, up to 32 bytes\n// - outlen - optional output length in bytes, default 64\nfunction blake2sHex (input, key, outlen) {\n const output = blake2s(input, key, outlen)\n return util.toHex(output)\n}\n\nmodule.exports = {\n blake2s: blake2s,\n blake2sHex: blake2sHex,\n blake2sInit: blake2sInit,\n blake2sUpdate: blake2sUpdate,\n blake2sFinal: blake2sFinal\n}\n\n\n/***/ }),\n\n/***/ 1191:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\nconst b2b = __webpack_require__(8442)\nconst b2s = __webpack_require__(5297)\n\nmodule.exports = {\n blake2b: b2b.blake2b,\n blake2bHex: b2b.blake2bHex,\n blake2bInit: b2b.blake2bInit,\n blake2bUpdate: b2b.blake2bUpdate,\n blake2bFinal: b2b.blake2bFinal,\n blake2s: b2s.blake2s,\n blake2sHex: b2s.blake2sHex,\n blake2sInit: b2s.blake2sInit,\n blake2sUpdate: b2s.blake2sUpdate,\n blake2sFinal: b2s.blake2sFinal\n}\n\n\n/***/ }),\n\n/***/ 9488:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/* provided dependency */ var Buffer = __webpack_require__(8764)[\"Buffer\"];\nconst ERROR_MSG_INPUT = 'Input must be an string, Buffer or Uint8Array'\n\n// For convenience, let people hash a string, not just a Uint8Array\nfunction normalizeInput (input) {\n let ret\n if (input instanceof Uint8Array) {\n ret = input\n } else if (input instanceof Buffer) {\n ret = new Uint8Array(input)\n } else if (typeof input === 'string') {\n ret = new Uint8Array(Buffer.from(input, 'utf8'))\n } else {\n throw new Error(ERROR_MSG_INPUT)\n }\n return ret\n}\n\n// Converts a Uint8Array to a hexadecimal string\n// For example, toHex([255, 0, 255]) returns \"ff00ff\"\nfunction toHex (bytes) {\n return Array.prototype.map\n .call(bytes, function (n) {\n return (n < 16 ? '0' : '') + n.toString(16)\n })\n .join('')\n}\n\n// Converts any value in [0...2^32-1] to an 8-character hex string\nfunction uint32ToHex (val) {\n return (0x100000000 + val).toString(16).substring(1)\n}\n\n// For debugging: prints out hash state in the same format as the RFC\n// sample computation exactly, so that you can diff\nfunction debugPrint (label, arr, size) {\n let msg = '\\n' + label + ' = '\n for (let i = 0; i < arr.length; i += 2) {\n if (size === 32) {\n msg += uint32ToHex(arr[i]).toUpperCase()\n msg += ' '\n msg += uint32ToHex(arr[i + 1]).toUpperCase()\n } else if (size === 64) {\n msg += uint32ToHex(arr[i + 1]).toUpperCase()\n msg += uint32ToHex(arr[i]).toUpperCase()\n } else throw new Error('Invalid size ' + size)\n if (i % 6 === 4) {\n msg += '\\n' + new Array(label.length + 4).join(' ')\n } else if (i < arr.length - 2) {\n msg += ' '\n }\n }\n console.log(msg)\n}\n\n// For performance testing: generates N bytes of input, hashes M times\n// Measures and prints MB/second hash performance each time\nfunction testSpeed (hashFn, N, M) {\n let startMs = new Date().getTime()\n\n const input = new Uint8Array(N)\n for (let i = 0; i < N; i++) {\n input[i] = i % 256\n }\n const genMs = new Date().getTime()\n console.log('Generated random input in ' + (genMs - startMs) + 'ms')\n startMs = genMs\n\n for (let i = 0; i < M; i++) {\n const hashHex = hashFn(input)\n const hashMs = new Date().getTime()\n const ms = hashMs - startMs\n startMs = hashMs\n console.log('Hashed in ' + ms + 'ms: ' + hashHex.substring(0, 20) + '...')\n console.log(\n Math.round((N / (1 << 20) / (ms / 1000)) * 100) / 100 + ' MB PER SECOND'\n )\n }\n}\n\nmodule.exports = {\n normalizeInput: normalizeInput,\n toHex: toHex,\n debugPrint: debugPrint,\n testSpeed: testSpeed\n}\n\n\n/***/ }),\n\n/***/ 3550:\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\n/* module decorator */ module = __webpack_require__.nmd(module);\n(function (module, exports) {\n 'use strict';\n\n // Utils\n function assert (val, msg) {\n if (!val) throw new Error(msg || 'Assertion failed');\n }\n\n // Could use `inherits` module, but don't want to move from single file\n // architecture yet.\n function inherits (ctor, superCtor) {\n ctor.super_ = superCtor;\n var TempCtor = function () {};\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n }\n\n // BN\n\n function BN (number, base, endian) {\n if (BN.isBN(number)) {\n return number;\n }\n\n this.negative = 0;\n this.words = null;\n this.length = 0;\n\n // Reduction context\n this.red = null;\n\n if (number !== null) {\n if (base === 'le' || base === 'be') {\n endian = base;\n base = 10;\n }\n\n this._init(number || 0, base || 10, endian || 'be');\n }\n }\n if (typeof module === 'object') {\n module.exports = BN;\n } else {\n exports.BN = BN;\n }\n\n BN.BN = BN;\n BN.wordSize = 26;\n\n var Buffer;\n try {\n Buffer = __webpack_require__(2574).Buffer;\n } catch (e) {\n }\n\n BN.isBN = function isBN (num) {\n if (num instanceof BN) {\n return true;\n }\n\n return num !== null && typeof num === 'object' &&\n num.constructor.wordSize === BN.wordSize && Array.isArray(num.words);\n };\n\n BN.max = function max (left, right) {\n if (left.cmp(right) > 0) return left;\n return right;\n };\n\n BN.min = function min (left, right) {\n if (left.cmp(right) < 0) return left;\n return right;\n };\n\n BN.prototype._init = function init (number, base, endian) {\n if (typeof number === 'number') {\n return this._initNumber(number, base, endian);\n }\n\n if (typeof number === 'object') {\n return this._initArray(number, base, endian);\n }\n\n if (base === 'hex') {\n base = 16;\n }\n assert(base === (base | 0) && base >= 2 && base <= 36);\n\n number = number.toString().replace(/\\s+/g, '');\n var start = 0;\n if (number[0] === '-') {\n start++;\n }\n\n if (base === 16) {\n this._parseHex(number, start);\n } else {\n this._parseBase(number, base, start);\n }\n\n if (number[0] === '-') {\n this.negative = 1;\n }\n\n this.strip();\n\n if (endian !== 'le') return;\n\n this._initArray(this.toArray(), base, endian);\n };\n\n BN.prototype._initNumber = function _initNumber (number, base, endian) {\n if (number < 0) {\n this.negative = 1;\n number = -number;\n }\n if (number < 0x4000000) {\n this.words = [ number & 0x3ffffff ];\n this.length = 1;\n } else if (number < 0x10000000000000) {\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff\n ];\n this.length = 2;\n } else {\n assert(number < 0x20000000000000); // 2 ^ 53 (unsafe)\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff,\n 1\n ];\n this.length = 3;\n }\n\n if (endian !== 'le') return;\n\n // Reverse the bytes\n this._initArray(this.toArray(), base, endian);\n };\n\n BN.prototype._initArray = function _initArray (number, base, endian) {\n // Perhaps a Uint8Array\n assert(typeof number.length === 'number');\n if (number.length <= 0) {\n this.words = [ 0 ];\n this.length = 1;\n return this;\n }\n\n this.length = Math.ceil(number.length / 3);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n var j, w;\n var off = 0;\n if (endian === 'be') {\n for (i = number.length - 1, j = 0; i >= 0; i -= 3) {\n w = number[i] | (number[i - 1] << 8) | (number[i - 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n } else if (endian === 'le') {\n for (i = 0, j = 0; i < number.length; i += 3) {\n w = number[i] | (number[i + 1] << 8) | (number[i + 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n }\n return this.strip();\n };\n\n function parseHex (str, start, end) {\n var r = 0;\n var len = Math.min(str.length, end);\n for (var i = start; i < len; i++) {\n var c = str.charCodeAt(i) - 48;\n\n r <<= 4;\n\n // 'a' - 'f'\n if (c >= 49 && c <= 54) {\n r |= c - 49 + 0xa;\n\n // 'A' - 'F'\n } else if (c >= 17 && c <= 22) {\n r |= c - 17 + 0xa;\n\n // '0' - '9'\n } else {\n r |= c & 0xf;\n }\n }\n return r;\n }\n\n BN.prototype._parseHex = function _parseHex (number, start) {\n // Create possibly bigger array to ensure that it fits the number\n this.length = Math.ceil((number.length - start) / 6);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n var j, w;\n // Scan 24-bit chunks and add them to the number\n var off = 0;\n for (i = number.length - 6, j = 0; i >= start; i -= 6) {\n w = parseHex(number, i, i + 6);\n this.words[j] |= (w << off) & 0x3ffffff;\n // NOTE: `0x3fffff` is intentional here, 26bits max shift + 24bit hex limb\n this.words[j + 1] |= w >>> (26 - off) & 0x3fffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n if (i + 6 !== start) {\n w = parseHex(number, start, i + 6);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] |= w >>> (26 - off) & 0x3fffff;\n }\n this.strip();\n };\n\n function parseBase (str, start, end, mul) {\n var r = 0;\n var len = Math.min(str.length, end);\n for (var i = start; i < len; i++) {\n var c = str.charCodeAt(i) - 48;\n\n r *= mul;\n\n // 'a'\n if (c >= 49) {\n r += c - 49 + 0xa;\n\n // 'A'\n } else if (c >= 17) {\n r += c - 17 + 0xa;\n\n // '0' - '9'\n } else {\n r += c;\n }\n }\n return r;\n }\n\n BN.prototype._parseBase = function _parseBase (number, base, start) {\n // Initialize as zero\n this.words = [ 0 ];\n this.length = 1;\n\n // Find length of limb in base\n for (var limbLen = 0, limbPow = 1; limbPow <= 0x3ffffff; limbPow *= base) {\n limbLen++;\n }\n limbLen--;\n limbPow = (limbPow / base) | 0;\n\n var total = number.length - start;\n var mod = total % limbLen;\n var end = Math.min(total, total - mod) + start;\n\n var word = 0;\n for (var i = start; i < end; i += limbLen) {\n word = parseBase(number, i, i + limbLen, base);\n\n this.imuln(limbPow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n if (mod !== 0) {\n var pow = 1;\n word = parseBase(number, i, number.length, base);\n\n for (i = 0; i < mod; i++) {\n pow *= base;\n }\n\n this.imuln(pow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n };\n\n BN.prototype.copy = function copy (dest) {\n dest.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n dest.words[i] = this.words[i];\n }\n dest.length = this.length;\n dest.negative = this.negative;\n dest.red = this.red;\n };\n\n BN.prototype.clone = function clone () {\n var r = new BN(null);\n this.copy(r);\n return r;\n };\n\n BN.prototype._expand = function _expand (size) {\n while (this.length < size) {\n this.words[this.length++] = 0;\n }\n return this;\n };\n\n // Remove leading `0` from `this`\n BN.prototype.strip = function strip () {\n while (this.length > 1 && this.words[this.length - 1] === 0) {\n this.length--;\n }\n return this._normSign();\n };\n\n BN.prototype._normSign = function _normSign () {\n // -0 = 0\n if (this.length === 1 && this.words[0] === 0) {\n this.negative = 0;\n }\n return this;\n };\n\n BN.prototype.inspect = function inspect () {\n return (this.red ? '';\n };\n\n /*\n\n var zeros = [];\n var groupSizes = [];\n var groupBases = [];\n\n var s = '';\n var i = -1;\n while (++i < BN.wordSize) {\n zeros[i] = s;\n s += '0';\n }\n groupSizes[0] = 0;\n groupSizes[1] = 0;\n groupBases[0] = 0;\n groupBases[1] = 0;\n var base = 2 - 1;\n while (++base < 36 + 1) {\n var groupSize = 0;\n var groupBase = 1;\n while (groupBase < (1 << BN.wordSize) / base) {\n groupBase *= base;\n groupSize += 1;\n }\n groupSizes[base] = groupSize;\n groupBases[base] = groupBase;\n }\n\n */\n\n var zeros = [\n '',\n '0',\n '00',\n '000',\n '0000',\n '00000',\n '000000',\n '0000000',\n '00000000',\n '000000000',\n '0000000000',\n '00000000000',\n '000000000000',\n '0000000000000',\n '00000000000000',\n '000000000000000',\n '0000000000000000',\n '00000000000000000',\n '000000000000000000',\n '0000000000000000000',\n '00000000000000000000',\n '000000000000000000000',\n '0000000000000000000000',\n '00000000000000000000000',\n '000000000000000000000000',\n '0000000000000000000000000'\n ];\n\n var groupSizes = [\n 0, 0,\n 25, 16, 12, 11, 10, 9, 8,\n 8, 7, 7, 7, 7, 6, 6,\n 6, 6, 6, 6, 6, 5, 5,\n 5, 5, 5, 5, 5, 5, 5,\n 5, 5, 5, 5, 5, 5, 5\n ];\n\n var groupBases = [\n 0, 0,\n 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216,\n 43046721, 10000000, 19487171, 35831808, 62748517, 7529536, 11390625,\n 16777216, 24137569, 34012224, 47045881, 64000000, 4084101, 5153632,\n 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149,\n 24300000, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176\n ];\n\n BN.prototype.toString = function toString (base, padding) {\n base = base || 10;\n padding = padding | 0 || 1;\n\n var out;\n if (base === 16 || base === 'hex') {\n out = '';\n var off = 0;\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = this.words[i];\n var word = (((w << off) | carry) & 0xffffff).toString(16);\n carry = (w >>> (24 - off)) & 0xffffff;\n if (carry !== 0 || i !== this.length - 1) {\n out = zeros[6 - word.length] + word + out;\n } else {\n out = word + out;\n }\n off += 2;\n if (off >= 26) {\n off -= 26;\n i--;\n }\n }\n if (carry !== 0) {\n out = carry.toString(16) + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n if (base === (base | 0) && base >= 2 && base <= 36) {\n // var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base));\n var groupSize = groupSizes[base];\n // var groupBase = Math.pow(base, groupSize);\n var groupBase = groupBases[base];\n out = '';\n var c = this.clone();\n c.negative = 0;\n while (!c.isZero()) {\n var r = c.modn(groupBase).toString(base);\n c = c.idivn(groupBase);\n\n if (!c.isZero()) {\n out = zeros[groupSize - r.length] + r + out;\n } else {\n out = r + out;\n }\n }\n if (this.isZero()) {\n out = '0' + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n assert(false, 'Base should be between 2 and 36');\n };\n\n BN.prototype.toNumber = function toNumber () {\n var ret = this.words[0];\n if (this.length === 2) {\n ret += this.words[1] * 0x4000000;\n } else if (this.length === 3 && this.words[2] === 0x01) {\n // NOTE: at this stage it is known that the top bit is set\n ret += 0x10000000000000 + (this.words[1] * 0x4000000);\n } else if (this.length > 2) {\n assert(false, 'Number can only safely store up to 53 bits');\n }\n return (this.negative !== 0) ? -ret : ret;\n };\n\n BN.prototype.toJSON = function toJSON () {\n return this.toString(16);\n };\n\n BN.prototype.toBuffer = function toBuffer (endian, length) {\n assert(typeof Buffer !== 'undefined');\n return this.toArrayLike(Buffer, endian, length);\n };\n\n BN.prototype.toArray = function toArray (endian, length) {\n return this.toArrayLike(Array, endian, length);\n };\n\n BN.prototype.toArrayLike = function toArrayLike (ArrayType, endian, length) {\n var byteLength = this.byteLength();\n var reqLength = length || Math.max(1, byteLength);\n assert(byteLength <= reqLength, 'byte array longer than desired length');\n assert(reqLength > 0, 'Requested array length <= 0');\n\n this.strip();\n var littleEndian = endian === 'le';\n var res = new ArrayType(reqLength);\n\n var b, i;\n var q = this.clone();\n if (!littleEndian) {\n // Assume big-endian\n for (i = 0; i < reqLength - byteLength; i++) {\n res[i] = 0;\n }\n\n for (i = 0; !q.isZero(); i++) {\n b = q.andln(0xff);\n q.iushrn(8);\n\n res[reqLength - i - 1] = b;\n }\n } else {\n for (i = 0; !q.isZero(); i++) {\n b = q.andln(0xff);\n q.iushrn(8);\n\n res[i] = b;\n }\n\n for (; i < reqLength; i++) {\n res[i] = 0;\n }\n }\n\n return res;\n };\n\n if (Math.clz32) {\n BN.prototype._countBits = function _countBits (w) {\n return 32 - Math.clz32(w);\n };\n } else {\n BN.prototype._countBits = function _countBits (w) {\n var t = w;\n var r = 0;\n if (t >= 0x1000) {\n r += 13;\n t >>>= 13;\n }\n if (t >= 0x40) {\n r += 7;\n t >>>= 7;\n }\n if (t >= 0x8) {\n r += 4;\n t >>>= 4;\n }\n if (t >= 0x02) {\n r += 2;\n t >>>= 2;\n }\n return r + t;\n };\n }\n\n BN.prototype._zeroBits = function _zeroBits (w) {\n // Short-cut\n if (w === 0) return 26;\n\n var t = w;\n var r = 0;\n if ((t & 0x1fff) === 0) {\n r += 13;\n t >>>= 13;\n }\n if ((t & 0x7f) === 0) {\n r += 7;\n t >>>= 7;\n }\n if ((t & 0xf) === 0) {\n r += 4;\n t >>>= 4;\n }\n if ((t & 0x3) === 0) {\n r += 2;\n t >>>= 2;\n }\n if ((t & 0x1) === 0) {\n r++;\n }\n return r;\n };\n\n // Return number of used bits in a BN\n BN.prototype.bitLength = function bitLength () {\n var w = this.words[this.length - 1];\n var hi = this._countBits(w);\n return (this.length - 1) * 26 + hi;\n };\n\n function toBitArray (num) {\n var w = new Array(num.bitLength());\n\n for (var bit = 0; bit < w.length; bit++) {\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n w[bit] = (num.words[off] & (1 << wbit)) >>> wbit;\n }\n\n return w;\n }\n\n // Number of trailing zero bits\n BN.prototype.zeroBits = function zeroBits () {\n if (this.isZero()) return 0;\n\n var r = 0;\n for (var i = 0; i < this.length; i++) {\n var b = this._zeroBits(this.words[i]);\n r += b;\n if (b !== 26) break;\n }\n return r;\n };\n\n BN.prototype.byteLength = function byteLength () {\n return Math.ceil(this.bitLength() / 8);\n };\n\n BN.prototype.toTwos = function toTwos (width) {\n if (this.negative !== 0) {\n return this.abs().inotn(width).iaddn(1);\n }\n return this.clone();\n };\n\n BN.prototype.fromTwos = function fromTwos (width) {\n if (this.testn(width - 1)) {\n return this.notn(width).iaddn(1).ineg();\n }\n return this.clone();\n };\n\n BN.prototype.isNeg = function isNeg () {\n return this.negative !== 0;\n };\n\n // Return negative clone of `this`\n BN.prototype.neg = function neg () {\n return this.clone().ineg();\n };\n\n BN.prototype.ineg = function ineg () {\n if (!this.isZero()) {\n this.negative ^= 1;\n }\n\n return this;\n };\n\n // Or `num` with `this` in-place\n BN.prototype.iuor = function iuor (num) {\n while (this.length < num.length) {\n this.words[this.length++] = 0;\n }\n\n for (var i = 0; i < num.length; i++) {\n this.words[i] = this.words[i] | num.words[i];\n }\n\n return this.strip();\n };\n\n BN.prototype.ior = function ior (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuor(num);\n };\n\n // Or `num` with `this`\n BN.prototype.or = function or (num) {\n if (this.length > num.length) return this.clone().ior(num);\n return num.clone().ior(this);\n };\n\n BN.prototype.uor = function uor (num) {\n if (this.length > num.length) return this.clone().iuor(num);\n return num.clone().iuor(this);\n };\n\n // And `num` with `this` in-place\n BN.prototype.iuand = function iuand (num) {\n // b = min-length(num, this)\n var b;\n if (this.length > num.length) {\n b = num;\n } else {\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = this.words[i] & num.words[i];\n }\n\n this.length = b.length;\n\n return this.strip();\n };\n\n BN.prototype.iand = function iand (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuand(num);\n };\n\n // And `num` with `this`\n BN.prototype.and = function and (num) {\n if (this.length > num.length) return this.clone().iand(num);\n return num.clone().iand(this);\n };\n\n BN.prototype.uand = function uand (num) {\n if (this.length > num.length) return this.clone().iuand(num);\n return num.clone().iuand(this);\n };\n\n // Xor `num` with `this` in-place\n BN.prototype.iuxor = function iuxor (num) {\n // a.length > b.length\n var a;\n var b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = a.words[i] ^ b.words[i];\n }\n\n if (this !== a) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = a.length;\n\n return this.strip();\n };\n\n BN.prototype.ixor = function ixor (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuxor(num);\n };\n\n // Xor `num` with `this`\n BN.prototype.xor = function xor (num) {\n if (this.length > num.length) return this.clone().ixor(num);\n return num.clone().ixor(this);\n };\n\n BN.prototype.uxor = function uxor (num) {\n if (this.length > num.length) return this.clone().iuxor(num);\n return num.clone().iuxor(this);\n };\n\n // Not ``this`` with ``width`` bitwidth\n BN.prototype.inotn = function inotn (width) {\n assert(typeof width === 'number' && width >= 0);\n\n var bytesNeeded = Math.ceil(width / 26) | 0;\n var bitsLeft = width % 26;\n\n // Extend the buffer with leading zeroes\n this._expand(bytesNeeded);\n\n if (bitsLeft > 0) {\n bytesNeeded--;\n }\n\n // Handle complete words\n for (var i = 0; i < bytesNeeded; i++) {\n this.words[i] = ~this.words[i] & 0x3ffffff;\n }\n\n // Handle the residue\n if (bitsLeft > 0) {\n this.words[i] = ~this.words[i] & (0x3ffffff >> (26 - bitsLeft));\n }\n\n // And remove leading zeroes\n return this.strip();\n };\n\n BN.prototype.notn = function notn (width) {\n return this.clone().inotn(width);\n };\n\n // Set `bit` of `this`\n BN.prototype.setn = function setn (bit, val) {\n assert(typeof bit === 'number' && bit >= 0);\n\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n this._expand(off + 1);\n\n if (val) {\n this.words[off] = this.words[off] | (1 << wbit);\n } else {\n this.words[off] = this.words[off] & ~(1 << wbit);\n }\n\n return this.strip();\n };\n\n // Add `num` to `this` in-place\n BN.prototype.iadd = function iadd (num) {\n var r;\n\n // negative + positive\n if (this.negative !== 0 && num.negative === 0) {\n this.negative = 0;\n r = this.isub(num);\n this.negative ^= 1;\n return this._normSign();\n\n // positive + negative\n } else if (this.negative === 0 && num.negative !== 0) {\n num.negative = 0;\n r = this.isub(num);\n num.negative = 1;\n return r._normSign();\n }\n\n // a.length > b.length\n var a, b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) + (b.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n\n this.length = a.length;\n if (carry !== 0) {\n this.words[this.length] = carry;\n this.length++;\n // Copy the rest of the words\n } else if (a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n return this;\n };\n\n // Add `num` to `this`\n BN.prototype.add = function add (num) {\n var res;\n if (num.negative !== 0 && this.negative === 0) {\n num.negative = 0;\n res = this.sub(num);\n num.negative ^= 1;\n return res;\n } else if (num.negative === 0 && this.negative !== 0) {\n this.negative = 0;\n res = num.sub(this);\n this.negative = 1;\n return res;\n }\n\n if (this.length > num.length) return this.clone().iadd(num);\n\n return num.clone().iadd(this);\n };\n\n // Subtract `num` from `this` in-place\n BN.prototype.isub = function isub (num) {\n // this - (-num) = this + num\n if (num.negative !== 0) {\n num.negative = 0;\n var r = this.iadd(num);\n num.negative = 1;\n return r._normSign();\n\n // -this - num = -(this + num)\n } else if (this.negative !== 0) {\n this.negative = 0;\n this.iadd(num);\n this.negative = 1;\n return this._normSign();\n }\n\n // At this point both numbers are positive\n var cmp = this.cmp(num);\n\n // Optimization - zeroify\n if (cmp === 0) {\n this.negative = 0;\n this.length = 1;\n this.words[0] = 0;\n return this;\n }\n\n // a > b\n var a, b;\n if (cmp > 0) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) - (b.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n\n // Copy rest of the words\n if (carry === 0 && i < a.length && a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = Math.max(this.length, i);\n\n if (a !== this) {\n this.negative = 1;\n }\n\n return this.strip();\n };\n\n // Subtract `num` from `this`\n BN.prototype.sub = function sub (num) {\n return this.clone().isub(num);\n };\n\n function smallMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n var len = (self.length + num.length) | 0;\n out.length = len;\n len = (len - 1) | 0;\n\n // Peel one iteration (compiler can't do it, because of code complexity)\n var a = self.words[0] | 0;\n var b = num.words[0] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n var carry = (r / 0x4000000) | 0;\n out.words[0] = lo;\n\n for (var k = 1; k < len; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = carry >>> 26;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = (k - j) | 0;\n a = self.words[i] | 0;\n b = num.words[j] | 0;\n r = a * b + rword;\n ncarry += (r / 0x4000000) | 0;\n rword = r & 0x3ffffff;\n }\n out.words[k] = rword | 0;\n carry = ncarry | 0;\n }\n if (carry !== 0) {\n out.words[k] = carry | 0;\n } else {\n out.length--;\n }\n\n return out.strip();\n }\n\n // TODO(indutny): it may be reasonable to omit it for users who don't need\n // to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit\n // multiplication (like elliptic secp256k1).\n var comb10MulTo = function comb10MulTo (self, num, out) {\n var a = self.words;\n var b = num.words;\n var o = out.words;\n var c = 0;\n var lo;\n var mid;\n var hi;\n var a0 = a[0] | 0;\n var al0 = a0 & 0x1fff;\n var ah0 = a0 >>> 13;\n var a1 = a[1] | 0;\n var al1 = a1 & 0x1fff;\n var ah1 = a1 >>> 13;\n var a2 = a[2] | 0;\n var al2 = a2 & 0x1fff;\n var ah2 = a2 >>> 13;\n var a3 = a[3] | 0;\n var al3 = a3 & 0x1fff;\n var ah3 = a3 >>> 13;\n var a4 = a[4] | 0;\n var al4 = a4 & 0x1fff;\n var ah4 = a4 >>> 13;\n var a5 = a[5] | 0;\n var al5 = a5 & 0x1fff;\n var ah5 = a5 >>> 13;\n var a6 = a[6] | 0;\n var al6 = a6 & 0x1fff;\n var ah6 = a6 >>> 13;\n var a7 = a[7] | 0;\n var al7 = a7 & 0x1fff;\n var ah7 = a7 >>> 13;\n var a8 = a[8] | 0;\n var al8 = a8 & 0x1fff;\n var ah8 = a8 >>> 13;\n var a9 = a[9] | 0;\n var al9 = a9 & 0x1fff;\n var ah9 = a9 >>> 13;\n var b0 = b[0] | 0;\n var bl0 = b0 & 0x1fff;\n var bh0 = b0 >>> 13;\n var b1 = b[1] | 0;\n var bl1 = b1 & 0x1fff;\n var bh1 = b1 >>> 13;\n var b2 = b[2] | 0;\n var bl2 = b2 & 0x1fff;\n var bh2 = b2 >>> 13;\n var b3 = b[3] | 0;\n var bl3 = b3 & 0x1fff;\n var bh3 = b3 >>> 13;\n var b4 = b[4] | 0;\n var bl4 = b4 & 0x1fff;\n var bh4 = b4 >>> 13;\n var b5 = b[5] | 0;\n var bl5 = b5 & 0x1fff;\n var bh5 = b5 >>> 13;\n var b6 = b[6] | 0;\n var bl6 = b6 & 0x1fff;\n var bh6 = b6 >>> 13;\n var b7 = b[7] | 0;\n var bl7 = b7 & 0x1fff;\n var bh7 = b7 >>> 13;\n var b8 = b[8] | 0;\n var bl8 = b8 & 0x1fff;\n var bh8 = b8 >>> 13;\n var b9 = b[9] | 0;\n var bl9 = b9 & 0x1fff;\n var bh9 = b9 >>> 13;\n\n out.negative = self.negative ^ num.negative;\n out.length = 19;\n /* k = 0 */\n lo = Math.imul(al0, bl0);\n mid = Math.imul(al0, bh0);\n mid = (mid + Math.imul(ah0, bl0)) | 0;\n hi = Math.imul(ah0, bh0);\n var w0 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w0 >>> 26)) | 0;\n w0 &= 0x3ffffff;\n /* k = 1 */\n lo = Math.imul(al1, bl0);\n mid = Math.imul(al1, bh0);\n mid = (mid + Math.imul(ah1, bl0)) | 0;\n hi = Math.imul(ah1, bh0);\n lo = (lo + Math.imul(al0, bl1)) | 0;\n mid = (mid + Math.imul(al0, bh1)) | 0;\n mid = (mid + Math.imul(ah0, bl1)) | 0;\n hi = (hi + Math.imul(ah0, bh1)) | 0;\n var w1 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w1 >>> 26)) | 0;\n w1 &= 0x3ffffff;\n /* k = 2 */\n lo = Math.imul(al2, bl0);\n mid = Math.imul(al2, bh0);\n mid = (mid + Math.imul(ah2, bl0)) | 0;\n hi = Math.imul(ah2, bh0);\n lo = (lo + Math.imul(al1, bl1)) | 0;\n mid = (mid + Math.imul(al1, bh1)) | 0;\n mid = (mid + Math.imul(ah1, bl1)) | 0;\n hi = (hi + Math.imul(ah1, bh1)) | 0;\n lo = (lo + Math.imul(al0, bl2)) | 0;\n mid = (mid + Math.imul(al0, bh2)) | 0;\n mid = (mid + Math.imul(ah0, bl2)) | 0;\n hi = (hi + Math.imul(ah0, bh2)) | 0;\n var w2 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w2 >>> 26)) | 0;\n w2 &= 0x3ffffff;\n /* k = 3 */\n lo = Math.imul(al3, bl0);\n mid = Math.imul(al3, bh0);\n mid = (mid + Math.imul(ah3, bl0)) | 0;\n hi = Math.imul(ah3, bh0);\n lo = (lo + Math.imul(al2, bl1)) | 0;\n mid = (mid + Math.imul(al2, bh1)) | 0;\n mid = (mid + Math.imul(ah2, bl1)) | 0;\n hi = (hi + Math.imul(ah2, bh1)) | 0;\n lo = (lo + Math.imul(al1, bl2)) | 0;\n mid = (mid + Math.imul(al1, bh2)) | 0;\n mid = (mid + Math.imul(ah1, bl2)) | 0;\n hi = (hi + Math.imul(ah1, bh2)) | 0;\n lo = (lo + Math.imul(al0, bl3)) | 0;\n mid = (mid + Math.imul(al0, bh3)) | 0;\n mid = (mid + Math.imul(ah0, bl3)) | 0;\n hi = (hi + Math.imul(ah0, bh3)) | 0;\n var w3 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w3 >>> 26)) | 0;\n w3 &= 0x3ffffff;\n /* k = 4 */\n lo = Math.imul(al4, bl0);\n mid = Math.imul(al4, bh0);\n mid = (mid + Math.imul(ah4, bl0)) | 0;\n hi = Math.imul(ah4, bh0);\n lo = (lo + Math.imul(al3, bl1)) | 0;\n mid = (mid + Math.imul(al3, bh1)) | 0;\n mid = (mid + Math.imul(ah3, bl1)) | 0;\n hi = (hi + Math.imul(ah3, bh1)) | 0;\n lo = (lo + Math.imul(al2, bl2)) | 0;\n mid = (mid + Math.imul(al2, bh2)) | 0;\n mid = (mid + Math.imul(ah2, bl2)) | 0;\n hi = (hi + Math.imul(ah2, bh2)) | 0;\n lo = (lo + Math.imul(al1, bl3)) | 0;\n mid = (mid + Math.imul(al1, bh3)) | 0;\n mid = (mid + Math.imul(ah1, bl3)) | 0;\n hi = (hi + Math.imul(ah1, bh3)) | 0;\n lo = (lo + Math.imul(al0, bl4)) | 0;\n mid = (mid + Math.imul(al0, bh4)) | 0;\n mid = (mid + Math.imul(ah0, bl4)) | 0;\n hi = (hi + Math.imul(ah0, bh4)) | 0;\n var w4 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w4 >>> 26)) | 0;\n w4 &= 0x3ffffff;\n /* k = 5 */\n lo = Math.imul(al5, bl0);\n mid = Math.imul(al5, bh0);\n mid = (mid + Math.imul(ah5, bl0)) | 0;\n hi = Math.imul(ah5, bh0);\n lo = (lo + Math.imul(al4, bl1)) | 0;\n mid = (mid + Math.imul(al4, bh1)) | 0;\n mid = (mid + Math.imul(ah4, bl1)) | 0;\n hi = (hi + Math.imul(ah4, bh1)) | 0;\n lo = (lo + Math.imul(al3, bl2)) | 0;\n mid = (mid + Math.imul(al3, bh2)) | 0;\n mid = (mid + Math.imul(ah3, bl2)) | 0;\n hi = (hi + Math.imul(ah3, bh2)) | 0;\n lo = (lo + Math.imul(al2, bl3)) | 0;\n mid = (mid + Math.imul(al2, bh3)) | 0;\n mid = (mid + Math.imul(ah2, bl3)) | 0;\n hi = (hi + Math.imul(ah2, bh3)) | 0;\n lo = (lo + Math.imul(al1, bl4)) | 0;\n mid = (mid + Math.imul(al1, bh4)) | 0;\n mid = (mid + Math.imul(ah1, bl4)) | 0;\n hi = (hi + Math.imul(ah1, bh4)) | 0;\n lo = (lo + Math.imul(al0, bl5)) | 0;\n mid = (mid + Math.imul(al0, bh5)) | 0;\n mid = (mid + Math.imul(ah0, bl5)) | 0;\n hi = (hi + Math.imul(ah0, bh5)) | 0;\n var w5 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w5 >>> 26)) | 0;\n w5 &= 0x3ffffff;\n /* k = 6 */\n lo = Math.imul(al6, bl0);\n mid = Math.imul(al6, bh0);\n mid = (mid + Math.imul(ah6, bl0)) | 0;\n hi = Math.imul(ah6, bh0);\n lo = (lo + Math.imul(al5, bl1)) | 0;\n mid = (mid + Math.imul(al5, bh1)) | 0;\n mid = (mid + Math.imul(ah5, bl1)) | 0;\n hi = (hi + Math.imul(ah5, bh1)) | 0;\n lo = (lo + Math.imul(al4, bl2)) | 0;\n mid = (mid + Math.imul(al4, bh2)) | 0;\n mid = (mid + Math.imul(ah4, bl2)) | 0;\n hi = (hi + Math.imul(ah4, bh2)) | 0;\n lo = (lo + Math.imul(al3, bl3)) | 0;\n mid = (mid + Math.imul(al3, bh3)) | 0;\n mid = (mid + Math.imul(ah3, bl3)) | 0;\n hi = (hi + Math.imul(ah3, bh3)) | 0;\n lo = (lo + Math.imul(al2, bl4)) | 0;\n mid = (mid + Math.imul(al2, bh4)) | 0;\n mid = (mid + Math.imul(ah2, bl4)) | 0;\n hi = (hi + Math.imul(ah2, bh4)) | 0;\n lo = (lo + Math.imul(al1, bl5)) | 0;\n mid = (mid + Math.imul(al1, bh5)) | 0;\n mid = (mid + Math.imul(ah1, bl5)) | 0;\n hi = (hi + Math.imul(ah1, bh5)) | 0;\n lo = (lo + Math.imul(al0, bl6)) | 0;\n mid = (mid + Math.imul(al0, bh6)) | 0;\n mid = (mid + Math.imul(ah0, bl6)) | 0;\n hi = (hi + Math.imul(ah0, bh6)) | 0;\n var w6 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w6 >>> 26)) | 0;\n w6 &= 0x3ffffff;\n /* k = 7 */\n lo = Math.imul(al7, bl0);\n mid = Math.imul(al7, bh0);\n mid = (mid + Math.imul(ah7, bl0)) | 0;\n hi = Math.imul(ah7, bh0);\n lo = (lo + Math.imul(al6, bl1)) | 0;\n mid = (mid + Math.imul(al6, bh1)) | 0;\n mid = (mid + Math.imul(ah6, bl1)) | 0;\n hi = (hi + Math.imul(ah6, bh1)) | 0;\n lo = (lo + Math.imul(al5, bl2)) | 0;\n mid = (mid + Math.imul(al5, bh2)) | 0;\n mid = (mid + Math.imul(ah5, bl2)) | 0;\n hi = (hi + Math.imul(ah5, bh2)) | 0;\n lo = (lo + Math.imul(al4, bl3)) | 0;\n mid = (mid + Math.imul(al4, bh3)) | 0;\n mid = (mid + Math.imul(ah4, bl3)) | 0;\n hi = (hi + Math.imul(ah4, bh3)) | 0;\n lo = (lo + Math.imul(al3, bl4)) | 0;\n mid = (mid + Math.imul(al3, bh4)) | 0;\n mid = (mid + Math.imul(ah3, bl4)) | 0;\n hi = (hi + Math.imul(ah3, bh4)) | 0;\n lo = (lo + Math.imul(al2, bl5)) | 0;\n mid = (mid + Math.imul(al2, bh5)) | 0;\n mid = (mid + Math.imul(ah2, bl5)) | 0;\n hi = (hi + Math.imul(ah2, bh5)) | 0;\n lo = (lo + Math.imul(al1, bl6)) | 0;\n mid = (mid + Math.imul(al1, bh6)) | 0;\n mid = (mid + Math.imul(ah1, bl6)) | 0;\n hi = (hi + Math.imul(ah1, bh6)) | 0;\n lo = (lo + Math.imul(al0, bl7)) | 0;\n mid = (mid + Math.imul(al0, bh7)) | 0;\n mid = (mid + Math.imul(ah0, bl7)) | 0;\n hi = (hi + Math.imul(ah0, bh7)) | 0;\n var w7 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w7 >>> 26)) | 0;\n w7 &= 0x3ffffff;\n /* k = 8 */\n lo = Math.imul(al8, bl0);\n mid = Math.imul(al8, bh0);\n mid = (mid + Math.imul(ah8, bl0)) | 0;\n hi = Math.imul(ah8, bh0);\n lo = (lo + Math.imul(al7, bl1)) | 0;\n mid = (mid + Math.imul(al7, bh1)) | 0;\n mid = (mid + Math.imul(ah7, bl1)) | 0;\n hi = (hi + Math.imul(ah7, bh1)) | 0;\n lo = (lo + Math.imul(al6, bl2)) | 0;\n mid = (mid + Math.imul(al6, bh2)) | 0;\n mid = (mid + Math.imul(ah6, bl2)) | 0;\n hi = (hi + Math.imul(ah6, bh2)) | 0;\n lo = (lo + Math.imul(al5, bl3)) | 0;\n mid = (mid + Math.imul(al5, bh3)) | 0;\n mid = (mid + Math.imul(ah5, bl3)) | 0;\n hi = (hi + Math.imul(ah5, bh3)) | 0;\n lo = (lo + Math.imul(al4, bl4)) | 0;\n mid = (mid + Math.imul(al4, bh4)) | 0;\n mid = (mid + Math.imul(ah4, bl4)) | 0;\n hi = (hi + Math.imul(ah4, bh4)) | 0;\n lo = (lo + Math.imul(al3, bl5)) | 0;\n mid = (mid + Math.imul(al3, bh5)) | 0;\n mid = (mid + Math.imul(ah3, bl5)) | 0;\n hi = (hi + Math.imul(ah3, bh5)) | 0;\n lo = (lo + Math.imul(al2, bl6)) | 0;\n mid = (mid + Math.imul(al2, bh6)) | 0;\n mid = (mid + Math.imul(ah2, bl6)) | 0;\n hi = (hi + Math.imul(ah2, bh6)) | 0;\n lo = (lo + Math.imul(al1, bl7)) | 0;\n mid = (mid + Math.imul(al1, bh7)) | 0;\n mid = (mid + Math.imul(ah1, bl7)) | 0;\n hi = (hi + Math.imul(ah1, bh7)) | 0;\n lo = (lo + Math.imul(al0, bl8)) | 0;\n mid = (mid + Math.imul(al0, bh8)) | 0;\n mid = (mid + Math.imul(ah0, bl8)) | 0;\n hi = (hi + Math.imul(ah0, bh8)) | 0;\n var w8 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w8 >>> 26)) | 0;\n w8 &= 0x3ffffff;\n /* k = 9 */\n lo = Math.imul(al9, bl0);\n mid = Math.imul(al9, bh0);\n mid = (mid + Math.imul(ah9, bl0)) | 0;\n hi = Math.imul(ah9, bh0);\n lo = (lo + Math.imul(al8, bl1)) | 0;\n mid = (mid + Math.imul(al8, bh1)) | 0;\n mid = (mid + Math.imul(ah8, bl1)) | 0;\n hi = (hi + Math.imul(ah8, bh1)) | 0;\n lo = (lo + Math.imul(al7, bl2)) | 0;\n mid = (mid + Math.imul(al7, bh2)) | 0;\n mid = (mid + Math.imul(ah7, bl2)) | 0;\n hi = (hi + Math.imul(ah7, bh2)) | 0;\n lo = (lo + Math.imul(al6, bl3)) | 0;\n mid = (mid + Math.imul(al6, bh3)) | 0;\n mid = (mid + Math.imul(ah6, bl3)) | 0;\n hi = (hi + Math.imul(ah6, bh3)) | 0;\n lo = (lo + Math.imul(al5, bl4)) | 0;\n mid = (mid + Math.imul(al5, bh4)) | 0;\n mid = (mid + Math.imul(ah5, bl4)) | 0;\n hi = (hi + Math.imul(ah5, bh4)) | 0;\n lo = (lo + Math.imul(al4, bl5)) | 0;\n mid = (mid + Math.imul(al4, bh5)) | 0;\n mid = (mid + Math.imul(ah4, bl5)) | 0;\n hi = (hi + Math.imul(ah4, bh5)) | 0;\n lo = (lo + Math.imul(al3, bl6)) | 0;\n mid = (mid + Math.imul(al3, bh6)) | 0;\n mid = (mid + Math.imul(ah3, bl6)) | 0;\n hi = (hi + Math.imul(ah3, bh6)) | 0;\n lo = (lo + Math.imul(al2, bl7)) | 0;\n mid = (mid + Math.imul(al2, bh7)) | 0;\n mid = (mid + Math.imul(ah2, bl7)) | 0;\n hi = (hi + Math.imul(ah2, bh7)) | 0;\n lo = (lo + Math.imul(al1, bl8)) | 0;\n mid = (mid + Math.imul(al1, bh8)) | 0;\n mid = (mid + Math.imul(ah1, bl8)) | 0;\n hi = (hi + Math.imul(ah1, bh8)) | 0;\n lo = (lo + Math.imul(al0, bl9)) | 0;\n mid = (mid + Math.imul(al0, bh9)) | 0;\n mid = (mid + Math.imul(ah0, bl9)) | 0;\n hi = (hi + Math.imul(ah0, bh9)) | 0;\n var w9 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w9 >>> 26)) | 0;\n w9 &= 0x3ffffff;\n /* k = 10 */\n lo = Math.imul(al9, bl1);\n mid = Math.imul(al9, bh1);\n mid = (mid + Math.imul(ah9, bl1)) | 0;\n hi = Math.imul(ah9, bh1);\n lo = (lo + Math.imul(al8, bl2)) | 0;\n mid = (mid + Math.imul(al8, bh2)) | 0;\n mid = (mid + Math.imul(ah8, bl2)) | 0;\n hi = (hi + Math.imul(ah8, bh2)) | 0;\n lo = (lo + Math.imul(al7, bl3)) | 0;\n mid = (mid + Math.imul(al7, bh3)) | 0;\n mid = (mid + Math.imul(ah7, bl3)) | 0;\n hi = (hi + Math.imul(ah7, bh3)) | 0;\n lo = (lo + Math.imul(al6, bl4)) | 0;\n mid = (mid + Math.imul(al6, bh4)) | 0;\n mid = (mid + Math.imul(ah6, bl4)) | 0;\n hi = (hi + Math.imul(ah6, bh4)) | 0;\n lo = (lo + Math.imul(al5, bl5)) | 0;\n mid = (mid + Math.imul(al5, bh5)) | 0;\n mid = (mid + Math.imul(ah5, bl5)) | 0;\n hi = (hi + Math.imul(ah5, bh5)) | 0;\n lo = (lo + Math.imul(al4, bl6)) | 0;\n mid = (mid + Math.imul(al4, bh6)) | 0;\n mid = (mid + Math.imul(ah4, bl6)) | 0;\n hi = (hi + Math.imul(ah4, bh6)) | 0;\n lo = (lo + Math.imul(al3, bl7)) | 0;\n mid = (mid + Math.imul(al3, bh7)) | 0;\n mid = (mid + Math.imul(ah3, bl7)) | 0;\n hi = (hi + Math.imul(ah3, bh7)) | 0;\n lo = (lo + Math.imul(al2, bl8)) | 0;\n mid = (mid + Math.imul(al2, bh8)) | 0;\n mid = (mid + Math.imul(ah2, bl8)) | 0;\n hi = (hi + Math.imul(ah2, bh8)) | 0;\n lo = (lo + Math.imul(al1, bl9)) | 0;\n mid = (mid + Math.imul(al1, bh9)) | 0;\n mid = (mid + Math.imul(ah1, bl9)) | 0;\n hi = (hi + Math.imul(ah1, bh9)) | 0;\n var w10 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w10 >>> 26)) | 0;\n w10 &= 0x3ffffff;\n /* k = 11 */\n lo = Math.imul(al9, bl2);\n mid = Math.imul(al9, bh2);\n mid = (mid + Math.imul(ah9, bl2)) | 0;\n hi = Math.imul(ah9, bh2);\n lo = (lo + Math.imul(al8, bl3)) | 0;\n mid = (mid + Math.imul(al8, bh3)) | 0;\n mid = (mid + Math.imul(ah8, bl3)) | 0;\n hi = (hi + Math.imul(ah8, bh3)) | 0;\n lo = (lo + Math.imul(al7, bl4)) | 0;\n mid = (mid + Math.imul(al7, bh4)) | 0;\n mid = (mid + Math.imul(ah7, bl4)) | 0;\n hi = (hi + Math.imul(ah7, bh4)) | 0;\n lo = (lo + Math.imul(al6, bl5)) | 0;\n mid = (mid + Math.imul(al6, bh5)) | 0;\n mid = (mid + Math.imul(ah6, bl5)) | 0;\n hi = (hi + Math.imul(ah6, bh5)) | 0;\n lo = (lo + Math.imul(al5, bl6)) | 0;\n mid = (mid + Math.imul(al5, bh6)) | 0;\n mid = (mid + Math.imul(ah5, bl6)) | 0;\n hi = (hi + Math.imul(ah5, bh6)) | 0;\n lo = (lo + Math.imul(al4, bl7)) | 0;\n mid = (mid + Math.imul(al4, bh7)) | 0;\n mid = (mid + Math.imul(ah4, bl7)) | 0;\n hi = (hi + Math.imul(ah4, bh7)) | 0;\n lo = (lo + Math.imul(al3, bl8)) | 0;\n mid = (mid + Math.imul(al3, bh8)) | 0;\n mid = (mid + Math.imul(ah3, bl8)) | 0;\n hi = (hi + Math.imul(ah3, bh8)) | 0;\n lo = (lo + Math.imul(al2, bl9)) | 0;\n mid = (mid + Math.imul(al2, bh9)) | 0;\n mid = (mid + Math.imul(ah2, bl9)) | 0;\n hi = (hi + Math.imul(ah2, bh9)) | 0;\n var w11 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w11 >>> 26)) | 0;\n w11 &= 0x3ffffff;\n /* k = 12 */\n lo = Math.imul(al9, bl3);\n mid = Math.imul(al9, bh3);\n mid = (mid + Math.imul(ah9, bl3)) | 0;\n hi = Math.imul(ah9, bh3);\n lo = (lo + Math.imul(al8, bl4)) | 0;\n mid = (mid + Math.imul(al8, bh4)) | 0;\n mid = (mid + Math.imul(ah8, bl4)) | 0;\n hi = (hi + Math.imul(ah8, bh4)) | 0;\n lo = (lo + Math.imul(al7, bl5)) | 0;\n mid = (mid + Math.imul(al7, bh5)) | 0;\n mid = (mid + Math.imul(ah7, bl5)) | 0;\n hi = (hi + Math.imul(ah7, bh5)) | 0;\n lo = (lo + Math.imul(al6, bl6)) | 0;\n mid = (mid + Math.imul(al6, bh6)) | 0;\n mid = (mid + Math.imul(ah6, bl6)) | 0;\n hi = (hi + Math.imul(ah6, bh6)) | 0;\n lo = (lo + Math.imul(al5, bl7)) | 0;\n mid = (mid + Math.imul(al5, bh7)) | 0;\n mid = (mid + Math.imul(ah5, bl7)) | 0;\n hi = (hi + Math.imul(ah5, bh7)) | 0;\n lo = (lo + Math.imul(al4, bl8)) | 0;\n mid = (mid + Math.imul(al4, bh8)) | 0;\n mid = (mid + Math.imul(ah4, bl8)) | 0;\n hi = (hi + Math.imul(ah4, bh8)) | 0;\n lo = (lo + Math.imul(al3, bl9)) | 0;\n mid = (mid + Math.imul(al3, bh9)) | 0;\n mid = (mid + Math.imul(ah3, bl9)) | 0;\n hi = (hi + Math.imul(ah3, bh9)) | 0;\n var w12 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w12 >>> 26)) | 0;\n w12 &= 0x3ffffff;\n /* k = 13 */\n lo = Math.imul(al9, bl4);\n mid = Math.imul(al9, bh4);\n mid = (mid + Math.imul(ah9, bl4)) | 0;\n hi = Math.imul(ah9, bh4);\n lo = (lo + Math.imul(al8, bl5)) | 0;\n mid = (mid + Math.imul(al8, bh5)) | 0;\n mid = (mid + Math.imul(ah8, bl5)) | 0;\n hi = (hi + Math.imul(ah8, bh5)) | 0;\n lo = (lo + Math.imul(al7, bl6)) | 0;\n mid = (mid + Math.imul(al7, bh6)) | 0;\n mid = (mid + Math.imul(ah7, bl6)) | 0;\n hi = (hi + Math.imul(ah7, bh6)) | 0;\n lo = (lo + Math.imul(al6, bl7)) | 0;\n mid = (mid + Math.imul(al6, bh7)) | 0;\n mid = (mid + Math.imul(ah6, bl7)) | 0;\n hi = (hi + Math.imul(ah6, bh7)) | 0;\n lo = (lo + Math.imul(al5, bl8)) | 0;\n mid = (mid + Math.imul(al5, bh8)) | 0;\n mid = (mid + Math.imul(ah5, bl8)) | 0;\n hi = (hi + Math.imul(ah5, bh8)) | 0;\n lo = (lo + Math.imul(al4, bl9)) | 0;\n mid = (mid + Math.imul(al4, bh9)) | 0;\n mid = (mid + Math.imul(ah4, bl9)) | 0;\n hi = (hi + Math.imul(ah4, bh9)) | 0;\n var w13 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w13 >>> 26)) | 0;\n w13 &= 0x3ffffff;\n /* k = 14 */\n lo = Math.imul(al9, bl5);\n mid = Math.imul(al9, bh5);\n mid = (mid + Math.imul(ah9, bl5)) | 0;\n hi = Math.imul(ah9, bh5);\n lo = (lo + Math.imul(al8, bl6)) | 0;\n mid = (mid + Math.imul(al8, bh6)) | 0;\n mid = (mid + Math.imul(ah8, bl6)) | 0;\n hi = (hi + Math.imul(ah8, bh6)) | 0;\n lo = (lo + Math.imul(al7, bl7)) | 0;\n mid = (mid + Math.imul(al7, bh7)) | 0;\n mid = (mid + Math.imul(ah7, bl7)) | 0;\n hi = (hi + Math.imul(ah7, bh7)) | 0;\n lo = (lo + Math.imul(al6, bl8)) | 0;\n mid = (mid + Math.imul(al6, bh8)) | 0;\n mid = (mid + Math.imul(ah6, bl8)) | 0;\n hi = (hi + Math.imul(ah6, bh8)) | 0;\n lo = (lo + Math.imul(al5, bl9)) | 0;\n mid = (mid + Math.imul(al5, bh9)) | 0;\n mid = (mid + Math.imul(ah5, bl9)) | 0;\n hi = (hi + Math.imul(ah5, bh9)) | 0;\n var w14 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w14 >>> 26)) | 0;\n w14 &= 0x3ffffff;\n /* k = 15 */\n lo = Math.imul(al9, bl6);\n mid = Math.imul(al9, bh6);\n mid = (mid + Math.imul(ah9, bl6)) | 0;\n hi = Math.imul(ah9, bh6);\n lo = (lo + Math.imul(al8, bl7)) | 0;\n mid = (mid + Math.imul(al8, bh7)) | 0;\n mid = (mid + Math.imul(ah8, bl7)) | 0;\n hi = (hi + Math.imul(ah8, bh7)) | 0;\n lo = (lo + Math.imul(al7, bl8)) | 0;\n mid = (mid + Math.imul(al7, bh8)) | 0;\n mid = (mid + Math.imul(ah7, bl8)) | 0;\n hi = (hi + Math.imul(ah7, bh8)) | 0;\n lo = (lo + Math.imul(al6, bl9)) | 0;\n mid = (mid + Math.imul(al6, bh9)) | 0;\n mid = (mid + Math.imul(ah6, bl9)) | 0;\n hi = (hi + Math.imul(ah6, bh9)) | 0;\n var w15 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w15 >>> 26)) | 0;\n w15 &= 0x3ffffff;\n /* k = 16 */\n lo = Math.imul(al9, bl7);\n mid = Math.imul(al9, bh7);\n mid = (mid + Math.imul(ah9, bl7)) | 0;\n hi = Math.imul(ah9, bh7);\n lo = (lo + Math.imul(al8, bl8)) | 0;\n mid = (mid + Math.imul(al8, bh8)) | 0;\n mid = (mid + Math.imul(ah8, bl8)) | 0;\n hi = (hi + Math.imul(ah8, bh8)) | 0;\n lo = (lo + Math.imul(al7, bl9)) | 0;\n mid = (mid + Math.imul(al7, bh9)) | 0;\n mid = (mid + Math.imul(ah7, bl9)) | 0;\n hi = (hi + Math.imul(ah7, bh9)) | 0;\n var w16 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w16 >>> 26)) | 0;\n w16 &= 0x3ffffff;\n /* k = 17 */\n lo = Math.imul(al9, bl8);\n mid = Math.imul(al9, bh8);\n mid = (mid + Math.imul(ah9, bl8)) | 0;\n hi = Math.imul(ah9, bh8);\n lo = (lo + Math.imul(al8, bl9)) | 0;\n mid = (mid + Math.imul(al8, bh9)) | 0;\n mid = (mid + Math.imul(ah8, bl9)) | 0;\n hi = (hi + Math.imul(ah8, bh9)) | 0;\n var w17 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w17 >>> 26)) | 0;\n w17 &= 0x3ffffff;\n /* k = 18 */\n lo = Math.imul(al9, bl9);\n mid = Math.imul(al9, bh9);\n mid = (mid + Math.imul(ah9, bl9)) | 0;\n hi = Math.imul(ah9, bh9);\n var w18 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w18 >>> 26)) | 0;\n w18 &= 0x3ffffff;\n o[0] = w0;\n o[1] = w1;\n o[2] = w2;\n o[3] = w3;\n o[4] = w4;\n o[5] = w5;\n o[6] = w6;\n o[7] = w7;\n o[8] = w8;\n o[9] = w9;\n o[10] = w10;\n o[11] = w11;\n o[12] = w12;\n o[13] = w13;\n o[14] = w14;\n o[15] = w15;\n o[16] = w16;\n o[17] = w17;\n o[18] = w18;\n if (c !== 0) {\n o[19] = c;\n out.length++;\n }\n return out;\n };\n\n // Polyfill comb\n if (!Math.imul) {\n comb10MulTo = smallMulTo;\n }\n\n function bigMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n out.length = self.length + num.length;\n\n var carry = 0;\n var hncarry = 0;\n for (var k = 0; k < out.length - 1; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = hncarry;\n hncarry = 0;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = k - j;\n var a = self.words[i] | 0;\n var b = num.words[j] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n ncarry = (ncarry + ((r / 0x4000000) | 0)) | 0;\n lo = (lo + rword) | 0;\n rword = lo & 0x3ffffff;\n ncarry = (ncarry + (lo >>> 26)) | 0;\n\n hncarry += ncarry >>> 26;\n ncarry &= 0x3ffffff;\n }\n out.words[k] = rword;\n carry = ncarry;\n ncarry = hncarry;\n }\n if (carry !== 0) {\n out.words[k] = carry;\n } else {\n out.length--;\n }\n\n return out.strip();\n }\n\n function jumboMulTo (self, num, out) {\n var fftm = new FFTM();\n return fftm.mulp(self, num, out);\n }\n\n BN.prototype.mulTo = function mulTo (num, out) {\n var res;\n var len = this.length + num.length;\n if (this.length === 10 && num.length === 10) {\n res = comb10MulTo(this, num, out);\n } else if (len < 63) {\n res = smallMulTo(this, num, out);\n } else if (len < 1024) {\n res = bigMulTo(this, num, out);\n } else {\n res = jumboMulTo(this, num, out);\n }\n\n return res;\n };\n\n // Cooley-Tukey algorithm for FFT\n // slightly revisited to rely on looping instead of recursion\n\n function FFTM (x, y) {\n this.x = x;\n this.y = y;\n }\n\n FFTM.prototype.makeRBT = function makeRBT (N) {\n var t = new Array(N);\n var l = BN.prototype._countBits(N) - 1;\n for (var i = 0; i < N; i++) {\n t[i] = this.revBin(i, l, N);\n }\n\n return t;\n };\n\n // Returns binary-reversed representation of `x`\n FFTM.prototype.revBin = function revBin (x, l, N) {\n if (x === 0 || x === N - 1) return x;\n\n var rb = 0;\n for (var i = 0; i < l; i++) {\n rb |= (x & 1) << (l - i - 1);\n x >>= 1;\n }\n\n return rb;\n };\n\n // Performs \"tweedling\" phase, therefore 'emulating'\n // behaviour of the recursive algorithm\n FFTM.prototype.permute = function permute (rbt, rws, iws, rtws, itws, N) {\n for (var i = 0; i < N; i++) {\n rtws[i] = rws[rbt[i]];\n itws[i] = iws[rbt[i]];\n }\n };\n\n FFTM.prototype.transform = function transform (rws, iws, rtws, itws, N, rbt) {\n this.permute(rbt, rws, iws, rtws, itws, N);\n\n for (var s = 1; s < N; s <<= 1) {\n var l = s << 1;\n\n var rtwdf = Math.cos(2 * Math.PI / l);\n var itwdf = Math.sin(2 * Math.PI / l);\n\n for (var p = 0; p < N; p += l) {\n var rtwdf_ = rtwdf;\n var itwdf_ = itwdf;\n\n for (var j = 0; j < s; j++) {\n var re = rtws[p + j];\n var ie = itws[p + j];\n\n var ro = rtws[p + j + s];\n var io = itws[p + j + s];\n\n var rx = rtwdf_ * ro - itwdf_ * io;\n\n io = rtwdf_ * io + itwdf_ * ro;\n ro = rx;\n\n rtws[p + j] = re + ro;\n itws[p + j] = ie + io;\n\n rtws[p + j + s] = re - ro;\n itws[p + j + s] = ie - io;\n\n /* jshint maxdepth : false */\n if (j !== l) {\n rx = rtwdf * rtwdf_ - itwdf * itwdf_;\n\n itwdf_ = rtwdf * itwdf_ + itwdf * rtwdf_;\n rtwdf_ = rx;\n }\n }\n }\n }\n };\n\n FFTM.prototype.guessLen13b = function guessLen13b (n, m) {\n var N = Math.max(m, n) | 1;\n var odd = N & 1;\n var i = 0;\n for (N = N / 2 | 0; N; N = N >>> 1) {\n i++;\n }\n\n return 1 << i + 1 + odd;\n };\n\n FFTM.prototype.conjugate = function conjugate (rws, iws, N) {\n if (N <= 1) return;\n\n for (var i = 0; i < N / 2; i++) {\n var t = rws[i];\n\n rws[i] = rws[N - i - 1];\n rws[N - i - 1] = t;\n\n t = iws[i];\n\n iws[i] = -iws[N - i - 1];\n iws[N - i - 1] = -t;\n }\n };\n\n FFTM.prototype.normalize13b = function normalize13b (ws, N) {\n var carry = 0;\n for (var i = 0; i < N / 2; i++) {\n var w = Math.round(ws[2 * i + 1] / N) * 0x2000 +\n Math.round(ws[2 * i] / N) +\n carry;\n\n ws[i] = w & 0x3ffffff;\n\n if (w < 0x4000000) {\n carry = 0;\n } else {\n carry = w / 0x4000000 | 0;\n }\n }\n\n return ws;\n };\n\n FFTM.prototype.convert13b = function convert13b (ws, len, rws, N) {\n var carry = 0;\n for (var i = 0; i < len; i++) {\n carry = carry + (ws[i] | 0);\n\n rws[2 * i] = carry & 0x1fff; carry = carry >>> 13;\n rws[2 * i + 1] = carry & 0x1fff; carry = carry >>> 13;\n }\n\n // Pad with zeroes\n for (i = 2 * len; i < N; ++i) {\n rws[i] = 0;\n }\n\n assert(carry === 0);\n assert((carry & ~0x1fff) === 0);\n };\n\n FFTM.prototype.stub = function stub (N) {\n var ph = new Array(N);\n for (var i = 0; i < N; i++) {\n ph[i] = 0;\n }\n\n return ph;\n };\n\n FFTM.prototype.mulp = function mulp (x, y, out) {\n var N = 2 * this.guessLen13b(x.length, y.length);\n\n var rbt = this.makeRBT(N);\n\n var _ = this.stub(N);\n\n var rws = new Array(N);\n var rwst = new Array(N);\n var iwst = new Array(N);\n\n var nrws = new Array(N);\n var nrwst = new Array(N);\n var niwst = new Array(N);\n\n var rmws = out.words;\n rmws.length = N;\n\n this.convert13b(x.words, x.length, rws, N);\n this.convert13b(y.words, y.length, nrws, N);\n\n this.transform(rws, _, rwst, iwst, N, rbt);\n this.transform(nrws, _, nrwst, niwst, N, rbt);\n\n for (var i = 0; i < N; i++) {\n var rx = rwst[i] * nrwst[i] - iwst[i] * niwst[i];\n iwst[i] = rwst[i] * niwst[i] + iwst[i] * nrwst[i];\n rwst[i] = rx;\n }\n\n this.conjugate(rwst, iwst, N);\n this.transform(rwst, iwst, rmws, _, N, rbt);\n this.conjugate(rmws, _, N);\n this.normalize13b(rmws, N);\n\n out.negative = x.negative ^ y.negative;\n out.length = x.length + y.length;\n return out.strip();\n };\n\n // Multiply `this` by `num`\n BN.prototype.mul = function mul (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return this.mulTo(num, out);\n };\n\n // Multiply employing FFT\n BN.prototype.mulf = function mulf (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return jumboMulTo(this, num, out);\n };\n\n // In-place Multiplication\n BN.prototype.imul = function imul (num) {\n return this.clone().mulTo(num, this);\n };\n\n BN.prototype.imuln = function imuln (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n\n // Carry\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = (this.words[i] | 0) * num;\n var lo = (w & 0x3ffffff) + (carry & 0x3ffffff);\n carry >>= 26;\n carry += (w / 0x4000000) | 0;\n // NOTE: lo is 27bit maximum\n carry += lo >>> 26;\n this.words[i] = lo & 0x3ffffff;\n }\n\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n\n return this;\n };\n\n BN.prototype.muln = function muln (num) {\n return this.clone().imuln(num);\n };\n\n // `this` * `this`\n BN.prototype.sqr = function sqr () {\n return this.mul(this);\n };\n\n // `this` * `this` in-place\n BN.prototype.isqr = function isqr () {\n return this.imul(this.clone());\n };\n\n // Math.pow(`this`, `num`)\n BN.prototype.pow = function pow (num) {\n var w = toBitArray(num);\n if (w.length === 0) return new BN(1);\n\n // Skip leading zeroes\n var res = this;\n for (var i = 0; i < w.length; i++, res = res.sqr()) {\n if (w[i] !== 0) break;\n }\n\n if (++i < w.length) {\n for (var q = res.sqr(); i < w.length; i++, q = q.sqr()) {\n if (w[i] === 0) continue;\n\n res = res.mul(q);\n }\n }\n\n return res;\n };\n\n // Shift-left in-place\n BN.prototype.iushln = function iushln (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n var carryMask = (0x3ffffff >>> (26 - r)) << (26 - r);\n var i;\n\n if (r !== 0) {\n var carry = 0;\n\n for (i = 0; i < this.length; i++) {\n var newCarry = this.words[i] & carryMask;\n var c = ((this.words[i] | 0) - newCarry) << r;\n this.words[i] = c | carry;\n carry = newCarry >>> (26 - r);\n }\n\n if (carry) {\n this.words[i] = carry;\n this.length++;\n }\n }\n\n if (s !== 0) {\n for (i = this.length - 1; i >= 0; i--) {\n this.words[i + s] = this.words[i];\n }\n\n for (i = 0; i < s; i++) {\n this.words[i] = 0;\n }\n\n this.length += s;\n }\n\n return this.strip();\n };\n\n BN.prototype.ishln = function ishln (bits) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushln(bits);\n };\n\n // Shift-right in-place\n // NOTE: `hint` is a lowest bit before trailing zeroes\n // NOTE: if `extended` is present - it will be filled with destroyed bits\n BN.prototype.iushrn = function iushrn (bits, hint, extended) {\n assert(typeof bits === 'number' && bits >= 0);\n var h;\n if (hint) {\n h = (hint - (hint % 26)) / 26;\n } else {\n h = 0;\n }\n\n var r = bits % 26;\n var s = Math.min((bits - r) / 26, this.length);\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n var maskedWords = extended;\n\n h -= s;\n h = Math.max(0, h);\n\n // Extended mode, copy masked part\n if (maskedWords) {\n for (var i = 0; i < s; i++) {\n maskedWords.words[i] = this.words[i];\n }\n maskedWords.length = s;\n }\n\n if (s === 0) {\n // No-op, we should not move anything at all\n } else if (this.length > s) {\n this.length -= s;\n for (i = 0; i < this.length; i++) {\n this.words[i] = this.words[i + s];\n }\n } else {\n this.words[0] = 0;\n this.length = 1;\n }\n\n var carry = 0;\n for (i = this.length - 1; i >= 0 && (carry !== 0 || i >= h); i--) {\n var word = this.words[i] | 0;\n this.words[i] = (carry << (26 - r)) | (word >>> r);\n carry = word & mask;\n }\n\n // Push carried bits as a mask\n if (maskedWords && carry !== 0) {\n maskedWords.words[maskedWords.length++] = carry;\n }\n\n if (this.length === 0) {\n this.words[0] = 0;\n this.length = 1;\n }\n\n return this.strip();\n };\n\n BN.prototype.ishrn = function ishrn (bits, hint, extended) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushrn(bits, hint, extended);\n };\n\n // Shift-left\n BN.prototype.shln = function shln (bits) {\n return this.clone().ishln(bits);\n };\n\n BN.prototype.ushln = function ushln (bits) {\n return this.clone().iushln(bits);\n };\n\n // Shift-right\n BN.prototype.shrn = function shrn (bits) {\n return this.clone().ishrn(bits);\n };\n\n BN.prototype.ushrn = function ushrn (bits) {\n return this.clone().iushrn(bits);\n };\n\n // Test if n bit is set\n BN.prototype.testn = function testn (bit) {\n assert(typeof bit === 'number' && bit >= 0);\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) return false;\n\n // Check bit and return\n var w = this.words[s];\n\n return !!(w & q);\n };\n\n // Return only lowers bits of number (in-place)\n BN.prototype.imaskn = function imaskn (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n\n assert(this.negative === 0, 'imaskn works only with positive numbers');\n\n if (this.length <= s) {\n return this;\n }\n\n if (r !== 0) {\n s++;\n }\n this.length = Math.min(s, this.length);\n\n if (r !== 0) {\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n this.words[this.length - 1] &= mask;\n }\n\n return this.strip();\n };\n\n // Return only lowers bits of number\n BN.prototype.maskn = function maskn (bits) {\n return this.clone().imaskn(bits);\n };\n\n // Add plain number `num` to `this`\n BN.prototype.iaddn = function iaddn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.isubn(-num);\n\n // Possible sign change\n if (this.negative !== 0) {\n if (this.length === 1 && (this.words[0] | 0) < num) {\n this.words[0] = num - (this.words[0] | 0);\n this.negative = 0;\n return this;\n }\n\n this.negative = 0;\n this.isubn(num);\n this.negative = 1;\n return this;\n }\n\n // Add without checks\n return this._iaddn(num);\n };\n\n BN.prototype._iaddn = function _iaddn (num) {\n this.words[0] += num;\n\n // Carry\n for (var i = 0; i < this.length && this.words[i] >= 0x4000000; i++) {\n this.words[i] -= 0x4000000;\n if (i === this.length - 1) {\n this.words[i + 1] = 1;\n } else {\n this.words[i + 1]++;\n }\n }\n this.length = Math.max(this.length, i + 1);\n\n return this;\n };\n\n // Subtract plain number `num` from `this`\n BN.prototype.isubn = function isubn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.iaddn(-num);\n\n if (this.negative !== 0) {\n this.negative = 0;\n this.iaddn(num);\n this.negative = 1;\n return this;\n }\n\n this.words[0] -= num;\n\n if (this.length === 1 && this.words[0] < 0) {\n this.words[0] = -this.words[0];\n this.negative = 1;\n } else {\n // Carry\n for (var i = 0; i < this.length && this.words[i] < 0; i++) {\n this.words[i] += 0x4000000;\n this.words[i + 1] -= 1;\n }\n }\n\n return this.strip();\n };\n\n BN.prototype.addn = function addn (num) {\n return this.clone().iaddn(num);\n };\n\n BN.prototype.subn = function subn (num) {\n return this.clone().isubn(num);\n };\n\n BN.prototype.iabs = function iabs () {\n this.negative = 0;\n\n return this;\n };\n\n BN.prototype.abs = function abs () {\n return this.clone().iabs();\n };\n\n BN.prototype._ishlnsubmul = function _ishlnsubmul (num, mul, shift) {\n var len = num.length + shift;\n var i;\n\n this._expand(len);\n\n var w;\n var carry = 0;\n for (i = 0; i < num.length; i++) {\n w = (this.words[i + shift] | 0) + carry;\n var right = (num.words[i] | 0) * mul;\n w -= right & 0x3ffffff;\n carry = (w >> 26) - ((right / 0x4000000) | 0);\n this.words[i + shift] = w & 0x3ffffff;\n }\n for (; i < this.length - shift; i++) {\n w = (this.words[i + shift] | 0) + carry;\n carry = w >> 26;\n this.words[i + shift] = w & 0x3ffffff;\n }\n\n if (carry === 0) return this.strip();\n\n // Subtraction overflow\n assert(carry === -1);\n carry = 0;\n for (i = 0; i < this.length; i++) {\n w = -(this.words[i] | 0) + carry;\n carry = w >> 26;\n this.words[i] = w & 0x3ffffff;\n }\n this.negative = 1;\n\n return this.strip();\n };\n\n BN.prototype._wordDiv = function _wordDiv (num, mode) {\n var shift = this.length - num.length;\n\n var a = this.clone();\n var b = num;\n\n // Normalize\n var bhi = b.words[b.length - 1] | 0;\n var bhiBits = this._countBits(bhi);\n shift = 26 - bhiBits;\n if (shift !== 0) {\n b = b.ushln(shift);\n a.iushln(shift);\n bhi = b.words[b.length - 1] | 0;\n }\n\n // Initialize quotient\n var m = a.length - b.length;\n var q;\n\n if (mode !== 'mod') {\n q = new BN(null);\n q.length = m + 1;\n q.words = new Array(q.length);\n for (var i = 0; i < q.length; i++) {\n q.words[i] = 0;\n }\n }\n\n var diff = a.clone()._ishlnsubmul(b, 1, m);\n if (diff.negative === 0) {\n a = diff;\n if (q) {\n q.words[m] = 1;\n }\n }\n\n for (var j = m - 1; j >= 0; j--) {\n var qj = (a.words[b.length + j] | 0) * 0x4000000 +\n (a.words[b.length + j - 1] | 0);\n\n // NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max\n // (0x7ffffff)\n qj = Math.min((qj / bhi) | 0, 0x3ffffff);\n\n a._ishlnsubmul(b, qj, j);\n while (a.negative !== 0) {\n qj--;\n a.negative = 0;\n a._ishlnsubmul(b, 1, j);\n if (!a.isZero()) {\n a.negative ^= 1;\n }\n }\n if (q) {\n q.words[j] = qj;\n }\n }\n if (q) {\n q.strip();\n }\n a.strip();\n\n // Denormalize\n if (mode !== 'div' && shift !== 0) {\n a.iushrn(shift);\n }\n\n return {\n div: q || null,\n mod: a\n };\n };\n\n // NOTE: 1) `mode` can be set to `mod` to request mod only,\n // to `div` to request div only, or be absent to\n // request both div & mod\n // 2) `positive` is true if unsigned mod is requested\n BN.prototype.divmod = function divmod (num, mode, positive) {\n assert(!num.isZero());\n\n if (this.isZero()) {\n return {\n div: new BN(0),\n mod: new BN(0)\n };\n }\n\n var div, mod, res;\n if (this.negative !== 0 && num.negative === 0) {\n res = this.neg().divmod(num, mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.iadd(num);\n }\n }\n\n return {\n div: div,\n mod: mod\n };\n }\n\n if (this.negative === 0 && num.negative !== 0) {\n res = this.divmod(num.neg(), mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n return {\n div: div,\n mod: res.mod\n };\n }\n\n if ((this.negative & num.negative) !== 0) {\n res = this.neg().divmod(num.neg(), mode);\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.isub(num);\n }\n }\n\n return {\n div: res.div,\n mod: mod\n };\n }\n\n // Both numbers are positive at this point\n\n // Strip both numbers to approximate shift value\n if (num.length > this.length || this.cmp(num) < 0) {\n return {\n div: new BN(0),\n mod: this\n };\n }\n\n // Very short reduction\n if (num.length === 1) {\n if (mode === 'div') {\n return {\n div: this.divn(num.words[0]),\n mod: null\n };\n }\n\n if (mode === 'mod') {\n return {\n div: null,\n mod: new BN(this.modn(num.words[0]))\n };\n }\n\n return {\n div: this.divn(num.words[0]),\n mod: new BN(this.modn(num.words[0]))\n };\n }\n\n return this._wordDiv(num, mode);\n };\n\n // Find `this` / `num`\n BN.prototype.div = function div (num) {\n return this.divmod(num, 'div', false).div;\n };\n\n // Find `this` % `num`\n BN.prototype.mod = function mod (num) {\n return this.divmod(num, 'mod', false).mod;\n };\n\n BN.prototype.umod = function umod (num) {\n return this.divmod(num, 'mod', true).mod;\n };\n\n // Find Round(`this` / `num`)\n BN.prototype.divRound = function divRound (num) {\n var dm = this.divmod(num);\n\n // Fast case - exact division\n if (dm.mod.isZero()) return dm.div;\n\n var mod = dm.div.negative !== 0 ? dm.mod.isub(num) : dm.mod;\n\n var half = num.ushrn(1);\n var r2 = num.andln(1);\n var cmp = mod.cmp(half);\n\n // Round down\n if (cmp < 0 || r2 === 1 && cmp === 0) return dm.div;\n\n // Round up\n return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1);\n };\n\n BN.prototype.modn = function modn (num) {\n assert(num <= 0x3ffffff);\n var p = (1 << 26) % num;\n\n var acc = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n acc = (p * acc + (this.words[i] | 0)) % num;\n }\n\n return acc;\n };\n\n // In-place division by number\n BN.prototype.idivn = function idivn (num) {\n assert(num <= 0x3ffffff);\n\n var carry = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var w = (this.words[i] | 0) + carry * 0x4000000;\n this.words[i] = (w / num) | 0;\n carry = w % num;\n }\n\n return this.strip();\n };\n\n BN.prototype.divn = function divn (num) {\n return this.clone().idivn(num);\n };\n\n BN.prototype.egcd = function egcd (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var x = this;\n var y = p.clone();\n\n if (x.negative !== 0) {\n x = x.umod(p);\n } else {\n x = x.clone();\n }\n\n // A * x + B * y = x\n var A = new BN(1);\n var B = new BN(0);\n\n // C * x + D * y = y\n var C = new BN(0);\n var D = new BN(1);\n\n var g = 0;\n\n while (x.isEven() && y.isEven()) {\n x.iushrn(1);\n y.iushrn(1);\n ++g;\n }\n\n var yp = y.clone();\n var xp = x.clone();\n\n while (!x.isZero()) {\n for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n x.iushrn(i);\n while (i-- > 0) {\n if (A.isOdd() || B.isOdd()) {\n A.iadd(yp);\n B.isub(xp);\n }\n\n A.iushrn(1);\n B.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n y.iushrn(j);\n while (j-- > 0) {\n if (C.isOdd() || D.isOdd()) {\n C.iadd(yp);\n D.isub(xp);\n }\n\n C.iushrn(1);\n D.iushrn(1);\n }\n }\n\n if (x.cmp(y) >= 0) {\n x.isub(y);\n A.isub(C);\n B.isub(D);\n } else {\n y.isub(x);\n C.isub(A);\n D.isub(B);\n }\n }\n\n return {\n a: C,\n b: D,\n gcd: y.iushln(g)\n };\n };\n\n // This is reduced incarnation of the binary EEA\n // above, designated to invert members of the\n // _prime_ fields F(p) at a maximal speed\n BN.prototype._invmp = function _invmp (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var a = this;\n var b = p.clone();\n\n if (a.negative !== 0) {\n a = a.umod(p);\n } else {\n a = a.clone();\n }\n\n var x1 = new BN(1);\n var x2 = new BN(0);\n\n var delta = b.clone();\n\n while (a.cmpn(1) > 0 && b.cmpn(1) > 0) {\n for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n a.iushrn(i);\n while (i-- > 0) {\n if (x1.isOdd()) {\n x1.iadd(delta);\n }\n\n x1.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n b.iushrn(j);\n while (j-- > 0) {\n if (x2.isOdd()) {\n x2.iadd(delta);\n }\n\n x2.iushrn(1);\n }\n }\n\n if (a.cmp(b) >= 0) {\n a.isub(b);\n x1.isub(x2);\n } else {\n b.isub(a);\n x2.isub(x1);\n }\n }\n\n var res;\n if (a.cmpn(1) === 0) {\n res = x1;\n } else {\n res = x2;\n }\n\n if (res.cmpn(0) < 0) {\n res.iadd(p);\n }\n\n return res;\n };\n\n BN.prototype.gcd = function gcd (num) {\n if (this.isZero()) return num.abs();\n if (num.isZero()) return this.abs();\n\n var a = this.clone();\n var b = num.clone();\n a.negative = 0;\n b.negative = 0;\n\n // Remove common factor of two\n for (var shift = 0; a.isEven() && b.isEven(); shift++) {\n a.iushrn(1);\n b.iushrn(1);\n }\n\n do {\n while (a.isEven()) {\n a.iushrn(1);\n }\n while (b.isEven()) {\n b.iushrn(1);\n }\n\n var r = a.cmp(b);\n if (r < 0) {\n // Swap `a` and `b` to make `a` always bigger than `b`\n var t = a;\n a = b;\n b = t;\n } else if (r === 0 || b.cmpn(1) === 0) {\n break;\n }\n\n a.isub(b);\n } while (true);\n\n return b.iushln(shift);\n };\n\n // Invert number in the field F(num)\n BN.prototype.invm = function invm (num) {\n return this.egcd(num).a.umod(num);\n };\n\n BN.prototype.isEven = function isEven () {\n return (this.words[0] & 1) === 0;\n };\n\n BN.prototype.isOdd = function isOdd () {\n return (this.words[0] & 1) === 1;\n };\n\n // And first word and num\n BN.prototype.andln = function andln (num) {\n return this.words[0] & num;\n };\n\n // Increment at the bit position in-line\n BN.prototype.bincn = function bincn (bit) {\n assert(typeof bit === 'number');\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) {\n this._expand(s + 1);\n this.words[s] |= q;\n return this;\n }\n\n // Add bit and propagate, if needed\n var carry = q;\n for (var i = s; carry !== 0 && i < this.length; i++) {\n var w = this.words[i] | 0;\n w += carry;\n carry = w >>> 26;\n w &= 0x3ffffff;\n this.words[i] = w;\n }\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n return this;\n };\n\n BN.prototype.isZero = function isZero () {\n return this.length === 1 && this.words[0] === 0;\n };\n\n BN.prototype.cmpn = function cmpn (num) {\n var negative = num < 0;\n\n if (this.negative !== 0 && !negative) return -1;\n if (this.negative === 0 && negative) return 1;\n\n this.strip();\n\n var res;\n if (this.length > 1) {\n res = 1;\n } else {\n if (negative) {\n num = -num;\n }\n\n assert(num <= 0x3ffffff, 'Number is too big');\n\n var w = this.words[0] | 0;\n res = w === num ? 0 : w < num ? -1 : 1;\n }\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Compare two numbers and return:\n // 1 - if `this` > `num`\n // 0 - if `this` == `num`\n // -1 - if `this` < `num`\n BN.prototype.cmp = function cmp (num) {\n if (this.negative !== 0 && num.negative === 0) return -1;\n if (this.negative === 0 && num.negative !== 0) return 1;\n\n var res = this.ucmp(num);\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Unsigned comparison\n BN.prototype.ucmp = function ucmp (num) {\n // At this point both numbers have the same sign\n if (this.length > num.length) return 1;\n if (this.length < num.length) return -1;\n\n var res = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var a = this.words[i] | 0;\n var b = num.words[i] | 0;\n\n if (a === b) continue;\n if (a < b) {\n res = -1;\n } else if (a > b) {\n res = 1;\n }\n break;\n }\n return res;\n };\n\n BN.prototype.gtn = function gtn (num) {\n return this.cmpn(num) === 1;\n };\n\n BN.prototype.gt = function gt (num) {\n return this.cmp(num) === 1;\n };\n\n BN.prototype.gten = function gten (num) {\n return this.cmpn(num) >= 0;\n };\n\n BN.prototype.gte = function gte (num) {\n return this.cmp(num) >= 0;\n };\n\n BN.prototype.ltn = function ltn (num) {\n return this.cmpn(num) === -1;\n };\n\n BN.prototype.lt = function lt (num) {\n return this.cmp(num) === -1;\n };\n\n BN.prototype.lten = function lten (num) {\n return this.cmpn(num) <= 0;\n };\n\n BN.prototype.lte = function lte (num) {\n return this.cmp(num) <= 0;\n };\n\n BN.prototype.eqn = function eqn (num) {\n return this.cmpn(num) === 0;\n };\n\n BN.prototype.eq = function eq (num) {\n return this.cmp(num) === 0;\n };\n\n //\n // A reduce context, could be using montgomery or something better, depending\n // on the `m` itself.\n //\n BN.red = function red (num) {\n return new Red(num);\n };\n\n BN.prototype.toRed = function toRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n assert(this.negative === 0, 'red works only with positives');\n return ctx.convertTo(this)._forceRed(ctx);\n };\n\n BN.prototype.fromRed = function fromRed () {\n assert(this.red, 'fromRed works only with numbers in reduction context');\n return this.red.convertFrom(this);\n };\n\n BN.prototype._forceRed = function _forceRed (ctx) {\n this.red = ctx;\n return this;\n };\n\n BN.prototype.forceRed = function forceRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n return this._forceRed(ctx);\n };\n\n BN.prototype.redAdd = function redAdd (num) {\n assert(this.red, 'redAdd works only with red numbers');\n return this.red.add(this, num);\n };\n\n BN.prototype.redIAdd = function redIAdd (num) {\n assert(this.red, 'redIAdd works only with red numbers');\n return this.red.iadd(this, num);\n };\n\n BN.prototype.redSub = function redSub (num) {\n assert(this.red, 'redSub works only with red numbers');\n return this.red.sub(this, num);\n };\n\n BN.prototype.redISub = function redISub (num) {\n assert(this.red, 'redISub works only with red numbers');\n return this.red.isub(this, num);\n };\n\n BN.prototype.redShl = function redShl (num) {\n assert(this.red, 'redShl works only with red numbers');\n return this.red.shl(this, num);\n };\n\n BN.prototype.redMul = function redMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.mul(this, num);\n };\n\n BN.prototype.redIMul = function redIMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.imul(this, num);\n };\n\n BN.prototype.redSqr = function redSqr () {\n assert(this.red, 'redSqr works only with red numbers');\n this.red._verify1(this);\n return this.red.sqr(this);\n };\n\n BN.prototype.redISqr = function redISqr () {\n assert(this.red, 'redISqr works only with red numbers');\n this.red._verify1(this);\n return this.red.isqr(this);\n };\n\n // Square root over p\n BN.prototype.redSqrt = function redSqrt () {\n assert(this.red, 'redSqrt works only with red numbers');\n this.red._verify1(this);\n return this.red.sqrt(this);\n };\n\n BN.prototype.redInvm = function redInvm () {\n assert(this.red, 'redInvm works only with red numbers');\n this.red._verify1(this);\n return this.red.invm(this);\n };\n\n // Return negative clone of `this` % `red modulo`\n BN.prototype.redNeg = function redNeg () {\n assert(this.red, 'redNeg works only with red numbers');\n this.red._verify1(this);\n return this.red.neg(this);\n };\n\n BN.prototype.redPow = function redPow (num) {\n assert(this.red && !num.red, 'redPow(normalNum)');\n this.red._verify1(this);\n return this.red.pow(this, num);\n };\n\n // Prime numbers with efficient reduction\n var primes = {\n k256: null,\n p224: null,\n p192: null,\n p25519: null\n };\n\n // Pseudo-Mersenne prime\n function MPrime (name, p) {\n // P = 2 ^ N - K\n this.name = name;\n this.p = new BN(p, 16);\n this.n = this.p.bitLength();\n this.k = new BN(1).iushln(this.n).isub(this.p);\n\n this.tmp = this._tmp();\n }\n\n MPrime.prototype._tmp = function _tmp () {\n var tmp = new BN(null);\n tmp.words = new Array(Math.ceil(this.n / 13));\n return tmp;\n };\n\n MPrime.prototype.ireduce = function ireduce (num) {\n // Assumes that `num` is less than `P^2`\n // num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P)\n var r = num;\n var rlen;\n\n do {\n this.split(r, this.tmp);\n r = this.imulK(r);\n r = r.iadd(this.tmp);\n rlen = r.bitLength();\n } while (rlen > this.n);\n\n var cmp = rlen < this.n ? -1 : r.ucmp(this.p);\n if (cmp === 0) {\n r.words[0] = 0;\n r.length = 1;\n } else if (cmp > 0) {\n r.isub(this.p);\n } else {\n if (r.strip !== undefined) {\n // r is BN v4 instance\n r.strip();\n } else {\n // r is BN v5 instance\n r._strip();\n }\n }\n\n return r;\n };\n\n MPrime.prototype.split = function split (input, out) {\n input.iushrn(this.n, 0, out);\n };\n\n MPrime.prototype.imulK = function imulK (num) {\n return num.imul(this.k);\n };\n\n function K256 () {\n MPrime.call(\n this,\n 'k256',\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f');\n }\n inherits(K256, MPrime);\n\n K256.prototype.split = function split (input, output) {\n // 256 = 9 * 26 + 22\n var mask = 0x3fffff;\n\n var outLen = Math.min(input.length, 9);\n for (var i = 0; i < outLen; i++) {\n output.words[i] = input.words[i];\n }\n output.length = outLen;\n\n if (input.length <= 9) {\n input.words[0] = 0;\n input.length = 1;\n return;\n }\n\n // Shift by 9 limbs\n var prev = input.words[9];\n output.words[output.length++] = prev & mask;\n\n for (i = 10; i < input.length; i++) {\n var next = input.words[i] | 0;\n input.words[i - 10] = ((next & mask) << 4) | (prev >>> 22);\n prev = next;\n }\n prev >>>= 22;\n input.words[i - 10] = prev;\n if (prev === 0 && input.length > 10) {\n input.length -= 10;\n } else {\n input.length -= 9;\n }\n };\n\n K256.prototype.imulK = function imulK (num) {\n // K = 0x1000003d1 = [ 0x40, 0x3d1 ]\n num.words[num.length] = 0;\n num.words[num.length + 1] = 0;\n num.length += 2;\n\n // bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390\n var lo = 0;\n for (var i = 0; i < num.length; i++) {\n var w = num.words[i] | 0;\n lo += w * 0x3d1;\n num.words[i] = lo & 0x3ffffff;\n lo = w * 0x40 + ((lo / 0x4000000) | 0);\n }\n\n // Fast length reduction\n if (num.words[num.length - 1] === 0) {\n num.length--;\n if (num.words[num.length - 1] === 0) {\n num.length--;\n }\n }\n return num;\n };\n\n function P224 () {\n MPrime.call(\n this,\n 'p224',\n 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001');\n }\n inherits(P224, MPrime);\n\n function P192 () {\n MPrime.call(\n this,\n 'p192',\n 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff');\n }\n inherits(P192, MPrime);\n\n function P25519 () {\n // 2 ^ 255 - 19\n MPrime.call(\n this,\n '25519',\n '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed');\n }\n inherits(P25519, MPrime);\n\n P25519.prototype.imulK = function imulK (num) {\n // K = 0x13\n var carry = 0;\n for (var i = 0; i < num.length; i++) {\n var hi = (num.words[i] | 0) * 0x13 + carry;\n var lo = hi & 0x3ffffff;\n hi >>>= 26;\n\n num.words[i] = lo;\n carry = hi;\n }\n if (carry !== 0) {\n num.words[num.length++] = carry;\n }\n return num;\n };\n\n // Exported mostly for testing purposes, use plain name instead\n BN._prime = function prime (name) {\n // Cached version of prime\n if (primes[name]) return primes[name];\n\n var prime;\n if (name === 'k256') {\n prime = new K256();\n } else if (name === 'p224') {\n prime = new P224();\n } else if (name === 'p192') {\n prime = new P192();\n } else if (name === 'p25519') {\n prime = new P25519();\n } else {\n throw new Error('Unknown prime ' + name);\n }\n primes[name] = prime;\n\n return prime;\n };\n\n //\n // Base reduction engine\n //\n function Red (m) {\n if (typeof m === 'string') {\n var prime = BN._prime(m);\n this.m = prime.p;\n this.prime = prime;\n } else {\n assert(m.gtn(1), 'modulus must be greater than 1');\n this.m = m;\n this.prime = null;\n }\n }\n\n Red.prototype._verify1 = function _verify1 (a) {\n assert(a.negative === 0, 'red works only with positives');\n assert(a.red, 'red works only with red numbers');\n };\n\n Red.prototype._verify2 = function _verify2 (a, b) {\n assert((a.negative | b.negative) === 0, 'red works only with positives');\n assert(a.red && a.red === b.red,\n 'red works only with red numbers');\n };\n\n Red.prototype.imod = function imod (a) {\n if (this.prime) return this.prime.ireduce(a)._forceRed(this);\n return a.umod(this.m)._forceRed(this);\n };\n\n Red.prototype.neg = function neg (a) {\n if (a.isZero()) {\n return a.clone();\n }\n\n return this.m.sub(a)._forceRed(this);\n };\n\n Red.prototype.add = function add (a, b) {\n this._verify2(a, b);\n\n var res = a.add(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.iadd = function iadd (a, b) {\n this._verify2(a, b);\n\n var res = a.iadd(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res;\n };\n\n Red.prototype.sub = function sub (a, b) {\n this._verify2(a, b);\n\n var res = a.sub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.isub = function isub (a, b) {\n this._verify2(a, b);\n\n var res = a.isub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res;\n };\n\n Red.prototype.shl = function shl (a, num) {\n this._verify1(a);\n return this.imod(a.ushln(num));\n };\n\n Red.prototype.imul = function imul (a, b) {\n this._verify2(a, b);\n return this.imod(a.imul(b));\n };\n\n Red.prototype.mul = function mul (a, b) {\n this._verify2(a, b);\n return this.imod(a.mul(b));\n };\n\n Red.prototype.isqr = function isqr (a) {\n return this.imul(a, a.clone());\n };\n\n Red.prototype.sqr = function sqr (a) {\n return this.mul(a, a);\n };\n\n Red.prototype.sqrt = function sqrt (a) {\n if (a.isZero()) return a.clone();\n\n var mod3 = this.m.andln(3);\n assert(mod3 % 2 === 1);\n\n // Fast case\n if (mod3 === 3) {\n var pow = this.m.add(new BN(1)).iushrn(2);\n return this.pow(a, pow);\n }\n\n // Tonelli-Shanks algorithm (Totally unoptimized and slow)\n //\n // Find Q and S, that Q * 2 ^ S = (P - 1)\n var q = this.m.subn(1);\n var s = 0;\n while (!q.isZero() && q.andln(1) === 0) {\n s++;\n q.iushrn(1);\n }\n assert(!q.isZero());\n\n var one = new BN(1).toRed(this);\n var nOne = one.redNeg();\n\n // Find quadratic non-residue\n // NOTE: Max is such because of generalized Riemann hypothesis.\n var lpow = this.m.subn(1).iushrn(1);\n var z = this.m.bitLength();\n z = new BN(2 * z * z).toRed(this);\n\n while (this.pow(z, lpow).cmp(nOne) !== 0) {\n z.redIAdd(nOne);\n }\n\n var c = this.pow(z, q);\n var r = this.pow(a, q.addn(1).iushrn(1));\n var t = this.pow(a, q);\n var m = s;\n while (t.cmp(one) !== 0) {\n var tmp = t;\n for (var i = 0; tmp.cmp(one) !== 0; i++) {\n tmp = tmp.redSqr();\n }\n assert(i < m);\n var b = this.pow(c, new BN(1).iushln(m - i - 1));\n\n r = r.redMul(b);\n c = b.redSqr();\n t = t.redMul(c);\n m = i;\n }\n\n return r;\n };\n\n Red.prototype.invm = function invm (a) {\n var inv = a._invmp(this.m);\n if (inv.negative !== 0) {\n inv.negative = 0;\n return this.imod(inv).redNeg();\n } else {\n return this.imod(inv);\n }\n };\n\n Red.prototype.pow = function pow (a, num) {\n if (num.isZero()) return new BN(1).toRed(this);\n if (num.cmpn(1) === 0) return a.clone();\n\n var windowSize = 4;\n var wnd = new Array(1 << windowSize);\n wnd[0] = new BN(1).toRed(this);\n wnd[1] = a;\n for (var i = 2; i < wnd.length; i++) {\n wnd[i] = this.mul(wnd[i - 1], a);\n }\n\n var res = wnd[0];\n var current = 0;\n var currentLen = 0;\n var start = num.bitLength() % 26;\n if (start === 0) {\n start = 26;\n }\n\n for (i = num.length - 1; i >= 0; i--) {\n var word = num.words[i];\n for (var j = start - 1; j >= 0; j--) {\n var bit = (word >> j) & 1;\n if (res !== wnd[0]) {\n res = this.sqr(res);\n }\n\n if (bit === 0 && current === 0) {\n currentLen = 0;\n continue;\n }\n\n current <<= 1;\n current |= bit;\n currentLen++;\n if (currentLen !== windowSize && (i !== 0 || j !== 0)) continue;\n\n res = this.mul(res, wnd[current]);\n currentLen = 0;\n current = 0;\n }\n start = 26;\n }\n\n return res;\n };\n\n Red.prototype.convertTo = function convertTo (num) {\n var r = num.umod(this.m);\n\n return r === num ? r.clone() : r;\n };\n\n Red.prototype.convertFrom = function convertFrom (num) {\n var res = num.clone();\n res.red = null;\n return res;\n };\n\n //\n // Montgomery method engine\n //\n\n BN.mont = function mont (num) {\n return new Mont(num);\n };\n\n function Mont (m) {\n Red.call(this, m);\n\n this.shift = this.m.bitLength();\n if (this.shift % 26 !== 0) {\n this.shift += 26 - (this.shift % 26);\n }\n\n this.r = new BN(1).iushln(this.shift);\n this.r2 = this.imod(this.r.sqr());\n this.rinv = this.r._invmp(this.m);\n\n this.minv = this.rinv.mul(this.r).isubn(1).div(this.m);\n this.minv = this.minv.umod(this.r);\n this.minv = this.r.sub(this.minv);\n }\n inherits(Mont, Red);\n\n Mont.prototype.convertTo = function convertTo (num) {\n return this.imod(num.ushln(this.shift));\n };\n\n Mont.prototype.convertFrom = function convertFrom (num) {\n var r = this.imod(num.mul(this.rinv));\n r.red = null;\n return r;\n };\n\n Mont.prototype.imul = function imul (a, b) {\n if (a.isZero() || b.isZero()) {\n a.words[0] = 0;\n a.length = 1;\n return a;\n }\n\n var t = a.imul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.mul = function mul (a, b) {\n if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this);\n\n var t = a.mul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.invm = function invm (a) {\n // (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R\n var res = this.imod(a._invmp(this.m).mul(this.r2));\n return res._forceRed(this);\n };\n})( false || module, this);\n\n\n/***/ }),\n\n/***/ 8764:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\"use strict\";\n/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n\n\nvar base64 = __webpack_require__(9742)\nvar ieee754 = __webpack_require__(645)\nvar customInspectSymbol =\n (typeof Symbol === 'function' && typeof Symbol.for === 'function')\n ? Symbol.for('nodejs.util.inspect.custom')\n : null\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\nvar K_MAX_LENGTH = 0x7fffffff\nexports.kMaxLength = K_MAX_LENGTH\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\n\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\n typeof console.error === 'function') {\n console.error(\n 'This browser lacks typed array (Uint8Array) support which is required by ' +\n '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n )\n}\n\nfunction typedArraySupport () {\n // Can typed array instances can be augmented?\n try {\n var arr = new Uint8Array(1)\n var proto = { foo: function () { return 42 } }\n Object.setPrototypeOf(proto, Uint8Array.prototype)\n Object.setPrototypeOf(arr, proto)\n return arr.foo() === 42\n } catch (e) {\n return false\n }\n}\n\nObject.defineProperty(Buffer.prototype, 'parent', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.buffer\n }\n})\n\nObject.defineProperty(Buffer.prototype, 'offset', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.byteOffset\n }\n})\n\nfunction createBuffer (length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\n }\n // Return an augmented `Uint8Array` instance\n var buf = new Uint8Array(length)\n Object.setPrototypeOf(buf, Buffer.prototype)\n return buf\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new TypeError(\n 'The \"string\" argument must be of type string. Received type number'\n )\n }\n return allocUnsafe(arg)\n }\n return from(arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\nfunction from (value, encodingOrOffset, length) {\n if (typeof value === 'string') {\n return fromString(value, encodingOrOffset)\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayLike(value)\n }\n\n if (value == null) {\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n }\n\n if (isInstance(value, ArrayBuffer) ||\n (value && isInstance(value.buffer, ArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof SharedArrayBuffer !== 'undefined' &&\n (isInstance(value, SharedArrayBuffer) ||\n (value && isInstance(value.buffer, SharedArrayBuffer)))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof value === 'number') {\n throw new TypeError(\n 'The \"value\" argument must not be of type number. Received type number'\n )\n }\n\n var valueOf = value.valueOf && value.valueOf()\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length)\n }\n\n var b = fromObject(value)\n if (b) return b\n\n if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\n typeof value[Symbol.toPrimitive] === 'function') {\n return Buffer.from(\n value[Symbol.toPrimitive]('string'), encodingOrOffset, length\n )\n }\n\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length)\n}\n\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n// https://github.com/feross/buffer/pull/148\nObject.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)\nObject.setPrototypeOf(Buffer, Uint8Array)\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be of type number')\n } else if (size < 0) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n}\n\nfunction alloc (size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpretted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(size).fill(fill, encoding)\n : createBuffer(size).fill(fill)\n }\n return createBuffer(size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n assertSize(size)\n return createBuffer(size < 0 ? 0 : checked(size) | 0)\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size)\n}\n\nfunction fromString (string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n\n var length = byteLength(string, encoding) | 0\n var buf = createBuffer(length)\n\n var actual = buf.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual)\n }\n\n return buf\n}\n\nfunction fromArrayLike (array) {\n var length = array.length < 0 ? 0 : checked(array.length) | 0\n var buf = createBuffer(length)\n for (var i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255\n }\n return buf\n}\n\nfunction fromArrayBuffer (array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\"offset\" is outside of buffer bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\"length\" is outside of buffer bounds')\n }\n\n var buf\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array)\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset)\n } else {\n buf = new Uint8Array(array, byteOffset, length)\n }\n\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(buf, Buffer.prototype)\n\n return buf\n}\n\nfunction fromObject (obj) {\n if (Buffer.isBuffer(obj)) {\n var len = checked(obj.length) | 0\n var buf = createBuffer(len)\n\n if (buf.length === 0) {\n return buf\n }\n\n obj.copy(buf, 0, 0, len)\n return buf\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n return createBuffer(0)\n }\n return fromArrayLike(obj)\n }\n\n if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data)\n }\n}\n\nfunction checked (length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return b != null && b._isBuffer === true &&\n b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\n}\n\nBuffer.compare = function compare (a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\n 'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n )\n }\n\n if (a === b) return 0\n\n var x = a.length\n var y = b.length\n\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n var i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n var buffer = Buffer.allocUnsafe(length)\n var pos = 0\n for (i = 0; i < list.length; ++i) {\n var buf = list[i]\n if (isInstance(buf, Uint8Array)) {\n buf = Buffer.from(buf)\n }\n if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n buf.copy(buffer, pos)\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n throw new TypeError(\n 'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n 'Received type ' + typeof string\n )\n }\n\n var len = string.length\n var mustMatch = (arguments.length > 2 && arguments[2] === true)\n if (!mustMatch && len === 0) return 0\n\n // Use a for loop to avoid recursion\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\n }\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n var loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coersion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n// reliably in a browserify context because there could be multiple different\n// copies of the 'buffer' package in use. This method works even for Buffer\n// instances that were created from another copy of the `buffer` package.\n// See: https://github.com/feross/buffer/issues/154\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n var i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n var len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (var i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n var len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (var i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n var len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (var i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n var length = this.length\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n var str = ''\n var max = exports.INSPECT_MAX_BYTES\n str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\n if (this.length > max) str += ' ... '\n return ''\n}\nif (customInspectSymbol) {\n Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength)\n }\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\n 'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n 'Received type ' + (typeof target)\n )\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n var x = thisEnd - thisStart\n var y = end - start\n var len = Math.min(x, y)\n\n var thisCopy = this.slice(thisStart, thisEnd)\n var targetCopy = target.slice(start, end)\n\n for (var i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n var indexSize = 1\n var arrLength = arr.length\n var valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n var i\n if (dir) {\n var foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n var found = true\n for (var j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n var remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n var strLen = string.length\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n for (var i = 0; i < length; ++i) {\n var parsed = parseInt(string.substr(i * 2, 2), 16)\n if (numberIsNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction latin1Write (buf, string, offset, length) {\n return asciiWrite(buf, string, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0\n if (isFinite(length)) {\n length = length >>> 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n var remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n var loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n return asciiWrite(this, string, offset, length)\n\n case 'latin1':\n case 'binary':\n return latin1Write(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n var res = []\n\n var i = start\n while (i < end) {\n var firstByte = buf[i]\n var codePoint = null\n var bytesPerSequence = (firstByte > 0xEF)\n ? 4\n : (firstByte > 0xDF)\n ? 3\n : (firstByte > 0xBF)\n ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n var secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nvar MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n var len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n var res = ''\n var i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n var ret = ''\n end = Math.min(buf.length, end)\n\n for (var i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n var len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n var out = ''\n for (var i = start; i < end; ++i) {\n out += hexSliceLookupTable[buf[i]]\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n var bytes = buf.slice(start, end)\n var res = ''\n for (var i = 0; i < bytes.length; i += 2) {\n res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n var len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n var newBuf = this.subarray(start, end)\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(newBuf, Buffer.prototype)\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n var val = this[offset + --byteLength]\n var mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var val = this[offset]\n var mul = 1\n var i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n var i = byteLength\n var mul = 1\n var val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n var val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var mul = 1\n var i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n var maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n var i = byteLength - 1\n var mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n var limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = 0\n var mul = 1\n var sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n var limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n var i = byteLength - 1\n var mul = 1\n var sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n var len = end - start\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end)\n } else if (this === target && start < targetStart && targetStart < end) {\n // descending copy from end\n for (var i = len - 1; i >= 0; --i) {\n target[i + targetStart] = this[i + start]\n }\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, end),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n if (val.length === 1) {\n var code = val.charCodeAt(0)\n if ((encoding === 'utf8' && code < 128) ||\n encoding === 'latin1') {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code\n }\n }\n } else if (typeof val === 'number') {\n val = val & 255\n } else if (typeof val === 'boolean') {\n val = Number(val)\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n var i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n var bytes = Buffer.isBuffer(val)\n ? val\n : Buffer.from(val, encoding)\n var len = bytes.length\n if (len === 0) {\n throw new TypeError('The value \"' + val +\n '\" is invalid for argument \"value\"')\n }\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// HELPER FUNCTIONS\n// ================\n\nvar INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split('=')[0]\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = str.trim().replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n var codePoint\n var length = string.length\n var leadSurrogate = null\n var bytes = []\n\n for (var i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n var c, hi, lo\n var byteArray = []\n for (var i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n for (var i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n// the `instanceof` check but they should be treated as of that type.\n// See: https://github.com/feross/buffer/issues/166\nfunction isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n}\nfunction numberIsNaN (obj) {\n // For IE11 support\n return obj !== obj // eslint-disable-line no-self-compare\n}\n\n// Create lookup table for `toString('hex')`\n// See: https://github.com/feross/buffer/issues/219\nvar hexSliceLookupTable = (function () {\n var alphabet = '0123456789abcdef'\n var table = new Array(256)\n for (var i = 0; i < 16; ++i) {\n var i16 = i * 16\n for (var j = 0; j < 16; ++j) {\n table[i16 + j] = alphabet[i] + alphabet[j]\n }\n }\n return table\n})()\n\n\n/***/ }),\n\n/***/ 645:\n/***/ ((__unused_webpack_module, exports) => {\n\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n\n\n/***/ }),\n\n/***/ 1094:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * [js-sha3]{@link https://github.com/emn178/js-sha3}\r\n *\r\n * @version 0.5.7\r\n * @author Chen, Yi-Cyuan [emn178@gmail.com]\r\n * @copyright Chen, Yi-Cyuan 2015-2016\r\n * @license MIT\r\n */\r\n/*jslint bitwise: true */\r\n(function () {\r\n 'use strict';\r\n\r\n var root = typeof window === 'object' ? window : {};\r\n var NODE_JS = !root.JS_SHA3_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node;\r\n if (NODE_JS) {\r\n root = __webpack_require__.g;\r\n }\r\n var COMMON_JS = !root.JS_SHA3_NO_COMMON_JS && \"object\" === 'object' && module.exports;\r\n var HEX_CHARS = '0123456789abcdef'.split('');\r\n var SHAKE_PADDING = [31, 7936, 2031616, 520093696];\r\n var KECCAK_PADDING = [1, 256, 65536, 16777216];\r\n var PADDING = [6, 1536, 393216, 100663296];\r\n var SHIFT = [0, 8, 16, 24];\r\n var RC = [1, 0, 32898, 0, 32906, 2147483648, 2147516416, 2147483648, 32907, 0, 2147483649,\r\n 0, 2147516545, 2147483648, 32777, 2147483648, 138, 0, 136, 0, 2147516425, 0,\r\n 2147483658, 0, 2147516555, 0, 139, 2147483648, 32905, 2147483648, 32771,\r\n 2147483648, 32770, 2147483648, 128, 2147483648, 32778, 0, 2147483658, 2147483648,\r\n 2147516545, 2147483648, 32896, 2147483648, 2147483649, 0, 2147516424, 2147483648];\r\n var BITS = [224, 256, 384, 512];\r\n var SHAKE_BITS = [128, 256];\r\n var OUTPUT_TYPES = ['hex', 'buffer', 'arrayBuffer', 'array'];\r\n\r\n var createOutputMethod = function (bits, padding, outputType) {\r\n return function (message) {\r\n return new Keccak(bits, padding, bits).update(message)[outputType]();\r\n };\r\n };\r\n\r\n var createShakeOutputMethod = function (bits, padding, outputType) {\r\n return function (message, outputBits) {\r\n return new Keccak(bits, padding, outputBits).update(message)[outputType]();\r\n };\r\n };\r\n\r\n var createMethod = function (bits, padding) {\r\n var method = createOutputMethod(bits, padding, 'hex');\r\n method.create = function () {\r\n return new Keccak(bits, padding, bits);\r\n };\r\n method.update = function (message) {\r\n return method.create().update(message);\r\n };\r\n for (var i = 0; i < OUTPUT_TYPES.length; ++i) {\r\n var type = OUTPUT_TYPES[i];\r\n method[type] = createOutputMethod(bits, padding, type);\r\n }\r\n return method;\r\n };\r\n\r\n var createShakeMethod = function (bits, padding) {\r\n var method = createShakeOutputMethod(bits, padding, 'hex');\r\n method.create = function (outputBits) {\r\n return new Keccak(bits, padding, outputBits);\r\n };\r\n method.update = function (message, outputBits) {\r\n return method.create(outputBits).update(message);\r\n };\r\n for (var i = 0; i < OUTPUT_TYPES.length; ++i) {\r\n var type = OUTPUT_TYPES[i];\r\n method[type] = createShakeOutputMethod(bits, padding, type);\r\n }\r\n return method;\r\n };\r\n\r\n var algorithms = [\r\n {name: 'keccak', padding: KECCAK_PADDING, bits: BITS, createMethod: createMethod},\r\n {name: 'sha3', padding: PADDING, bits: BITS, createMethod: createMethod},\r\n {name: 'shake', padding: SHAKE_PADDING, bits: SHAKE_BITS, createMethod: createShakeMethod}\r\n ];\r\n\r\n var methods = {}, methodNames = [];\r\n\r\n for (var i = 0; i < algorithms.length; ++i) {\r\n var algorithm = algorithms[i];\r\n var bits = algorithm.bits;\r\n for (var j = 0; j < bits.length; ++j) {\r\n var methodName = algorithm.name +'_' + bits[j];\r\n methodNames.push(methodName);\r\n methods[methodName] = algorithm.createMethod(bits[j], algorithm.padding);\r\n }\r\n }\r\n\r\n function Keccak(bits, padding, outputBits) {\r\n this.blocks = [];\r\n this.s = [];\r\n this.padding = padding;\r\n this.outputBits = outputBits;\r\n this.reset = true;\r\n this.block = 0;\r\n this.start = 0;\r\n this.blockCount = (1600 - (bits << 1)) >> 5;\r\n this.byteCount = this.blockCount << 2;\r\n this.outputBlocks = outputBits >> 5;\r\n this.extraBytes = (outputBits & 31) >> 3;\r\n\r\n for (var i = 0; i < 50; ++i) {\r\n this.s[i] = 0;\r\n }\r\n }\r\n\r\n Keccak.prototype.update = function (message) {\r\n var notString = typeof message !== 'string';\r\n if (notString && message.constructor === ArrayBuffer) {\r\n message = new Uint8Array(message);\r\n }\r\n var length = message.length, blocks = this.blocks, byteCount = this.byteCount,\r\n blockCount = this.blockCount, index = 0, s = this.s, i, code;\r\n\r\n while (index < length) {\r\n if (this.reset) {\r\n this.reset = false;\r\n blocks[0] = this.block;\r\n for (i = 1; i < blockCount + 1; ++i) {\r\n blocks[i] = 0;\r\n }\r\n }\r\n if (notString) {\r\n for (i = this.start; index < length && i < byteCount; ++index) {\r\n blocks[i >> 2] |= message[index] << SHIFT[i++ & 3];\r\n }\r\n } else {\r\n for (i = this.start; index < length && i < byteCount; ++index) {\r\n code = message.charCodeAt(index);\r\n if (code < 0x80) {\r\n blocks[i >> 2] |= code << SHIFT[i++ & 3];\r\n } else if (code < 0x800) {\r\n blocks[i >> 2] |= (0xc0 | (code >> 6)) << SHIFT[i++ & 3];\r\n blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];\r\n } else if (code < 0xd800 || code >= 0xe000) {\r\n blocks[i >> 2] |= (0xe0 | (code >> 12)) << SHIFT[i++ & 3];\r\n blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3];\r\n blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];\r\n } else {\r\n code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff));\r\n blocks[i >> 2] |= (0xf0 | (code >> 18)) << SHIFT[i++ & 3];\r\n blocks[i >> 2] |= (0x80 | ((code >> 12) & 0x3f)) << SHIFT[i++ & 3];\r\n blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3];\r\n blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];\r\n }\r\n }\r\n }\r\n this.lastByteIndex = i;\r\n if (i >= byteCount) {\r\n this.start = i - byteCount;\r\n this.block = blocks[blockCount];\r\n for (i = 0; i < blockCount; ++i) {\r\n s[i] ^= blocks[i];\r\n }\r\n f(s);\r\n this.reset = true;\r\n } else {\r\n this.start = i;\r\n }\r\n }\r\n return this;\r\n };\r\n\r\n Keccak.prototype.finalize = function () {\r\n var blocks = this.blocks, i = this.lastByteIndex, blockCount = this.blockCount, s = this.s;\r\n blocks[i >> 2] |= this.padding[i & 3];\r\n if (this.lastByteIndex === this.byteCount) {\r\n blocks[0] = blocks[blockCount];\r\n for (i = 1; i < blockCount + 1; ++i) {\r\n blocks[i] = 0;\r\n }\r\n }\r\n blocks[blockCount - 1] |= 0x80000000;\r\n for (i = 0; i < blockCount; ++i) {\r\n s[i] ^= blocks[i];\r\n }\r\n f(s);\r\n };\r\n\r\n Keccak.prototype.toString = Keccak.prototype.hex = function () {\r\n this.finalize();\r\n\r\n var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks,\r\n extraBytes = this.extraBytes, i = 0, j = 0;\r\n var hex = '', block;\r\n while (j < outputBlocks) {\r\n for (i = 0; i < blockCount && j < outputBlocks; ++i, ++j) {\r\n block = s[i];\r\n hex += HEX_CHARS[(block >> 4) & 0x0F] + HEX_CHARS[block & 0x0F] +\r\n HEX_CHARS[(block >> 12) & 0x0F] + HEX_CHARS[(block >> 8) & 0x0F] +\r\n HEX_CHARS[(block >> 20) & 0x0F] + HEX_CHARS[(block >> 16) & 0x0F] +\r\n HEX_CHARS[(block >> 28) & 0x0F] + HEX_CHARS[(block >> 24) & 0x0F];\r\n }\r\n if (j % blockCount === 0) {\r\n f(s);\r\n i = 0;\r\n }\r\n }\r\n if (extraBytes) {\r\n block = s[i];\r\n if (extraBytes > 0) {\r\n hex += HEX_CHARS[(block >> 4) & 0x0F] + HEX_CHARS[block & 0x0F];\r\n }\r\n if (extraBytes > 1) {\r\n hex += HEX_CHARS[(block >> 12) & 0x0F] + HEX_CHARS[(block >> 8) & 0x0F];\r\n }\r\n if (extraBytes > 2) {\r\n hex += HEX_CHARS[(block >> 20) & 0x0F] + HEX_CHARS[(block >> 16) & 0x0F];\r\n }\r\n }\r\n return hex;\r\n };\r\n\r\n Keccak.prototype.arrayBuffer = function () {\r\n this.finalize();\r\n\r\n var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks,\r\n extraBytes = this.extraBytes, i = 0, j = 0;\r\n var bytes = this.outputBits >> 3;\r\n var buffer;\r\n if (extraBytes) {\r\n buffer = new ArrayBuffer((outputBlocks + 1) << 2);\r\n } else {\r\n buffer = new ArrayBuffer(bytes);\r\n }\r\n var array = new Uint32Array(buffer);\r\n while (j < outputBlocks) {\r\n for (i = 0; i < blockCount && j < outputBlocks; ++i, ++j) {\r\n array[j] = s[i];\r\n }\r\n if (j % blockCount === 0) {\r\n f(s);\r\n }\r\n }\r\n if (extraBytes) {\r\n array[i] = s[i];\r\n buffer = buffer.slice(0, bytes);\r\n }\r\n return buffer;\r\n };\r\n\r\n Keccak.prototype.buffer = Keccak.prototype.arrayBuffer;\r\n\r\n Keccak.prototype.digest = Keccak.prototype.array = function () {\r\n this.finalize();\r\n\r\n var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks,\r\n extraBytes = this.extraBytes, i = 0, j = 0;\r\n var array = [], offset, block;\r\n while (j < outputBlocks) {\r\n for (i = 0; i < blockCount && j < outputBlocks; ++i, ++j) {\r\n offset = j << 2;\r\n block = s[i];\r\n array[offset] = block & 0xFF;\r\n array[offset + 1] = (block >> 8) & 0xFF;\r\n array[offset + 2] = (block >> 16) & 0xFF;\r\n array[offset + 3] = (block >> 24) & 0xFF;\r\n }\r\n if (j % blockCount === 0) {\r\n f(s);\r\n }\r\n }\r\n if (extraBytes) {\r\n offset = j << 2;\r\n block = s[i];\r\n if (extraBytes > 0) {\r\n array[offset] = block & 0xFF;\r\n }\r\n if (extraBytes > 1) {\r\n array[offset + 1] = (block >> 8) & 0xFF;\r\n }\r\n if (extraBytes > 2) {\r\n array[offset + 2] = (block >> 16) & 0xFF;\r\n }\r\n }\r\n return array;\r\n };\r\n\r\n var f = function (s) {\r\n var h, l, n, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9,\r\n b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14, b15, b16, b17,\r\n b18, b19, b20, b21, b22, b23, b24, b25, b26, b27, b28, b29, b30, b31, b32, b33,\r\n b34, b35, b36, b37, b38, b39, b40, b41, b42, b43, b44, b45, b46, b47, b48, b49;\r\n for (n = 0; n < 48; n += 2) {\r\n c0 = s[0] ^ s[10] ^ s[20] ^ s[30] ^ s[40];\r\n c1 = s[1] ^ s[11] ^ s[21] ^ s[31] ^ s[41];\r\n c2 = s[2] ^ s[12] ^ s[22] ^ s[32] ^ s[42];\r\n c3 = s[3] ^ s[13] ^ s[23] ^ s[33] ^ s[43];\r\n c4 = s[4] ^ s[14] ^ s[24] ^ s[34] ^ s[44];\r\n c5 = s[5] ^ s[15] ^ s[25] ^ s[35] ^ s[45];\r\n c6 = s[6] ^ s[16] ^ s[26] ^ s[36] ^ s[46];\r\n c7 = s[7] ^ s[17] ^ s[27] ^ s[37] ^ s[47];\r\n c8 = s[8] ^ s[18] ^ s[28] ^ s[38] ^ s[48];\r\n c9 = s[9] ^ s[19] ^ s[29] ^ s[39] ^ s[49];\r\n\r\n h = c8 ^ ((c2 << 1) | (c3 >>> 31));\r\n l = c9 ^ ((c3 << 1) | (c2 >>> 31));\r\n s[0] ^= h;\r\n s[1] ^= l;\r\n s[10] ^= h;\r\n s[11] ^= l;\r\n s[20] ^= h;\r\n s[21] ^= l;\r\n s[30] ^= h;\r\n s[31] ^= l;\r\n s[40] ^= h;\r\n s[41] ^= l;\r\n h = c0 ^ ((c4 << 1) | (c5 >>> 31));\r\n l = c1 ^ ((c5 << 1) | (c4 >>> 31));\r\n s[2] ^= h;\r\n s[3] ^= l;\r\n s[12] ^= h;\r\n s[13] ^= l;\r\n s[22] ^= h;\r\n s[23] ^= l;\r\n s[32] ^= h;\r\n s[33] ^= l;\r\n s[42] ^= h;\r\n s[43] ^= l;\r\n h = c2 ^ ((c6 << 1) | (c7 >>> 31));\r\n l = c3 ^ ((c7 << 1) | (c6 >>> 31));\r\n s[4] ^= h;\r\n s[5] ^= l;\r\n s[14] ^= h;\r\n s[15] ^= l;\r\n s[24] ^= h;\r\n s[25] ^= l;\r\n s[34] ^= h;\r\n s[35] ^= l;\r\n s[44] ^= h;\r\n s[45] ^= l;\r\n h = c4 ^ ((c8 << 1) | (c9 >>> 31));\r\n l = c5 ^ ((c9 << 1) | (c8 >>> 31));\r\n s[6] ^= h;\r\n s[7] ^= l;\r\n s[16] ^= h;\r\n s[17] ^= l;\r\n s[26] ^= h;\r\n s[27] ^= l;\r\n s[36] ^= h;\r\n s[37] ^= l;\r\n s[46] ^= h;\r\n s[47] ^= l;\r\n h = c6 ^ ((c0 << 1) | (c1 >>> 31));\r\n l = c7 ^ ((c1 << 1) | (c0 >>> 31));\r\n s[8] ^= h;\r\n s[9] ^= l;\r\n s[18] ^= h;\r\n s[19] ^= l;\r\n s[28] ^= h;\r\n s[29] ^= l;\r\n s[38] ^= h;\r\n s[39] ^= l;\r\n s[48] ^= h;\r\n s[49] ^= l;\r\n\r\n b0 = s[0];\r\n b1 = s[1];\r\n b32 = (s[11] << 4) | (s[10] >>> 28);\r\n b33 = (s[10] << 4) | (s[11] >>> 28);\r\n b14 = (s[20] << 3) | (s[21] >>> 29);\r\n b15 = (s[21] << 3) | (s[20] >>> 29);\r\n b46 = (s[31] << 9) | (s[30] >>> 23);\r\n b47 = (s[30] << 9) | (s[31] >>> 23);\r\n b28 = (s[40] << 18) | (s[41] >>> 14);\r\n b29 = (s[41] << 18) | (s[40] >>> 14);\r\n b20 = (s[2] << 1) | (s[3] >>> 31);\r\n b21 = (s[3] << 1) | (s[2] >>> 31);\r\n b2 = (s[13] << 12) | (s[12] >>> 20);\r\n b3 = (s[12] << 12) | (s[13] >>> 20);\r\n b34 = (s[22] << 10) | (s[23] >>> 22);\r\n b35 = (s[23] << 10) | (s[22] >>> 22);\r\n b16 = (s[33] << 13) | (s[32] >>> 19);\r\n b17 = (s[32] << 13) | (s[33] >>> 19);\r\n b48 = (s[42] << 2) | (s[43] >>> 30);\r\n b49 = (s[43] << 2) | (s[42] >>> 30);\r\n b40 = (s[5] << 30) | (s[4] >>> 2);\r\n b41 = (s[4] << 30) | (s[5] >>> 2);\r\n b22 = (s[14] << 6) | (s[15] >>> 26);\r\n b23 = (s[15] << 6) | (s[14] >>> 26);\r\n b4 = (s[25] << 11) | (s[24] >>> 21);\r\n b5 = (s[24] << 11) | (s[25] >>> 21);\r\n b36 = (s[34] << 15) | (s[35] >>> 17);\r\n b37 = (s[35] << 15) | (s[34] >>> 17);\r\n b18 = (s[45] << 29) | (s[44] >>> 3);\r\n b19 = (s[44] << 29) | (s[45] >>> 3);\r\n b10 = (s[6] << 28) | (s[7] >>> 4);\r\n b11 = (s[7] << 28) | (s[6] >>> 4);\r\n b42 = (s[17] << 23) | (s[16] >>> 9);\r\n b43 = (s[16] << 23) | (s[17] >>> 9);\r\n b24 = (s[26] << 25) | (s[27] >>> 7);\r\n b25 = (s[27] << 25) | (s[26] >>> 7);\r\n b6 = (s[36] << 21) | (s[37] >>> 11);\r\n b7 = (s[37] << 21) | (s[36] >>> 11);\r\n b38 = (s[47] << 24) | (s[46] >>> 8);\r\n b39 = (s[46] << 24) | (s[47] >>> 8);\r\n b30 = (s[8] << 27) | (s[9] >>> 5);\r\n b31 = (s[9] << 27) | (s[8] >>> 5);\r\n b12 = (s[18] << 20) | (s[19] >>> 12);\r\n b13 = (s[19] << 20) | (s[18] >>> 12);\r\n b44 = (s[29] << 7) | (s[28] >>> 25);\r\n b45 = (s[28] << 7) | (s[29] >>> 25);\r\n b26 = (s[38] << 8) | (s[39] >>> 24);\r\n b27 = (s[39] << 8) | (s[38] >>> 24);\r\n b8 = (s[48] << 14) | (s[49] >>> 18);\r\n b9 = (s[49] << 14) | (s[48] >>> 18);\r\n\r\n s[0] = b0 ^ (~b2 & b4);\r\n s[1] = b1 ^ (~b3 & b5);\r\n s[10] = b10 ^ (~b12 & b14);\r\n s[11] = b11 ^ (~b13 & b15);\r\n s[20] = b20 ^ (~b22 & b24);\r\n s[21] = b21 ^ (~b23 & b25);\r\n s[30] = b30 ^ (~b32 & b34);\r\n s[31] = b31 ^ (~b33 & b35);\r\n s[40] = b40 ^ (~b42 & b44);\r\n s[41] = b41 ^ (~b43 & b45);\r\n s[2] = b2 ^ (~b4 & b6);\r\n s[3] = b3 ^ (~b5 & b7);\r\n s[12] = b12 ^ (~b14 & b16);\r\n s[13] = b13 ^ (~b15 & b17);\r\n s[22] = b22 ^ (~b24 & b26);\r\n s[23] = b23 ^ (~b25 & b27);\r\n s[32] = b32 ^ (~b34 & b36);\r\n s[33] = b33 ^ (~b35 & b37);\r\n s[42] = b42 ^ (~b44 & b46);\r\n s[43] = b43 ^ (~b45 & b47);\r\n s[4] = b4 ^ (~b6 & b8);\r\n s[5] = b5 ^ (~b7 & b9);\r\n s[14] = b14 ^ (~b16 & b18);\r\n s[15] = b15 ^ (~b17 & b19);\r\n s[24] = b24 ^ (~b26 & b28);\r\n s[25] = b25 ^ (~b27 & b29);\r\n s[34] = b34 ^ (~b36 & b38);\r\n s[35] = b35 ^ (~b37 & b39);\r\n s[44] = b44 ^ (~b46 & b48);\r\n s[45] = b45 ^ (~b47 & b49);\r\n s[6] = b6 ^ (~b8 & b0);\r\n s[7] = b7 ^ (~b9 & b1);\r\n s[16] = b16 ^ (~b18 & b10);\r\n s[17] = b17 ^ (~b19 & b11);\r\n s[26] = b26 ^ (~b28 & b20);\r\n s[27] = b27 ^ (~b29 & b21);\r\n s[36] = b36 ^ (~b38 & b30);\r\n s[37] = b37 ^ (~b39 & b31);\r\n s[46] = b46 ^ (~b48 & b40);\r\n s[47] = b47 ^ (~b49 & b41);\r\n s[8] = b8 ^ (~b0 & b2);\r\n s[9] = b9 ^ (~b1 & b3);\r\n s[18] = b18 ^ (~b10 & b12);\r\n s[19] = b19 ^ (~b11 & b13);\r\n s[28] = b28 ^ (~b20 & b22);\r\n s[29] = b29 ^ (~b21 & b23);\r\n s[38] = b38 ^ (~b30 & b32);\r\n s[39] = b39 ^ (~b31 & b33);\r\n s[48] = b48 ^ (~b40 & b42);\r\n s[49] = b49 ^ (~b41 & b43);\r\n\r\n s[0] ^= RC[n];\r\n s[1] ^= RC[n + 1];\r\n }\r\n };\r\n\r\n if (COMMON_JS) {\r\n module.exports = methods;\r\n } else {\r\n for (var i = 0; i < methodNames.length; ++i) {\r\n root[methodNames[i]] = methods[methodNames[i]];\r\n }\r\n }\r\n})();\r\n\n\n/***/ }),\n\n/***/ 2587:\n/***/ ((module) => {\n\n\"use strict\";\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\n// If obj.hasOwnProperty has been overridden, then calling\n// obj.hasOwnProperty(prop) will break.\n// See: https://github.com/joyent/node/issues/1707\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nmodule.exports = function(qs, sep, eq, options) {\n sep = sep || '&';\n eq = eq || '=';\n var obj = {};\n\n if (typeof qs !== 'string' || qs.length === 0) {\n return obj;\n }\n\n var regexp = /\\+/g;\n qs = qs.split(sep);\n\n var maxKeys = 1000;\n if (options && typeof options.maxKeys === 'number') {\n maxKeys = options.maxKeys;\n }\n\n var len = qs.length;\n // maxKeys <= 0 means that we should not limit keys count\n if (maxKeys > 0 && len > maxKeys) {\n len = maxKeys;\n }\n\n for (var i = 0; i < len; ++i) {\n var x = qs[i].replace(regexp, '%20'),\n idx = x.indexOf(eq),\n kstr, vstr, k, v;\n\n if (idx >= 0) {\n kstr = x.substr(0, idx);\n vstr = x.substr(idx + 1);\n } else {\n kstr = x;\n vstr = '';\n }\n\n k = decodeURIComponent(kstr);\n v = decodeURIComponent(vstr);\n\n if (!hasOwnProperty(obj, k)) {\n obj[k] = v;\n } else if (Array.isArray(obj[k])) {\n obj[k].push(v);\n } else {\n obj[k] = [obj[k], v];\n }\n }\n\n return obj;\n};\n\n\n/***/ }),\n\n/***/ 2361:\n/***/ ((module) => {\n\n\"use strict\";\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\nvar stringifyPrimitive = function(v) {\n switch (typeof v) {\n case 'string':\n return v;\n\n case 'boolean':\n return v ? 'true' : 'false';\n\n case 'number':\n return isFinite(v) ? v : '';\n\n default:\n return '';\n }\n};\n\nmodule.exports = function(obj, sep, eq, name) {\n sep = sep || '&';\n eq = eq || '=';\n if (obj === null) {\n obj = undefined;\n }\n\n if (typeof obj === 'object') {\n return Object.keys(obj).map(function(k) {\n var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;\n if (Array.isArray(obj[k])) {\n return obj[k].map(function(v) {\n return ks + encodeURIComponent(stringifyPrimitive(v));\n }).join(sep);\n } else {\n return ks + encodeURIComponent(stringifyPrimitive(obj[k]));\n }\n }).join(sep);\n\n }\n\n if (!name) return '';\n return encodeURIComponent(stringifyPrimitive(name)) + eq +\n encodeURIComponent(stringifyPrimitive(obj));\n};\n\n\n/***/ }),\n\n/***/ 7673:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\"use strict\";\n\n\nexports.decode = exports.parse = __webpack_require__(2587);\nexports.encode = exports.stringify = __webpack_require__(2361);\n\n\n/***/ }),\n\n/***/ 1798:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\n\n// limit of Crypto.getRandomValues()\n// https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues\nvar MAX_BYTES = 65536\n\n// Node supports requesting up to this number of bytes\n// https://github.com/nodejs/node/blob/master/lib/internal/crypto/random.js#L48\nvar MAX_UINT32 = 4294967295\n\nfunction oldBrowser () {\n throw new Error('Secure random number generation is not supported by this browser.\\nUse Chrome, Firefox or Internet Explorer 11')\n}\n\nvar Buffer = __webpack_require__(9509).Buffer\nvar crypto = __webpack_require__.g.crypto || __webpack_require__.g.msCrypto\n\nif (crypto && crypto.getRandomValues) {\n module.exports = randomBytes\n} else {\n module.exports = oldBrowser\n}\n\nfunction randomBytes (size, cb) {\n // phantomjs needs to throw\n if (size > MAX_UINT32) throw new RangeError('requested too many random bytes')\n\n var bytes = Buffer.allocUnsafe(size)\n\n if (size > 0) { // getRandomValues fails on IE if size == 0\n if (size > MAX_BYTES) { // this is the max bytes crypto.getRandomValues\n // can do at once see https://developer.mozilla.org/en-US/docs/Web/API/window.crypto.getRandomValues\n for (var generated = 0; generated < size; generated += MAX_BYTES) {\n // buffer.slice automatically checks if the end is past the end of\n // the buffer so we don't have to here\n crypto.getRandomValues(bytes.slice(generated, generated + MAX_BYTES))\n }\n } else {\n crypto.getRandomValues(bytes)\n }\n }\n\n if (typeof cb === 'function') {\n return process.nextTick(function () {\n cb(null, bytes)\n })\n }\n\n return bytes\n}\n\n\n/***/ }),\n\n/***/ 9509:\n/***/ ((module, exports, __webpack_require__) => {\n\n/*! safe-buffer. MIT License. Feross Aboukhadijeh */\n/* eslint-disable node/no-deprecated-api */\nvar buffer = __webpack_require__(8764)\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.prototype = Object.create(Buffer.prototype)\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n\n\n/***/ }),\n\n/***/ 2511:\n/***/ (function(module, exports, __webpack_require__) {\n\n/* module decorator */ module = __webpack_require__.nmd(module);\nvar __WEBPACK_AMD_DEFINE_RESULT__;/*! https://mths.be/punycode v1.3.2 by @mathias */\n;(function(root) {\n\n\t/** Detect free variables */\n\tvar freeExports = true && exports &&\n\t\t!exports.nodeType && exports;\n\tvar freeModule = true && module &&\n\t\t!module.nodeType && module;\n\tvar freeGlobal = typeof __webpack_require__.g == 'object' && __webpack_require__.g;\n\tif (\n\t\tfreeGlobal.global === freeGlobal ||\n\t\tfreeGlobal.window === freeGlobal ||\n\t\tfreeGlobal.self === freeGlobal\n\t) {\n\t\troot = freeGlobal;\n\t}\n\n\t/**\n\t * The `punycode` object.\n\t * @name punycode\n\t * @type Object\n\t */\n\tvar punycode,\n\n\t/** Highest positive signed 32-bit float value */\n\tmaxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1\n\n\t/** Bootstring parameters */\n\tbase = 36,\n\ttMin = 1,\n\ttMax = 26,\n\tskew = 38,\n\tdamp = 700,\n\tinitialBias = 72,\n\tinitialN = 128, // 0x80\n\tdelimiter = '-', // '\\x2D'\n\n\t/** Regular expressions */\n\tregexPunycode = /^xn--/,\n\tregexNonASCII = /[^\\x20-\\x7E]/, // unprintable ASCII chars + non-ASCII chars\n\tregexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g, // RFC 3490 separators\n\n\t/** Error messages */\n\terrors = {\n\t\t'overflow': 'Overflow: input needs wider integers to process',\n\t\t'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n\t\t'invalid-input': 'Invalid input'\n\t},\n\n\t/** Convenience shortcuts */\n\tbaseMinusTMin = base - tMin,\n\tfloor = Math.floor,\n\tstringFromCharCode = String.fromCharCode,\n\n\t/** Temporary variable */\n\tkey;\n\n\t/*--------------------------------------------------------------------------*/\n\n\t/**\n\t * A generic error utility function.\n\t * @private\n\t * @param {String} type The error type.\n\t * @returns {Error} Throws a `RangeError` with the applicable error message.\n\t */\n\tfunction error(type) {\n\t\tthrow RangeError(errors[type]);\n\t}\n\n\t/**\n\t * A generic `Array#map` utility function.\n\t * @private\n\t * @param {Array} array The array to iterate over.\n\t * @param {Function} callback The function that gets called for every array\n\t * item.\n\t * @returns {Array} A new array of values returned by the callback function.\n\t */\n\tfunction map(array, fn) {\n\t\tvar length = array.length;\n\t\tvar result = [];\n\t\twhile (length--) {\n\t\t\tresult[length] = fn(array[length]);\n\t\t}\n\t\treturn result;\n\t}\n\n\t/**\n\t * A simple `Array#map`-like wrapper to work with domain name strings or email\n\t * addresses.\n\t * @private\n\t * @param {String} domain The domain name or email address.\n\t * @param {Function} callback The function that gets called for every\n\t * character.\n\t * @returns {Array} A new string of characters returned by the callback\n\t * function.\n\t */\n\tfunction mapDomain(string, fn) {\n\t\tvar parts = string.split('@');\n\t\tvar result = '';\n\t\tif (parts.length > 1) {\n\t\t\t// In email addresses, only the domain name should be punycoded. Leave\n\t\t\t// the local part (i.e. everything up to `@`) intact.\n\t\t\tresult = parts[0] + '@';\n\t\t\tstring = parts[1];\n\t\t}\n\t\t// Avoid `split(regex)` for IE8 compatibility. See #17.\n\t\tstring = string.replace(regexSeparators, '\\x2E');\n\t\tvar labels = string.split('.');\n\t\tvar encoded = map(labels, fn).join('.');\n\t\treturn result + encoded;\n\t}\n\n\t/**\n\t * Creates an array containing the numeric code points of each Unicode\n\t * character in the string. While JavaScript uses UCS-2 internally,\n\t * this function will convert a pair of surrogate halves (each of which\n\t * UCS-2 exposes as separate characters) into a single code point,\n\t * matching UTF-16.\n\t * @see `punycode.ucs2.encode`\n\t * @see \n\t * @memberOf punycode.ucs2\n\t * @name decode\n\t * @param {String} string The Unicode input string (UCS-2).\n\t * @returns {Array} The new array of code points.\n\t */\n\tfunction ucs2decode(string) {\n\t\tvar output = [],\n\t\t counter = 0,\n\t\t length = string.length,\n\t\t value,\n\t\t extra;\n\t\twhile (counter < length) {\n\t\t\tvalue = string.charCodeAt(counter++);\n\t\t\tif (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n\t\t\t\t// high surrogate, and there is a next character\n\t\t\t\textra = string.charCodeAt(counter++);\n\t\t\t\tif ((extra & 0xFC00) == 0xDC00) { // low surrogate\n\t\t\t\t\toutput.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n\t\t\t\t} else {\n\t\t\t\t\t// unmatched surrogate; only append this code unit, in case the next\n\t\t\t\t\t// code unit is the high surrogate of a surrogate pair\n\t\t\t\t\toutput.push(value);\n\t\t\t\t\tcounter--;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\toutput.push(value);\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}\n\n\t/**\n\t * Creates a string based on an array of numeric code points.\n\t * @see `punycode.ucs2.decode`\n\t * @memberOf punycode.ucs2\n\t * @name encode\n\t * @param {Array} codePoints The array of numeric code points.\n\t * @returns {String} The new Unicode string (UCS-2).\n\t */\n\tfunction ucs2encode(array) {\n\t\treturn map(array, function(value) {\n\t\t\tvar output = '';\n\t\t\tif (value > 0xFFFF) {\n\t\t\t\tvalue -= 0x10000;\n\t\t\t\toutput += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);\n\t\t\t\tvalue = 0xDC00 | value & 0x3FF;\n\t\t\t}\n\t\t\toutput += stringFromCharCode(value);\n\t\t\treturn output;\n\t\t}).join('');\n\t}\n\n\t/**\n\t * Converts a basic code point into a digit/integer.\n\t * @see `digitToBasic()`\n\t * @private\n\t * @param {Number} codePoint The basic numeric code point value.\n\t * @returns {Number} The numeric value of a basic code point (for use in\n\t * representing integers) in the range `0` to `base - 1`, or `base` if\n\t * the code point does not represent a value.\n\t */\n\tfunction basicToDigit(codePoint) {\n\t\tif (codePoint - 48 < 10) {\n\t\t\treturn codePoint - 22;\n\t\t}\n\t\tif (codePoint - 65 < 26) {\n\t\t\treturn codePoint - 65;\n\t\t}\n\t\tif (codePoint - 97 < 26) {\n\t\t\treturn codePoint - 97;\n\t\t}\n\t\treturn base;\n\t}\n\n\t/**\n\t * Converts a digit/integer into a basic code point.\n\t * @see `basicToDigit()`\n\t * @private\n\t * @param {Number} digit The numeric value of a basic code point.\n\t * @returns {Number} The basic code point whose value (when used for\n\t * representing integers) is `digit`, which needs to be in the range\n\t * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\n\t * used; else, the lowercase form is used. The behavior is undefined\n\t * if `flag` is non-zero and `digit` has no uppercase form.\n\t */\n\tfunction digitToBasic(digit, flag) {\n\t\t// 0..25 map to ASCII a..z or A..Z\n\t\t// 26..35 map to ASCII 0..9\n\t\treturn digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n\t}\n\n\t/**\n\t * Bias adaptation function as per section 3.4 of RFC 3492.\n\t * http://tools.ietf.org/html/rfc3492#section-3.4\n\t * @private\n\t */\n\tfunction adapt(delta, numPoints, firstTime) {\n\t\tvar k = 0;\n\t\tdelta = firstTime ? floor(delta / damp) : delta >> 1;\n\t\tdelta += floor(delta / numPoints);\n\t\tfor (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {\n\t\t\tdelta = floor(delta / baseMinusTMin);\n\t\t}\n\t\treturn floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n\t}\n\n\t/**\n\t * Converts a Punycode string of ASCII-only symbols to a string of Unicode\n\t * symbols.\n\t * @memberOf punycode\n\t * @param {String} input The Punycode string of ASCII-only symbols.\n\t * @returns {String} The resulting string of Unicode symbols.\n\t */\n\tfunction decode(input) {\n\t\t// Don't use UCS-2\n\t\tvar output = [],\n\t\t inputLength = input.length,\n\t\t out,\n\t\t i = 0,\n\t\t n = initialN,\n\t\t bias = initialBias,\n\t\t basic,\n\t\t j,\n\t\t index,\n\t\t oldi,\n\t\t w,\n\t\t k,\n\t\t digit,\n\t\t t,\n\t\t /** Cached calculation results */\n\t\t baseMinusT;\n\n\t\t// Handle the basic code points: let `basic` be the number of input code\n\t\t// points before the last delimiter, or `0` if there is none, then copy\n\t\t// the first basic code points to the output.\n\n\t\tbasic = input.lastIndexOf(delimiter);\n\t\tif (basic < 0) {\n\t\t\tbasic = 0;\n\t\t}\n\n\t\tfor (j = 0; j < basic; ++j) {\n\t\t\t// if it's not a basic code point\n\t\t\tif (input.charCodeAt(j) >= 0x80) {\n\t\t\t\terror('not-basic');\n\t\t\t}\n\t\t\toutput.push(input.charCodeAt(j));\n\t\t}\n\n\t\t// Main decoding loop: start just after the last delimiter if any basic code\n\t\t// points were copied; start at the beginning otherwise.\n\n\t\tfor (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {\n\n\t\t\t// `index` is the index of the next character to be consumed.\n\t\t\t// Decode a generalized variable-length integer into `delta`,\n\t\t\t// which gets added to `i`. The overflow checking is easier\n\t\t\t// if we increase `i` as we go, then subtract off its starting\n\t\t\t// value at the end to obtain `delta`.\n\t\t\tfor (oldi = i, w = 1, k = base; /* no condition */; k += base) {\n\n\t\t\t\tif (index >= inputLength) {\n\t\t\t\t\terror('invalid-input');\n\t\t\t\t}\n\n\t\t\t\tdigit = basicToDigit(input.charCodeAt(index++));\n\n\t\t\t\tif (digit >= base || digit > floor((maxInt - i) / w)) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\ti += digit * w;\n\t\t\t\tt = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\n\t\t\t\tif (digit < t) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tbaseMinusT = base - t;\n\t\t\t\tif (w > floor(maxInt / baseMinusT)) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\tw *= baseMinusT;\n\n\t\t\t}\n\n\t\t\tout = output.length + 1;\n\t\t\tbias = adapt(i - oldi, out, oldi == 0);\n\n\t\t\t// `i` was supposed to wrap around from `out` to `0`,\n\t\t\t// incrementing `n` each time, so we'll fix that now:\n\t\t\tif (floor(i / out) > maxInt - n) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\tn += floor(i / out);\n\t\t\ti %= out;\n\n\t\t\t// Insert `n` at position `i` of the output\n\t\t\toutput.splice(i++, 0, n);\n\n\t\t}\n\n\t\treturn ucs2encode(output);\n\t}\n\n\t/**\n\t * Converts a string of Unicode symbols (e.g. a domain name label) to a\n\t * Punycode string of ASCII-only symbols.\n\t * @memberOf punycode\n\t * @param {String} input The string of Unicode symbols.\n\t * @returns {String} The resulting Punycode string of ASCII-only symbols.\n\t */\n\tfunction encode(input) {\n\t\tvar n,\n\t\t delta,\n\t\t handledCPCount,\n\t\t basicLength,\n\t\t bias,\n\t\t j,\n\t\t m,\n\t\t q,\n\t\t k,\n\t\t t,\n\t\t currentValue,\n\t\t output = [],\n\t\t /** `inputLength` will hold the number of code points in `input`. */\n\t\t inputLength,\n\t\t /** Cached calculation results */\n\t\t handledCPCountPlusOne,\n\t\t baseMinusT,\n\t\t qMinusT;\n\n\t\t// Convert the input in UCS-2 to Unicode\n\t\tinput = ucs2decode(input);\n\n\t\t// Cache the length\n\t\tinputLength = input.length;\n\n\t\t// Initialize the state\n\t\tn = initialN;\n\t\tdelta = 0;\n\t\tbias = initialBias;\n\n\t\t// Handle the basic code points\n\t\tfor (j = 0; j < inputLength; ++j) {\n\t\t\tcurrentValue = input[j];\n\t\t\tif (currentValue < 0x80) {\n\t\t\t\toutput.push(stringFromCharCode(currentValue));\n\t\t\t}\n\t\t}\n\n\t\thandledCPCount = basicLength = output.length;\n\n\t\t// `handledCPCount` is the number of code points that have been handled;\n\t\t// `basicLength` is the number of basic code points.\n\n\t\t// Finish the basic string - if it is not empty - with a delimiter\n\t\tif (basicLength) {\n\t\t\toutput.push(delimiter);\n\t\t}\n\n\t\t// Main encoding loop:\n\t\twhile (handledCPCount < inputLength) {\n\n\t\t\t// All non-basic code points < n have been handled already. Find the next\n\t\t\t// larger one:\n\t\t\tfor (m = maxInt, j = 0; j < inputLength; ++j) {\n\t\t\t\tcurrentValue = input[j];\n\t\t\t\tif (currentValue >= n && currentValue < m) {\n\t\t\t\t\tm = currentValue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Increase `delta` enough to advance the decoder's state to ,\n\t\t\t// but guard against overflow\n\t\t\thandledCPCountPlusOne = handledCPCount + 1;\n\t\t\tif (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\tdelta += (m - n) * handledCPCountPlusOne;\n\t\t\tn = m;\n\n\t\t\tfor (j = 0; j < inputLength; ++j) {\n\t\t\t\tcurrentValue = input[j];\n\n\t\t\t\tif (currentValue < n && ++delta > maxInt) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\tif (currentValue == n) {\n\t\t\t\t\t// Represent delta as a generalized variable-length integer\n\t\t\t\t\tfor (q = delta, k = base; /* no condition */; k += base) {\n\t\t\t\t\t\tt = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\t\t\t\t\t\tif (q < t) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tqMinusT = q - t;\n\t\t\t\t\t\tbaseMinusT = base - t;\n\t\t\t\t\t\toutput.push(\n\t\t\t\t\t\t\tstringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))\n\t\t\t\t\t\t);\n\t\t\t\t\t\tq = floor(qMinusT / baseMinusT);\n\t\t\t\t\t}\n\n\t\t\t\t\toutput.push(stringFromCharCode(digitToBasic(q, 0)));\n\t\t\t\t\tbias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n\t\t\t\t\tdelta = 0;\n\t\t\t\t\t++handledCPCount;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t++delta;\n\t\t\t++n;\n\n\t\t}\n\t\treturn output.join('');\n\t}\n\n\t/**\n\t * Converts a Punycode string representing a domain name or an email address\n\t * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\n\t * it doesn't matter if you call it on a string that has already been\n\t * converted to Unicode.\n\t * @memberOf punycode\n\t * @param {String} input The Punycoded domain name or email address to\n\t * convert to Unicode.\n\t * @returns {String} The Unicode representation of the given Punycode\n\t * string.\n\t */\n\tfunction toUnicode(input) {\n\t\treturn mapDomain(input, function(string) {\n\t\t\treturn regexPunycode.test(string)\n\t\t\t\t? decode(string.slice(4).toLowerCase())\n\t\t\t\t: string;\n\t\t});\n\t}\n\n\t/**\n\t * Converts a Unicode string representing a domain name or an email address to\n\t * Punycode. Only the non-ASCII parts of the domain name will be converted,\n\t * i.e. it doesn't matter if you call it with a domain that's already in\n\t * ASCII.\n\t * @memberOf punycode\n\t * @param {String} input The domain name or email address to convert, as a\n\t * Unicode string.\n\t * @returns {String} The Punycode representation of the given domain name or\n\t * email address.\n\t */\n\tfunction toASCII(input) {\n\t\treturn mapDomain(input, function(string) {\n\t\t\treturn regexNonASCII.test(string)\n\t\t\t\t? 'xn--' + encode(string)\n\t\t\t\t: string;\n\t\t});\n\t}\n\n\t/*--------------------------------------------------------------------------*/\n\n\t/** Define the public API */\n\tpunycode = {\n\t\t/**\n\t\t * A string representing the current Punycode.js version number.\n\t\t * @memberOf punycode\n\t\t * @type String\n\t\t */\n\t\t'version': '1.3.2',\n\t\t/**\n\t\t * An object of methods to convert from JavaScript's internal character\n\t\t * representation (UCS-2) to Unicode code points, and back.\n\t\t * @see \n\t\t * @memberOf punycode\n\t\t * @type Object\n\t\t */\n\t\t'ucs2': {\n\t\t\t'decode': ucs2decode,\n\t\t\t'encode': ucs2encode\n\t\t},\n\t\t'decode': decode,\n\t\t'encode': encode,\n\t\t'toASCII': toASCII,\n\t\t'toUnicode': toUnicode\n\t};\n\n\t/** Expose `punycode` */\n\t// Some AMD build optimizers, like r.js, check for specific condition patterns\n\t// like the following:\n\tif (\n\t\ttrue\n\t) {\n\t\t!(__WEBPACK_AMD_DEFINE_RESULT__ = (function() {\n\t\t\treturn punycode;\n\t\t}).call(exports, __webpack_require__, exports, module),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\n\t} else {}\n\n}(this));\n\n\n/***/ }),\n\n/***/ 8575:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\"use strict\";\nvar __webpack_unused_export__;\n// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n\nvar punycode = __webpack_require__(2511);\nvar util = __webpack_require__(2502);\n\n__webpack_unused_export__ = urlParse;\nexports.DB = urlResolve;\n__webpack_unused_export__ = urlResolveObject;\n__webpack_unused_export__ = urlFormat;\n\n__webpack_unused_export__ = Url;\n\nfunction Url() {\n this.protocol = null;\n this.slashes = null;\n this.auth = null;\n this.host = null;\n this.port = null;\n this.hostname = null;\n this.hash = null;\n this.search = null;\n this.query = null;\n this.pathname = null;\n this.path = null;\n this.href = null;\n}\n\n// Reference: RFC 3986, RFC 1808, RFC 2396\n\n// define these here so at least they only have to be\n// compiled once on the first module load.\nvar protocolPattern = /^([a-z0-9.+-]+:)/i,\n portPattern = /:[0-9]*$/,\n\n // Special case for a simple path URL\n simplePathPattern = /^(\\/\\/?(?!\\/)[^\\?\\s]*)(\\?[^\\s]*)?$/,\n\n // RFC 2396: characters reserved for delimiting URLs.\n // We actually just auto-escape these.\n delims = ['<', '>', '\"', '`', ' ', '\\r', '\\n', '\\t'],\n\n // RFC 2396: characters not allowed for various reasons.\n unwise = ['{', '}', '|', '\\\\', '^', '`'].concat(delims),\n\n // Allowed by RFCs, but cause of XSS attacks. Always escape these.\n autoEscape = ['\\''].concat(unwise),\n // Characters that are never ever allowed in a hostname.\n // Note that any invalid chars are also handled, but these\n // are the ones that are *expected* to be seen, so we fast-path\n // them.\n nonHostChars = ['%', '/', '?', ';', '#'].concat(autoEscape),\n hostEndingChars = ['/', '?', '#'],\n hostnameMaxLen = 255,\n hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,\n hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,\n // protocols that can allow \"unsafe\" and \"unwise\" chars.\n unsafeProtocol = {\n 'javascript': true,\n 'javascript:': true\n },\n // protocols that never have a hostname.\n hostlessProtocol = {\n 'javascript': true,\n 'javascript:': true\n },\n // protocols that always contain a // bit.\n slashedProtocol = {\n 'http': true,\n 'https': true,\n 'ftp': true,\n 'gopher': true,\n 'file': true,\n 'http:': true,\n 'https:': true,\n 'ftp:': true,\n 'gopher:': true,\n 'file:': true\n },\n querystring = __webpack_require__(7673);\n\nfunction urlParse(url, parseQueryString, slashesDenoteHost) {\n if (url && util.isObject(url) && url instanceof Url) return url;\n\n var u = new Url;\n u.parse(url, parseQueryString, slashesDenoteHost);\n return u;\n}\n\nUrl.prototype.parse = function(url, parseQueryString, slashesDenoteHost) {\n if (!util.isString(url)) {\n throw new TypeError(\"Parameter 'url' must be a string, not \" + typeof url);\n }\n\n // Copy chrome, IE, opera backslash-handling behavior.\n // Back slashes before the query string get converted to forward slashes\n // See: https://code.google.com/p/chromium/issues/detail?id=25916\n var queryIndex = url.indexOf('?'),\n splitter =\n (queryIndex !== -1 && queryIndex < url.indexOf('#')) ? '?' : '#',\n uSplit = url.split(splitter),\n slashRegex = /\\\\/g;\n uSplit[0] = uSplit[0].replace(slashRegex, '/');\n url = uSplit.join(splitter);\n\n var rest = url;\n\n // trim before proceeding.\n // This is to support parse stuff like \" http://foo.com \\n\"\n rest = rest.trim();\n\n if (!slashesDenoteHost && url.split('#').length === 1) {\n // Try fast path regexp\n var simplePath = simplePathPattern.exec(rest);\n if (simplePath) {\n this.path = rest;\n this.href = rest;\n this.pathname = simplePath[1];\n if (simplePath[2]) {\n this.search = simplePath[2];\n if (parseQueryString) {\n this.query = querystring.parse(this.search.substr(1));\n } else {\n this.query = this.search.substr(1);\n }\n } else if (parseQueryString) {\n this.search = '';\n this.query = {};\n }\n return this;\n }\n }\n\n var proto = protocolPattern.exec(rest);\n if (proto) {\n proto = proto[0];\n var lowerProto = proto.toLowerCase();\n this.protocol = lowerProto;\n rest = rest.substr(proto.length);\n }\n\n // figure out if it's got a host\n // user@server is *always* interpreted as a hostname, and url\n // resolution will treat //foo/bar as host=foo,path=bar because that's\n // how the browser resolves relative URLs.\n if (slashesDenoteHost || proto || rest.match(/^\\/\\/[^@\\/]+@[^@\\/]+/)) {\n var slashes = rest.substr(0, 2) === '//';\n if (slashes && !(proto && hostlessProtocol[proto])) {\n rest = rest.substr(2);\n this.slashes = true;\n }\n }\n\n if (!hostlessProtocol[proto] &&\n (slashes || (proto && !slashedProtocol[proto]))) {\n\n // there's a hostname.\n // the first instance of /, ?, ;, or # ends the host.\n //\n // If there is an @ in the hostname, then non-host chars *are* allowed\n // to the left of the last @ sign, unless some host-ending character\n // comes *before* the @-sign.\n // URLs are obnoxious.\n //\n // ex:\n // http://a@b@c/ => user:a@b host:c\n // http://a@b?@c => user:a host:c path:/?@c\n\n // v0.12 TODO(isaacs): This is not quite how Chrome does things.\n // Review our test case against browsers more comprehensively.\n\n // find the first instance of any hostEndingChars\n var hostEnd = -1;\n for (var i = 0; i < hostEndingChars.length; i++) {\n var hec = rest.indexOf(hostEndingChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\n hostEnd = hec;\n }\n\n // at this point, either we have an explicit point where the\n // auth portion cannot go past, or the last @ char is the decider.\n var auth, atSign;\n if (hostEnd === -1) {\n // atSign can be anywhere.\n atSign = rest.lastIndexOf('@');\n } else {\n // atSign must be in auth portion.\n // http://a@b/c@d => host:b auth:a path:/c@d\n atSign = rest.lastIndexOf('@', hostEnd);\n }\n\n // Now we have a portion which is definitely the auth.\n // Pull that off.\n if (atSign !== -1) {\n auth = rest.slice(0, atSign);\n rest = rest.slice(atSign + 1);\n this.auth = decodeURIComponent(auth);\n }\n\n // the host is the remaining to the left of the first non-host char\n hostEnd = -1;\n for (var i = 0; i < nonHostChars.length; i++) {\n var hec = rest.indexOf(nonHostChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd))\n hostEnd = hec;\n }\n // if we still have not hit it, then the entire thing is a host.\n if (hostEnd === -1)\n hostEnd = rest.length;\n\n this.host = rest.slice(0, hostEnd);\n rest = rest.slice(hostEnd);\n\n // pull out port.\n this.parseHost();\n\n // we've indicated that there is a hostname,\n // so even if it's empty, it has to be present.\n this.hostname = this.hostname || '';\n\n // if hostname begins with [ and ends with ]\n // assume that it's an IPv6 address.\n var ipv6Hostname = this.hostname[0] === '[' &&\n this.hostname[this.hostname.length - 1] === ']';\n\n // validate a little.\n if (!ipv6Hostname) {\n var hostparts = this.hostname.split(/\\./);\n for (var i = 0, l = hostparts.length; i < l; i++) {\n var part = hostparts[i];\n if (!part) continue;\n if (!part.match(hostnamePartPattern)) {\n var newpart = '';\n for (var j = 0, k = part.length; j < k; j++) {\n if (part.charCodeAt(j) > 127) {\n // we replace non-ASCII char with a temporary placeholder\n // we need this to make sure size of hostname is not\n // broken by replacing non-ASCII by nothing\n newpart += 'x';\n } else {\n newpart += part[j];\n }\n }\n // we test again with ASCII char only\n if (!newpart.match(hostnamePartPattern)) {\n var validParts = hostparts.slice(0, i);\n var notHost = hostparts.slice(i + 1);\n var bit = part.match(hostnamePartStart);\n if (bit) {\n validParts.push(bit[1]);\n notHost.unshift(bit[2]);\n }\n if (notHost.length) {\n rest = '/' + notHost.join('.') + rest;\n }\n this.hostname = validParts.join('.');\n break;\n }\n }\n }\n }\n\n if (this.hostname.length > hostnameMaxLen) {\n this.hostname = '';\n } else {\n // hostnames are always lower case.\n this.hostname = this.hostname.toLowerCase();\n }\n\n if (!ipv6Hostname) {\n // IDNA Support: Returns a punycoded representation of \"domain\".\n // It only converts parts of the domain name that\n // have non-ASCII characters, i.e. it doesn't matter if\n // you call it with a domain that already is ASCII-only.\n this.hostname = punycode.toASCII(this.hostname);\n }\n\n var p = this.port ? ':' + this.port : '';\n var h = this.hostname || '';\n this.host = h + p;\n this.href += this.host;\n\n // strip [ and ] from the hostname\n // the host field still retains them, though\n if (ipv6Hostname) {\n this.hostname = this.hostname.substr(1, this.hostname.length - 2);\n if (rest[0] !== '/') {\n rest = '/' + rest;\n }\n }\n }\n\n // now rest is set to the post-host stuff.\n // chop off any delim chars.\n if (!unsafeProtocol[lowerProto]) {\n\n // First, make 100% sure that any \"autoEscape\" chars get\n // escaped, even if encodeURIComponent doesn't think they\n // need to be.\n for (var i = 0, l = autoEscape.length; i < l; i++) {\n var ae = autoEscape[i];\n if (rest.indexOf(ae) === -1)\n continue;\n var esc = encodeURIComponent(ae);\n if (esc === ae) {\n esc = escape(ae);\n }\n rest = rest.split(ae).join(esc);\n }\n }\n\n\n // chop off from the tail first.\n var hash = rest.indexOf('#');\n if (hash !== -1) {\n // got a fragment string.\n this.hash = rest.substr(hash);\n rest = rest.slice(0, hash);\n }\n var qm = rest.indexOf('?');\n if (qm !== -1) {\n this.search = rest.substr(qm);\n this.query = rest.substr(qm + 1);\n if (parseQueryString) {\n this.query = querystring.parse(this.query);\n }\n rest = rest.slice(0, qm);\n } else if (parseQueryString) {\n // no query string, but parseQueryString still requested\n this.search = '';\n this.query = {};\n }\n if (rest) this.pathname = rest;\n if (slashedProtocol[lowerProto] &&\n this.hostname && !this.pathname) {\n this.pathname = '/';\n }\n\n //to support http.request\n if (this.pathname || this.search) {\n var p = this.pathname || '';\n var s = this.search || '';\n this.path = p + s;\n }\n\n // finally, reconstruct the href based on what has been validated.\n this.href = this.format();\n return this;\n};\n\n// format a parsed object into a url string\nfunction urlFormat(obj) {\n // ensure it's an object, and not a string url.\n // If it's an obj, this is a no-op.\n // this way, you can call url_format() on strings\n // to clean up potentially wonky urls.\n if (util.isString(obj)) obj = urlParse(obj);\n if (!(obj instanceof Url)) return Url.prototype.format.call(obj);\n return obj.format();\n}\n\nUrl.prototype.format = function() {\n var auth = this.auth || '';\n if (auth) {\n auth = encodeURIComponent(auth);\n auth = auth.replace(/%3A/i, ':');\n auth += '@';\n }\n\n var protocol = this.protocol || '',\n pathname = this.pathname || '',\n hash = this.hash || '',\n host = false,\n query = '';\n\n if (this.host) {\n host = auth + this.host;\n } else if (this.hostname) {\n host = auth + (this.hostname.indexOf(':') === -1 ?\n this.hostname :\n '[' + this.hostname + ']');\n if (this.port) {\n host += ':' + this.port;\n }\n }\n\n if (this.query &&\n util.isObject(this.query) &&\n Object.keys(this.query).length) {\n query = querystring.stringify(this.query);\n }\n\n var search = this.search || (query && ('?' + query)) || '';\n\n if (protocol && protocol.substr(-1) !== ':') protocol += ':';\n\n // only the slashedProtocols get the //. Not mailto:, xmpp:, etc.\n // unless they had them to begin with.\n if (this.slashes ||\n (!protocol || slashedProtocol[protocol]) && host !== false) {\n host = '//' + (host || '');\n if (pathname && pathname.charAt(0) !== '/') pathname = '/' + pathname;\n } else if (!host) {\n host = '';\n }\n\n if (hash && hash.charAt(0) !== '#') hash = '#' + hash;\n if (search && search.charAt(0) !== '?') search = '?' + search;\n\n pathname = pathname.replace(/[?#]/g, function(match) {\n return encodeURIComponent(match);\n });\n search = search.replace('#', '%23');\n\n return protocol + host + pathname + search + hash;\n};\n\nfunction urlResolve(source, relative) {\n return urlParse(source, false, true).resolve(relative);\n}\n\nUrl.prototype.resolve = function(relative) {\n return this.resolveObject(urlParse(relative, false, true)).format();\n};\n\nfunction urlResolveObject(source, relative) {\n if (!source) return relative;\n return urlParse(source, false, true).resolveObject(relative);\n}\n\nUrl.prototype.resolveObject = function(relative) {\n if (util.isString(relative)) {\n var rel = new Url();\n rel.parse(relative, false, true);\n relative = rel;\n }\n\n var result = new Url();\n var tkeys = Object.keys(this);\n for (var tk = 0; tk < tkeys.length; tk++) {\n var tkey = tkeys[tk];\n result[tkey] = this[tkey];\n }\n\n // hash is always overridden, no matter what.\n // even href=\"\" will remove it.\n result.hash = relative.hash;\n\n // if the relative url is empty, then there's nothing left to do here.\n if (relative.href === '') {\n result.href = result.format();\n return result;\n }\n\n // hrefs like //foo/bar always cut to the protocol.\n if (relative.slashes && !relative.protocol) {\n // take everything except the protocol from relative\n var rkeys = Object.keys(relative);\n for (var rk = 0; rk < rkeys.length; rk++) {\n var rkey = rkeys[rk];\n if (rkey !== 'protocol')\n result[rkey] = relative[rkey];\n }\n\n //urlParse appends trailing / to urls like http://www.example.com\n if (slashedProtocol[result.protocol] &&\n result.hostname && !result.pathname) {\n result.path = result.pathname = '/';\n }\n\n result.href = result.format();\n return result;\n }\n\n if (relative.protocol && relative.protocol !== result.protocol) {\n // if it's a known url protocol, then changing\n // the protocol does weird things\n // first, if it's not file:, then we MUST have a host,\n // and if there was a path\n // to begin with, then we MUST have a path.\n // if it is file:, then the host is dropped,\n // because that's known to be hostless.\n // anything else is assumed to be absolute.\n if (!slashedProtocol[relative.protocol]) {\n var keys = Object.keys(relative);\n for (var v = 0; v < keys.length; v++) {\n var k = keys[v];\n result[k] = relative[k];\n }\n result.href = result.format();\n return result;\n }\n\n result.protocol = relative.protocol;\n if (!relative.host && !hostlessProtocol[relative.protocol]) {\n var relPath = (relative.pathname || '').split('/');\n while (relPath.length && !(relative.host = relPath.shift()));\n if (!relative.host) relative.host = '';\n if (!relative.hostname) relative.hostname = '';\n if (relPath[0] !== '') relPath.unshift('');\n if (relPath.length < 2) relPath.unshift('');\n result.pathname = relPath.join('/');\n } else {\n result.pathname = relative.pathname;\n }\n result.search = relative.search;\n result.query = relative.query;\n result.host = relative.host || '';\n result.auth = relative.auth;\n result.hostname = relative.hostname || relative.host;\n result.port = relative.port;\n // to support http.request\n if (result.pathname || result.search) {\n var p = result.pathname || '';\n var s = result.search || '';\n result.path = p + s;\n }\n result.slashes = result.slashes || relative.slashes;\n result.href = result.format();\n return result;\n }\n\n var isSourceAbs = (result.pathname && result.pathname.charAt(0) === '/'),\n isRelAbs = (\n relative.host ||\n relative.pathname && relative.pathname.charAt(0) === '/'\n ),\n mustEndAbs = (isRelAbs || isSourceAbs ||\n (result.host && relative.pathname)),\n removeAllDots = mustEndAbs,\n srcPath = result.pathname && result.pathname.split('/') || [],\n relPath = relative.pathname && relative.pathname.split('/') || [],\n psychotic = result.protocol && !slashedProtocol[result.protocol];\n\n // if the url is a non-slashed url, then relative\n // links like ../.. should be able\n // to crawl up to the hostname, as well. This is strange.\n // result.protocol has already been set by now.\n // Later on, put the first path part into the host field.\n if (psychotic) {\n result.hostname = '';\n result.port = null;\n if (result.host) {\n if (srcPath[0] === '') srcPath[0] = result.host;\n else srcPath.unshift(result.host);\n }\n result.host = '';\n if (relative.protocol) {\n relative.hostname = null;\n relative.port = null;\n if (relative.host) {\n if (relPath[0] === '') relPath[0] = relative.host;\n else relPath.unshift(relative.host);\n }\n relative.host = null;\n }\n mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');\n }\n\n if (isRelAbs) {\n // it's absolute.\n result.host = (relative.host || relative.host === '') ?\n relative.host : result.host;\n result.hostname = (relative.hostname || relative.hostname === '') ?\n relative.hostname : result.hostname;\n result.search = relative.search;\n result.query = relative.query;\n srcPath = relPath;\n // fall through to the dot-handling below.\n } else if (relPath.length) {\n // it's relative\n // throw away the existing file, and take the new path instead.\n if (!srcPath) srcPath = [];\n srcPath.pop();\n srcPath = srcPath.concat(relPath);\n result.search = relative.search;\n result.query = relative.query;\n } else if (!util.isNullOrUndefined(relative.search)) {\n // just pull out the search.\n // like href='?foo'.\n // Put this after the other two cases because it simplifies the booleans\n if (psychotic) {\n result.hostname = result.host = srcPath.shift();\n //occationaly the auth can get stuck only in host\n //this especially happens in cases like\n //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n var authInHost = result.host && result.host.indexOf('@') > 0 ?\n result.host.split('@') : false;\n if (authInHost) {\n result.auth = authInHost.shift();\n result.host = result.hostname = authInHost.shift();\n }\n }\n result.search = relative.search;\n result.query = relative.query;\n //to support http.request\n if (!util.isNull(result.pathname) || !util.isNull(result.search)) {\n result.path = (result.pathname ? result.pathname : '') +\n (result.search ? result.search : '');\n }\n result.href = result.format();\n return result;\n }\n\n if (!srcPath.length) {\n // no path at all. easy.\n // we've already handled the other stuff above.\n result.pathname = null;\n //to support http.request\n if (result.search) {\n result.path = '/' + result.search;\n } else {\n result.path = null;\n }\n result.href = result.format();\n return result;\n }\n\n // if a url ENDs in . or .., then it must get a trailing slash.\n // however, if it ends in anything else non-slashy,\n // then it must NOT get a trailing slash.\n var last = srcPath.slice(-1)[0];\n var hasTrailingSlash = (\n (result.host || relative.host || srcPath.length > 1) &&\n (last === '.' || last === '..') || last === '');\n\n // strip single dots, resolve double dots to parent dir\n // if the path tries to go above the root, `up` ends up > 0\n var up = 0;\n for (var i = srcPath.length; i >= 0; i--) {\n last = srcPath[i];\n if (last === '.') {\n srcPath.splice(i, 1);\n } else if (last === '..') {\n srcPath.splice(i, 1);\n up++;\n } else if (up) {\n srcPath.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (!mustEndAbs && !removeAllDots) {\n for (; up--; up) {\n srcPath.unshift('..');\n }\n }\n\n if (mustEndAbs && srcPath[0] !== '' &&\n (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {\n srcPath.unshift('');\n }\n\n if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {\n srcPath.push('');\n }\n\n var isAbsolute = srcPath[0] === '' ||\n (srcPath[0] && srcPath[0].charAt(0) === '/');\n\n // put the host back\n if (psychotic) {\n result.hostname = result.host = isAbsolute ? '' :\n srcPath.length ? srcPath.shift() : '';\n //occationaly the auth can get stuck only in host\n //this especially happens in cases like\n //url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n var authInHost = result.host && result.host.indexOf('@') > 0 ?\n result.host.split('@') : false;\n if (authInHost) {\n result.auth = authInHost.shift();\n result.host = result.hostname = authInHost.shift();\n }\n }\n\n mustEndAbs = mustEndAbs || (result.host && srcPath.length);\n\n if (mustEndAbs && !isAbsolute) {\n srcPath.unshift('');\n }\n\n if (!srcPath.length) {\n result.pathname = null;\n result.path = null;\n } else {\n result.pathname = srcPath.join('/');\n }\n\n //to support request.http\n if (!util.isNull(result.pathname) || !util.isNull(result.search)) {\n result.path = (result.pathname ? result.pathname : '') +\n (result.search ? result.search : '');\n }\n result.auth = relative.auth || result.auth;\n result.slashes = result.slashes || relative.slashes;\n result.href = result.format();\n return result;\n};\n\nUrl.prototype.parseHost = function() {\n var host = this.host;\n var port = portPattern.exec(host);\n if (port) {\n port = port[0];\n if (port !== ':') {\n this.port = port.substr(1);\n }\n host = host.substr(0, host.length - port.length);\n }\n if (host) this.hostname = host;\n};\n\n\n/***/ }),\n\n/***/ 2502:\n/***/ ((module) => {\n\n\"use strict\";\n\n\nmodule.exports = {\n isString: function(arg) {\n return typeof(arg) === 'string';\n },\n isObject: function(arg) {\n return typeof(arg) === 'object' && arg !== null;\n },\n isNull: function(arg) {\n return arg === null;\n },\n isNullOrUndefined: function(arg) {\n return arg == null;\n }\n};\n\n\n/***/ }),\n\n/***/ 8416:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\nmodule.exports = __webpack_require__(41);\n\n/***/ }),\n\n/***/ 6347:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(9053);\nvar settle = __webpack_require__(8762);\nvar cookies = __webpack_require__(6164);\nvar buildURL = __webpack_require__(51);\nvar buildFullPath = __webpack_require__(6672);\nvar parseHeaders = __webpack_require__(9942);\nvar isURLSameOrigin = __webpack_require__(3789);\nvar createError = __webpack_require__(2604);\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n // Listen for ready state\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n };\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(timeoutErrorMessage, config, 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (config.responseType) {\n try {\n request.responseType = config.responseType;\n } catch (e) {\n // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.\n // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.\n if (config.responseType !== 'json') {\n throw e;\n }\n }\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (!requestData) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n\n\n/***/ }),\n\n/***/ 41:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(9053);\nvar bind = __webpack_require__(1330);\nvar Axios = __webpack_require__(2819);\nvar mergeConfig = __webpack_require__(7711);\nvar defaults = __webpack_require__(6450);\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = __webpack_require__(7623);\naxios.CancelToken = __webpack_require__(3803);\naxios.isCancel = __webpack_require__(9328);\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = __webpack_require__(348);\n\n// Expose isAxiosError\naxios.isAxiosError = __webpack_require__(839);\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n\n\n/***/ }),\n\n/***/ 7623:\n/***/ ((module) => {\n\n\"use strict\";\n\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n\n\n/***/ }),\n\n/***/ 3803:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\n\nvar Cancel = __webpack_require__(7623);\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n\n\n/***/ }),\n\n/***/ 9328:\n/***/ ((module) => {\n\n\"use strict\";\n\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n\n\n/***/ }),\n\n/***/ 2819:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(9053);\nvar buildURL = __webpack_require__(51);\nvar InterceptorManager = __webpack_require__(3973);\nvar dispatchRequest = __webpack_require__(1639);\nvar mergeConfig = __webpack_require__(7711);\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n // Hook up interceptors middleware\n var chain = [dispatchRequest, undefined];\n var promise = Promise.resolve(config);\n\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n chain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n chain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n\n\n/***/ }),\n\n/***/ 3973:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(9053);\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n\n\n/***/ }),\n\n/***/ 6672:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\n\nvar isAbsoluteURL = __webpack_require__(1275);\nvar combineURLs = __webpack_require__(2345);\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n\n\n/***/ }),\n\n/***/ 2604:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\n\nvar enhanceError = __webpack_require__(5898);\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n\n\n/***/ }),\n\n/***/ 1639:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(9053);\nvar transformData = __webpack_require__(2244);\nvar isCancel = __webpack_require__(9328);\nvar defaults = __webpack_require__(6450);\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData(\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData(\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData(\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n\n\n/***/ }),\n\n/***/ 5898:\n/***/ ((module) => {\n\n\"use strict\";\n\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n\n\n/***/ }),\n\n/***/ 7711:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(9053);\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];\n var defaultToConfig2Keys = [\n 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',\n 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'\n ];\n var directMergeKeys = ['validateStatus'];\n\n function getMergedValue(target, source) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge(target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n function mergeDeepProperties(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n }\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n utils.forEach(directMergeKeys, function merge(prop) {\n if (prop in config2) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (prop in config1) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys)\n .concat(directMergeKeys);\n\n var otherKeys = Object\n .keys(config1)\n .concat(Object.keys(config2))\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, mergeDeepProperties);\n\n return config;\n};\n\n\n/***/ }),\n\n/***/ 8762:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\n\nvar createError = __webpack_require__(2604);\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n\n\n/***/ }),\n\n/***/ 2244:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(9053);\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn(data, headers);\n });\n\n return data;\n};\n\n\n/***/ }),\n\n/***/ 6450:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(9053);\nvar normalizeHeaderName = __webpack_require__(2854);\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = __webpack_require__(6347);\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = __webpack_require__(6347);\n }\n return adapter;\n}\n\nvar defaults = {\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data)) {\n setContentTypeIfUnset(headers, 'application/json;charset=utf-8');\n return JSON.stringify(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n /*eslint no-param-reassign:0*/\n if (typeof data === 'string') {\n try {\n data = JSON.parse(data);\n } catch (e) { /* Ignore */ }\n }\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n\n\n/***/ }),\n\n/***/ 1330:\n/***/ ((module) => {\n\n\"use strict\";\n\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n\n\n/***/ }),\n\n/***/ 51:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(9053);\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n\n\n/***/ }),\n\n/***/ 2345:\n/***/ ((module) => {\n\n\"use strict\";\n\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n\n\n/***/ }),\n\n/***/ 6164:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(9053);\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n\n\n/***/ }),\n\n/***/ 1275:\n/***/ ((module) => {\n\n\"use strict\";\n\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n\n\n/***/ }),\n\n/***/ 839:\n/***/ ((module) => {\n\n\"use strict\";\n\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nmodule.exports = function isAxiosError(payload) {\n return (typeof payload === 'object') && (payload.isAxiosError === true);\n};\n\n\n/***/ }),\n\n/***/ 3789:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(9053);\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n\n\n/***/ }),\n\n/***/ 2854:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(9053);\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n\n\n/***/ }),\n\n/***/ 9942:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(9053);\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n\n\n/***/ }),\n\n/***/ 348:\n/***/ ((module) => {\n\n\"use strict\";\n\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n\n\n/***/ }),\n\n/***/ 9053:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\n\nvar bind = __webpack_require__(1330);\n\n/*global toString:true*/\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {Object} val The value to test\n * @return {boolean} True if value is a plain Object, otherwise false\n */\nfunction isPlainObject(val) {\n if (toString.call(val) !== '[object Object]') {\n return false;\n }\n\n var prototype = Object.getPrototypeOf(val);\n return prototype === null || prototype === Object.prototype;\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (isPlainObject(result[key]) && isPlainObject(val)) {\n result[key] = merge(result[key], val);\n } else if (isPlainObject(val)) {\n result[key] = merge({}, val);\n } else if (isArray(val)) {\n result[key] = val.slice();\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n * @return {string} content value without BOM\n */\nfunction stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM\n};\n\n\n/***/ }),\n\n/***/ 4491:\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_RESULT__;;(function (globalObject) {\r\n 'use strict';\r\n\r\n/*\r\n * bignumber.js v7.2.1\r\n * A JavaScript library for arbitrary-precision arithmetic.\r\n * https://github.com/MikeMcl/bignumber.js\r\n * Copyright (c) 2018 Michael Mclaughlin \r\n * MIT Licensed.\r\n *\r\n * BigNumber.prototype methods | BigNumber methods\r\n * |\r\n * absoluteValue abs | clone\r\n * comparedTo | config set\r\n * decimalPlaces dp | DECIMAL_PLACES\r\n * dividedBy div | ROUNDING_MODE\r\n * dividedToIntegerBy idiv | EXPONENTIAL_AT\r\n * exponentiatedBy pow | RANGE\r\n * integerValue | CRYPTO\r\n * isEqualTo eq | MODULO_MODE\r\n * isFinite | POW_PRECISION\r\n * isGreaterThan gt | FORMAT\r\n * isGreaterThanOrEqualTo gte | ALPHABET\r\n * isInteger | isBigNumber\r\n * isLessThan lt | maximum max\r\n * isLessThanOrEqualTo lte | minimum min\r\n * isNaN | random\r\n * isNegative |\r\n * isPositive |\r\n * isZero |\r\n * minus |\r\n * modulo mod |\r\n * multipliedBy times |\r\n * negated |\r\n * plus |\r\n * precision sd |\r\n * shiftedBy |\r\n * squareRoot sqrt |\r\n * toExponential |\r\n * toFixed |\r\n * toFormat |\r\n * toFraction |\r\n * toJSON |\r\n * toNumber |\r\n * toPrecision |\r\n * toString |\r\n * valueOf |\r\n *\r\n */\r\n\r\n\r\n var BigNumber,\r\n isNumeric = /^-?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?$/i,\r\n\r\n mathceil = Math.ceil,\r\n mathfloor = Math.floor,\r\n\r\n bignumberError = '[BigNumber Error] ',\r\n tooManyDigits = bignumberError + 'Number primitive has more than 15 significant digits: ',\r\n\r\n BASE = 1e14,\r\n LOG_BASE = 14,\r\n MAX_SAFE_INTEGER = 0x1fffffffffffff, // 2^53 - 1\r\n // MAX_INT32 = 0x7fffffff, // 2^31 - 1\r\n POWS_TEN = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13],\r\n SQRT_BASE = 1e7,\r\n\r\n // EDITABLE\r\n // The limit on the value of DECIMAL_PLACES, TO_EXP_NEG, TO_EXP_POS, MIN_EXP, MAX_EXP, and\r\n // the arguments to toExponential, toFixed, toFormat, and toPrecision.\r\n MAX = 1E9; // 0 to MAX_INT32\r\n\r\n\r\n /*\r\n * Create and return a BigNumber constructor.\r\n */\r\n function clone(configObject) {\r\n var div, convertBase, parseNumeric,\r\n P = BigNumber.prototype = { constructor: BigNumber, toString: null, valueOf: null },\r\n ONE = new BigNumber(1),\r\n\r\n\r\n //----------------------------- EDITABLE CONFIG DEFAULTS -------------------------------\r\n\r\n\r\n // The default values below must be integers within the inclusive ranges stated.\r\n // The values can also be changed at run-time using BigNumber.set.\r\n\r\n // The maximum number of decimal places for operations involving division.\r\n DECIMAL_PLACES = 20, // 0 to MAX\r\n\r\n // The rounding mode used when rounding to the above decimal places, and when using\r\n // toExponential, toFixed, toFormat and toPrecision, and round (default value).\r\n // UP 0 Away from zero.\r\n // DOWN 1 Towards zero.\r\n // CEIL 2 Towards +Infinity.\r\n // FLOOR 3 Towards -Infinity.\r\n // HALF_UP 4 Towards nearest neighbour. If equidistant, up.\r\n // HALF_DOWN 5 Towards nearest neighbour. If equidistant, down.\r\n // HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour.\r\n // HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity.\r\n // HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity.\r\n ROUNDING_MODE = 4, // 0 to 8\r\n\r\n // EXPONENTIAL_AT : [TO_EXP_NEG , TO_EXP_POS]\r\n\r\n // The exponent value at and beneath which toString returns exponential notation.\r\n // Number type: -7\r\n TO_EXP_NEG = -7, // 0 to -MAX\r\n\r\n // The exponent value at and above which toString returns exponential notation.\r\n // Number type: 21\r\n TO_EXP_POS = 21, // 0 to MAX\r\n\r\n // RANGE : [MIN_EXP, MAX_EXP]\r\n\r\n // The minimum exponent value, beneath which underflow to zero occurs.\r\n // Number type: -324 (5e-324)\r\n MIN_EXP = -1e7, // -1 to -MAX\r\n\r\n // The maximum exponent value, above which overflow to Infinity occurs.\r\n // Number type: 308 (1.7976931348623157e+308)\r\n // For MAX_EXP > 1e7, e.g. new BigNumber('1e100000000').plus(1) may be slow.\r\n MAX_EXP = 1e7, // 1 to MAX\r\n\r\n // Whether to use cryptographically-secure random number generation, if available.\r\n CRYPTO = false, // true or false\r\n\r\n // The modulo mode used when calculating the modulus: a mod n.\r\n // The quotient (q = a / n) is calculated according to the corresponding rounding mode.\r\n // The remainder (r) is calculated as: r = a - n * q.\r\n //\r\n // UP 0 The remainder is positive if the dividend is negative, else is negative.\r\n // DOWN 1 The remainder has the same sign as the dividend.\r\n // This modulo mode is commonly known as 'truncated division' and is\r\n // equivalent to (a % n) in JavaScript.\r\n // FLOOR 3 The remainder has the same sign as the divisor (Python %).\r\n // HALF_EVEN 6 This modulo mode implements the IEEE 754 remainder function.\r\n // EUCLID 9 Euclidian division. q = sign(n) * floor(a / abs(n)).\r\n // The remainder is always positive.\r\n //\r\n // The truncated division, floored division, Euclidian division and IEEE 754 remainder\r\n // modes are commonly used for the modulus operation.\r\n // Although the other rounding modes can also be used, they may not give useful results.\r\n MODULO_MODE = 1, // 0 to 9\r\n\r\n // The maximum number of significant digits of the result of the exponentiatedBy operation.\r\n // If POW_PRECISION is 0, there will be unlimited significant digits.\r\n POW_PRECISION = 0, // 0 to MAX\r\n\r\n // The format specification used by the BigNumber.prototype.toFormat method.\r\n FORMAT = {\r\n decimalSeparator: '.',\r\n groupSeparator: ',',\r\n groupSize: 3,\r\n secondaryGroupSize: 0,\r\n fractionGroupSeparator: '\\xA0', // non-breaking space\r\n fractionGroupSize: 0\r\n },\r\n\r\n // The alphabet used for base conversion.\r\n // It must be at least 2 characters long, with no '.' or repeated character.\r\n // '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_'\r\n ALPHABET = '0123456789abcdefghijklmnopqrstuvwxyz';\r\n\r\n\r\n //------------------------------------------------------------------------------------------\r\n\r\n\r\n // CONSTRUCTOR\r\n\r\n\r\n /*\r\n * The BigNumber constructor and exported function.\r\n * Create and return a new instance of a BigNumber object.\r\n *\r\n * n {number|string|BigNumber} A numeric value.\r\n * [b] {number} The base of n. Integer, 2 to ALPHABET.length inclusive.\r\n */\r\n function BigNumber(n, b) {\r\n var alphabet, c, caseChanged, e, i, isNum, len, str,\r\n x = this;\r\n\r\n // Enable constructor usage without new.\r\n if (!(x instanceof BigNumber)) {\r\n\r\n // Don't throw on constructor call without new (#81).\r\n // '[BigNumber Error] Constructor call without new: {n}'\r\n //throw Error(bignumberError + ' Constructor call without new: ' + n);\r\n return new BigNumber(n, b);\r\n }\r\n\r\n if (b == null) {\r\n\r\n // Duplicate.\r\n if (n instanceof BigNumber) {\r\n x.s = n.s;\r\n x.e = n.e;\r\n x.c = (n = n.c) ? n.slice() : n;\r\n return;\r\n }\r\n\r\n isNum = typeof n == 'number';\r\n\r\n if (isNum && n * 0 == 0) {\r\n\r\n // Use `1 / n` to handle minus zero also.\r\n x.s = 1 / n < 0 ? (n = -n, -1) : 1;\r\n\r\n // Faster path for integers.\r\n if (n === ~~n) {\r\n for (e = 0, i = n; i >= 10; i /= 10, e++);\r\n x.e = e;\r\n x.c = [n];\r\n return;\r\n }\r\n\r\n str = n + '';\r\n } else {\r\n if (!isNumeric.test(str = n + '')) return parseNumeric(x, str, isNum);\r\n x.s = str.charCodeAt(0) == 45 ? (str = str.slice(1), -1) : 1;\r\n }\r\n\r\n // Decimal point?\r\n if ((e = str.indexOf('.')) > -1) str = str.replace('.', '');\r\n\r\n // Exponential form?\r\n if ((i = str.search(/e/i)) > 0) {\r\n\r\n // Determine exponent.\r\n if (e < 0) e = i;\r\n e += +str.slice(i + 1);\r\n str = str.substring(0, i);\r\n } else if (e < 0) {\r\n\r\n // Integer.\r\n e = str.length;\r\n }\r\n\r\n } else {\r\n\r\n // '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}'\r\n intCheck(b, 2, ALPHABET.length, 'Base');\r\n str = n + '';\r\n\r\n // Allow exponential notation to be used with base 10 argument, while\r\n // also rounding to DECIMAL_PLACES as with other bases.\r\n if (b == 10) {\r\n x = new BigNumber(n instanceof BigNumber ? n : str);\r\n return round(x, DECIMAL_PLACES + x.e + 1, ROUNDING_MODE);\r\n }\r\n\r\n isNum = typeof n == 'number';\r\n\r\n if (isNum) {\r\n\r\n // Avoid potential interpretation of Infinity and NaN as base 44+ values.\r\n if (n * 0 != 0) return parseNumeric(x, str, isNum, b);\r\n\r\n x.s = 1 / n < 0 ? (str = str.slice(1), -1) : 1;\r\n\r\n // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}'\r\n if (BigNumber.DEBUG && str.replace(/^0\\.0*|\\./, '').length > 15) {\r\n throw Error\r\n (tooManyDigits + n);\r\n }\r\n\r\n // Prevent later check for length on converted number.\r\n isNum = false;\r\n } else {\r\n x.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1;\r\n }\r\n\r\n alphabet = ALPHABET.slice(0, b);\r\n e = i = 0;\r\n\r\n // Check that str is a valid base b number.\r\n // Don't use RegExp so alphabet can contain special characters.\r\n for (len = str.length; i < len; i++) {\r\n if (alphabet.indexOf(c = str.charAt(i)) < 0) {\r\n if (c == '.') {\r\n\r\n // If '.' is not the first character and it has not be found before.\r\n if (i > e) {\r\n e = len;\r\n continue;\r\n }\r\n } else if (!caseChanged) {\r\n\r\n // Allow e.g. hexadecimal 'FF' as well as 'ff'.\r\n if (str == str.toUpperCase() && (str = str.toLowerCase()) ||\r\n str == str.toLowerCase() && (str = str.toUpperCase())) {\r\n caseChanged = true;\r\n i = -1;\r\n e = 0;\r\n continue;\r\n }\r\n }\r\n\r\n return parseNumeric(x, n + '', isNum, b);\r\n }\r\n }\r\n\r\n str = convertBase(str, b, 10, x.s);\r\n\r\n // Decimal point?\r\n if ((e = str.indexOf('.')) > -1) str = str.replace('.', '');\r\n else e = str.length;\r\n }\r\n\r\n // Determine leading zeros.\r\n for (i = 0; str.charCodeAt(i) === 48; i++);\r\n\r\n // Determine trailing zeros.\r\n for (len = str.length; str.charCodeAt(--len) === 48;);\r\n\r\n str = str.slice(i, ++len);\r\n\r\n if (str) {\r\n len -= i;\r\n\r\n // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}'\r\n if (isNum && BigNumber.DEBUG &&\r\n len > 15 && (n > MAX_SAFE_INTEGER || n !== mathfloor(n))) {\r\n throw Error\r\n (tooManyDigits + (x.s * n));\r\n }\r\n\r\n e = e - i - 1;\r\n\r\n // Overflow?\r\n if (e > MAX_EXP) {\r\n\r\n // Infinity.\r\n x.c = x.e = null;\r\n\r\n // Underflow?\r\n } else if (e < MIN_EXP) {\r\n\r\n // Zero.\r\n x.c = [x.e = 0];\r\n } else {\r\n x.e = e;\r\n x.c = [];\r\n\r\n // Transform base\r\n\r\n // e is the base 10 exponent.\r\n // i is where to slice str to get the first element of the coefficient array.\r\n i = (e + 1) % LOG_BASE;\r\n if (e < 0) i += LOG_BASE;\r\n\r\n if (i < len) {\r\n if (i) x.c.push(+str.slice(0, i));\r\n\r\n for (len -= LOG_BASE; i < len;) {\r\n x.c.push(+str.slice(i, i += LOG_BASE));\r\n }\r\n\r\n str = str.slice(i);\r\n i = LOG_BASE - str.length;\r\n } else {\r\n i -= len;\r\n }\r\n\r\n for (; i--; str += '0');\r\n x.c.push(+str);\r\n }\r\n } else {\r\n\r\n // Zero.\r\n x.c = [x.e = 0];\r\n }\r\n }\r\n\r\n\r\n // CONSTRUCTOR PROPERTIES\r\n\r\n\r\n BigNumber.clone = clone;\r\n\r\n BigNumber.ROUND_UP = 0;\r\n BigNumber.ROUND_DOWN = 1;\r\n BigNumber.ROUND_CEIL = 2;\r\n BigNumber.ROUND_FLOOR = 3;\r\n BigNumber.ROUND_HALF_UP = 4;\r\n BigNumber.ROUND_HALF_DOWN = 5;\r\n BigNumber.ROUND_HALF_EVEN = 6;\r\n BigNumber.ROUND_HALF_CEIL = 7;\r\n BigNumber.ROUND_HALF_FLOOR = 8;\r\n BigNumber.EUCLID = 9;\r\n\r\n\r\n /*\r\n * Configure infrequently-changing library-wide settings.\r\n *\r\n * Accept an object with the following optional properties (if the value of a property is\r\n * a number, it must be an integer within the inclusive range stated):\r\n *\r\n * DECIMAL_PLACES {number} 0 to MAX\r\n * ROUNDING_MODE {number} 0 to 8\r\n * EXPONENTIAL_AT {number|number[]} -MAX to MAX or [-MAX to 0, 0 to MAX]\r\n * RANGE {number|number[]} -MAX to MAX (not zero) or [-MAX to -1, 1 to MAX]\r\n * CRYPTO {boolean} true or false\r\n * MODULO_MODE {number} 0 to 9\r\n * POW_PRECISION {number} 0 to MAX\r\n * ALPHABET {string} A string of two or more unique characters which does\r\n * not contain '.'.\r\n * FORMAT {object} An object with some of the following properties:\r\n * decimalSeparator {string}\r\n * groupSeparator {string}\r\n * groupSize {number}\r\n * secondaryGroupSize {number}\r\n * fractionGroupSeparator {string}\r\n * fractionGroupSize {number}\r\n *\r\n * (The values assigned to the above FORMAT object properties are not checked for validity.)\r\n *\r\n * E.g.\r\n * BigNumber.config({ DECIMAL_PLACES : 20, ROUNDING_MODE : 4 })\r\n *\r\n * Ignore properties/parameters set to null or undefined, except for ALPHABET.\r\n *\r\n * Return an object with the properties current values.\r\n */\r\n BigNumber.config = BigNumber.set = function (obj) {\r\n var p, v;\r\n\r\n if (obj != null) {\r\n\r\n if (typeof obj == 'object') {\r\n\r\n // DECIMAL_PLACES {number} Integer, 0 to MAX inclusive.\r\n // '[BigNumber Error] DECIMAL_PLACES {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'DECIMAL_PLACES')) {\r\n v = obj[p];\r\n intCheck(v, 0, MAX, p);\r\n DECIMAL_PLACES = v;\r\n }\r\n\r\n // ROUNDING_MODE {number} Integer, 0 to 8 inclusive.\r\n // '[BigNumber Error] ROUNDING_MODE {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'ROUNDING_MODE')) {\r\n v = obj[p];\r\n intCheck(v, 0, 8, p);\r\n ROUNDING_MODE = v;\r\n }\r\n\r\n // EXPONENTIAL_AT {number|number[]}\r\n // Integer, -MAX to MAX inclusive or\r\n // [integer -MAX to 0 inclusive, 0 to MAX inclusive].\r\n // '[BigNumber Error] EXPONENTIAL_AT {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'EXPONENTIAL_AT')) {\r\n v = obj[p];\r\n if (isArray(v)) {\r\n intCheck(v[0], -MAX, 0, p);\r\n intCheck(v[1], 0, MAX, p);\r\n TO_EXP_NEG = v[0];\r\n TO_EXP_POS = v[1];\r\n } else {\r\n intCheck(v, -MAX, MAX, p);\r\n TO_EXP_NEG = -(TO_EXP_POS = v < 0 ? -v : v);\r\n }\r\n }\r\n\r\n // RANGE {number|number[]} Non-zero integer, -MAX to MAX inclusive or\r\n // [integer -MAX to -1 inclusive, integer 1 to MAX inclusive].\r\n // '[BigNumber Error] RANGE {not a primitive number|not an integer|out of range|cannot be zero}: {v}'\r\n if (obj.hasOwnProperty(p = 'RANGE')) {\r\n v = obj[p];\r\n if (isArray(v)) {\r\n intCheck(v[0], -MAX, -1, p);\r\n intCheck(v[1], 1, MAX, p);\r\n MIN_EXP = v[0];\r\n MAX_EXP = v[1];\r\n } else {\r\n intCheck(v, -MAX, MAX, p);\r\n if (v) {\r\n MIN_EXP = -(MAX_EXP = v < 0 ? -v : v);\r\n } else {\r\n throw Error\r\n (bignumberError + p + ' cannot be zero: ' + v);\r\n }\r\n }\r\n }\r\n\r\n // CRYPTO {boolean} true or false.\r\n // '[BigNumber Error] CRYPTO not true or false: {v}'\r\n // '[BigNumber Error] crypto unavailable'\r\n if (obj.hasOwnProperty(p = 'CRYPTO')) {\r\n v = obj[p];\r\n if (v === !!v) {\r\n if (v) {\r\n if (typeof crypto != 'undefined' && crypto &&\r\n (crypto.getRandomValues || crypto.randomBytes)) {\r\n CRYPTO = v;\r\n } else {\r\n CRYPTO = !v;\r\n throw Error\r\n (bignumberError + 'crypto unavailable');\r\n }\r\n } else {\r\n CRYPTO = v;\r\n }\r\n } else {\r\n throw Error\r\n (bignumberError + p + ' not true or false: ' + v);\r\n }\r\n }\r\n\r\n // MODULO_MODE {number} Integer, 0 to 9 inclusive.\r\n // '[BigNumber Error] MODULO_MODE {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'MODULO_MODE')) {\r\n v = obj[p];\r\n intCheck(v, 0, 9, p);\r\n MODULO_MODE = v;\r\n }\r\n\r\n // POW_PRECISION {number} Integer, 0 to MAX inclusive.\r\n // '[BigNumber Error] POW_PRECISION {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'POW_PRECISION')) {\r\n v = obj[p];\r\n intCheck(v, 0, MAX, p);\r\n POW_PRECISION = v;\r\n }\r\n\r\n // FORMAT {object}\r\n // '[BigNumber Error] FORMAT not an object: {v}'\r\n if (obj.hasOwnProperty(p = 'FORMAT')) {\r\n v = obj[p];\r\n if (typeof v == 'object') FORMAT = v;\r\n else throw Error\r\n (bignumberError + p + ' not an object: ' + v);\r\n }\r\n\r\n // ALPHABET {string}\r\n // '[BigNumber Error] ALPHABET invalid: {v}'\r\n if (obj.hasOwnProperty(p = 'ALPHABET')) {\r\n v = obj[p];\r\n\r\n // Disallow if only one character, or contains '.' or a repeated character.\r\n if (typeof v == 'string' && !/^.$|\\.|(.).*\\1/.test(v)) {\r\n ALPHABET = v;\r\n } else {\r\n throw Error\r\n (bignumberError + p + ' invalid: ' + v);\r\n }\r\n }\r\n\r\n } else {\r\n\r\n // '[BigNumber Error] Object expected: {v}'\r\n throw Error\r\n (bignumberError + 'Object expected: ' + obj);\r\n }\r\n }\r\n\r\n return {\r\n DECIMAL_PLACES: DECIMAL_PLACES,\r\n ROUNDING_MODE: ROUNDING_MODE,\r\n EXPONENTIAL_AT: [TO_EXP_NEG, TO_EXP_POS],\r\n RANGE: [MIN_EXP, MAX_EXP],\r\n CRYPTO: CRYPTO,\r\n MODULO_MODE: MODULO_MODE,\r\n POW_PRECISION: POW_PRECISION,\r\n FORMAT: FORMAT,\r\n ALPHABET: ALPHABET\r\n };\r\n };\r\n\r\n\r\n /*\r\n * Return true if v is a BigNumber instance, otherwise return false.\r\n *\r\n * v {any}\r\n */\r\n BigNumber.isBigNumber = function (v) {\r\n return v instanceof BigNumber || v && v._isBigNumber === true || false;\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the maximum of the arguments.\r\n *\r\n * arguments {number|string|BigNumber}\r\n */\r\n BigNumber.maximum = BigNumber.max = function () {\r\n return maxOrMin(arguments, P.lt);\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the minimum of the arguments.\r\n *\r\n * arguments {number|string|BigNumber}\r\n */\r\n BigNumber.minimum = BigNumber.min = function () {\r\n return maxOrMin(arguments, P.gt);\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber with a random value equal to or greater than 0 and less than 1,\r\n * and with dp, or DECIMAL_PLACES if dp is omitted, decimal places (or less if trailing\r\n * zeros are produced).\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp}'\r\n * '[BigNumber Error] crypto unavailable'\r\n */\r\n BigNumber.random = (function () {\r\n var pow2_53 = 0x20000000000000;\r\n\r\n // Return a 53 bit integer n, where 0 <= n < 9007199254740992.\r\n // Check if Math.random() produces more than 32 bits of randomness.\r\n // If it does, assume at least 53 bits are produced, otherwise assume at least 30 bits.\r\n // 0x40000000 is 2^30, 0x800000 is 2^23, 0x1fffff is 2^21 - 1.\r\n var random53bitInt = (Math.random() * pow2_53) & 0x1fffff\r\n ? function () { return mathfloor(Math.random() * pow2_53); }\r\n : function () { return ((Math.random() * 0x40000000 | 0) * 0x800000) +\r\n (Math.random() * 0x800000 | 0); };\r\n\r\n return function (dp) {\r\n var a, b, e, k, v,\r\n i = 0,\r\n c = [],\r\n rand = new BigNumber(ONE);\r\n\r\n if (dp == null) dp = DECIMAL_PLACES;\r\n else intCheck(dp, 0, MAX);\r\n\r\n k = mathceil(dp / LOG_BASE);\r\n\r\n if (CRYPTO) {\r\n\r\n // Browsers supporting crypto.getRandomValues.\r\n if (crypto.getRandomValues) {\r\n\r\n a = crypto.getRandomValues(new Uint32Array(k *= 2));\r\n\r\n for (; i < k;) {\r\n\r\n // 53 bits:\r\n // ((Math.pow(2, 32) - 1) * Math.pow(2, 21)).toString(2)\r\n // 11111 11111111 11111111 11111111 11100000 00000000 00000000\r\n // ((Math.pow(2, 32) - 1) >>> 11).toString(2)\r\n // 11111 11111111 11111111\r\n // 0x20000 is 2^21.\r\n v = a[i] * 0x20000 + (a[i + 1] >>> 11);\r\n\r\n // Rejection sampling:\r\n // 0 <= v < 9007199254740992\r\n // Probability that v >= 9e15, is\r\n // 7199254740992 / 9007199254740992 ~= 0.0008, i.e. 1 in 1251\r\n if (v >= 9e15) {\r\n b = crypto.getRandomValues(new Uint32Array(2));\r\n a[i] = b[0];\r\n a[i + 1] = b[1];\r\n } else {\r\n\r\n // 0 <= v <= 8999999999999999\r\n // 0 <= (v % 1e14) <= 99999999999999\r\n c.push(v % 1e14);\r\n i += 2;\r\n }\r\n }\r\n i = k / 2;\r\n\r\n // Node.js supporting crypto.randomBytes.\r\n } else if (crypto.randomBytes) {\r\n\r\n // buffer\r\n a = crypto.randomBytes(k *= 7);\r\n\r\n for (; i < k;) {\r\n\r\n // 0x1000000000000 is 2^48, 0x10000000000 is 2^40\r\n // 0x100000000 is 2^32, 0x1000000 is 2^24\r\n // 11111 11111111 11111111 11111111 11111111 11111111 11111111\r\n // 0 <= v < 9007199254740992\r\n v = ((a[i] & 31) * 0x1000000000000) + (a[i + 1] * 0x10000000000) +\r\n (a[i + 2] * 0x100000000) + (a[i + 3] * 0x1000000) +\r\n (a[i + 4] << 16) + (a[i + 5] << 8) + a[i + 6];\r\n\r\n if (v >= 9e15) {\r\n crypto.randomBytes(7).copy(a, i);\r\n } else {\r\n\r\n // 0 <= (v % 1e14) <= 99999999999999\r\n c.push(v % 1e14);\r\n i += 7;\r\n }\r\n }\r\n i = k / 7;\r\n } else {\r\n CRYPTO = false;\r\n throw Error\r\n (bignumberError + 'crypto unavailable');\r\n }\r\n }\r\n\r\n // Use Math.random.\r\n if (!CRYPTO) {\r\n\r\n for (; i < k;) {\r\n v = random53bitInt();\r\n if (v < 9e15) c[i++] = v % 1e14;\r\n }\r\n }\r\n\r\n k = c[--i];\r\n dp %= LOG_BASE;\r\n\r\n // Convert trailing digits to zeros according to dp.\r\n if (k && dp) {\r\n v = POWS_TEN[LOG_BASE - dp];\r\n c[i] = mathfloor(k / v) * v;\r\n }\r\n\r\n // Remove trailing elements which are zero.\r\n for (; c[i] === 0; c.pop(), i--);\r\n\r\n // Zero?\r\n if (i < 0) {\r\n c = [e = 0];\r\n } else {\r\n\r\n // Remove leading elements which are zero and adjust exponent accordingly.\r\n for (e = -1 ; c[0] === 0; c.splice(0, 1), e -= LOG_BASE);\r\n\r\n // Count the digits of the first element of c to determine leading zeros, and...\r\n for (i = 1, v = c[0]; v >= 10; v /= 10, i++);\r\n\r\n // adjust the exponent accordingly.\r\n if (i < LOG_BASE) e -= LOG_BASE - i;\r\n }\r\n\r\n rand.e = e;\r\n rand.c = c;\r\n return rand;\r\n };\r\n })();\r\n\r\n\r\n // PRIVATE FUNCTIONS\r\n\r\n\r\n // Called by BigNumber and BigNumber.prototype.toString.\r\n convertBase = (function () {\r\n var decimal = '0123456789';\r\n\r\n /*\r\n * Convert string of baseIn to an array of numbers of baseOut.\r\n * Eg. toBaseOut('255', 10, 16) returns [15, 15].\r\n * Eg. toBaseOut('ff', 16, 10) returns [2, 5, 5].\r\n */\r\n function toBaseOut(str, baseIn, baseOut, alphabet) {\r\n var j,\r\n arr = [0],\r\n arrL,\r\n i = 0,\r\n len = str.length;\r\n\r\n for (; i < len;) {\r\n for (arrL = arr.length; arrL--; arr[arrL] *= baseIn);\r\n\r\n arr[0] += alphabet.indexOf(str.charAt(i++));\r\n\r\n for (j = 0; j < arr.length; j++) {\r\n\r\n if (arr[j] > baseOut - 1) {\r\n if (arr[j + 1] == null) arr[j + 1] = 0;\r\n arr[j + 1] += arr[j] / baseOut | 0;\r\n arr[j] %= baseOut;\r\n }\r\n }\r\n }\r\n\r\n return arr.reverse();\r\n }\r\n\r\n // Convert a numeric string of baseIn to a numeric string of baseOut.\r\n // If the caller is toString, we are converting from base 10 to baseOut.\r\n // If the caller is BigNumber, we are converting from baseIn to base 10.\r\n return function (str, baseIn, baseOut, sign, callerIsToString) {\r\n var alphabet, d, e, k, r, x, xc, y,\r\n i = str.indexOf('.'),\r\n dp = DECIMAL_PLACES,\r\n rm = ROUNDING_MODE;\r\n\r\n // Non-integer.\r\n if (i >= 0) {\r\n k = POW_PRECISION;\r\n\r\n // Unlimited precision.\r\n POW_PRECISION = 0;\r\n str = str.replace('.', '');\r\n y = new BigNumber(baseIn);\r\n x = y.pow(str.length - i);\r\n POW_PRECISION = k;\r\n\r\n // Convert str as if an integer, then restore the fraction part by dividing the\r\n // result by its base raised to a power.\r\n\r\n y.c = toBaseOut(toFixedPoint(coeffToString(x.c), x.e, '0'),\r\n 10, baseOut, decimal);\r\n y.e = y.c.length;\r\n }\r\n\r\n // Convert the number as integer.\r\n\r\n xc = toBaseOut(str, baseIn, baseOut, callerIsToString\r\n ? (alphabet = ALPHABET, decimal)\r\n : (alphabet = decimal, ALPHABET));\r\n\r\n // xc now represents str as an integer and converted to baseOut. e is the exponent.\r\n e = k = xc.length;\r\n\r\n // Remove trailing zeros.\r\n for (; xc[--k] == 0; xc.pop());\r\n\r\n // Zero?\r\n if (!xc[0]) return alphabet.charAt(0);\r\n\r\n // Does str represent an integer? If so, no need for the division.\r\n if (i < 0) {\r\n --e;\r\n } else {\r\n x.c = xc;\r\n x.e = e;\r\n\r\n // The sign is needed for correct rounding.\r\n x.s = sign;\r\n x = div(x, y, dp, rm, baseOut);\r\n xc = x.c;\r\n r = x.r;\r\n e = x.e;\r\n }\r\n\r\n // xc now represents str converted to baseOut.\r\n\r\n // THe index of the rounding digit.\r\n d = e + dp + 1;\r\n\r\n // The rounding digit: the digit to the right of the digit that may be rounded up.\r\n i = xc[d];\r\n\r\n // Look at the rounding digits and mode to determine whether to round up.\r\n\r\n k = baseOut / 2;\r\n r = r || d < 0 || xc[d + 1] != null;\r\n\r\n r = rm < 4 ? (i != null || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2))\r\n : i > k || i == k &&(rm == 4 || r || rm == 6 && xc[d - 1] & 1 ||\r\n rm == (x.s < 0 ? 8 : 7));\r\n\r\n // If the index of the rounding digit is not greater than zero, or xc represents\r\n // zero, then the result of the base conversion is zero or, if rounding up, a value\r\n // such as 0.00001.\r\n if (d < 1 || !xc[0]) {\r\n\r\n // 1^-dp or 0\r\n str = r ? toFixedPoint(alphabet.charAt(1), -dp, alphabet.charAt(0))\r\n : alphabet.charAt(0);\r\n } else {\r\n\r\n // Truncate xc to the required number of decimal places.\r\n xc.length = d;\r\n\r\n // Round up?\r\n if (r) {\r\n\r\n // Rounding up may mean the previous digit has to be rounded up and so on.\r\n for (--baseOut; ++xc[--d] > baseOut;) {\r\n xc[d] = 0;\r\n\r\n if (!d) {\r\n ++e;\r\n xc = [1].concat(xc);\r\n }\r\n }\r\n }\r\n\r\n // Determine trailing zeros.\r\n for (k = xc.length; !xc[--k];);\r\n\r\n // E.g. [4, 11, 15] becomes 4bf.\r\n for (i = 0, str = ''; i <= k; str += alphabet.charAt(xc[i++]));\r\n\r\n // Add leading zeros, decimal point and trailing zeros as required.\r\n str = toFixedPoint(str, e, alphabet.charAt(0));\r\n }\r\n\r\n // The caller will add the sign.\r\n return str;\r\n };\r\n })();\r\n\r\n\r\n // Perform division in the specified base. Called by div and convertBase.\r\n div = (function () {\r\n\r\n // Assume non-zero x and k.\r\n function multiply(x, k, base) {\r\n var m, temp, xlo, xhi,\r\n carry = 0,\r\n i = x.length,\r\n klo = k % SQRT_BASE,\r\n khi = k / SQRT_BASE | 0;\r\n\r\n for (x = x.slice(); i--;) {\r\n xlo = x[i] % SQRT_BASE;\r\n xhi = x[i] / SQRT_BASE | 0;\r\n m = khi * xlo + xhi * klo;\r\n temp = klo * xlo + ((m % SQRT_BASE) * SQRT_BASE) + carry;\r\n carry = (temp / base | 0) + (m / SQRT_BASE | 0) + khi * xhi;\r\n x[i] = temp % base;\r\n }\r\n\r\n if (carry) x = [carry].concat(x);\r\n\r\n return x;\r\n }\r\n\r\n function compare(a, b, aL, bL) {\r\n var i, cmp;\r\n\r\n if (aL != bL) {\r\n cmp = aL > bL ? 1 : -1;\r\n } else {\r\n\r\n for (i = cmp = 0; i < aL; i++) {\r\n\r\n if (a[i] != b[i]) {\r\n cmp = a[i] > b[i] ? 1 : -1;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return cmp;\r\n }\r\n\r\n function subtract(a, b, aL, base) {\r\n var i = 0;\r\n\r\n // Subtract b from a.\r\n for (; aL--;) {\r\n a[aL] -= i;\r\n i = a[aL] < b[aL] ? 1 : 0;\r\n a[aL] = i * base + a[aL] - b[aL];\r\n }\r\n\r\n // Remove leading zeros.\r\n for (; !a[0] && a.length > 1; a.splice(0, 1));\r\n }\r\n\r\n // x: dividend, y: divisor.\r\n return function (x, y, dp, rm, base) {\r\n var cmp, e, i, more, n, prod, prodL, q, qc, rem, remL, rem0, xi, xL, yc0,\r\n yL, yz,\r\n s = x.s == y.s ? 1 : -1,\r\n xc = x.c,\r\n yc = y.c;\r\n\r\n // Either NaN, Infinity or 0?\r\n if (!xc || !xc[0] || !yc || !yc[0]) {\r\n\r\n return new BigNumber(\r\n\r\n // Return NaN if either NaN, or both Infinity or 0.\r\n !x.s || !y.s || (xc ? yc && xc[0] == yc[0] : !yc) ? NaN :\r\n\r\n // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.\r\n xc && xc[0] == 0 || !yc ? s * 0 : s / 0\r\n );\r\n }\r\n\r\n q = new BigNumber(s);\r\n qc = q.c = [];\r\n e = x.e - y.e;\r\n s = dp + e + 1;\r\n\r\n if (!base) {\r\n base = BASE;\r\n e = bitFloor(x.e / LOG_BASE) - bitFloor(y.e / LOG_BASE);\r\n s = s / LOG_BASE | 0;\r\n }\r\n\r\n // Result exponent may be one less then the current value of e.\r\n // The coefficients of the BigNumbers from convertBase may have trailing zeros.\r\n for (i = 0; yc[i] == (xc[i] || 0); i++);\r\n\r\n if (yc[i] > (xc[i] || 0)) e--;\r\n\r\n if (s < 0) {\r\n qc.push(1);\r\n more = true;\r\n } else {\r\n xL = xc.length;\r\n yL = yc.length;\r\n i = 0;\r\n s += 2;\r\n\r\n // Normalise xc and yc so highest order digit of yc is >= base / 2.\r\n\r\n n = mathfloor(base / (yc[0] + 1));\r\n\r\n // Not necessary, but to handle odd bases where yc[0] == (base / 2) - 1.\r\n // if (n > 1 || n++ == 1 && yc[0] < base / 2) {\r\n if (n > 1) {\r\n yc = multiply(yc, n, base);\r\n xc = multiply(xc, n, base);\r\n yL = yc.length;\r\n xL = xc.length;\r\n }\r\n\r\n xi = yL;\r\n rem = xc.slice(0, yL);\r\n remL = rem.length;\r\n\r\n // Add zeros to make remainder as long as divisor.\r\n for (; remL < yL; rem[remL++] = 0);\r\n yz = yc.slice();\r\n yz = [0].concat(yz);\r\n yc0 = yc[0];\r\n if (yc[1] >= base / 2) yc0++;\r\n // Not necessary, but to prevent trial digit n > base, when using base 3.\r\n // else if (base == 3 && yc0 == 1) yc0 = 1 + 1e-15;\r\n\r\n do {\r\n n = 0;\r\n\r\n // Compare divisor and remainder.\r\n cmp = compare(yc, rem, yL, remL);\r\n\r\n // If divisor < remainder.\r\n if (cmp < 0) {\r\n\r\n // Calculate trial digit, n.\r\n\r\n rem0 = rem[0];\r\n if (yL != remL) rem0 = rem0 * base + (rem[1] || 0);\r\n\r\n // n is how many times the divisor goes into the current remainder.\r\n n = mathfloor(rem0 / yc0);\r\n\r\n // Algorithm:\r\n // product = divisor multiplied by trial digit (n).\r\n // Compare product and remainder.\r\n // If product is greater than remainder:\r\n // Subtract divisor from product, decrement trial digit.\r\n // Subtract product from remainder.\r\n // If product was less than remainder at the last compare:\r\n // Compare new remainder and divisor.\r\n // If remainder is greater than divisor:\r\n // Subtract divisor from remainder, increment trial digit.\r\n\r\n if (n > 1) {\r\n\r\n // n may be > base only when base is 3.\r\n if (n >= base) n = base - 1;\r\n\r\n // product = divisor * trial digit.\r\n prod = multiply(yc, n, base);\r\n prodL = prod.length;\r\n remL = rem.length;\r\n\r\n // Compare product and remainder.\r\n // If product > remainder then trial digit n too high.\r\n // n is 1 too high about 5% of the time, and is not known to have\r\n // ever been more than 1 too high.\r\n while (compare(prod, rem, prodL, remL) == 1) {\r\n n--;\r\n\r\n // Subtract divisor from product.\r\n subtract(prod, yL < prodL ? yz : yc, prodL, base);\r\n prodL = prod.length;\r\n cmp = 1;\r\n }\r\n } else {\r\n\r\n // n is 0 or 1, cmp is -1.\r\n // If n is 0, there is no need to compare yc and rem again below,\r\n // so change cmp to 1 to avoid it.\r\n // If n is 1, leave cmp as -1, so yc and rem are compared again.\r\n if (n == 0) {\r\n\r\n // divisor < remainder, so n must be at least 1.\r\n cmp = n = 1;\r\n }\r\n\r\n // product = divisor\r\n prod = yc.slice();\r\n prodL = prod.length;\r\n }\r\n\r\n if (prodL < remL) prod = [0].concat(prod);\r\n\r\n // Subtract product from remainder.\r\n subtract(rem, prod, remL, base);\r\n remL = rem.length;\r\n\r\n // If product was < remainder.\r\n if (cmp == -1) {\r\n\r\n // Compare divisor and new remainder.\r\n // If divisor < new remainder, subtract divisor from remainder.\r\n // Trial digit n too low.\r\n // n is 1 too low about 5% of the time, and very rarely 2 too low.\r\n while (compare(yc, rem, yL, remL) < 1) {\r\n n++;\r\n\r\n // Subtract divisor from remainder.\r\n subtract(rem, yL < remL ? yz : yc, remL, base);\r\n remL = rem.length;\r\n }\r\n }\r\n } else if (cmp === 0) {\r\n n++;\r\n rem = [0];\r\n } // else cmp === 1 and n will be 0\r\n\r\n // Add the next digit, n, to the result array.\r\n qc[i++] = n;\r\n\r\n // Update the remainder.\r\n if (rem[0]) {\r\n rem[remL++] = xc[xi] || 0;\r\n } else {\r\n rem = [xc[xi]];\r\n remL = 1;\r\n }\r\n } while ((xi++ < xL || rem[0] != null) && s--);\r\n\r\n more = rem[0] != null;\r\n\r\n // Leading zero?\r\n if (!qc[0]) qc.splice(0, 1);\r\n }\r\n\r\n if (base == BASE) {\r\n\r\n // To calculate q.e, first get the number of digits of qc[0].\r\n for (i = 1, s = qc[0]; s >= 10; s /= 10, i++);\r\n\r\n round(q, dp + (q.e = i + e * LOG_BASE - 1) + 1, rm, more);\r\n\r\n // Caller is convertBase.\r\n } else {\r\n q.e = e;\r\n q.r = +more;\r\n }\r\n\r\n return q;\r\n };\r\n })();\r\n\r\n\r\n /*\r\n * Return a string representing the value of BigNumber n in fixed-point or exponential\r\n * notation rounded to the specified decimal places or significant digits.\r\n *\r\n * n: a BigNumber.\r\n * i: the index of the last digit required (i.e. the digit that may be rounded up).\r\n * rm: the rounding mode.\r\n * id: 1 (toExponential) or 2 (toPrecision).\r\n */\r\n function format(n, i, rm, id) {\r\n var c0, e, ne, len, str;\r\n\r\n if (rm == null) rm = ROUNDING_MODE;\r\n else intCheck(rm, 0, 8);\r\n\r\n if (!n.c) return n.toString();\r\n\r\n c0 = n.c[0];\r\n ne = n.e;\r\n\r\n if (i == null) {\r\n str = coeffToString(n.c);\r\n str = id == 1 || id == 2 && ne <= TO_EXP_NEG\r\n ? toExponential(str, ne)\r\n : toFixedPoint(str, ne, '0');\r\n } else {\r\n n = round(new BigNumber(n), i, rm);\r\n\r\n // n.e may have changed if the value was rounded up.\r\n e = n.e;\r\n\r\n str = coeffToString(n.c);\r\n len = str.length;\r\n\r\n // toPrecision returns exponential notation if the number of significant digits\r\n // specified is less than the number of digits necessary to represent the integer\r\n // part of the value in fixed-point notation.\r\n\r\n // Exponential notation.\r\n if (id == 1 || id == 2 && (i <= e || e <= TO_EXP_NEG)) {\r\n\r\n // Append zeros?\r\n for (; len < i; str += '0', len++);\r\n str = toExponential(str, e);\r\n\r\n // Fixed-point notation.\r\n } else {\r\n i -= ne;\r\n str = toFixedPoint(str, e, '0');\r\n\r\n // Append zeros?\r\n if (e + 1 > len) {\r\n if (--i > 0) for (str += '.'; i--; str += '0');\r\n } else {\r\n i += e - len;\r\n if (i > 0) {\r\n if (e + 1 == len) str += '.';\r\n for (; i--; str += '0');\r\n }\r\n }\r\n }\r\n }\r\n\r\n return n.s < 0 && c0 ? '-' + str : str;\r\n }\r\n\r\n\r\n // Handle BigNumber.max and BigNumber.min.\r\n function maxOrMin(args, method) {\r\n var m, n,\r\n i = 0;\r\n\r\n if (isArray(args[0])) args = args[0];\r\n m = new BigNumber(args[0]);\r\n\r\n for (; ++i < args.length;) {\r\n n = new BigNumber(args[i]);\r\n\r\n // If any number is NaN, return NaN.\r\n if (!n.s) {\r\n m = n;\r\n break;\r\n } else if (method.call(m, n)) {\r\n m = n;\r\n }\r\n }\r\n\r\n return m;\r\n }\r\n\r\n\r\n /*\r\n * Strip trailing zeros, calculate base 10 exponent and check against MIN_EXP and MAX_EXP.\r\n * Called by minus, plus and times.\r\n */\r\n function normalise(n, c, e) {\r\n var i = 1,\r\n j = c.length;\r\n\r\n // Remove trailing zeros.\r\n for (; !c[--j]; c.pop());\r\n\r\n // Calculate the base 10 exponent. First get the number of digits of c[0].\r\n for (j = c[0]; j >= 10; j /= 10, i++);\r\n\r\n // Overflow?\r\n if ((e = i + e * LOG_BASE - 1) > MAX_EXP) {\r\n\r\n // Infinity.\r\n n.c = n.e = null;\r\n\r\n // Underflow?\r\n } else if (e < MIN_EXP) {\r\n\r\n // Zero.\r\n n.c = [n.e = 0];\r\n } else {\r\n n.e = e;\r\n n.c = c;\r\n }\r\n\r\n return n;\r\n }\r\n\r\n\r\n // Handle values that fail the validity test in BigNumber.\r\n parseNumeric = (function () {\r\n var basePrefix = /^(-?)0([xbo])(?=\\w[\\w.]*$)/i,\r\n dotAfter = /^([^.]+)\\.$/,\r\n dotBefore = /^\\.([^.]+)$/,\r\n isInfinityOrNaN = /^-?(Infinity|NaN)$/,\r\n whitespaceOrPlus = /^\\s*\\+(?=[\\w.])|^\\s+|\\s+$/g;\r\n\r\n return function (x, str, isNum, b) {\r\n var base,\r\n s = isNum ? str : str.replace(whitespaceOrPlus, '');\r\n\r\n // No exception on ±Infinity or NaN.\r\n if (isInfinityOrNaN.test(s)) {\r\n x.s = isNaN(s) ? null : s < 0 ? -1 : 1;\r\n x.c = x.e = null;\r\n } else {\r\n if (!isNum) {\r\n\r\n // basePrefix = /^(-?)0([xbo])(?=\\w[\\w.]*$)/i\r\n s = s.replace(basePrefix, function (m, p1, p2) {\r\n base = (p2 = p2.toLowerCase()) == 'x' ? 16 : p2 == 'b' ? 2 : 8;\r\n return !b || b == base ? p1 : m;\r\n });\r\n\r\n if (b) {\r\n base = b;\r\n\r\n // E.g. '1.' to '1', '.1' to '0.1'\r\n s = s.replace(dotAfter, '$1').replace(dotBefore, '0.$1');\r\n }\r\n\r\n if (str != s) return new BigNumber(s, base);\r\n }\r\n\r\n // '[BigNumber Error] Not a number: {n}'\r\n // '[BigNumber Error] Not a base {b} number: {n}'\r\n if (BigNumber.DEBUG) {\r\n throw Error\r\n (bignumberError + 'Not a' + (b ? ' base ' + b : '') + ' number: ' + str);\r\n }\r\n\r\n // NaN\r\n x.c = x.e = x.s = null;\r\n }\r\n }\r\n })();\r\n\r\n\r\n /*\r\n * Round x to sd significant digits using rounding mode rm. Check for over/under-flow.\r\n * If r is truthy, it is known that there are more digits after the rounding digit.\r\n */\r\n function round(x, sd, rm, r) {\r\n var d, i, j, k, n, ni, rd,\r\n xc = x.c,\r\n pows10 = POWS_TEN;\r\n\r\n // if x is not Infinity or NaN...\r\n if (xc) {\r\n\r\n // rd is the rounding digit, i.e. the digit after the digit that may be rounded up.\r\n // n is a base 1e14 number, the value of the element of array x.c containing rd.\r\n // ni is the index of n within x.c.\r\n // d is the number of digits of n.\r\n // i is the index of rd within n including leading zeros.\r\n // j is the actual index of rd within n (if < 0, rd is a leading zero).\r\n out: {\r\n\r\n // Get the number of digits of the first element of xc.\r\n for (d = 1, k = xc[0]; k >= 10; k /= 10, d++);\r\n i = sd - d;\r\n\r\n // If the rounding digit is in the first element of xc...\r\n if (i < 0) {\r\n i += LOG_BASE;\r\n j = sd;\r\n n = xc[ni = 0];\r\n\r\n // Get the rounding digit at index j of n.\r\n rd = n / pows10[d - j - 1] % 10 | 0;\r\n } else {\r\n ni = mathceil((i + 1) / LOG_BASE);\r\n\r\n if (ni >= xc.length) {\r\n\r\n if (r) {\r\n\r\n // Needed by sqrt.\r\n for (; xc.length <= ni; xc.push(0));\r\n n = rd = 0;\r\n d = 1;\r\n i %= LOG_BASE;\r\n j = i - LOG_BASE + 1;\r\n } else {\r\n break out;\r\n }\r\n } else {\r\n n = k = xc[ni];\r\n\r\n // Get the number of digits of n.\r\n for (d = 1; k >= 10; k /= 10, d++);\r\n\r\n // Get the index of rd within n.\r\n i %= LOG_BASE;\r\n\r\n // Get the index of rd within n, adjusted for leading zeros.\r\n // The number of leading zeros of n is given by LOG_BASE - d.\r\n j = i - LOG_BASE + d;\r\n\r\n // Get the rounding digit at index j of n.\r\n rd = j < 0 ? 0 : n / pows10[d - j - 1] % 10 | 0;\r\n }\r\n }\r\n\r\n r = r || sd < 0 ||\r\n\r\n // Are there any non-zero digits after the rounding digit?\r\n // The expression n % pows10[d - j - 1] returns all digits of n to the right\r\n // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.\r\n xc[ni + 1] != null || (j < 0 ? n : n % pows10[d - j - 1]);\r\n\r\n r = rm < 4\r\n ? (rd || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2))\r\n : rd > 5 || rd == 5 && (rm == 4 || r || rm == 6 &&\r\n\r\n // Check whether the digit to the left of the rounding digit is odd.\r\n ((i > 0 ? j > 0 ? n / pows10[d - j] : 0 : xc[ni - 1]) % 10) & 1 ||\r\n rm == (x.s < 0 ? 8 : 7));\r\n\r\n if (sd < 1 || !xc[0]) {\r\n xc.length = 0;\r\n\r\n if (r) {\r\n\r\n // Convert sd to decimal places.\r\n sd -= x.e + 1;\r\n\r\n // 1, 0.1, 0.01, 0.001, 0.0001 etc.\r\n xc[0] = pows10[(LOG_BASE - sd % LOG_BASE) % LOG_BASE];\r\n x.e = -sd || 0;\r\n } else {\r\n\r\n // Zero.\r\n xc[0] = x.e = 0;\r\n }\r\n\r\n return x;\r\n }\r\n\r\n // Remove excess digits.\r\n if (i == 0) {\r\n xc.length = ni;\r\n k = 1;\r\n ni--;\r\n } else {\r\n xc.length = ni + 1;\r\n k = pows10[LOG_BASE - i];\r\n\r\n // E.g. 56700 becomes 56000 if 7 is the rounding digit.\r\n // j > 0 means i > number of leading zeros of n.\r\n xc[ni] = j > 0 ? mathfloor(n / pows10[d - j] % pows10[j]) * k : 0;\r\n }\r\n\r\n // Round up?\r\n if (r) {\r\n\r\n for (; ;) {\r\n\r\n // If the digit to be rounded up is in the first element of xc...\r\n if (ni == 0) {\r\n\r\n // i will be the length of xc[0] before k is added.\r\n for (i = 1, j = xc[0]; j >= 10; j /= 10, i++);\r\n j = xc[0] += k;\r\n for (k = 1; j >= 10; j /= 10, k++);\r\n\r\n // if i != k the length has increased.\r\n if (i != k) {\r\n x.e++;\r\n if (xc[0] == BASE) xc[0] = 1;\r\n }\r\n\r\n break;\r\n } else {\r\n xc[ni] += k;\r\n if (xc[ni] != BASE) break;\r\n xc[ni--] = 0;\r\n k = 1;\r\n }\r\n }\r\n }\r\n\r\n // Remove trailing zeros.\r\n for (i = xc.length; xc[--i] === 0; xc.pop());\r\n }\r\n\r\n // Overflow? Infinity.\r\n if (x.e > MAX_EXP) {\r\n x.c = x.e = null;\r\n\r\n // Underflow? Zero.\r\n } else if (x.e < MIN_EXP) {\r\n x.c = [x.e = 0];\r\n }\r\n }\r\n\r\n return x;\r\n }\r\n\r\n\r\n // PROTOTYPE/INSTANCE METHODS\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the absolute value of this BigNumber.\r\n */\r\n P.absoluteValue = P.abs = function () {\r\n var x = new BigNumber(this);\r\n if (x.s < 0) x.s = 1;\r\n return x;\r\n };\r\n\r\n\r\n /*\r\n * Return\r\n * 1 if the value of this BigNumber is greater than the value of BigNumber(y, b),\r\n * -1 if the value of this BigNumber is less than the value of BigNumber(y, b),\r\n * 0 if they have the same value,\r\n * or null if the value of either is NaN.\r\n */\r\n P.comparedTo = function (y, b) {\r\n return compare(this, new BigNumber(y, b));\r\n };\r\n\r\n\r\n /*\r\n * If dp is undefined or null or true or false, return the number of decimal places of the\r\n * value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN.\r\n *\r\n * Otherwise, if dp is a number, return a new BigNumber whose value is the value of this\r\n * BigNumber rounded to a maximum of dp decimal places using rounding mode rm, or\r\n * ROUNDING_MODE if rm is omitted.\r\n *\r\n * [dp] {number} Decimal places: integer, 0 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}'\r\n */\r\n P.decimalPlaces = P.dp = function (dp, rm) {\r\n var c, n, v,\r\n x = this;\r\n\r\n if (dp != null) {\r\n intCheck(dp, 0, MAX);\r\n if (rm == null) rm = ROUNDING_MODE;\r\n else intCheck(rm, 0, 8);\r\n\r\n return round(new BigNumber(x), dp + x.e + 1, rm);\r\n }\r\n\r\n if (!(c = x.c)) return null;\r\n n = ((v = c.length - 1) - bitFloor(this.e / LOG_BASE)) * LOG_BASE;\r\n\r\n // Subtract the number of trailing zeros of the last number.\r\n if (v = c[v]) for (; v % 10 == 0; v /= 10, n--);\r\n if (n < 0) n = 0;\r\n\r\n return n;\r\n };\r\n\r\n\r\n /*\r\n * n / 0 = I\r\n * n / N = N\r\n * n / I = 0\r\n * 0 / n = 0\r\n * 0 / 0 = N\r\n * 0 / N = N\r\n * 0 / I = 0\r\n * N / n = N\r\n * N / 0 = N\r\n * N / N = N\r\n * N / I = N\r\n * I / n = I\r\n * I / 0 = I\r\n * I / N = N\r\n * I / I = N\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber divided by the value of\r\n * BigNumber(y, b), rounded according to DECIMAL_PLACES and ROUNDING_MODE.\r\n */\r\n P.dividedBy = P.div = function (y, b) {\r\n return div(this, new BigNumber(y, b), DECIMAL_PLACES, ROUNDING_MODE);\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the integer part of dividing the value of this\r\n * BigNumber by the value of BigNumber(y, b).\r\n */\r\n P.dividedToIntegerBy = P.idiv = function (y, b) {\r\n return div(this, new BigNumber(y, b), 0, 1);\r\n };\r\n\r\n\r\n /*\r\n * Return a BigNumber whose value is the value of this BigNumber exponentiated by n.\r\n *\r\n * If m is present, return the result modulo m.\r\n * If n is negative round according to DECIMAL_PLACES and ROUNDING_MODE.\r\n * If POW_PRECISION is non-zero and m is not present, round to POW_PRECISION using ROUNDING_MODE.\r\n *\r\n * The modular power operation works efficiently when x, n, and m are integers, otherwise it\r\n * is equivalent to calculating x.exponentiatedBy(n).modulo(m) with a POW_PRECISION of 0.\r\n *\r\n * n {number|string|BigNumber} The exponent. An integer.\r\n * [m] {number|string|BigNumber} The modulus.\r\n *\r\n * '[BigNumber Error] Exponent not an integer: {n}'\r\n */\r\n P.exponentiatedBy = P.pow = function (n, m) {\r\n var half, isModExp, k, more, nIsBig, nIsNeg, nIsOdd, y,\r\n x = this;\r\n\r\n n = new BigNumber(n);\r\n\r\n // Allow NaN and ±Infinity, but not other non-integers.\r\n if (n.c && !n.isInteger()) {\r\n throw Error\r\n (bignumberError + 'Exponent not an integer: ' + n);\r\n }\r\n\r\n if (m != null) m = new BigNumber(m);\r\n\r\n // Exponent of MAX_SAFE_INTEGER is 15.\r\n nIsBig = n.e > 14;\r\n\r\n // If x is NaN, ±Infinity, ±0 or ±1, or n is ±Infinity, NaN or ±0.\r\n if (!x.c || !x.c[0] || x.c[0] == 1 && !x.e && x.c.length == 1 || !n.c || !n.c[0]) {\r\n\r\n // The sign of the result of pow when x is negative depends on the evenness of n.\r\n // If +n overflows to ±Infinity, the evenness of n would be not be known.\r\n y = new BigNumber(Math.pow(+x.valueOf(), nIsBig ? 2 - isOdd(n) : +n));\r\n return m ? y.mod(m) : y;\r\n }\r\n\r\n nIsNeg = n.s < 0;\r\n\r\n if (m) {\r\n\r\n // x % m returns NaN if abs(m) is zero, or m is NaN.\r\n if (m.c ? !m.c[0] : !m.s) return new BigNumber(NaN);\r\n\r\n isModExp = !nIsNeg && x.isInteger() && m.isInteger();\r\n\r\n if (isModExp) x = x.mod(m);\r\n\r\n // Overflow to ±Infinity: >=2**1e10 or >=1.0000024**1e15.\r\n // Underflow to ±0: <=0.79**1e10 or <=0.9999975**1e15.\r\n } else if (n.e > 9 && (x.e > 0 || x.e < -1 || (x.e == 0\r\n // [1, 240000000]\r\n ? x.c[0] > 1 || nIsBig && x.c[1] >= 24e7\r\n // [80000000000000] [99999750000000]\r\n : x.c[0] < 8e13 || nIsBig && x.c[0] <= 9999975e7))) {\r\n\r\n // If x is negative and n is odd, k = -0, else k = 0.\r\n k = x.s < 0 && isOdd(n) ? -0 : 0;\r\n\r\n // If x >= 1, k = ±Infinity.\r\n if (x.e > -1) k = 1 / k;\r\n\r\n // If n is negative return ±0, else return ±Infinity.\r\n return new BigNumber(nIsNeg ? 1 / k : k);\r\n\r\n } else if (POW_PRECISION) {\r\n\r\n // Truncating each coefficient array to a length of k after each multiplication\r\n // equates to truncating significant digits to POW_PRECISION + [28, 41],\r\n // i.e. there will be a minimum of 28 guard digits retained.\r\n k = mathceil(POW_PRECISION / LOG_BASE + 2);\r\n }\r\n\r\n if (nIsBig) {\r\n half = new BigNumber(0.5);\r\n nIsOdd = isOdd(n);\r\n } else {\r\n nIsOdd = n % 2;\r\n }\r\n\r\n if (nIsNeg) n.s = 1;\r\n\r\n y = new BigNumber(ONE);\r\n\r\n // Performs 54 loop iterations for n of 9007199254740991.\r\n for (; ;) {\r\n\r\n if (nIsOdd) {\r\n y = y.times(x);\r\n if (!y.c) break;\r\n\r\n if (k) {\r\n if (y.c.length > k) y.c.length = k;\r\n } else if (isModExp) {\r\n y = y.mod(m); //y = y.minus(div(y, m, 0, MODULO_MODE).times(m));\r\n }\r\n }\r\n\r\n if (nIsBig) {\r\n n = n.times(half);\r\n round(n, n.e + 1, 1);\r\n if (!n.c[0]) break;\r\n nIsBig = n.e > 14;\r\n nIsOdd = isOdd(n);\r\n } else {\r\n n = mathfloor(n / 2);\r\n if (!n) break;\r\n nIsOdd = n % 2;\r\n }\r\n\r\n x = x.times(x);\r\n\r\n if (k) {\r\n if (x.c && x.c.length > k) x.c.length = k;\r\n } else if (isModExp) {\r\n x = x.mod(m); //x = x.minus(div(x, m, 0, MODULO_MODE).times(m));\r\n }\r\n }\r\n\r\n if (isModExp) return y;\r\n if (nIsNeg) y = ONE.div(y);\r\n\r\n return m ? y.mod(m) : k ? round(y, POW_PRECISION, ROUNDING_MODE, more) : y;\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the value of this BigNumber rounded to an integer\r\n * using rounding mode rm, or ROUNDING_MODE if rm is omitted.\r\n *\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {rm}'\r\n */\r\n P.integerValue = function (rm) {\r\n var n = new BigNumber(this);\r\n if (rm == null) rm = ROUNDING_MODE;\r\n else intCheck(rm, 0, 8);\r\n return round(n, n.e + 1, rm);\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is equal to the value of BigNumber(y, b),\r\n * otherwise return false.\r\n */\r\n P.isEqualTo = P.eq = function (y, b) {\r\n return compare(this, new BigNumber(y, b)) === 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is a finite number, otherwise return false.\r\n */\r\n P.isFinite = function () {\r\n return !!this.c;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is greater than the value of BigNumber(y, b),\r\n * otherwise return false.\r\n */\r\n P.isGreaterThan = P.gt = function (y, b) {\r\n return compare(this, new BigNumber(y, b)) > 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is greater than or equal to the value of\r\n * BigNumber(y, b), otherwise return false.\r\n */\r\n P.isGreaterThanOrEqualTo = P.gte = function (y, b) {\r\n return (b = compare(this, new BigNumber(y, b))) === 1 || b === 0;\r\n\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is an integer, otherwise return false.\r\n */\r\n P.isInteger = function () {\r\n return !!this.c && bitFloor(this.e / LOG_BASE) > this.c.length - 2;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is less than the value of BigNumber(y, b),\r\n * otherwise return false.\r\n */\r\n P.isLessThan = P.lt = function (y, b) {\r\n return compare(this, new BigNumber(y, b)) < 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is less than or equal to the value of\r\n * BigNumber(y, b), otherwise return false.\r\n */\r\n P.isLessThanOrEqualTo = P.lte = function (y, b) {\r\n return (b = compare(this, new BigNumber(y, b))) === -1 || b === 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is NaN, otherwise return false.\r\n */\r\n P.isNaN = function () {\r\n return !this.s;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is negative, otherwise return false.\r\n */\r\n P.isNegative = function () {\r\n return this.s < 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is positive, otherwise return false.\r\n */\r\n P.isPositive = function () {\r\n return this.s > 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is 0 or -0, otherwise return false.\r\n */\r\n P.isZero = function () {\r\n return !!this.c && this.c[0] == 0;\r\n };\r\n\r\n\r\n /*\r\n * n - 0 = n\r\n * n - N = N\r\n * n - I = -I\r\n * 0 - n = -n\r\n * 0 - 0 = 0\r\n * 0 - N = N\r\n * 0 - I = -I\r\n * N - n = N\r\n * N - 0 = N\r\n * N - N = N\r\n * N - I = N\r\n * I - n = I\r\n * I - 0 = I\r\n * I - N = N\r\n * I - I = N\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber minus the value of\r\n * BigNumber(y, b).\r\n */\r\n P.minus = function (y, b) {\r\n var i, j, t, xLTy,\r\n x = this,\r\n a = x.s;\r\n\r\n y = new BigNumber(y, b);\r\n b = y.s;\r\n\r\n // Either NaN?\r\n if (!a || !b) return new BigNumber(NaN);\r\n\r\n // Signs differ?\r\n if (a != b) {\r\n y.s = -b;\r\n return x.plus(y);\r\n }\r\n\r\n var xe = x.e / LOG_BASE,\r\n ye = y.e / LOG_BASE,\r\n xc = x.c,\r\n yc = y.c;\r\n\r\n if (!xe || !ye) {\r\n\r\n // Either Infinity?\r\n if (!xc || !yc) return xc ? (y.s = -b, y) : new BigNumber(yc ? x : NaN);\r\n\r\n // Either zero?\r\n if (!xc[0] || !yc[0]) {\r\n\r\n // Return y if y is non-zero, x if x is non-zero, or zero if both are zero.\r\n return yc[0] ? (y.s = -b, y) : new BigNumber(xc[0] ? x :\r\n\r\n // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity\r\n ROUNDING_MODE == 3 ? -0 : 0);\r\n }\r\n }\r\n\r\n xe = bitFloor(xe);\r\n ye = bitFloor(ye);\r\n xc = xc.slice();\r\n\r\n // Determine which is the bigger number.\r\n if (a = xe - ye) {\r\n\r\n if (xLTy = a < 0) {\r\n a = -a;\r\n t = xc;\r\n } else {\r\n ye = xe;\r\n t = yc;\r\n }\r\n\r\n t.reverse();\r\n\r\n // Prepend zeros to equalise exponents.\r\n for (b = a; b--; t.push(0));\r\n t.reverse();\r\n } else {\r\n\r\n // Exponents equal. Check digit by digit.\r\n j = (xLTy = (a = xc.length) < (b = yc.length)) ? a : b;\r\n\r\n for (a = b = 0; b < j; b++) {\r\n\r\n if (xc[b] != yc[b]) {\r\n xLTy = xc[b] < yc[b];\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // x < y? Point xc to the array of the bigger number.\r\n if (xLTy) t = xc, xc = yc, yc = t, y.s = -y.s;\r\n\r\n b = (j = yc.length) - (i = xc.length);\r\n\r\n // Append zeros to xc if shorter.\r\n // No need to add zeros to yc if shorter as subtract only needs to start at yc.length.\r\n if (b > 0) for (; b--; xc[i++] = 0);\r\n b = BASE - 1;\r\n\r\n // Subtract yc from xc.\r\n for (; j > a;) {\r\n\r\n if (xc[--j] < yc[j]) {\r\n for (i = j; i && !xc[--i]; xc[i] = b);\r\n --xc[i];\r\n xc[j] += BASE;\r\n }\r\n\r\n xc[j] -= yc[j];\r\n }\r\n\r\n // Remove leading zeros and adjust exponent accordingly.\r\n for (; xc[0] == 0; xc.splice(0, 1), --ye);\r\n\r\n // Zero?\r\n if (!xc[0]) {\r\n\r\n // Following IEEE 754 (2008) 6.3,\r\n // n - n = +0 but n - n = -0 when rounding towards -Infinity.\r\n y.s = ROUNDING_MODE == 3 ? -1 : 1;\r\n y.c = [y.e = 0];\r\n return y;\r\n }\r\n\r\n // No need to check for Infinity as +x - +y != Infinity && -x - -y != Infinity\r\n // for finite x and y.\r\n return normalise(y, xc, ye);\r\n };\r\n\r\n\r\n /*\r\n * n % 0 = N\r\n * n % N = N\r\n * n % I = n\r\n * 0 % n = 0\r\n * -0 % n = -0\r\n * 0 % 0 = N\r\n * 0 % N = N\r\n * 0 % I = 0\r\n * N % n = N\r\n * N % 0 = N\r\n * N % N = N\r\n * N % I = N\r\n * I % n = N\r\n * I % 0 = N\r\n * I % N = N\r\n * I % I = N\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber modulo the value of\r\n * BigNumber(y, b). The result depends on the value of MODULO_MODE.\r\n */\r\n P.modulo = P.mod = function (y, b) {\r\n var q, s,\r\n x = this;\r\n\r\n y = new BigNumber(y, b);\r\n\r\n // Return NaN if x is Infinity or NaN, or y is NaN or zero.\r\n if (!x.c || !y.s || y.c && !y.c[0]) {\r\n return new BigNumber(NaN);\r\n\r\n // Return x if y is Infinity or x is zero.\r\n } else if (!y.c || x.c && !x.c[0]) {\r\n return new BigNumber(x);\r\n }\r\n\r\n if (MODULO_MODE == 9) {\r\n\r\n // Euclidian division: q = sign(y) * floor(x / abs(y))\r\n // r = x - qy where 0 <= r < abs(y)\r\n s = y.s;\r\n y.s = 1;\r\n q = div(x, y, 0, 3);\r\n y.s = s;\r\n q.s *= s;\r\n } else {\r\n q = div(x, y, 0, MODULO_MODE);\r\n }\r\n\r\n y = x.minus(q.times(y));\r\n\r\n // To match JavaScript %, ensure sign of zero is sign of dividend.\r\n if (!y.c[0] && MODULO_MODE == 1) y.s = x.s;\r\n\r\n return y;\r\n };\r\n\r\n\r\n /*\r\n * n * 0 = 0\r\n * n * N = N\r\n * n * I = I\r\n * 0 * n = 0\r\n * 0 * 0 = 0\r\n * 0 * N = N\r\n * 0 * I = N\r\n * N * n = N\r\n * N * 0 = N\r\n * N * N = N\r\n * N * I = N\r\n * I * n = I\r\n * I * 0 = N\r\n * I * N = N\r\n * I * I = I\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber multiplied by the value\r\n * of BigNumber(y, b).\r\n */\r\n P.multipliedBy = P.times = function (y, b) {\r\n var c, e, i, j, k, m, xcL, xlo, xhi, ycL, ylo, yhi, zc,\r\n base, sqrtBase,\r\n x = this,\r\n xc = x.c,\r\n yc = (y = new BigNumber(y, b)).c;\r\n\r\n // Either NaN, ±Infinity or ±0?\r\n if (!xc || !yc || !xc[0] || !yc[0]) {\r\n\r\n // Return NaN if either is NaN, or one is 0 and the other is Infinity.\r\n if (!x.s || !y.s || xc && !xc[0] && !yc || yc && !yc[0] && !xc) {\r\n y.c = y.e = y.s = null;\r\n } else {\r\n y.s *= x.s;\r\n\r\n // Return ±Infinity if either is ±Infinity.\r\n if (!xc || !yc) {\r\n y.c = y.e = null;\r\n\r\n // Return ±0 if either is ±0.\r\n } else {\r\n y.c = [0];\r\n y.e = 0;\r\n }\r\n }\r\n\r\n return y;\r\n }\r\n\r\n e = bitFloor(x.e / LOG_BASE) + bitFloor(y.e / LOG_BASE);\r\n y.s *= x.s;\r\n xcL = xc.length;\r\n ycL = yc.length;\r\n\r\n // Ensure xc points to longer array and xcL to its length.\r\n if (xcL < ycL) zc = xc, xc = yc, yc = zc, i = xcL, xcL = ycL, ycL = i;\r\n\r\n // Initialise the result array with zeros.\r\n for (i = xcL + ycL, zc = []; i--; zc.push(0));\r\n\r\n base = BASE;\r\n sqrtBase = SQRT_BASE;\r\n\r\n for (i = ycL; --i >= 0;) {\r\n c = 0;\r\n ylo = yc[i] % sqrtBase;\r\n yhi = yc[i] / sqrtBase | 0;\r\n\r\n for (k = xcL, j = i + k; j > i;) {\r\n xlo = xc[--k] % sqrtBase;\r\n xhi = xc[k] / sqrtBase | 0;\r\n m = yhi * xlo + xhi * ylo;\r\n xlo = ylo * xlo + ((m % sqrtBase) * sqrtBase) + zc[j] + c;\r\n c = (xlo / base | 0) + (m / sqrtBase | 0) + yhi * xhi;\r\n zc[j--] = xlo % base;\r\n }\r\n\r\n zc[j] = c;\r\n }\r\n\r\n if (c) {\r\n ++e;\r\n } else {\r\n zc.splice(0, 1);\r\n }\r\n\r\n return normalise(y, zc, e);\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the value of this BigNumber negated,\r\n * i.e. multiplied by -1.\r\n */\r\n P.negated = function () {\r\n var x = new BigNumber(this);\r\n x.s = -x.s || null;\r\n return x;\r\n };\r\n\r\n\r\n /*\r\n * n + 0 = n\r\n * n + N = N\r\n * n + I = I\r\n * 0 + n = n\r\n * 0 + 0 = 0\r\n * 0 + N = N\r\n * 0 + I = I\r\n * N + n = N\r\n * N + 0 = N\r\n * N + N = N\r\n * N + I = N\r\n * I + n = I\r\n * I + 0 = I\r\n * I + N = N\r\n * I + I = I\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber plus the value of\r\n * BigNumber(y, b).\r\n */\r\n P.plus = function (y, b) {\r\n var t,\r\n x = this,\r\n a = x.s;\r\n\r\n y = new BigNumber(y, b);\r\n b = y.s;\r\n\r\n // Either NaN?\r\n if (!a || !b) return new BigNumber(NaN);\r\n\r\n // Signs differ?\r\n if (a != b) {\r\n y.s = -b;\r\n return x.minus(y);\r\n }\r\n\r\n var xe = x.e / LOG_BASE,\r\n ye = y.e / LOG_BASE,\r\n xc = x.c,\r\n yc = y.c;\r\n\r\n if (!xe || !ye) {\r\n\r\n // Return ±Infinity if either ±Infinity.\r\n if (!xc || !yc) return new BigNumber(a / 0);\r\n\r\n // Either zero?\r\n // Return y if y is non-zero, x if x is non-zero, or zero if both are zero.\r\n if (!xc[0] || !yc[0]) return yc[0] ? y : new BigNumber(xc[0] ? x : a * 0);\r\n }\r\n\r\n xe = bitFloor(xe);\r\n ye = bitFloor(ye);\r\n xc = xc.slice();\r\n\r\n // Prepend zeros to equalise exponents. Faster to use reverse then do unshifts.\r\n if (a = xe - ye) {\r\n if (a > 0) {\r\n ye = xe;\r\n t = yc;\r\n } else {\r\n a = -a;\r\n t = xc;\r\n }\r\n\r\n t.reverse();\r\n for (; a--; t.push(0));\r\n t.reverse();\r\n }\r\n\r\n a = xc.length;\r\n b = yc.length;\r\n\r\n // Point xc to the longer array, and b to the shorter length.\r\n if (a - b < 0) t = yc, yc = xc, xc = t, b = a;\r\n\r\n // Only start adding at yc.length - 1 as the further digits of xc can be ignored.\r\n for (a = 0; b;) {\r\n a = (xc[--b] = xc[b] + yc[b] + a) / BASE | 0;\r\n xc[b] = BASE === xc[b] ? 0 : xc[b] % BASE;\r\n }\r\n\r\n if (a) {\r\n xc = [a].concat(xc);\r\n ++ye;\r\n }\r\n\r\n // No need to check for zero, as +x + +y != 0 && -x + -y != 0\r\n // ye = MAX_EXP + 1 possible\r\n return normalise(y, xc, ye);\r\n };\r\n\r\n\r\n /*\r\n * If sd is undefined or null or true or false, return the number of significant digits of\r\n * the value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN.\r\n * If sd is true include integer-part trailing zeros in the count.\r\n *\r\n * Otherwise, if sd is a number, return a new BigNumber whose value is the value of this\r\n * BigNumber rounded to a maximum of sd significant digits using rounding mode rm, or\r\n * ROUNDING_MODE if rm is omitted.\r\n *\r\n * sd {number|boolean} number: significant digits: integer, 1 to MAX inclusive.\r\n * boolean: whether to count integer-part trailing zeros: true or false.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}'\r\n */\r\n P.precision = P.sd = function (sd, rm) {\r\n var c, n, v,\r\n x = this;\r\n\r\n if (sd != null && sd !== !!sd) {\r\n intCheck(sd, 1, MAX);\r\n if (rm == null) rm = ROUNDING_MODE;\r\n else intCheck(rm, 0, 8);\r\n\r\n return round(new BigNumber(x), sd, rm);\r\n }\r\n\r\n if (!(c = x.c)) return null;\r\n v = c.length - 1;\r\n n = v * LOG_BASE + 1;\r\n\r\n if (v = c[v]) {\r\n\r\n // Subtract the number of trailing zeros of the last element.\r\n for (; v % 10 == 0; v /= 10, n--);\r\n\r\n // Add the number of digits of the first element.\r\n for (v = c[0]; v >= 10; v /= 10, n++);\r\n }\r\n\r\n if (sd && x.e + 1 > n) n = x.e + 1;\r\n\r\n return n;\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the value of this BigNumber shifted by k places\r\n * (powers of 10). Shift to the right if n > 0, and to the left if n < 0.\r\n *\r\n * k {number} Integer, -MAX_SAFE_INTEGER to MAX_SAFE_INTEGER inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {k}'\r\n */\r\n P.shiftedBy = function (k) {\r\n intCheck(k, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER);\r\n return this.times('1e' + k);\r\n };\r\n\r\n\r\n /*\r\n * sqrt(-n) = N\r\n * sqrt(N) = N\r\n * sqrt(-I) = N\r\n * sqrt(I) = I\r\n * sqrt(0) = 0\r\n * sqrt(-0) = -0\r\n *\r\n * Return a new BigNumber whose value is the square root of the value of this BigNumber,\r\n * rounded according to DECIMAL_PLACES and ROUNDING_MODE.\r\n */\r\n P.squareRoot = P.sqrt = function () {\r\n var m, n, r, rep, t,\r\n x = this,\r\n c = x.c,\r\n s = x.s,\r\n e = x.e,\r\n dp = DECIMAL_PLACES + 4,\r\n half = new BigNumber('0.5');\r\n\r\n // Negative/NaN/Infinity/zero?\r\n if (s !== 1 || !c || !c[0]) {\r\n return new BigNumber(!s || s < 0 && (!c || c[0]) ? NaN : c ? x : 1 / 0);\r\n }\r\n\r\n // Initial estimate.\r\n s = Math.sqrt(+x);\r\n\r\n // Math.sqrt underflow/overflow?\r\n // Pass x to Math.sqrt as integer, then adjust the exponent of the result.\r\n if (s == 0 || s == 1 / 0) {\r\n n = coeffToString(c);\r\n if ((n.length + e) % 2 == 0) n += '0';\r\n s = Math.sqrt(n);\r\n e = bitFloor((e + 1) / 2) - (e < 0 || e % 2);\r\n\r\n if (s == 1 / 0) {\r\n n = '1e' + e;\r\n } else {\r\n n = s.toExponential();\r\n n = n.slice(0, n.indexOf('e') + 1) + e;\r\n }\r\n\r\n r = new BigNumber(n);\r\n } else {\r\n r = new BigNumber(s + '');\r\n }\r\n\r\n // Check for zero.\r\n // r could be zero if MIN_EXP is changed after the this value was created.\r\n // This would cause a division by zero (x/t) and hence Infinity below, which would cause\r\n // coeffToString to throw.\r\n if (r.c[0]) {\r\n e = r.e;\r\n s = e + dp;\r\n if (s < 3) s = 0;\r\n\r\n // Newton-Raphson iteration.\r\n for (; ;) {\r\n t = r;\r\n r = half.times(t.plus(div(x, t, dp, 1)));\r\n\r\n if (coeffToString(t.c ).slice(0, s) === (n =\r\n coeffToString(r.c)).slice(0, s)) {\r\n\r\n // The exponent of r may here be one less than the final result exponent,\r\n // e.g 0.0009999 (e-4) --> 0.001 (e-3), so adjust s so the rounding digits\r\n // are indexed correctly.\r\n if (r.e < e) --s;\r\n n = n.slice(s - 3, s + 1);\r\n\r\n // The 4th rounding digit may be in error by -1 so if the 4 rounding digits\r\n // are 9999 or 4999 (i.e. approaching a rounding boundary) continue the\r\n // iteration.\r\n if (n == '9999' || !rep && n == '4999') {\r\n\r\n // On the first iteration only, check to see if rounding up gives the\r\n // exact result as the nines may infinitely repeat.\r\n if (!rep) {\r\n round(t, t.e + DECIMAL_PLACES + 2, 0);\r\n\r\n if (t.times(t).eq(x)) {\r\n r = t;\r\n break;\r\n }\r\n }\r\n\r\n dp += 4;\r\n s += 4;\r\n rep = 1;\r\n } else {\r\n\r\n // If rounding digits are null, 0{0,4} or 50{0,3}, check for exact\r\n // result. If not, then there are further digits and m will be truthy.\r\n if (!+n || !+n.slice(1) && n.charAt(0) == '5') {\r\n\r\n // Truncate to the first rounding digit.\r\n round(r, r.e + DECIMAL_PLACES + 2, 1);\r\n m = !r.times(r).eq(x);\r\n }\r\n\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return round(r, r.e + DECIMAL_PLACES + 1, ROUNDING_MODE, m);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber in exponential notation and\r\n * rounded using ROUNDING_MODE to dp fixed decimal places.\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}'\r\n */\r\n P.toExponential = function (dp, rm) {\r\n if (dp != null) {\r\n intCheck(dp, 0, MAX);\r\n dp++;\r\n }\r\n return format(this, dp, rm, 1);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber in fixed-point notation rounding\r\n * to dp fixed decimal places using rounding mode rm, or ROUNDING_MODE if rm is omitted.\r\n *\r\n * Note: as with JavaScript's number type, (-0).toFixed(0) is '0',\r\n * but e.g. (-0.00001).toFixed(0) is '-0'.\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}'\r\n */\r\n P.toFixed = function (dp, rm) {\r\n if (dp != null) {\r\n intCheck(dp, 0, MAX);\r\n dp = dp + this.e + 1;\r\n }\r\n return format(this, dp, rm);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber in fixed-point notation rounded\r\n * using rm or ROUNDING_MODE to dp decimal places, and formatted according to the properties\r\n * of the FORMAT object (see BigNumber.set).\r\n *\r\n * FORMAT = {\r\n * decimalSeparator : '.',\r\n * groupSeparator : ',',\r\n * groupSize : 3,\r\n * secondaryGroupSize : 0,\r\n * fractionGroupSeparator : '\\xA0', // non-breaking space\r\n * fractionGroupSize : 0\r\n * };\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}'\r\n */\r\n P.toFormat = function (dp, rm) {\r\n var str = this.toFixed(dp, rm);\r\n\r\n if (this.c) {\r\n var i,\r\n arr = str.split('.'),\r\n g1 = +FORMAT.groupSize,\r\n g2 = +FORMAT.secondaryGroupSize,\r\n groupSeparator = FORMAT.groupSeparator,\r\n intPart = arr[0],\r\n fractionPart = arr[1],\r\n isNeg = this.s < 0,\r\n intDigits = isNeg ? intPart.slice(1) : intPart,\r\n len = intDigits.length;\r\n\r\n if (g2) i = g1, g1 = g2, g2 = i, len -= i;\r\n\r\n if (g1 > 0 && len > 0) {\r\n i = len % g1 || g1;\r\n intPart = intDigits.substr(0, i);\r\n\r\n for (; i < len; i += g1) {\r\n intPart += groupSeparator + intDigits.substr(i, g1);\r\n }\r\n\r\n if (g2 > 0) intPart += groupSeparator + intDigits.slice(i);\r\n if (isNeg) intPart = '-' + intPart;\r\n }\r\n\r\n str = fractionPart\r\n ? intPart + FORMAT.decimalSeparator + ((g2 = +FORMAT.fractionGroupSize)\r\n ? fractionPart.replace(new RegExp('\\\\d{' + g2 + '}\\\\B', 'g'),\r\n '$&' + FORMAT.fractionGroupSeparator)\r\n : fractionPart)\r\n : intPart;\r\n }\r\n\r\n return str;\r\n };\r\n\r\n\r\n /*\r\n * Return a string array representing the value of this BigNumber as a simple fraction with\r\n * an integer numerator and an integer denominator. The denominator will be a positive\r\n * non-zero value less than or equal to the specified maximum denominator. If a maximum\r\n * denominator is not specified, the denominator will be the lowest value necessary to\r\n * represent the number exactly.\r\n *\r\n * [md] {number|string|BigNumber} Integer >= 1, or Infinity. The maximum denominator.\r\n *\r\n * '[BigNumber Error] Argument {not an integer|out of range} : {md}'\r\n */\r\n P.toFraction = function (md) {\r\n var arr, d, d0, d1, d2, e, exp, n, n0, n1, q, s,\r\n x = this,\r\n xc = x.c;\r\n\r\n if (md != null) {\r\n n = new BigNumber(md);\r\n\r\n // Throw if md is less than one or is not an integer, unless it is Infinity.\r\n if (!n.isInteger() && (n.c || n.s !== 1) || n.lt(ONE)) {\r\n throw Error\r\n (bignumberError + 'Argument ' +\r\n (n.isInteger() ? 'out of range: ' : 'not an integer: ') + md);\r\n }\r\n }\r\n\r\n if (!xc) return x.toString();\r\n\r\n d = new BigNumber(ONE);\r\n n1 = d0 = new BigNumber(ONE);\r\n d1 = n0 = new BigNumber(ONE);\r\n s = coeffToString(xc);\r\n\r\n // Determine initial denominator.\r\n // d is a power of 10 and the minimum max denominator that specifies the value exactly.\r\n e = d.e = s.length - x.e - 1;\r\n d.c[0] = POWS_TEN[(exp = e % LOG_BASE) < 0 ? LOG_BASE + exp : exp];\r\n md = !md || n.comparedTo(d) > 0 ? (e > 0 ? d : n1) : n;\r\n\r\n exp = MAX_EXP;\r\n MAX_EXP = 1 / 0;\r\n n = new BigNumber(s);\r\n\r\n // n0 = d1 = 0\r\n n0.c[0] = 0;\r\n\r\n for (; ;) {\r\n q = div(n, d, 0, 1);\r\n d2 = d0.plus(q.times(d1));\r\n if (d2.comparedTo(md) == 1) break;\r\n d0 = d1;\r\n d1 = d2;\r\n n1 = n0.plus(q.times(d2 = n1));\r\n n0 = d2;\r\n d = n.minus(q.times(d2 = d));\r\n n = d2;\r\n }\r\n\r\n d2 = div(md.minus(d0), d1, 0, 1);\r\n n0 = n0.plus(d2.times(n1));\r\n d0 = d0.plus(d2.times(d1));\r\n n0.s = n1.s = x.s;\r\n e *= 2;\r\n\r\n // Determine which fraction is closer to x, n0/d0 or n1/d1\r\n arr = div(n1, d1, e, ROUNDING_MODE).minus(x).abs().comparedTo(\r\n div(n0, d0, e, ROUNDING_MODE).minus(x).abs()) < 1\r\n ? [n1.toString(), d1.toString()]\r\n : [n0.toString(), d0.toString()];\r\n\r\n MAX_EXP = exp;\r\n return arr;\r\n };\r\n\r\n\r\n /*\r\n * Return the value of this BigNumber converted to a number primitive.\r\n */\r\n P.toNumber = function () {\r\n return +this;\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber rounded to sd significant digits\r\n * using rounding mode rm or ROUNDING_MODE. If sd is less than the number of digits\r\n * necessary to represent the integer part of the value in fixed-point notation, then use\r\n * exponential notation.\r\n *\r\n * [sd] {number} Significant digits. Integer, 1 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}'\r\n */\r\n P.toPrecision = function (sd, rm) {\r\n if (sd != null) intCheck(sd, 1, MAX);\r\n return format(this, sd, rm, 2);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber in base b, or base 10 if b is\r\n * omitted. If a base is specified, including base 10, round according to DECIMAL_PLACES and\r\n * ROUNDING_MODE. If a base is not specified, and this BigNumber has a positive exponent\r\n * that is equal to or greater than TO_EXP_POS, or a negative exponent equal to or less than\r\n * TO_EXP_NEG, return exponential notation.\r\n *\r\n * [b] {number} Integer, 2 to ALPHABET.length inclusive.\r\n *\r\n * '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}'\r\n */\r\n P.toString = function (b) {\r\n var str,\r\n n = this,\r\n s = n.s,\r\n e = n.e;\r\n\r\n // Infinity or NaN?\r\n if (e === null) {\r\n\r\n if (s) {\r\n str = 'Infinity';\r\n if (s < 0) str = '-' + str;\r\n } else {\r\n str = 'NaN';\r\n }\r\n } else {\r\n str = coeffToString(n.c);\r\n\r\n if (b == null) {\r\n str = e <= TO_EXP_NEG || e >= TO_EXP_POS\r\n ? toExponential(str, e)\r\n : toFixedPoint(str, e, '0');\r\n } else {\r\n intCheck(b, 2, ALPHABET.length, 'Base');\r\n str = convertBase(toFixedPoint(str, e, '0'), 10, b, s, true);\r\n }\r\n\r\n if (s < 0 && n.c[0]) str = '-' + str;\r\n }\r\n\r\n return str;\r\n };\r\n\r\n\r\n /*\r\n * Return as toString, but do not accept a base argument, and include the minus sign for\r\n * negative zero.\r\n */\r\n P.valueOf = P.toJSON = function () {\r\n var str,\r\n n = this,\r\n e = n.e;\r\n\r\n if (e === null) return n.toString();\r\n\r\n str = coeffToString(n.c);\r\n\r\n str = e <= TO_EXP_NEG || e >= TO_EXP_POS\r\n ? toExponential(str, e)\r\n : toFixedPoint(str, e, '0');\r\n\r\n return n.s < 0 ? '-' + str : str;\r\n };\r\n\r\n\r\n P._isBigNumber = true;\r\n\r\n if (configObject != null) BigNumber.set(configObject);\r\n\r\n return BigNumber;\r\n }\r\n\r\n\r\n // PRIVATE HELPER FUNCTIONS\r\n\r\n\r\n function bitFloor(n) {\r\n var i = n | 0;\r\n return n > 0 || n === i ? i : i - 1;\r\n }\r\n\r\n\r\n // Return a coefficient array as a string of base 10 digits.\r\n function coeffToString(a) {\r\n var s, z,\r\n i = 1,\r\n j = a.length,\r\n r = a[0] + '';\r\n\r\n for (; i < j;) {\r\n s = a[i++] + '';\r\n z = LOG_BASE - s.length;\r\n for (; z--; s = '0' + s);\r\n r += s;\r\n }\r\n\r\n // Determine trailing zeros.\r\n for (j = r.length; r.charCodeAt(--j) === 48;);\r\n return r.slice(0, j + 1 || 1);\r\n }\r\n\r\n\r\n // Compare the value of BigNumbers x and y.\r\n function compare(x, y) {\r\n var a, b,\r\n xc = x.c,\r\n yc = y.c,\r\n i = x.s,\r\n j = y.s,\r\n k = x.e,\r\n l = y.e;\r\n\r\n // Either NaN?\r\n if (!i || !j) return null;\r\n\r\n a = xc && !xc[0];\r\n b = yc && !yc[0];\r\n\r\n // Either zero?\r\n if (a || b) return a ? b ? 0 : -j : i;\r\n\r\n // Signs differ?\r\n if (i != j) return i;\r\n\r\n a = i < 0;\r\n b = k == l;\r\n\r\n // Either Infinity?\r\n if (!xc || !yc) return b ? 0 : !xc ^ a ? 1 : -1;\r\n\r\n // Compare exponents.\r\n if (!b) return k > l ^ a ? 1 : -1;\r\n\r\n j = (k = xc.length) < (l = yc.length) ? k : l;\r\n\r\n // Compare digit by digit.\r\n for (i = 0; i < j; i++) if (xc[i] != yc[i]) return xc[i] > yc[i] ^ a ? 1 : -1;\r\n\r\n // Compare lengths.\r\n return k == l ? 0 : k > l ^ a ? 1 : -1;\r\n }\r\n\r\n\r\n /*\r\n * Check that n is a primitive number, an integer, and in range, otherwise throw.\r\n */\r\n function intCheck(n, min, max, name) {\r\n if (n < min || n > max || n !== (n < 0 ? mathceil(n) : mathfloor(n))) {\r\n throw Error\r\n (bignumberError + (name || 'Argument') + (typeof n == 'number'\r\n ? n < min || n > max ? ' out of range: ' : ' not an integer: '\r\n : ' not a primitive number: ') + n);\r\n }\r\n }\r\n\r\n\r\n function isArray(obj) {\r\n return Object.prototype.toString.call(obj) == '[object Array]';\r\n }\r\n\r\n\r\n // Assumes finite n.\r\n function isOdd(n) {\r\n var k = n.c.length - 1;\r\n return bitFloor(n.e / LOG_BASE) == k && n.c[k] % 2 != 0;\r\n }\r\n\r\n\r\n function toExponential(str, e) {\r\n return (str.length > 1 ? str.charAt(0) + '.' + str.slice(1) : str) +\r\n (e < 0 ? 'e' : 'e+') + e;\r\n }\r\n\r\n\r\n function toFixedPoint(str, e, z) {\r\n var len, zs;\r\n\r\n // Negative exponent?\r\n if (e < 0) {\r\n\r\n // Prepend zeros.\r\n for (zs = z + '.'; ++e; zs += z);\r\n str = zs + str;\r\n\r\n // Positive exponent\r\n } else {\r\n len = str.length;\r\n\r\n // Append zeros.\r\n if (++e > len) {\r\n for (zs = z, e -= len; --e; zs += z);\r\n str += zs;\r\n } else if (e < len) {\r\n str = str.slice(0, e) + '.' + str.slice(e);\r\n }\r\n }\r\n\r\n return str;\r\n }\r\n\r\n\r\n // EXPORT\r\n\r\n\r\n BigNumber = clone();\r\n BigNumber['default'] = BigNumber.BigNumber = BigNumber;\r\n\r\n // AMD.\r\n if (true) {\r\n !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { return BigNumber; }).call(exports, __webpack_require__, exports, module),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n\r\n // Node.js and other environments that support module.exports.\r\n } else {}\r\n})(this);\r\n\n\n/***/ }),\n\n/***/ 7318:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n// Blake2B in pure Javascript\n// Adapted from the reference implementation in RFC7693\n// Ported to Javascript by DC - https://github.com/dcposch\n\nconst util = __webpack_require__(1022)\n\n// 64-bit unsigned addition\n// Sets v[a,a+1] += v[b,b+1]\n// v should be a Uint32Array\nfunction ADD64AA (v, a, b) {\n const o0 = v[a] + v[b]\n let o1 = v[a + 1] + v[b + 1]\n if (o0 >= 0x100000000) {\n o1++\n }\n v[a] = o0\n v[a + 1] = o1\n}\n\n// 64-bit unsigned addition\n// Sets v[a,a+1] += b\n// b0 is the low 32 bits of b, b1 represents the high 32 bits\nfunction ADD64AC (v, a, b0, b1) {\n let o0 = v[a] + b0\n if (b0 < 0) {\n o0 += 0x100000000\n }\n let o1 = v[a + 1] + b1\n if (o0 >= 0x100000000) {\n o1++\n }\n v[a] = o0\n v[a + 1] = o1\n}\n\n// Little-endian byte access\nfunction B2B_GET32 (arr, i) {\n return arr[i] ^ (arr[i + 1] << 8) ^ (arr[i + 2] << 16) ^ (arr[i + 3] << 24)\n}\n\n// G Mixing function\n// The ROTRs are inlined for speed\nfunction B2B_G (a, b, c, d, ix, iy) {\n const x0 = m[ix]\n const x1 = m[ix + 1]\n const y0 = m[iy]\n const y1 = m[iy + 1]\n\n ADD64AA(v, a, b) // v[a,a+1] += v[b,b+1] ... in JS we must store a uint64 as two uint32s\n ADD64AC(v, a, x0, x1) // v[a, a+1] += x ... x0 is the low 32 bits of x, x1 is the high 32 bits\n\n // v[d,d+1] = (v[d,d+1] xor v[a,a+1]) rotated to the right by 32 bits\n let xor0 = v[d] ^ v[a]\n let xor1 = v[d + 1] ^ v[a + 1]\n v[d] = xor1\n v[d + 1] = xor0\n\n ADD64AA(v, c, d)\n\n // v[b,b+1] = (v[b,b+1] xor v[c,c+1]) rotated right by 24 bits\n xor0 = v[b] ^ v[c]\n xor1 = v[b + 1] ^ v[c + 1]\n v[b] = (xor0 >>> 24) ^ (xor1 << 8)\n v[b + 1] = (xor1 >>> 24) ^ (xor0 << 8)\n\n ADD64AA(v, a, b)\n ADD64AC(v, a, y0, y1)\n\n // v[d,d+1] = (v[d,d+1] xor v[a,a+1]) rotated right by 16 bits\n xor0 = v[d] ^ v[a]\n xor1 = v[d + 1] ^ v[a + 1]\n v[d] = (xor0 >>> 16) ^ (xor1 << 16)\n v[d + 1] = (xor1 >>> 16) ^ (xor0 << 16)\n\n ADD64AA(v, c, d)\n\n // v[b,b+1] = (v[b,b+1] xor v[c,c+1]) rotated right by 63 bits\n xor0 = v[b] ^ v[c]\n xor1 = v[b + 1] ^ v[c + 1]\n v[b] = (xor1 >>> 31) ^ (xor0 << 1)\n v[b + 1] = (xor0 >>> 31) ^ (xor1 << 1)\n}\n\n// Initialization Vector\nconst BLAKE2B_IV32 = new Uint32Array([\n 0xf3bcc908,\n 0x6a09e667,\n 0x84caa73b,\n 0xbb67ae85,\n 0xfe94f82b,\n 0x3c6ef372,\n 0x5f1d36f1,\n 0xa54ff53a,\n 0xade682d1,\n 0x510e527f,\n 0x2b3e6c1f,\n 0x9b05688c,\n 0xfb41bd6b,\n 0x1f83d9ab,\n 0x137e2179,\n 0x5be0cd19\n])\n\nconst SIGMA8 = [\n 0,\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 13,\n 14,\n 15,\n 14,\n 10,\n 4,\n 8,\n 9,\n 15,\n 13,\n 6,\n 1,\n 12,\n 0,\n 2,\n 11,\n 7,\n 5,\n 3,\n 11,\n 8,\n 12,\n 0,\n 5,\n 2,\n 15,\n 13,\n 10,\n 14,\n 3,\n 6,\n 7,\n 1,\n 9,\n 4,\n 7,\n 9,\n 3,\n 1,\n 13,\n 12,\n 11,\n 14,\n 2,\n 6,\n 5,\n 10,\n 4,\n 0,\n 15,\n 8,\n 9,\n 0,\n 5,\n 7,\n 2,\n 4,\n 10,\n 15,\n 14,\n 1,\n 11,\n 12,\n 6,\n 8,\n 3,\n 13,\n 2,\n 12,\n 6,\n 10,\n 0,\n 11,\n 8,\n 3,\n 4,\n 13,\n 7,\n 5,\n 15,\n 14,\n 1,\n 9,\n 12,\n 5,\n 1,\n 15,\n 14,\n 13,\n 4,\n 10,\n 0,\n 7,\n 6,\n 3,\n 9,\n 2,\n 8,\n 11,\n 13,\n 11,\n 7,\n 14,\n 12,\n 1,\n 3,\n 9,\n 5,\n 0,\n 15,\n 4,\n 8,\n 6,\n 2,\n 10,\n 6,\n 15,\n 14,\n 9,\n 11,\n 3,\n 0,\n 8,\n 12,\n 2,\n 13,\n 7,\n 1,\n 4,\n 10,\n 5,\n 10,\n 2,\n 8,\n 4,\n 7,\n 6,\n 1,\n 5,\n 15,\n 11,\n 9,\n 14,\n 3,\n 12,\n 13,\n 0,\n 0,\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 13,\n 14,\n 15,\n 14,\n 10,\n 4,\n 8,\n 9,\n 15,\n 13,\n 6,\n 1,\n 12,\n 0,\n 2,\n 11,\n 7,\n 5,\n 3\n]\n\n// These are offsets into a uint64 buffer.\n// Multiply them all by 2 to make them offsets into a uint32 buffer,\n// because this is Javascript and we don't have uint64s\nconst SIGMA82 = new Uint8Array(\n SIGMA8.map(function (x) {\n return x * 2\n })\n)\n\n// Compression function. 'last' flag indicates last block.\n// Note we're representing 16 uint64s as 32 uint32s\nconst v = new Uint32Array(32)\nconst m = new Uint32Array(32)\nfunction blake2bCompress (ctx, last) {\n let i = 0\n\n // init work variables\n for (i = 0; i < 16; i++) {\n v[i] = ctx.h[i]\n v[i + 16] = BLAKE2B_IV32[i]\n }\n\n // low 64 bits of offset\n v[24] = v[24] ^ ctx.t\n v[25] = v[25] ^ (ctx.t / 0x100000000)\n // high 64 bits not supported, offset may not be higher than 2**53-1\n\n // last block flag set ?\n if (last) {\n v[28] = ~v[28]\n v[29] = ~v[29]\n }\n\n // get little-endian words\n for (i = 0; i < 32; i++) {\n m[i] = B2B_GET32(ctx.b, 4 * i)\n }\n\n // twelve rounds of mixing\n // uncomment the DebugPrint calls to log the computation\n // and match the RFC sample documentation\n // util.debugPrint(' m[16]', m, 64)\n for (i = 0; i < 12; i++) {\n // util.debugPrint(' (i=' + (i < 10 ? ' ' : '') + i + ') v[16]', v, 64)\n B2B_G(0, 8, 16, 24, SIGMA82[i * 16 + 0], SIGMA82[i * 16 + 1])\n B2B_G(2, 10, 18, 26, SIGMA82[i * 16 + 2], SIGMA82[i * 16 + 3])\n B2B_G(4, 12, 20, 28, SIGMA82[i * 16 + 4], SIGMA82[i * 16 + 5])\n B2B_G(6, 14, 22, 30, SIGMA82[i * 16 + 6], SIGMA82[i * 16 + 7])\n B2B_G(0, 10, 20, 30, SIGMA82[i * 16 + 8], SIGMA82[i * 16 + 9])\n B2B_G(2, 12, 22, 24, SIGMA82[i * 16 + 10], SIGMA82[i * 16 + 11])\n B2B_G(4, 14, 16, 26, SIGMA82[i * 16 + 12], SIGMA82[i * 16 + 13])\n B2B_G(6, 8, 18, 28, SIGMA82[i * 16 + 14], SIGMA82[i * 16 + 15])\n }\n // util.debugPrint(' (i=12) v[16]', v, 64)\n\n for (i = 0; i < 16; i++) {\n ctx.h[i] = ctx.h[i] ^ v[i] ^ v[i + 16]\n }\n // util.debugPrint('h[8]', ctx.h, 64)\n}\n\n// Creates a BLAKE2b hashing context\n// Requires an output length between 1 and 64 bytes\n// Takes an optional Uint8Array key\nfunction blake2bInit (outlen, key) {\n if (outlen === 0 || outlen > 64) {\n throw new Error('Illegal output length, expected 0 < length <= 64')\n }\n if (key && key.length > 64) {\n throw new Error('Illegal key, expected Uint8Array with 0 < length <= 64')\n }\n\n // state, 'param block'\n const ctx = {\n b: new Uint8Array(128),\n h: new Uint32Array(16),\n t: 0, // input count\n c: 0, // pointer within buffer\n outlen: outlen // output length in bytes\n }\n\n // initialize hash state\n for (let i = 0; i < 16; i++) {\n ctx.h[i] = BLAKE2B_IV32[i]\n }\n const keylen = key ? key.length : 0\n ctx.h[0] ^= 0x01010000 ^ (keylen << 8) ^ outlen\n\n // key the hash, if applicable\n if (key) {\n blake2bUpdate(ctx, key)\n // at the end\n ctx.c = 128\n }\n\n return ctx\n}\n\n// Updates a BLAKE2b streaming hash\n// Requires hash context and Uint8Array (byte array)\nfunction blake2bUpdate (ctx, input) {\n for (let i = 0; i < input.length; i++) {\n if (ctx.c === 128) {\n // buffer full ?\n ctx.t += ctx.c // add counters\n blake2bCompress(ctx, false) // compress (not last)\n ctx.c = 0 // counter to zero\n }\n ctx.b[ctx.c++] = input[i]\n }\n}\n\n// Completes a BLAKE2b streaming hash\n// Returns a Uint8Array containing the message digest\nfunction blake2bFinal (ctx) {\n ctx.t += ctx.c // mark last block offset\n\n while (ctx.c < 128) {\n // fill up with zeros\n ctx.b[ctx.c++] = 0\n }\n blake2bCompress(ctx, true) // final block flag = 1\n\n // little endian convert and store\n const out = new Uint8Array(ctx.outlen)\n for (let i = 0; i < ctx.outlen; i++) {\n out[i] = ctx.h[i >> 2] >> (8 * (i & 3))\n }\n return out\n}\n\n// Computes the BLAKE2B hash of a string or byte array, and returns a Uint8Array\n//\n// Returns a n-byte Uint8Array\n//\n// Parameters:\n// - input - the input bytes, as a string, Buffer or Uint8Array\n// - key - optional key Uint8Array, up to 64 bytes\n// - outlen - optional output length in bytes, default 64\nfunction blake2b (input, key, outlen) {\n // preprocess inputs\n outlen = outlen || 64\n input = util.normalizeInput(input)\n\n // do the math\n const ctx = blake2bInit(outlen, key)\n blake2bUpdate(ctx, input)\n return blake2bFinal(ctx)\n}\n\n// Computes the BLAKE2B hash of a string or byte array\n//\n// Returns an n-byte hash in hex, all lowercase\n//\n// Parameters:\n// - input - the input bytes, as a string, Buffer, or Uint8Array\n// - key - optional key Uint8Array, up to 64 bytes\n// - outlen - optional output length in bytes, default 64\nfunction blake2bHex (input, key, outlen) {\n const output = blake2b(input, key, outlen)\n return util.toHex(output)\n}\n\nmodule.exports = {\n blake2b: blake2b,\n blake2bHex: blake2bHex,\n blake2bInit: blake2bInit,\n blake2bUpdate: blake2bUpdate,\n blake2bFinal: blake2bFinal\n}\n\n\n/***/ }),\n\n/***/ 8855:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n// BLAKE2s hash function in pure Javascript\n// Adapted from the reference implementation in RFC7693\n// Ported to Javascript by DC - https://github.com/dcposch\n\nconst util = __webpack_require__(1022)\n\n// Little-endian byte access.\n// Expects a Uint8Array and an index\n// Returns the little-endian uint32 at v[i..i+3]\nfunction B2S_GET32 (v, i) {\n return v[i] ^ (v[i + 1] << 8) ^ (v[i + 2] << 16) ^ (v[i + 3] << 24)\n}\n\n// Mixing function G.\nfunction B2S_G (a, b, c, d, x, y) {\n v[a] = v[a] + v[b] + x\n v[d] = ROTR32(v[d] ^ v[a], 16)\n v[c] = v[c] + v[d]\n v[b] = ROTR32(v[b] ^ v[c], 12)\n v[a] = v[a] + v[b] + y\n v[d] = ROTR32(v[d] ^ v[a], 8)\n v[c] = v[c] + v[d]\n v[b] = ROTR32(v[b] ^ v[c], 7)\n}\n\n// 32-bit right rotation\n// x should be a uint32\n// y must be between 1 and 31, inclusive\nfunction ROTR32 (x, y) {\n return (x >>> y) ^ (x << (32 - y))\n}\n\n// Initialization Vector.\nconst BLAKE2S_IV = new Uint32Array([\n 0x6a09e667,\n 0xbb67ae85,\n 0x3c6ef372,\n 0xa54ff53a,\n 0x510e527f,\n 0x9b05688c,\n 0x1f83d9ab,\n 0x5be0cd19\n])\n\nconst SIGMA = new Uint8Array([\n 0,\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 13,\n 14,\n 15,\n 14,\n 10,\n 4,\n 8,\n 9,\n 15,\n 13,\n 6,\n 1,\n 12,\n 0,\n 2,\n 11,\n 7,\n 5,\n 3,\n 11,\n 8,\n 12,\n 0,\n 5,\n 2,\n 15,\n 13,\n 10,\n 14,\n 3,\n 6,\n 7,\n 1,\n 9,\n 4,\n 7,\n 9,\n 3,\n 1,\n 13,\n 12,\n 11,\n 14,\n 2,\n 6,\n 5,\n 10,\n 4,\n 0,\n 15,\n 8,\n 9,\n 0,\n 5,\n 7,\n 2,\n 4,\n 10,\n 15,\n 14,\n 1,\n 11,\n 12,\n 6,\n 8,\n 3,\n 13,\n 2,\n 12,\n 6,\n 10,\n 0,\n 11,\n 8,\n 3,\n 4,\n 13,\n 7,\n 5,\n 15,\n 14,\n 1,\n 9,\n 12,\n 5,\n 1,\n 15,\n 14,\n 13,\n 4,\n 10,\n 0,\n 7,\n 6,\n 3,\n 9,\n 2,\n 8,\n 11,\n 13,\n 11,\n 7,\n 14,\n 12,\n 1,\n 3,\n 9,\n 5,\n 0,\n 15,\n 4,\n 8,\n 6,\n 2,\n 10,\n 6,\n 15,\n 14,\n 9,\n 11,\n 3,\n 0,\n 8,\n 12,\n 2,\n 13,\n 7,\n 1,\n 4,\n 10,\n 5,\n 10,\n 2,\n 8,\n 4,\n 7,\n 6,\n 1,\n 5,\n 15,\n 11,\n 9,\n 14,\n 3,\n 12,\n 13,\n 0\n])\n\n// Compression function. \"last\" flag indicates last block\nconst v = new Uint32Array(16)\nconst m = new Uint32Array(16)\nfunction blake2sCompress (ctx, last) {\n let i = 0\n for (i = 0; i < 8; i++) {\n // init work variables\n v[i] = ctx.h[i]\n v[i + 8] = BLAKE2S_IV[i]\n }\n\n v[12] ^= ctx.t // low 32 bits of offset\n v[13] ^= ctx.t / 0x100000000 // high 32 bits\n if (last) {\n // last block flag set ?\n v[14] = ~v[14]\n }\n\n for (i = 0; i < 16; i++) {\n // get little-endian words\n m[i] = B2S_GET32(ctx.b, 4 * i)\n }\n\n // ten rounds of mixing\n // uncomment the DebugPrint calls to log the computation\n // and match the RFC sample documentation\n // util.debugPrint(' m[16]', m, 32)\n for (i = 0; i < 10; i++) {\n // util.debugPrint(' (i=' + i + ') v[16]', v, 32)\n B2S_G(0, 4, 8, 12, m[SIGMA[i * 16 + 0]], m[SIGMA[i * 16 + 1]])\n B2S_G(1, 5, 9, 13, m[SIGMA[i * 16 + 2]], m[SIGMA[i * 16 + 3]])\n B2S_G(2, 6, 10, 14, m[SIGMA[i * 16 + 4]], m[SIGMA[i * 16 + 5]])\n B2S_G(3, 7, 11, 15, m[SIGMA[i * 16 + 6]], m[SIGMA[i * 16 + 7]])\n B2S_G(0, 5, 10, 15, m[SIGMA[i * 16 + 8]], m[SIGMA[i * 16 + 9]])\n B2S_G(1, 6, 11, 12, m[SIGMA[i * 16 + 10]], m[SIGMA[i * 16 + 11]])\n B2S_G(2, 7, 8, 13, m[SIGMA[i * 16 + 12]], m[SIGMA[i * 16 + 13]])\n B2S_G(3, 4, 9, 14, m[SIGMA[i * 16 + 14]], m[SIGMA[i * 16 + 15]])\n }\n // util.debugPrint(' (i=10) v[16]', v, 32)\n\n for (i = 0; i < 8; i++) {\n ctx.h[i] ^= v[i] ^ v[i + 8]\n }\n // util.debugPrint('h[8]', ctx.h, 32)\n}\n\n// Creates a BLAKE2s hashing context\n// Requires an output length between 1 and 32 bytes\n// Takes an optional Uint8Array key\nfunction blake2sInit (outlen, key) {\n if (!(outlen > 0 && outlen <= 32)) {\n throw new Error('Incorrect output length, should be in [1, 32]')\n }\n const keylen = key ? key.length : 0\n if (key && !(keylen > 0 && keylen <= 32)) {\n throw new Error('Incorrect key length, should be in [1, 32]')\n }\n\n const ctx = {\n h: new Uint32Array(BLAKE2S_IV), // hash state\n b: new Uint8Array(64), // input block\n c: 0, // pointer within block\n t: 0, // input count\n outlen: outlen // output length in bytes\n }\n ctx.h[0] ^= 0x01010000 ^ (keylen << 8) ^ outlen\n\n if (keylen > 0) {\n blake2sUpdate(ctx, key)\n ctx.c = 64 // at the end\n }\n\n return ctx\n}\n\n// Updates a BLAKE2s streaming hash\n// Requires hash context and Uint8Array (byte array)\nfunction blake2sUpdate (ctx, input) {\n for (let i = 0; i < input.length; i++) {\n if (ctx.c === 64) {\n // buffer full ?\n ctx.t += ctx.c // add counters\n blake2sCompress(ctx, false) // compress (not last)\n ctx.c = 0 // counter to zero\n }\n ctx.b[ctx.c++] = input[i]\n }\n}\n\n// Completes a BLAKE2s streaming hash\n// Returns a Uint8Array containing the message digest\nfunction blake2sFinal (ctx) {\n ctx.t += ctx.c // mark last block offset\n while (ctx.c < 64) {\n // fill up with zeros\n ctx.b[ctx.c++] = 0\n }\n blake2sCompress(ctx, true) // final block flag = 1\n\n // little endian convert and store\n const out = new Uint8Array(ctx.outlen)\n for (let i = 0; i < ctx.outlen; i++) {\n out[i] = (ctx.h[i >> 2] >> (8 * (i & 3))) & 0xff\n }\n return out\n}\n\n// Computes the BLAKE2S hash of a string or byte array, and returns a Uint8Array\n//\n// Returns a n-byte Uint8Array\n//\n// Parameters:\n// - input - the input bytes, as a string, Buffer, or Uint8Array\n// - key - optional key Uint8Array, up to 32 bytes\n// - outlen - optional output length in bytes, default 64\nfunction blake2s (input, key, outlen) {\n // preprocess inputs\n outlen = outlen || 32\n input = util.normalizeInput(input)\n\n // do the math\n const ctx = blake2sInit(outlen, key)\n blake2sUpdate(ctx, input)\n return blake2sFinal(ctx)\n}\n\n// Computes the BLAKE2S hash of a string or byte array\n//\n// Returns an n-byte hash in hex, all lowercase\n//\n// Parameters:\n// - input - the input bytes, as a string, Buffer, or Uint8Array\n// - key - optional key Uint8Array, up to 32 bytes\n// - outlen - optional output length in bytes, default 64\nfunction blake2sHex (input, key, outlen) {\n const output = blake2s(input, key, outlen)\n return util.toHex(output)\n}\n\nmodule.exports = {\n blake2s: blake2s,\n blake2sHex: blake2sHex,\n blake2sInit: blake2sInit,\n blake2sUpdate: blake2sUpdate,\n blake2sFinal: blake2sFinal\n}\n\n\n/***/ }),\n\n/***/ 1161:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\nconst b2b = __webpack_require__(7318)\nconst b2s = __webpack_require__(8855)\n\nmodule.exports = {\n blake2b: b2b.blake2b,\n blake2bHex: b2b.blake2bHex,\n blake2bInit: b2b.blake2bInit,\n blake2bUpdate: b2b.blake2bUpdate,\n blake2bFinal: b2b.blake2bFinal,\n blake2s: b2s.blake2s,\n blake2sHex: b2s.blake2sHex,\n blake2sInit: b2s.blake2sInit,\n blake2sUpdate: b2s.blake2sUpdate,\n blake2sFinal: b2s.blake2sFinal\n}\n\n\n/***/ }),\n\n/***/ 1022:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/* provided dependency */ var Buffer = __webpack_require__(8764)[\"Buffer\"];\nconst ERROR_MSG_INPUT = 'Input must be an string, Buffer or Uint8Array'\n\n// For convenience, let people hash a string, not just a Uint8Array\nfunction normalizeInput (input) {\n let ret\n if (input instanceof Uint8Array) {\n ret = input\n } else if (input instanceof Buffer) {\n ret = new Uint8Array(input)\n } else if (typeof input === 'string') {\n ret = new Uint8Array(Buffer.from(input, 'utf8'))\n } else {\n throw new Error(ERROR_MSG_INPUT)\n }\n return ret\n}\n\n// Converts a Uint8Array to a hexadecimal string\n// For example, toHex([255, 0, 255]) returns \"ff00ff\"\nfunction toHex (bytes) {\n return Array.prototype.map\n .call(bytes, function (n) {\n return (n < 16 ? '0' : '') + n.toString(16)\n })\n .join('')\n}\n\n// Converts any value in [0...2^32-1] to an 8-character hex string\nfunction uint32ToHex (val) {\n return (0x100000000 + val).toString(16).substring(1)\n}\n\n// For debugging: prints out hash state in the same format as the RFC\n// sample computation exactly, so that you can diff\nfunction debugPrint (label, arr, size) {\n let msg = '\\n' + label + ' = '\n for (let i = 0; i < arr.length; i += 2) {\n if (size === 32) {\n msg += uint32ToHex(arr[i]).toUpperCase()\n msg += ' '\n msg += uint32ToHex(arr[i + 1]).toUpperCase()\n } else if (size === 64) {\n msg += uint32ToHex(arr[i + 1]).toUpperCase()\n msg += uint32ToHex(arr[i]).toUpperCase()\n } else throw new Error('Invalid size ' + size)\n if (i % 6 === 4) {\n msg += '\\n' + new Array(label.length + 4).join(' ')\n } else if (i < arr.length - 2) {\n msg += ' '\n }\n }\n console.log(msg)\n}\n\n// For performance testing: generates N bytes of input, hashes M times\n// Measures and prints MB/second hash performance each time\nfunction testSpeed (hashFn, N, M) {\n let startMs = new Date().getTime()\n\n const input = new Uint8Array(N)\n for (let i = 0; i < N; i++) {\n input[i] = i % 256\n }\n const genMs = new Date().getTime()\n console.log('Generated random input in ' + (genMs - startMs) + 'ms')\n startMs = genMs\n\n for (let i = 0; i < M; i++) {\n const hashHex = hashFn(input)\n const hashMs = new Date().getTime()\n const ms = hashMs - startMs\n startMs = hashMs\n console.log('Hashed in ' + ms + 'ms: ' + hashHex.substring(0, 20) + '...')\n console.log(\n Math.round((N / (1 << 20) / (ms / 1000)) * 100) / 100 + ' MB PER SECOND'\n )\n }\n}\n\nmodule.exports = {\n normalizeInput: normalizeInput,\n toHex: toHex,\n debugPrint: debugPrint,\n testSpeed: testSpeed\n}\n\n\n/***/ }),\n\n/***/ 9347:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n// https://github.com/maxogden/websocket-stream/blob/48dc3ddf943e5ada668c31ccd94e9186f02fafbd/ws-fallback.js\n\nvar ws = null\n\nif (typeof WebSocket !== 'undefined') {\n ws = WebSocket\n} else if (typeof MozWebSocket !== 'undefined') {\n ws = MozWebSocket\n} else if (typeof __webpack_require__.g !== 'undefined') {\n ws = __webpack_require__.g.WebSocket || __webpack_require__.g.MozWebSocket\n} else if (typeof window !== 'undefined') {\n ws = window.WebSocket || window.MozWebSocket\n} else if (typeof self !== 'undefined') {\n ws = self.WebSocket || self.MozWebSocket\n}\n\nmodule.exports = ws\n\n\n/***/ }),\n\n/***/ 9992:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\n\n// A linked list to keep track of recently-used-ness\nconst Yallist = __webpack_require__(7279)\n\nconst MAX = Symbol('max')\nconst LENGTH = Symbol('length')\nconst LENGTH_CALCULATOR = Symbol('lengthCalculator')\nconst ALLOW_STALE = Symbol('allowStale')\nconst MAX_AGE = Symbol('maxAge')\nconst DISPOSE = Symbol('dispose')\nconst NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')\nconst LRU_LIST = Symbol('lruList')\nconst CACHE = Symbol('cache')\nconst UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')\n\nconst naiveLength = () => 1\n\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass LRUCache {\n constructor (options) {\n if (typeof options === 'number')\n options = { max: options }\n\n if (!options)\n options = {}\n\n if (options.max && (typeof options.max !== 'number' || options.max < 0))\n throw new TypeError('max must be a non-negative number')\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[MAX] = options.max || Infinity\n\n const lc = options.length || naiveLength\n this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc\n this[ALLOW_STALE] = options.stale || false\n if (options.maxAge && typeof options.maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n this[MAX_AGE] = options.maxAge || 0\n this[DISPOSE] = options.dispose\n this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false\n this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false\n this.reset()\n }\n\n // resize the cache when the max changes.\n set max (mL) {\n if (typeof mL !== 'number' || mL < 0)\n throw new TypeError('max must be a non-negative number')\n\n this[MAX] = mL || Infinity\n trim(this)\n }\n get max () {\n return this[MAX]\n }\n\n set allowStale (allowStale) {\n this[ALLOW_STALE] = !!allowStale\n }\n get allowStale () {\n return this[ALLOW_STALE]\n }\n\n set maxAge (mA) {\n if (typeof mA !== 'number')\n throw new TypeError('maxAge must be a non-negative number')\n\n this[MAX_AGE] = mA\n trim(this)\n }\n get maxAge () {\n return this[MAX_AGE]\n }\n\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator (lC) {\n if (typeof lC !== 'function')\n lC = naiveLength\n\n if (lC !== this[LENGTH_CALCULATOR]) {\n this[LENGTH_CALCULATOR] = lC\n this[LENGTH] = 0\n this[LRU_LIST].forEach(hit => {\n hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)\n this[LENGTH] += hit.length\n })\n }\n trim(this)\n }\n get lengthCalculator () { return this[LENGTH_CALCULATOR] }\n\n get length () { return this[LENGTH] }\n get itemCount () { return this[LRU_LIST].length }\n\n rforEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].tail; walker !== null;) {\n const prev = walker.prev\n forEachStep(this, fn, walker, thisp)\n walker = prev\n }\n }\n\n forEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].head; walker !== null;) {\n const next = walker.next\n forEachStep(this, fn, walker, thisp)\n walker = next\n }\n }\n\n keys () {\n return this[LRU_LIST].toArray().map(k => k.key)\n }\n\n values () {\n return this[LRU_LIST].toArray().map(k => k.value)\n }\n\n reset () {\n if (this[DISPOSE] &&\n this[LRU_LIST] &&\n this[LRU_LIST].length) {\n this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))\n }\n\n this[CACHE] = new Map() // hash of items by key\n this[LRU_LIST] = new Yallist() // list of items in order of use recency\n this[LENGTH] = 0 // length of items in the list\n }\n\n dump () {\n return this[LRU_LIST].map(hit =>\n isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter(h => h)\n }\n\n dumpLru () {\n return this[LRU_LIST]\n }\n\n set (key, value, maxAge) {\n maxAge = maxAge || this[MAX_AGE]\n\n if (maxAge && typeof maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n\n const now = maxAge ? Date.now() : 0\n const len = this[LENGTH_CALCULATOR](value, key)\n\n if (this[CACHE].has(key)) {\n if (len > this[MAX]) {\n del(this, this[CACHE].get(key))\n return false\n }\n\n const node = this[CACHE].get(key)\n const item = node.value\n\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[DISPOSE]) {\n if (!this[NO_DISPOSE_ON_SET])\n this[DISPOSE](key, item.value)\n }\n\n item.now = now\n item.maxAge = maxAge\n item.value = value\n this[LENGTH] += len - item.length\n item.length = len\n this.get(key)\n trim(this)\n return true\n }\n\n const hit = new Entry(key, value, len, now, maxAge)\n\n // oversized objects fall out of cache automatically.\n if (hit.length > this[MAX]) {\n if (this[DISPOSE])\n this[DISPOSE](key, value)\n\n return false\n }\n\n this[LENGTH] += hit.length\n this[LRU_LIST].unshift(hit)\n this[CACHE].set(key, this[LRU_LIST].head)\n trim(this)\n return true\n }\n\n has (key) {\n if (!this[CACHE].has(key)) return false\n const hit = this[CACHE].get(key).value\n return !isStale(this, hit)\n }\n\n get (key) {\n return get(this, key, true)\n }\n\n peek (key) {\n return get(this, key, false)\n }\n\n pop () {\n const node = this[LRU_LIST].tail\n if (!node)\n return null\n\n del(this, node)\n return node.value\n }\n\n del (key) {\n del(this, this[CACHE].get(key))\n }\n\n load (arr) {\n // reset the cache\n this.reset()\n\n const now = Date.now()\n // A previous serialized cache has the most recent items first\n for (let l = arr.length - 1; l >= 0; l--) {\n const hit = arr[l]\n const expiresAt = hit.e || 0\n if (expiresAt === 0)\n // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v)\n else {\n const maxAge = expiresAt - now\n // dont add already expired items\n if (maxAge > 0) {\n this.set(hit.k, hit.v, maxAge)\n }\n }\n }\n }\n\n prune () {\n this[CACHE].forEach((value, key) => get(this, key, false))\n }\n}\n\nconst get = (self, key, doUse) => {\n const node = self[CACHE].get(key)\n if (node) {\n const hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n return undefined\n } else {\n if (doUse) {\n if (self[UPDATE_AGE_ON_GET])\n node.value.now = Date.now()\n self[LRU_LIST].unshiftNode(node)\n }\n }\n return hit.value\n }\n}\n\nconst isStale = (self, hit) => {\n if (!hit || (!hit.maxAge && !self[MAX_AGE]))\n return false\n\n const diff = Date.now() - hit.now\n return hit.maxAge ? diff > hit.maxAge\n : self[MAX_AGE] && (diff > self[MAX_AGE])\n}\n\nconst trim = self => {\n if (self[LENGTH] > self[MAX]) {\n for (let walker = self[LRU_LIST].tail;\n self[LENGTH] > self[MAX] && walker !== null;) {\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev\n del(self, walker)\n walker = prev\n }\n }\n}\n\nconst del = (self, node) => {\n if (node) {\n const hit = node.value\n if (self[DISPOSE])\n self[DISPOSE](hit.key, hit.value)\n\n self[LENGTH] -= hit.length\n self[CACHE].delete(hit.key)\n self[LRU_LIST].removeNode(node)\n }\n}\n\nclass Entry {\n constructor (key, value, length, now, maxAge) {\n this.key = key\n this.value = value\n this.length = length\n this.now = now\n this.maxAge = maxAge || 0\n }\n}\n\nconst forEachStep = (self, fn, node, thisp) => {\n let hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n hit = undefined\n }\n if (hit)\n fn.call(thisp, hit.value, hit.key, self)\n}\n\nmodule.exports = LRUCache\n\n\n/***/ }),\n\n/***/ 862:\n/***/ ((module) => {\n\n\"use strict\";\n\nmodule.exports = function (Yallist) {\n Yallist.prototype[Symbol.iterator] = function* () {\n for (let walker = this.head; walker; walker = walker.next) {\n yield walker.value\n }\n }\n}\n\n\n/***/ }),\n\n/***/ 7279:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n\"use strict\";\n\nmodule.exports = Yallist\n\nYallist.Node = Node\nYallist.create = Yallist\n\nfunction Yallist (list) {\n var self = this\n if (!(self instanceof Yallist)) {\n self = new Yallist()\n }\n\n self.tail = null\n self.head = null\n self.length = 0\n\n if (list && typeof list.forEach === 'function') {\n list.forEach(function (item) {\n self.push(item)\n })\n } else if (arguments.length > 0) {\n for (var i = 0, l = arguments.length; i < l; i++) {\n self.push(arguments[i])\n }\n }\n\n return self\n}\n\nYallist.prototype.removeNode = function (node) {\n if (node.list !== this) {\n throw new Error('removing node which does not belong to this list')\n }\n\n var next = node.next\n var prev = node.prev\n\n if (next) {\n next.prev = prev\n }\n\n if (prev) {\n prev.next = next\n }\n\n if (node === this.head) {\n this.head = next\n }\n if (node === this.tail) {\n this.tail = prev\n }\n\n node.list.length--\n node.next = null\n node.prev = null\n node.list = null\n}\n\nYallist.prototype.unshiftNode = function (node) {\n if (node === this.head) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var head = this.head\n node.list = this\n node.next = head\n if (head) {\n head.prev = node\n }\n\n this.head = node\n if (!this.tail) {\n this.tail = node\n }\n this.length++\n}\n\nYallist.prototype.pushNode = function (node) {\n if (node === this.tail) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var tail = this.tail\n node.list = this\n node.prev = tail\n if (tail) {\n tail.next = node\n }\n\n this.tail = node\n if (!this.head) {\n this.head = node\n }\n this.length++\n}\n\nYallist.prototype.push = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n push(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.unshift = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n unshift(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.pop = function () {\n if (!this.tail) {\n return undefined\n }\n\n var res = this.tail.value\n this.tail = this.tail.prev\n if (this.tail) {\n this.tail.next = null\n } else {\n this.head = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.shift = function () {\n if (!this.head) {\n return undefined\n }\n\n var res = this.head.value\n this.head = this.head.next\n if (this.head) {\n this.head.prev = null\n } else {\n this.tail = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.head, i = 0; walker !== null; i++) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.next\n }\n}\n\nYallist.prototype.forEachReverse = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.prev\n }\n}\n\nYallist.prototype.get = function (n) {\n for (var i = 0, walker = this.head; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.next\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.getReverse = function (n) {\n for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.prev\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.map = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.head; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.next\n }\n return res\n}\n\nYallist.prototype.mapReverse = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.tail; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.prev\n }\n return res\n}\n\nYallist.prototype.reduce = function (fn, initial) {\n var acc\n var walker = this.head\n if (arguments.length > 1) {\n acc = initial\n } else if (this.head) {\n walker = this.head.next\n acc = this.head.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = 0; walker !== null; i++) {\n acc = fn(acc, walker.value, i)\n walker = walker.next\n }\n\n return acc\n}\n\nYallist.prototype.reduceReverse = function (fn, initial) {\n var acc\n var walker = this.tail\n if (arguments.length > 1) {\n acc = initial\n } else if (this.tail) {\n walker = this.tail.prev\n acc = this.tail.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = this.length - 1; walker !== null; i--) {\n acc = fn(acc, walker.value, i)\n walker = walker.prev\n }\n\n return acc\n}\n\nYallist.prototype.toArray = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.head; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.next\n }\n return arr\n}\n\nYallist.prototype.toArrayReverse = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.tail; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.prev\n }\n return arr\n}\n\nYallist.prototype.slice = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = 0, walker = this.head; walker !== null && i < from; i++) {\n walker = walker.next\n }\n for (; walker !== null && i < to; i++, walker = walker.next) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.sliceReverse = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {\n walker = walker.prev\n }\n for (; walker !== null && i > from; i--, walker = walker.prev) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.reverse = function () {\n var head = this.head\n var tail = this.tail\n for (var walker = head; walker !== null; walker = walker.prev) {\n var p = walker.prev\n walker.prev = walker.next\n walker.next = p\n }\n this.head = tail\n this.tail = head\n return this\n}\n\nfunction push (self, item) {\n self.tail = new Node(item, self.tail, null, self)\n if (!self.head) {\n self.head = self.tail\n }\n self.length++\n}\n\nfunction unshift (self, item) {\n self.head = new Node(item, null, self.head, self)\n if (!self.tail) {\n self.tail = self.head\n }\n self.length++\n}\n\nfunction Node (value, prev, next, list) {\n if (!(this instanceof Node)) {\n return new Node(value, prev, next, list)\n }\n\n this.list = list\n this.value = value\n\n if (prev) {\n prev.next = this\n this.prev = prev\n } else {\n this.prev = null\n }\n\n if (next) {\n next.prev = this\n this.next = next\n } else {\n this.next = null\n }\n}\n\ntry {\n // add if support for Symbol.iterator is present\n __webpack_require__(862)(Yallist)\n} catch (er) {}\n\n\n/***/ }),\n\n/***/ 2253:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\"use strict\";\nvar __webpack_unused_export__;\n\n__webpack_unused_export__ = ({ value: true });\n__webpack_unused_export__ = exports.Lk = __webpack_unused_export__ = exports.Kw = __webpack_unused_export__ = exports.H9 = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = exports.Bu = exports.zx = exports.F8 = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = __webpack_unused_export__ = void 0;\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nfunction isDecString(val) {\n return typeof val === 'string' && /^[0-9]+$/.test(val);\n}\n__webpack_unused_export__ = isDecString;\nfunction isHexString(val) {\n return typeof val === 'string' && /^0x[0-9a-f]+$/i.test(val);\n}\n__webpack_unused_export__ = isHexString;\nfunction isHexBytes(val, n) {\n if (typeof val !== 'string' || !/^0x[0-9a-f]*$/i.test(val)) {\n return false;\n }\n return n ? val.length === n * 2 + 2 : val.length % 2 === 0;\n}\n__webpack_unused_export__ = isHexBytes;\nfunction isUInt(val, bit) {\n if (val < 0 || !Number.isInteger(val)) {\n return false;\n }\n return bit ? val < Math.pow(2, bit) : true;\n}\n__webpack_unused_export__ = isUInt;\nfunction isBigInt(v) {\n return typeof v === 'string' ?\n (isDecString(v) || isHexString(v)) :\n isUInt(v, 0);\n}\n__webpack_unused_export__ = isBigInt;\nclass BadParameter extends Error {\n constructor(msg) {\n super(msg);\n }\n}\nexports.F8 = BadParameter;\nBadParameter.prototype.name = 'BadParameter';\nfunction ensure(b, msg) {\n if (!b) {\n throw new BadParameter(msg);\n }\n}\nexports.zx = ensure;\nconst V = __webpack_require__(6462);\nfunction test(value, scheme, context) {\n try {\n return V.validate(value, scheme, context);\n }\n catch (err) {\n if (err instanceof V.ValidationError) {\n throw new BadParameter(err.message);\n }\n throw err;\n }\n}\nexports.Bu = test;\n// rules\nfunction bytes(v) {\n return isHexBytes(v) ? '' : 'expected bytes in hex string';\n}\n__webpack_unused_export__ = bytes;\nfunction bytes8(v) {\n return isHexBytes(v, 8) ? '' : 'expected bytes8';\n}\n__webpack_unused_export__ = bytes8;\nfunction bytes32(v) {\n return isHexBytes(v, 32) ? '' : 'expected bytes32';\n}\n__webpack_unused_export__ = bytes32;\nfunction uint8(v) {\n return isUInt(v, 8) ? '' : 'expected 8-bit unsigned integer';\n}\n__webpack_unused_export__ = uint8;\nfunction uint32(v) {\n return isUInt(v, 32) ? '' : 'expected 32-bit unsigned integer';\n}\n__webpack_unused_export__ = uint32;\nfunction uint64(v) {\n return isUInt(v, 64) ? '' : 'expected 64-bit unsigned integer';\n}\nexports.H9 = uint64;\nfunction bool(v) {\n return typeof v === 'boolean' ? '' : 'expected boolean';\n}\n__webpack_unused_export__ = bool;\nfunction bigInt(v) {\n return isBigInt(v) ? '' : 'expected unsigned integer in number or string';\n}\nexports.Kw = bigInt;\nfunction hexString(v) {\n return isHexString(v) ? '' : 'expected integer in hex string';\n}\n__webpack_unused_export__ = hexString;\nfunction address(v) {\n return isHexBytes(v, 20) ? '' : 'expected address';\n}\nexports.Lk = address;\nfunction string(v) {\n return typeof v === 'string' ? '' : 'expected string';\n}\n__webpack_unused_export__ = string;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnVsZXMuanMiLCJzb3VyY2VSb290I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/ 3609:\n/***/ ((__unused_webpack_module, exports) => {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nexports.version = \"4.0.27-5\";\n\n\n/***/ }),\n\n/***/ 8707:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar bignumber_1 = __webpack_require__(4759);\nvar AddressZero = '0x0000000000000000000000000000000000000000';\nexports.AddressZero = AddressZero;\nvar HashZero = '0x0000000000000000000000000000000000000000000000000000000000000000';\nexports.HashZero = HashZero;\n// NFKD (decomposed)\n//const EtherSymbol = '\\uD835\\uDF63';\n// NFKC (composed)\nvar EtherSymbol = '\\u039e';\nexports.EtherSymbol = EtherSymbol;\nvar NegativeOne = bignumber_1.bigNumberify(-1);\nexports.NegativeOne = NegativeOne;\nvar Zero = bignumber_1.bigNumberify(0);\nexports.Zero = Zero;\nvar One = bignumber_1.bigNumberify(1);\nexports.One = One;\nvar Two = bignumber_1.bigNumberify(2);\nexports.Two = Two;\nvar WeiPerEther = bignumber_1.bigNumberify('1000000000000000000');\nexports.WeiPerEther = WeiPerEther;\nvar MaxUint256 = bignumber_1.bigNumberify('0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff');\nexports.MaxUint256 = MaxUint256;\n\n\n/***/ }),\n\n/***/ 6459:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar _version_1 = __webpack_require__(3609);\n// Unknown Error\nexports.UNKNOWN_ERROR = 'UNKNOWN_ERROR';\n// Not implemented\nexports.NOT_IMPLEMENTED = 'NOT_IMPLEMENTED';\n// Missing new operator to an object\n// - name: The name of the class\nexports.MISSING_NEW = 'MISSING_NEW';\n// Call exception\n// - transaction: the transaction\n// - address?: the contract address\n// - args?: The arguments passed into the function\n// - method?: The Solidity method signature\n// - errorSignature?: The EIP848 error signature\n// - errorArgs?: The EIP848 error parameters\n// - reason: The reason (only for EIP848 \"Error(string)\")\nexports.CALL_EXCEPTION = 'CALL_EXCEPTION';\n// Invalid argument (e.g. value is incompatible with type) to a function:\n// - argument: The argument name that was invalid\n// - value: The value of the argument\nexports.INVALID_ARGUMENT = 'INVALID_ARGUMENT';\n// Missing argument to a function:\n// - count: The number of arguments received\n// - expectedCount: The number of arguments expected\nexports.MISSING_ARGUMENT = 'MISSING_ARGUMENT';\n// Too many arguments\n// - count: The number of arguments received\n// - expectedCount: The number of arguments expected\nexports.UNEXPECTED_ARGUMENT = 'UNEXPECTED_ARGUMENT';\n// Numeric Fault\n// - operation: the operation being executed\n// - fault: the reason this faulted\nexports.NUMERIC_FAULT = 'NUMERIC_FAULT';\n// Insufficien funds (< value + gasLimit * gasPrice)\n// - transaction: the transaction attempted\nexports.INSUFFICIENT_FUNDS = 'INSUFFICIENT_FUNDS';\n// Nonce has already been used\n// - transaction: the transaction attempted\nexports.NONCE_EXPIRED = 'NONCE_EXPIRED';\n// The replacement fee for the transaction is too low\n// - transaction: the transaction attempted\nexports.REPLACEMENT_UNDERPRICED = 'REPLACEMENT_UNDERPRICED';\n// Unsupported operation\n// - operation\nexports.UNSUPPORTED_OPERATION = 'UNSUPPORTED_OPERATION';\nvar _permanentCensorErrors = false;\nvar _censorErrors = false;\n// @TODO: Enum\nfunction throwError(message, code, params) {\n if (_censorErrors) {\n throw new Error('unknown error');\n }\n if (!code) {\n code = exports.UNKNOWN_ERROR;\n }\n if (!params) {\n params = {};\n }\n var messageDetails = [];\n Object.keys(params).forEach(function (key) {\n try {\n messageDetails.push(key + '=' + JSON.stringify(params[key]));\n }\n catch (error) {\n messageDetails.push(key + '=' + JSON.stringify(params[key].toString()));\n }\n });\n messageDetails.push(\"version=\" + _version_1.version);\n var reason = message;\n if (messageDetails.length) {\n message += ' (' + messageDetails.join(', ') + ')';\n }\n // @TODO: Any??\n var error = new Error(message);\n error.reason = reason;\n error.code = code;\n Object.keys(params).forEach(function (key) {\n error[key] = params[key];\n });\n throw error;\n}\nexports.throwError = throwError;\nfunction checkNew(self, kind) {\n if (!(self instanceof kind)) {\n throwError('missing new', exports.MISSING_NEW, { name: kind.name });\n }\n}\nexports.checkNew = checkNew;\nfunction checkArgumentCount(count, expectedCount, suffix) {\n if (!suffix) {\n suffix = '';\n }\n if (count < expectedCount) {\n throwError('missing argument' + suffix, exports.MISSING_ARGUMENT, { count: count, expectedCount: expectedCount });\n }\n if (count > expectedCount) {\n throwError('too many arguments' + suffix, exports.UNEXPECTED_ARGUMENT, { count: count, expectedCount: expectedCount });\n }\n}\nexports.checkArgumentCount = checkArgumentCount;\nfunction setCensorship(censorship, permanent) {\n if (_permanentCensorErrors) {\n throwError('error censorship permanent', exports.UNSUPPORTED_OPERATION, { operation: 'setCensorship' });\n }\n _censorErrors = !!censorship;\n _permanentCensorErrors = !!permanent;\n}\nexports.setCensorship = setCensorship;\nfunction checkNormalize() {\n try {\n // Make sure all forms of normalization are supported\n [\"NFD\", \"NFC\", \"NFKD\", \"NFKC\"].forEach(function (form) {\n try {\n \"test\".normalize(form);\n }\n catch (error) {\n throw new Error('missing ' + form);\n }\n });\n if (String.fromCharCode(0xe9).normalize('NFD') !== String.fromCharCode(0x65, 0x0301)) {\n throw new Error('broken implementation');\n }\n }\n catch (error) {\n throwError('platform missing String.prototype.normalize', exports.UNSUPPORTED_OPERATION, { operation: 'String.prototype.normalize', form: error.message });\n }\n}\nexports.checkNormalize = checkNormalize;\nvar LogLevels = { debug: 1, \"default\": 2, info: 2, warn: 3, error: 4, off: 5 };\nvar LogLevel = LogLevels[\"default\"];\nfunction setLogLevel(logLevel) {\n var level = LogLevels[logLevel];\n if (level == null) {\n warn(\"invliad log level - \" + logLevel);\n return;\n }\n LogLevel = level;\n}\nexports.setLogLevel = setLogLevel;\nfunction log(logLevel, args) {\n if (LogLevel > LogLevels[logLevel]) {\n return;\n }\n console.log.apply(console, args);\n}\nfunction warn() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n log(\"warn\", args);\n}\nexports.warn = warn;\nfunction info() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n log(\"info\", args);\n}\nexports.info = info;\n\n\n/***/ }),\n\n/***/ 2046:\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n// See: https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI\nvar constants_1 = __webpack_require__(8707);\nvar errors = __importStar(__webpack_require__(6459));\nvar address_1 = __webpack_require__(5638);\nvar bignumber_1 = __webpack_require__(4759);\nvar bytes_1 = __webpack_require__(8458);\nvar utf8_1 = __webpack_require__(1165);\nvar properties_1 = __webpack_require__(8184);\n///////////////////////////////\nvar paramTypeBytes = new RegExp(/^bytes([0-9]*)$/);\nvar paramTypeNumber = new RegExp(/^(u?int)([0-9]*)$/);\nvar paramTypeArray = new RegExp(/^(.*)\\[([0-9]*)\\]$/);\nexports.defaultCoerceFunc = function (type, value) {\n var match = type.match(paramTypeNumber);\n if (match && parseInt(match[2]) <= 48) {\n return value.toNumber();\n }\n return value;\n};\n///////////////////////////////////\n// Parsing for Solidity Signatures\nvar regexParen = new RegExp(\"^([^)(]*)\\\\((.*)\\\\)([^)(]*)$\");\nvar regexIdentifier = new RegExp(\"^[A-Za-z_][A-Za-z0-9_]*$\");\nfunction verifyType(type) {\n // These need to be transformed to their full description\n if (type.match(/^uint($|[^1-9])/)) {\n type = 'uint256' + type.substring(4);\n }\n else if (type.match(/^int($|[^1-9])/)) {\n type = 'int256' + type.substring(3);\n }\n return type;\n}\nfunction parseParam(param, allowIndexed) {\n var originalParam = param;\n function throwError(i) {\n throw new Error('unexpected character \"' + originalParam[i] + '\" at position ' + i + ' in \"' + originalParam + '\"');\n }\n param = param.replace(/\\s/g, ' ');\n var parent = { type: '', name: '', state: { allowType: true } };\n var node = parent;\n for (var i = 0; i < param.length; i++) {\n var c = param[i];\n switch (c) {\n case '(':\n if (!node.state.allowParams) {\n throwError(i);\n }\n node.state.allowType = false;\n node.type = verifyType(node.type);\n node.components = [{ type: '', name: '', parent: node, state: { allowType: true } }];\n node = node.components[0];\n break;\n case ')':\n delete node.state;\n if (allowIndexed && node.name === 'indexed') {\n node.indexed = true;\n node.name = '';\n }\n node.type = verifyType(node.type);\n var child = node;\n node = node.parent;\n if (!node) {\n throwError(i);\n }\n delete child.parent;\n node.state.allowParams = false;\n node.state.allowName = true;\n node.state.allowArray = true;\n break;\n case ',':\n delete node.state;\n if (allowIndexed && node.name === 'indexed') {\n node.indexed = true;\n node.name = '';\n }\n node.type = verifyType(node.type);\n var sibling = { type: '', name: '', parent: node.parent, state: { allowType: true } };\n node.parent.components.push(sibling);\n delete node.parent;\n node = sibling;\n break;\n // Hit a space...\n case ' ':\n // If reading type, the type is done and may read a param or name\n if (node.state.allowType) {\n if (node.type !== '') {\n node.type = verifyType(node.type);\n delete node.state.allowType;\n node.state.allowName = true;\n node.state.allowParams = true;\n }\n }\n // If reading name, the name is done\n if (node.state.allowName) {\n if (node.name !== '') {\n if (allowIndexed && node.name === 'indexed') {\n node.indexed = true;\n node.name = '';\n }\n else {\n node.state.allowName = false;\n }\n }\n }\n break;\n case '[':\n if (!node.state.allowArray) {\n throwError(i);\n }\n node.type += c;\n node.state.allowArray = false;\n node.state.allowName = false;\n node.state.readArray = true;\n break;\n case ']':\n if (!node.state.readArray) {\n throwError(i);\n }\n node.type += c;\n node.state.readArray = false;\n node.state.allowArray = true;\n node.state.allowName = true;\n break;\n default:\n if (node.state.allowType) {\n node.type += c;\n node.state.allowParams = true;\n node.state.allowArray = true;\n }\n else if (node.state.allowName) {\n node.name += c;\n delete node.state.allowArray;\n }\n else if (node.state.readArray) {\n node.type += c;\n }\n else {\n throwError(i);\n }\n }\n }\n if (node.parent) {\n throw new Error(\"unexpected eof\");\n }\n delete parent.state;\n if (allowIndexed && node.name === 'indexed') {\n node.indexed = true;\n node.name = '';\n }\n parent.type = verifyType(parent.type);\n return parent;\n}\n// @TODO: Better return type\nfunction parseSignatureEvent(fragment) {\n var abi = {\n anonymous: false,\n inputs: [],\n name: '',\n type: 'event'\n };\n var match = fragment.match(regexParen);\n if (!match) {\n throw new Error('invalid event: ' + fragment);\n }\n abi.name = match[1].trim();\n splitNesting(match[2]).forEach(function (param) {\n param = parseParam(param, true);\n param.indexed = !!param.indexed;\n abi.inputs.push(param);\n });\n match[3].split(' ').forEach(function (modifier) {\n switch (modifier) {\n case 'anonymous':\n abi.anonymous = true;\n break;\n case '':\n break;\n default:\n errors.info('unknown modifier: ' + modifier);\n }\n });\n if (abi.name && !abi.name.match(regexIdentifier)) {\n throw new Error('invalid identifier: \"' + abi.name + '\"');\n }\n return abi;\n}\nfunction parseSignatureFunction(fragment) {\n var abi = {\n constant: false,\n gas: null,\n inputs: [],\n name: '',\n outputs: [],\n payable: false,\n stateMutability: null,\n type: 'function'\n };\n var comps = fragment.split('@');\n if (comps.length !== 1) {\n if (comps.length > 2) {\n throw new Error('invalid signature');\n }\n if (!comps[1].match(/^[0-9]+$/)) {\n throw new Error('invalid signature gas');\n }\n abi.gas = bignumber_1.bigNumberify(comps[1]);\n fragment = comps[0];\n }\n comps = fragment.split(' returns ');\n var left = comps[0].match(regexParen);\n if (!left) {\n throw new Error('invalid signature');\n }\n abi.name = left[1].trim();\n if (!abi.name.match(regexIdentifier)) {\n throw new Error('invalid identifier: \"' + left[1] + '\"');\n }\n splitNesting(left[2]).forEach(function (param) {\n abi.inputs.push(parseParam(param));\n });\n left[3].split(' ').forEach(function (modifier) {\n switch (modifier) {\n case 'constant':\n abi.constant = true;\n break;\n case 'payable':\n abi.payable = true;\n abi.stateMutability = 'payable';\n break;\n case 'pure':\n abi.constant = true;\n abi.stateMutability = 'pure';\n break;\n case 'view':\n abi.constant = true;\n abi.stateMutability = 'view';\n break;\n case 'external':\n case 'public':\n case '':\n break;\n default:\n errors.info('unknown modifier: ' + modifier);\n }\n });\n // We have outputs\n if (comps.length > 1) {\n var right = comps[1].match(regexParen);\n if (right[1].trim() != '' || right[3].trim() != '') {\n throw new Error('unexpected tokens');\n }\n splitNesting(right[2]).forEach(function (param) {\n abi.outputs.push(parseParam(param));\n });\n }\n if (abi.name === 'constructor') {\n abi.type = \"constructor\";\n if (abi.outputs.length) {\n throw new Error('constructor may not have outputs');\n }\n delete abi.name;\n delete abi.outputs;\n }\n return abi;\n}\nfunction parseParamType(type) {\n return parseParam(type, true);\n}\nexports.parseParamType = parseParamType;\n// @TODO: Allow a second boolean to expose names\nfunction formatParamType(paramType) {\n return getParamCoder(exports.defaultCoerceFunc, paramType).type;\n}\nexports.formatParamType = formatParamType;\n// @TODO: Allow a second boolean to expose names and modifiers\nfunction formatSignature(fragment) {\n return fragment.name + '(' + fragment.inputs.map(function (i) { return formatParamType(i); }).join(',') + ')';\n}\nexports.formatSignature = formatSignature;\nfunction parseSignature(fragment) {\n if (typeof (fragment) === 'string') {\n // Make sure the \"returns\" is surrounded by a space and all whitespace is exactly one space\n fragment = fragment.replace(/\\s/g, ' ');\n fragment = fragment.replace(/\\(/g, ' (').replace(/\\)/g, ') ').replace(/\\s+/g, ' ');\n fragment = fragment.trim();\n if (fragment.substring(0, 6) === 'event ') {\n return parseSignatureEvent(fragment.substring(6).trim());\n }\n else {\n if (fragment.substring(0, 9) === 'function ') {\n fragment = fragment.substring(9);\n }\n return parseSignatureFunction(fragment.trim());\n }\n }\n throw new Error('unknown signature');\n}\nexports.parseSignature = parseSignature;\nvar Coder = /** @class */ (function () {\n function Coder(coerceFunc, name, type, localName, dynamic) {\n this.coerceFunc = coerceFunc;\n this.name = name;\n this.type = type;\n this.localName = localName;\n this.dynamic = dynamic;\n }\n return Coder;\n}());\n// Clones the functionality of an existing Coder, but without a localName\nvar CoderAnonymous = /** @class */ (function (_super) {\n __extends(CoderAnonymous, _super);\n function CoderAnonymous(coder) {\n var _this = _super.call(this, coder.coerceFunc, coder.name, coder.type, undefined, coder.dynamic) || this;\n properties_1.defineReadOnly(_this, 'coder', coder);\n return _this;\n }\n CoderAnonymous.prototype.encode = function (value) { return this.coder.encode(value); };\n CoderAnonymous.prototype.decode = function (data, offset) { return this.coder.decode(data, offset); };\n return CoderAnonymous;\n}(Coder));\nvar CoderNull = /** @class */ (function (_super) {\n __extends(CoderNull, _super);\n function CoderNull(coerceFunc, localName) {\n return _super.call(this, coerceFunc, 'null', '', localName, false) || this;\n }\n CoderNull.prototype.encode = function (value) {\n return bytes_1.arrayify([]);\n };\n CoderNull.prototype.decode = function (data, offset) {\n if (offset > data.length) {\n throw new Error('invalid null');\n }\n return {\n consumed: 0,\n value: this.coerceFunc('null', undefined)\n };\n };\n return CoderNull;\n}(Coder));\nvar CoderNumber = /** @class */ (function (_super) {\n __extends(CoderNumber, _super);\n function CoderNumber(coerceFunc, size, signed, localName) {\n var _this = this;\n var name = ((signed ? 'int' : 'uint') + (size * 8));\n _this = _super.call(this, coerceFunc, name, name, localName, false) || this;\n _this.size = size;\n _this.signed = signed;\n return _this;\n }\n CoderNumber.prototype.encode = function (value) {\n try {\n var v = bignumber_1.bigNumberify(value);\n if (this.signed) {\n var bounds = constants_1.MaxUint256.maskn(this.size * 8 - 1);\n if (v.gt(bounds)) {\n throw new Error('out-of-bounds');\n }\n bounds = bounds.add(constants_1.One).mul(constants_1.NegativeOne);\n if (v.lt(bounds)) {\n throw new Error('out-of-bounds');\n }\n }\n else if (v.lt(constants_1.Zero) || v.gt(constants_1.MaxUint256.maskn(this.size * 8))) {\n throw new Error('out-of-bounds');\n }\n v = v.toTwos(this.size * 8).maskn(this.size * 8);\n if (this.signed) {\n v = v.fromTwos(this.size * 8).toTwos(256);\n }\n return bytes_1.padZeros(bytes_1.arrayify(v), 32);\n }\n catch (error) {\n errors.throwError('invalid number value', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: this.name,\n value: value\n });\n }\n return null;\n };\n CoderNumber.prototype.decode = function (data, offset) {\n if (data.length < offset + 32) {\n errors.throwError('insufficient data for ' + this.name + ' type', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: this.name,\n value: bytes_1.hexlify(data.slice(offset, offset + 32))\n });\n }\n var junkLength = 32 - this.size;\n var value = bignumber_1.bigNumberify(data.slice(offset + junkLength, offset + 32));\n if (this.signed) {\n value = value.fromTwos(this.size * 8);\n }\n else {\n value = value.maskn(this.size * 8);\n }\n return {\n consumed: 32,\n value: this.coerceFunc(this.name, value),\n };\n };\n return CoderNumber;\n}(Coder));\nvar uint256Coder = new CoderNumber(function (type, value) { return value; }, 32, false, 'none');\nvar CoderBoolean = /** @class */ (function (_super) {\n __extends(CoderBoolean, _super);\n function CoderBoolean(coerceFunc, localName) {\n return _super.call(this, coerceFunc, 'bool', 'bool', localName, false) || this;\n }\n CoderBoolean.prototype.encode = function (value) {\n return uint256Coder.encode(!!value ? 1 : 0);\n };\n CoderBoolean.prototype.decode = function (data, offset) {\n try {\n var result = uint256Coder.decode(data, offset);\n }\n catch (error) {\n if (error.reason === 'insufficient data for uint256 type') {\n errors.throwError('insufficient data for boolean type', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'boolean',\n value: error.value\n });\n }\n throw error;\n }\n return {\n consumed: result.consumed,\n value: this.coerceFunc('bool', !result.value.isZero())\n };\n };\n return CoderBoolean;\n}(Coder));\nvar CoderFixedBytes = /** @class */ (function (_super) {\n __extends(CoderFixedBytes, _super);\n function CoderFixedBytes(coerceFunc, length, localName) {\n var _this = this;\n var name = ('bytes' + length);\n _this = _super.call(this, coerceFunc, name, name, localName, false) || this;\n _this.length = length;\n return _this;\n }\n CoderFixedBytes.prototype.encode = function (value) {\n var result = new Uint8Array(32);\n try {\n var data = bytes_1.arrayify(value);\n if (data.length !== this.length) {\n throw new Error('incorrect data length');\n }\n result.set(data);\n }\n catch (error) {\n errors.throwError('invalid ' + this.name + ' value', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: this.name,\n value: (error.value || value)\n });\n }\n return result;\n };\n CoderFixedBytes.prototype.decode = function (data, offset) {\n if (data.length < offset + 32) {\n errors.throwError('insufficient data for ' + name + ' type', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: this.name,\n value: bytes_1.hexlify(data.slice(offset, offset + 32))\n });\n }\n return {\n consumed: 32,\n value: this.coerceFunc(this.name, bytes_1.hexlify(data.slice(offset, offset + this.length)))\n };\n };\n return CoderFixedBytes;\n}(Coder));\nvar CoderAddress = /** @class */ (function (_super) {\n __extends(CoderAddress, _super);\n function CoderAddress(coerceFunc, localName) {\n return _super.call(this, coerceFunc, 'address', 'address', localName, false) || this;\n }\n CoderAddress.prototype.encode = function (value) {\n var result = new Uint8Array(32);\n try {\n result.set(bytes_1.arrayify(address_1.getAddress(value, false)), 12);\n }\n catch (error) {\n errors.throwError('invalid address', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'address',\n value: value\n });\n }\n return result;\n };\n CoderAddress.prototype.decode = function (data, offset) {\n if (data.length < offset + 32) {\n errors.throwError('insufficuent data for address type', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'address',\n value: bytes_1.hexlify(data.slice(offset, offset + 32))\n });\n }\n return {\n consumed: 32,\n value: this.coerceFunc('address', address_1.getAddress(bytes_1.hexlify(data.slice(offset + 12, offset + 32)), false))\n };\n };\n return CoderAddress;\n}(Coder));\nfunction _encodeDynamicBytes(value) {\n var dataLength = 32 * Math.ceil(value.length / 32);\n var padding = new Uint8Array(dataLength - value.length);\n return bytes_1.concat([\n uint256Coder.encode(value.length),\n value,\n padding\n ]);\n}\nfunction _decodeDynamicBytes(data, offset, localName) {\n if (data.length < offset + 32) {\n errors.throwError('insufficient data for dynamicBytes length', errors.INVALID_ARGUMENT, {\n arg: localName,\n coderType: 'dynamicBytes',\n value: bytes_1.hexlify(data.slice(offset, offset + 32))\n });\n }\n var length = uint256Coder.decode(data, offset).value;\n try {\n length = length.toNumber();\n }\n catch (error) {\n errors.throwError('dynamic bytes count too large', errors.INVALID_ARGUMENT, {\n arg: localName,\n coderType: 'dynamicBytes',\n value: length.toString()\n });\n }\n if (data.length < offset + 32 + length) {\n errors.throwError('insufficient data for dynamicBytes type', errors.INVALID_ARGUMENT, {\n arg: localName,\n coderType: 'dynamicBytes',\n value: bytes_1.hexlify(data.slice(offset, offset + 32 + length))\n });\n }\n return {\n consumed: 32 + 32 * Math.ceil(length / 32),\n value: data.slice(offset + 32, offset + 32 + length),\n };\n}\nvar CoderDynamicBytes = /** @class */ (function (_super) {\n __extends(CoderDynamicBytes, _super);\n function CoderDynamicBytes(coerceFunc, localName) {\n return _super.call(this, coerceFunc, 'bytes', 'bytes', localName, true) || this;\n }\n CoderDynamicBytes.prototype.encode = function (value) {\n try {\n return _encodeDynamicBytes(bytes_1.arrayify(value));\n }\n catch (error) {\n errors.throwError('invalid bytes value', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'bytes',\n value: error.value\n });\n }\n return null;\n };\n CoderDynamicBytes.prototype.decode = function (data, offset) {\n var result = _decodeDynamicBytes(data, offset, this.localName);\n result.value = this.coerceFunc('bytes', bytes_1.hexlify(result.value));\n return result;\n };\n return CoderDynamicBytes;\n}(Coder));\nvar CoderString = /** @class */ (function (_super) {\n __extends(CoderString, _super);\n function CoderString(coerceFunc, localName) {\n return _super.call(this, coerceFunc, 'string', 'string', localName, true) || this;\n }\n CoderString.prototype.encode = function (value) {\n if (typeof (value) !== 'string') {\n errors.throwError('invalid string value', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'string',\n value: value\n });\n }\n return _encodeDynamicBytes(utf8_1.toUtf8Bytes(value));\n };\n CoderString.prototype.decode = function (data, offset) {\n var result = _decodeDynamicBytes(data, offset, this.localName);\n result.value = this.coerceFunc('string', utf8_1.toUtf8String(result.value));\n return result;\n };\n return CoderString;\n}(Coder));\nfunction alignSize(size) {\n return 32 * Math.ceil(size / 32);\n}\nfunction pack(coders, values) {\n if (Array.isArray(values)) {\n // do nothing\n }\n else if (values && typeof (values) === 'object') {\n var arrayValues = [];\n coders.forEach(function (coder) {\n arrayValues.push(values[coder.localName]);\n });\n values = arrayValues;\n }\n else {\n errors.throwError('invalid tuple value', errors.INVALID_ARGUMENT, {\n coderType: 'tuple',\n value: values\n });\n }\n if (coders.length !== values.length) {\n errors.throwError('types/value length mismatch', errors.INVALID_ARGUMENT, {\n coderType: 'tuple',\n value: values\n });\n }\n var parts = [];\n coders.forEach(function (coder, index) {\n parts.push({ dynamic: coder.dynamic, value: coder.encode(values[index]) });\n });\n var staticSize = 0, dynamicSize = 0;\n parts.forEach(function (part) {\n if (part.dynamic) {\n staticSize += 32;\n dynamicSize += alignSize(part.value.length);\n }\n else {\n staticSize += alignSize(part.value.length);\n }\n });\n var offset = 0, dynamicOffset = staticSize;\n var data = new Uint8Array(staticSize + dynamicSize);\n parts.forEach(function (part) {\n if (part.dynamic) {\n //uint256Coder.encode(dynamicOffset).copy(data, offset);\n data.set(uint256Coder.encode(dynamicOffset), offset);\n offset += 32;\n //part.value.copy(data, dynamicOffset); @TODO\n data.set(part.value, dynamicOffset);\n dynamicOffset += alignSize(part.value.length);\n }\n else {\n //part.value.copy(data, offset); @TODO\n data.set(part.value, offset);\n offset += alignSize(part.value.length);\n }\n });\n return data;\n}\nfunction unpack(coders, data, offset) {\n var baseOffset = offset;\n var consumed = 0;\n var value = [];\n coders.forEach(function (coder) {\n if (coder.dynamic) {\n var dynamicOffset = uint256Coder.decode(data, offset);\n var result = coder.decode(data, baseOffset + dynamicOffset.value.toNumber());\n // The dynamic part is leap-frogged somewhere else; doesn't count towards size\n result.consumed = dynamicOffset.consumed;\n }\n else {\n var result = coder.decode(data, offset);\n }\n if (result.value != undefined) {\n value.push(result.value);\n }\n offset += result.consumed;\n consumed += result.consumed;\n });\n coders.forEach(function (coder, index) {\n var name = coder.localName;\n if (!name) {\n return;\n }\n if (name === 'length') {\n name = '_length';\n }\n if (value[name] != null) {\n return;\n }\n value[name] = value[index];\n });\n return {\n value: value,\n consumed: consumed\n };\n}\nvar CoderArray = /** @class */ (function (_super) {\n __extends(CoderArray, _super);\n function CoderArray(coerceFunc, coder, length, localName) {\n var _this = this;\n var type = (coder.type + '[' + (length >= 0 ? length : '') + ']');\n var dynamic = (length === -1 || coder.dynamic);\n _this = _super.call(this, coerceFunc, 'array', type, localName, dynamic) || this;\n _this.coder = coder;\n _this.length = length;\n return _this;\n }\n CoderArray.prototype.encode = function (value) {\n if (!Array.isArray(value)) {\n errors.throwError('expected array value', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'array',\n value: value\n });\n }\n var count = this.length;\n var result = new Uint8Array(0);\n if (count === -1) {\n count = value.length;\n result = uint256Coder.encode(count);\n }\n errors.checkArgumentCount(count, value.length, ' in coder array' + (this.localName ? (\" \" + this.localName) : \"\"));\n var coders = [];\n for (var i = 0; i < value.length; i++) {\n coders.push(this.coder);\n }\n return bytes_1.concat([result, pack(coders, value)]);\n };\n CoderArray.prototype.decode = function (data, offset) {\n // @TODO:\n //if (data.length < offset + length * 32) { throw new Error('invalid array'); }\n var consumed = 0;\n var count = this.length;\n if (count === -1) {\n try {\n var decodedLength = uint256Coder.decode(data, offset);\n }\n catch (error) {\n errors.throwError('insufficient data for dynamic array length', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'array',\n value: error.value\n });\n }\n try {\n count = decodedLength.value.toNumber();\n }\n catch (error) {\n errors.throwError('array count too large', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'array',\n value: decodedLength.value.toString()\n });\n }\n consumed += decodedLength.consumed;\n offset += decodedLength.consumed;\n }\n var coders = [];\n for (var i = 0; i < count; i++) {\n coders.push(new CoderAnonymous(this.coder));\n }\n var result = unpack(coders, data, offset);\n result.consumed += consumed;\n result.value = this.coerceFunc(this.type, result.value);\n return result;\n };\n return CoderArray;\n}(Coder));\nvar CoderTuple = /** @class */ (function (_super) {\n __extends(CoderTuple, _super);\n function CoderTuple(coerceFunc, coders, localName) {\n var _this = this;\n var dynamic = false;\n var types = [];\n coders.forEach(function (coder) {\n if (coder.dynamic) {\n dynamic = true;\n }\n types.push(coder.type);\n });\n var type = ('tuple(' + types.join(',') + ')');\n _this = _super.call(this, coerceFunc, 'tuple', type, localName, dynamic) || this;\n _this.coders = coders;\n return _this;\n }\n CoderTuple.prototype.encode = function (value) {\n return pack(this.coders, value);\n };\n CoderTuple.prototype.decode = function (data, offset) {\n var result = unpack(this.coders, data, offset);\n result.value = this.coerceFunc(this.type, result.value);\n return result;\n };\n return CoderTuple;\n}(Coder));\n/*\nfunction getTypes(coders) {\n var type = coderTuple(coders).type;\n return type.substring(6, type.length - 1);\n}\n*/\nfunction splitNesting(value) {\n value = value.trim();\n var result = [];\n var accum = '';\n var depth = 0;\n for (var offset = 0; offset < value.length; offset++) {\n var c = value[offset];\n if (c === ',' && depth === 0) {\n result.push(accum);\n accum = '';\n }\n else {\n accum += c;\n if (c === '(') {\n depth++;\n }\n else if (c === ')') {\n depth--;\n if (depth === -1) {\n throw new Error('unbalanced parenthsis');\n }\n }\n }\n }\n if (accum) {\n result.push(accum);\n }\n return result;\n}\n// @TODO: Is there a way to return \"class\"?\nvar paramTypeSimple = {\n address: CoderAddress,\n bool: CoderBoolean,\n string: CoderString,\n bytes: CoderDynamicBytes,\n};\nfunction getTupleParamCoder(coerceFunc, components, localName) {\n if (!components) {\n components = [];\n }\n var coders = [];\n components.forEach(function (component) {\n coders.push(getParamCoder(coerceFunc, component));\n });\n return new CoderTuple(coerceFunc, coders, localName);\n}\nfunction getParamCoder(coerceFunc, param) {\n var coder = paramTypeSimple[param.type];\n if (coder) {\n return new coder(coerceFunc, param.name);\n }\n var match = param.type.match(paramTypeNumber);\n if (match) {\n var size = parseInt(match[2] || \"256\");\n if (size === 0 || size > 256 || (size % 8) !== 0) {\n errors.throwError('invalid ' + match[1] + ' bit length', errors.INVALID_ARGUMENT, {\n arg: 'param',\n value: param\n });\n }\n return new CoderNumber(coerceFunc, size / 8, (match[1] === 'int'), param.name);\n }\n var match = param.type.match(paramTypeBytes);\n if (match) {\n var size = parseInt(match[1]);\n if (size === 0 || size > 32) {\n errors.throwError('invalid bytes length', errors.INVALID_ARGUMENT, {\n arg: 'param',\n value: param\n });\n }\n return new CoderFixedBytes(coerceFunc, size, param.name);\n }\n var match = param.type.match(paramTypeArray);\n if (match) {\n var size = parseInt(match[2] || \"-1\");\n param = properties_1.shallowCopy(param);\n param.type = match[1];\n param = properties_1.deepCopy(param);\n return new CoderArray(coerceFunc, getParamCoder(coerceFunc, param), size, param.name);\n }\n if (param.type.substring(0, 5) === 'tuple') {\n return getTupleParamCoder(coerceFunc, param.components, param.name);\n }\n if (param.type === '') {\n return new CoderNull(coerceFunc, param.name);\n }\n errors.throwError('invalid type', errors.INVALID_ARGUMENT, {\n arg: 'type',\n value: param.type\n });\n return null;\n}\nvar AbiCoder = /** @class */ (function () {\n function AbiCoder(coerceFunc) {\n errors.checkNew(this, AbiCoder);\n if (!coerceFunc) {\n coerceFunc = exports.defaultCoerceFunc;\n }\n properties_1.defineReadOnly(this, 'coerceFunc', coerceFunc);\n }\n AbiCoder.prototype.encode = function (types, values) {\n if (types.length !== values.length) {\n errors.throwError('types/values length mismatch', errors.INVALID_ARGUMENT, {\n count: { types: types.length, values: values.length },\n value: { types: types, values: values }\n });\n }\n var coders = [];\n types.forEach(function (type) {\n // Convert types to type objects\n // - \"uint foo\" => { type: \"uint\", name: \"foo\" }\n // - \"tuple(uint, uint)\" => { type: \"tuple\", components: [ { type: \"uint\" }, { type: \"uint\" }, ] }\n var typeObject = null;\n if (typeof (type) === 'string') {\n typeObject = parseParam(type);\n }\n else {\n typeObject = type;\n }\n coders.push(getParamCoder(this.coerceFunc, typeObject));\n }, this);\n return bytes_1.hexlify(new CoderTuple(this.coerceFunc, coders, '_').encode(values));\n };\n AbiCoder.prototype.decode = function (types, data) {\n var coders = [];\n types.forEach(function (type) {\n // See encode for details\n var typeObject = null;\n if (typeof (type) === 'string') {\n typeObject = parseParam(type);\n }\n else {\n typeObject = properties_1.deepCopy(type);\n }\n coders.push(getParamCoder(this.coerceFunc, typeObject));\n }, this);\n return new CoderTuple(this.coerceFunc, coders, '_').decode(bytes_1.arrayify(data), 0).value;\n };\n return AbiCoder;\n}());\nexports.AbiCoder = AbiCoder;\nexports.defaultAbiCoder = new AbiCoder();\n\n\n/***/ }),\n\n/***/ 5638:\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n// We use this for base 36 maths\nvar bn_js_1 = __importDefault(__webpack_require__(5697));\nvar bytes_1 = __webpack_require__(8458);\nvar keccak256_1 = __webpack_require__(918);\nvar rlp_1 = __webpack_require__(6100);\nvar errors = __webpack_require__(6459);\n///////////////////////////////\nfunction getChecksumAddress(address) {\n if (typeof (address) !== 'string' || !address.match(/^0x[0-9A-Fa-f]{40}$/)) {\n errors.throwError('invalid address', errors.INVALID_ARGUMENT, { arg: 'address', value: address });\n }\n address = address.toLowerCase();\n var chars = address.substring(2).split('');\n var hashed = new Uint8Array(40);\n for (var i_1 = 0; i_1 < 40; i_1++) {\n hashed[i_1] = chars[i_1].charCodeAt(0);\n }\n hashed = bytes_1.arrayify(keccak256_1.keccak256(hashed));\n for (var i = 0; i < 40; i += 2) {\n if ((hashed[i >> 1] >> 4) >= 8) {\n chars[i] = chars[i].toUpperCase();\n }\n if ((hashed[i >> 1] & 0x0f) >= 8) {\n chars[i + 1] = chars[i + 1].toUpperCase();\n }\n }\n return '0x' + chars.join('');\n}\n// Shims for environments that are missing some required constants and functions\nvar MAX_SAFE_INTEGER = 0x1fffffffffffff;\nfunction log10(x) {\n if (Math.log10) {\n return Math.log10(x);\n }\n return Math.log(x) / Math.LN10;\n}\n// See: https://en.wikipedia.org/wiki/International_Bank_Account_Number\n// Create lookup table\nvar ibanLookup = {};\nfor (var i = 0; i < 10; i++) {\n ibanLookup[String(i)] = String(i);\n}\nfor (var i = 0; i < 26; i++) {\n ibanLookup[String.fromCharCode(65 + i)] = String(10 + i);\n}\n// How many decimal digits can we process? (for 64-bit float, this is 15)\nvar safeDigits = Math.floor(log10(MAX_SAFE_INTEGER));\nfunction ibanChecksum(address) {\n address = address.toUpperCase();\n address = address.substring(4) + address.substring(0, 2) + '00';\n var expanded = '';\n address.split('').forEach(function (c) {\n expanded += ibanLookup[c];\n });\n // Javascript can handle integers safely up to 15 (decimal) digits\n while (expanded.length >= safeDigits) {\n var block = expanded.substring(0, safeDigits);\n expanded = parseInt(block, 10) % 97 + expanded.substring(block.length);\n }\n var checksum = String(98 - (parseInt(expanded, 10) % 97));\n while (checksum.length < 2) {\n checksum = '0' + checksum;\n }\n return checksum;\n}\n;\nfunction getAddress(address, checksum) {\n if (checksum === void 0) { checksum = true; }\n var result = null;\n if (typeof (address) !== 'string') {\n errors.throwError('invalid address', errors.INVALID_ARGUMENT, { arg: 'address', value: address });\n }\n if (address.match(/^(0x)?[0-9a-fA-F]{40}$/)) {\n // Missing the 0x prefix\n if (address.substring(0, 2) !== '0x') {\n address = '0x' + address;\n }\n if (checksum) {\n result = getChecksumAddress(address);\n // It is a checksummed address with a bad checksum\n if (address.match(/([A-F].*[a-f])|([a-f].*[A-F])/) && result !== address) {\n errors.throwError('bad address checksum', errors.INVALID_ARGUMENT, { arg: 'address', value: address });\n }\n }\n else {\n result = address;\n }\n // Maybe ICAP? (we only support direct mode)\n }\n else if (address.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) {\n // It is an ICAP address with a bad checksum\n if (address.substring(2, 4) !== ibanChecksum(address)) {\n errors.throwError('bad icap checksum', errors.INVALID_ARGUMENT, { arg: 'address', value: address });\n }\n result = (new bn_js_1.default.BN(address.substring(4), 36)).toString(16);\n while (result.length < 40) {\n result = '0' + result;\n }\n result = checksum ? getChecksumAddress('0x' + result) : '0x' + result;\n }\n else {\n errors.throwError('invalid address', errors.INVALID_ARGUMENT, { arg: 'address', value: address });\n }\n return result;\n}\nexports.getAddress = getAddress;\nfunction getIcapAddress(address) {\n var base36 = (new bn_js_1.default.BN(getAddress(address).substring(2), 16)).toString(36).toUpperCase();\n while (base36.length < 30) {\n base36 = '0' + base36;\n }\n return 'XE' + ibanChecksum('XE00' + base36) + base36;\n}\nexports.getIcapAddress = getIcapAddress;\n// http://ethereum.stackexchange.com/questions/760/how-is-the-address-of-an-ethereum-contract-computed\nfunction getContractAddress(transaction) {\n if (!transaction.from) {\n throw new Error('missing from address');\n }\n var nonce = transaction.nonce;\n return getAddress('0x' + keccak256_1.keccak256(rlp_1.encode([\n getAddress(transaction.from),\n bytes_1.stripZeros(bytes_1.hexlify(nonce))\n ])).substring(26));\n}\nexports.getContractAddress = getContractAddress;\n\n\n/***/ }),\n\n/***/ 4759:\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n/**\n * BigNumber\n *\n * A wrapper around the BN.js object. We use the BN.js library\n * because it is used by elliptic, so it is required regardles.\n *\n */\nvar bn_js_1 = __importDefault(__webpack_require__(5697));\nvar bytes_1 = __webpack_require__(8458);\nvar properties_1 = __webpack_require__(8184);\nvar errors = __importStar(__webpack_require__(6459));\nvar BN_1 = new bn_js_1.default.BN(-1);\nfunction toHex(bn) {\n var value = bn.toString(16);\n if (value[0] === '-') {\n if ((value.length % 2) === 0) {\n return '-0x0' + value.substring(1);\n }\n return \"-0x\" + value.substring(1);\n }\n if ((value.length % 2) === 1) {\n return '0x0' + value;\n }\n return '0x' + value;\n}\nfunction toBN(value) {\n return _bnify(bigNumberify(value));\n}\nfunction toBigNumber(bn) {\n return new BigNumber(toHex(bn));\n}\nfunction _bnify(value) {\n var hex = value._hex;\n if (hex[0] === '-') {\n return (new bn_js_1.default.BN(hex.substring(3), 16)).mul(BN_1);\n }\n return new bn_js_1.default.BN(hex.substring(2), 16);\n}\nvar BigNumber = /** @class */ (function () {\n function BigNumber(value) {\n errors.checkNew(this, BigNumber);\n properties_1.setType(this, 'BigNumber');\n if (typeof (value) === 'string') {\n if (bytes_1.isHexString(value)) {\n if (value == '0x') {\n value = '0x0';\n }\n properties_1.defineReadOnly(this, '_hex', value);\n }\n else if (value[0] === '-' && bytes_1.isHexString(value.substring(1))) {\n properties_1.defineReadOnly(this, '_hex', value);\n }\n else if (value.match(/^-?[0-9]*$/)) {\n if (value == '') {\n value = '0';\n }\n properties_1.defineReadOnly(this, '_hex', toHex(new bn_js_1.default.BN(value)));\n }\n else {\n errors.throwError('invalid BigNumber string value', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n }\n else if (typeof (value) === 'number') {\n if (parseInt(String(value)) !== value) {\n errors.throwError('underflow', errors.NUMERIC_FAULT, { operation: 'setValue', fault: 'underflow', value: value, outputValue: parseInt(String(value)) });\n }\n try {\n properties_1.defineReadOnly(this, '_hex', toHex(new bn_js_1.default.BN(value)));\n }\n catch (error) {\n errors.throwError('overflow', errors.NUMERIC_FAULT, { operation: 'setValue', fault: 'overflow', details: error.message });\n }\n }\n else if (value instanceof BigNumber) {\n properties_1.defineReadOnly(this, '_hex', value._hex);\n }\n else if (value.toHexString) {\n properties_1.defineReadOnly(this, '_hex', toHex(toBN(value.toHexString())));\n }\n else if (value._hex && bytes_1.isHexString(value._hex)) {\n properties_1.defineReadOnly(this, '_hex', value._hex);\n }\n else if (bytes_1.isArrayish(value)) {\n properties_1.defineReadOnly(this, '_hex', toHex(new bn_js_1.default.BN(bytes_1.hexlify(value).substring(2), 16)));\n }\n else {\n errors.throwError('invalid BigNumber value', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n }\n BigNumber.prototype.fromTwos = function (value) {\n return toBigNumber(_bnify(this).fromTwos(value));\n };\n BigNumber.prototype.toTwos = function (value) {\n return toBigNumber(_bnify(this).toTwos(value));\n };\n BigNumber.prototype.abs = function () {\n if (this._hex[0] === '-') {\n return toBigNumber(_bnify(this).mul(BN_1));\n }\n return this;\n };\n BigNumber.prototype.add = function (other) {\n return toBigNumber(_bnify(this).add(toBN(other)));\n };\n BigNumber.prototype.sub = function (other) {\n return toBigNumber(_bnify(this).sub(toBN(other)));\n };\n BigNumber.prototype.div = function (other) {\n var o = bigNumberify(other);\n if (o.isZero()) {\n errors.throwError('division by zero', errors.NUMERIC_FAULT, { operation: 'divide', fault: 'division by zero' });\n }\n return toBigNumber(_bnify(this).div(toBN(other)));\n };\n BigNumber.prototype.mul = function (other) {\n return toBigNumber(_bnify(this).mul(toBN(other)));\n };\n BigNumber.prototype.mod = function (other) {\n return toBigNumber(_bnify(this).mod(toBN(other)));\n };\n BigNumber.prototype.pow = function (other) {\n return toBigNumber(_bnify(this).pow(toBN(other)));\n };\n BigNumber.prototype.maskn = function (value) {\n return toBigNumber(_bnify(this).maskn(value));\n };\n BigNumber.prototype.eq = function (other) {\n return _bnify(this).eq(toBN(other));\n };\n BigNumber.prototype.lt = function (other) {\n return _bnify(this).lt(toBN(other));\n };\n BigNumber.prototype.lte = function (other) {\n return _bnify(this).lte(toBN(other));\n };\n BigNumber.prototype.gt = function (other) {\n return _bnify(this).gt(toBN(other));\n };\n BigNumber.prototype.gte = function (other) {\n return _bnify(this).gte(toBN(other));\n };\n BigNumber.prototype.isZero = function () {\n return _bnify(this).isZero();\n };\n BigNumber.prototype.toNumber = function () {\n try {\n return _bnify(this).toNumber();\n }\n catch (error) {\n errors.throwError('overflow', errors.NUMERIC_FAULT, { operation: 'setValue', fault: 'overflow', details: error.message });\n }\n return null;\n };\n BigNumber.prototype.toString = function () {\n return _bnify(this).toString(10);\n };\n BigNumber.prototype.toHexString = function () {\n return this._hex;\n };\n BigNumber.isBigNumber = function (value) {\n return properties_1.isType(value, 'BigNumber');\n };\n return BigNumber;\n}());\nexports.BigNumber = BigNumber;\nfunction bigNumberify(value) {\n if (BigNumber.isBigNumber(value)) {\n return value;\n }\n return new BigNumber(value);\n}\nexports.bigNumberify = bigNumberify;\n\n\n/***/ }),\n\n/***/ 8458:\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\n\"use strict\";\n\n/**\n * Conversion Utilities\n *\n */\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar errors = __importStar(__webpack_require__(6459));\n///////////////////////////////\nfunction isHexable(value) {\n return !!(value.toHexString);\n}\nexports.isHexable = isHexable;\nfunction addSlice(array) {\n if (array.slice) {\n return array;\n }\n array.slice = function () {\n var args = Array.prototype.slice.call(arguments);\n return addSlice(new Uint8Array(Array.prototype.slice.apply(array, args)));\n };\n return array;\n}\nfunction isArrayish(value) {\n if (!value || parseInt(String(value.length)) != value.length || typeof (value) === 'string') {\n return false;\n }\n for (var i = 0; i < value.length; i++) {\n var v = value[i];\n if (v < 0 || v >= 256 || parseInt(String(v)) != v) {\n return false;\n }\n }\n return true;\n}\nexports.isArrayish = isArrayish;\nfunction arrayify(value) {\n if (value == null) {\n errors.throwError('cannot convert null value to array', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n if (isHexable(value)) {\n value = value.toHexString();\n }\n if (typeof (value) === 'string') {\n var match = value.match(/^(0x)?[0-9a-fA-F]*$/);\n if (!match) {\n errors.throwError('invalid hexidecimal string', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n if (match[1] !== '0x') {\n errors.throwError('hex string must have 0x prefix', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n value = value.substring(2);\n if (value.length % 2) {\n value = '0' + value;\n }\n var result = [];\n for (var i = 0; i < value.length; i += 2) {\n result.push(parseInt(value.substr(i, 2), 16));\n }\n return addSlice(new Uint8Array(result));\n }\n if (isArrayish(value)) {\n return addSlice(new Uint8Array(value));\n }\n errors.throwError('invalid arrayify value', null, { arg: 'value', value: value, type: typeof (value) });\n return null;\n}\nexports.arrayify = arrayify;\nfunction concat(objects) {\n var arrays = [];\n var length = 0;\n for (var i = 0; i < objects.length; i++) {\n var object = arrayify(objects[i]);\n arrays.push(object);\n length += object.length;\n }\n var result = new Uint8Array(length);\n var offset = 0;\n for (var i = 0; i < arrays.length; i++) {\n result.set(arrays[i], offset);\n offset += arrays[i].length;\n }\n return addSlice(result);\n}\nexports.concat = concat;\nfunction stripZeros(value) {\n var result = arrayify(value);\n if (result.length === 0) {\n return result;\n }\n // Find the first non-zero entry\n var start = 0;\n while (result[start] === 0) {\n start++;\n }\n // If we started with zeros, strip them\n if (start) {\n result = result.slice(start);\n }\n return result;\n}\nexports.stripZeros = stripZeros;\nfunction padZeros(value, length) {\n value = arrayify(value);\n if (length < value.length) {\n throw new Error('cannot pad');\n }\n var result = new Uint8Array(length);\n result.set(value, length - value.length);\n return addSlice(result);\n}\nexports.padZeros = padZeros;\nfunction isHexString(value, length) {\n if (typeof (value) !== 'string' || !value.match(/^0x[0-9A-Fa-f]*$/)) {\n return false;\n }\n if (length && value.length !== 2 + 2 * length) {\n return false;\n }\n return true;\n}\nexports.isHexString = isHexString;\nvar HexCharacters = '0123456789abcdef';\nfunction hexlify(value) {\n if (isHexable(value)) {\n return value.toHexString();\n }\n if (typeof (value) === 'number') {\n if (value < 0) {\n errors.throwError('cannot hexlify negative value', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n // @TODO: Roll this into the above error as a numeric fault (overflow); next version, not backward compatible\n // We can about (value == MAX_INT) to as well, since that may indicate we underflowed already\n if (value >= 9007199254740991) {\n errors.throwError(\"out-of-range\", errors.NUMERIC_FAULT, {\n operartion: \"hexlify\",\n fault: \"out-of-safe-range\"\n });\n }\n var hex = '';\n while (value) {\n hex = HexCharacters[value & 0x0f] + hex;\n value = Math.floor(value / 16);\n }\n if (hex.length) {\n if (hex.length % 2) {\n hex = '0' + hex;\n }\n return '0x' + hex;\n }\n return '0x00';\n }\n if (typeof (value) === 'string') {\n var match = value.match(/^(0x)?[0-9a-fA-F]*$/);\n if (!match) {\n errors.throwError('invalid hexidecimal string', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n if (match[1] !== '0x') {\n errors.throwError('hex string must have 0x prefix', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n if (value.length % 2) {\n value = '0x0' + value.substring(2);\n }\n return value;\n }\n if (isArrayish(value)) {\n var result = [];\n for (var i = 0; i < value.length; i++) {\n var v = value[i];\n result.push(HexCharacters[(v & 0xf0) >> 4] + HexCharacters[v & 0x0f]);\n }\n return '0x' + result.join('');\n }\n errors.throwError('invalid hexlify value', null, { arg: 'value', value: value });\n return 'never';\n}\nexports.hexlify = hexlify;\nfunction hexDataLength(data) {\n if (!isHexString(data) || (data.length % 2) !== 0) {\n return null;\n }\n return (data.length - 2) / 2;\n}\nexports.hexDataLength = hexDataLength;\nfunction hexDataSlice(data, offset, endOffset) {\n if (!isHexString(data)) {\n errors.throwError('invalid hex data', errors.INVALID_ARGUMENT, { arg: 'value', value: data });\n }\n if ((data.length % 2) !== 0) {\n errors.throwError('hex data length must be even', errors.INVALID_ARGUMENT, { arg: 'value', value: data });\n }\n offset = 2 + 2 * offset;\n if (endOffset != null) {\n return '0x' + data.substring(offset, 2 + 2 * endOffset);\n }\n return '0x' + data.substring(offset);\n}\nexports.hexDataSlice = hexDataSlice;\nfunction hexStripZeros(value) {\n if (!isHexString(value)) {\n errors.throwError('invalid hex string', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n while (value.length > 3 && value.substring(0, 3) === '0x0') {\n value = '0x' + value.substring(3);\n }\n return value;\n}\nexports.hexStripZeros = hexStripZeros;\nfunction hexZeroPad(value, length) {\n if (!isHexString(value)) {\n errors.throwError('invalid hex string', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n while (value.length < 2 * length + 2) {\n value = '0x0' + value.substring(2);\n }\n return value;\n}\nexports.hexZeroPad = hexZeroPad;\nfunction isSignature(value) {\n return (value && value.r != null && value.s != null);\n}\nfunction splitSignature(signature) {\n var v = 0;\n var r = '0x', s = '0x';\n if (isSignature(signature)) {\n if (signature.v == null && signature.recoveryParam == null) {\n errors.throwError('at least on of recoveryParam or v must be specified', errors.INVALID_ARGUMENT, { argument: 'signature', value: signature });\n }\n r = hexZeroPad(signature.r, 32);\n s = hexZeroPad(signature.s, 32);\n v = signature.v;\n if (typeof (v) === 'string') {\n v = parseInt(v, 16);\n }\n var recoveryParam = signature.recoveryParam;\n if (recoveryParam == null && signature.v != null) {\n recoveryParam = 1 - (v % 2);\n }\n v = 27 + recoveryParam;\n }\n else {\n var bytes = arrayify(signature);\n if (bytes.length !== 65) {\n throw new Error('invalid signature');\n }\n r = hexlify(bytes.slice(0, 32));\n s = hexlify(bytes.slice(32, 64));\n v = bytes[64];\n if (v !== 27 && v !== 28) {\n v = 27 + (v % 2);\n }\n }\n return {\n r: r,\n s: s,\n recoveryParam: (v - 27),\n v: v\n };\n}\nexports.splitSignature = splitSignature;\nfunction joinSignature(signature) {\n signature = splitSignature(signature);\n return hexlify(concat([\n signature.r,\n signature.s,\n (signature.recoveryParam ? '0x1c' : '0x1b')\n ]));\n}\nexports.joinSignature = joinSignature;\n\n\n/***/ }),\n\n/***/ 918:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar sha3 = __webpack_require__(747);\nvar bytes_1 = __webpack_require__(8458);\nfunction keccak256(data) {\n return '0x' + sha3.keccak_256(bytes_1.arrayify(data));\n}\nexports.keccak256 = keccak256;\n\n\n/***/ }),\n\n/***/ 8184:\n/***/ (function(__unused_webpack_module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar errors = __importStar(__webpack_require__(6459));\nfunction defineReadOnly(object, name, value) {\n Object.defineProperty(object, name, {\n enumerable: true,\n value: value,\n writable: false,\n });\n}\nexports.defineReadOnly = defineReadOnly;\n// There are some issues with instanceof with npm link, so we use this\n// to ensure types are what we expect.\nfunction setType(object, type) {\n Object.defineProperty(object, '_ethersType', { configurable: false, value: type, writable: false });\n}\nexports.setType = setType;\nfunction isType(object, type) {\n return (object && object._ethersType === type);\n}\nexports.isType = isType;\nfunction resolveProperties(object) {\n var result = {};\n var promises = [];\n Object.keys(object).forEach(function (key) {\n var value = object[key];\n if (value instanceof Promise) {\n promises.push(value.then(function (value) {\n result[key] = value;\n return null;\n }));\n }\n else {\n result[key] = value;\n }\n });\n return Promise.all(promises).then(function () {\n return result;\n });\n}\nexports.resolveProperties = resolveProperties;\nfunction checkProperties(object, properties) {\n if (!object || typeof (object) !== 'object') {\n errors.throwError('invalid object', errors.INVALID_ARGUMENT, {\n argument: 'object',\n value: object\n });\n }\n Object.keys(object).forEach(function (key) {\n if (!properties[key]) {\n errors.throwError('invalid object key - ' + key, errors.INVALID_ARGUMENT, {\n argument: 'transaction',\n value: object,\n key: key\n });\n }\n });\n}\nexports.checkProperties = checkProperties;\nfunction shallowCopy(object) {\n var result = {};\n for (var key in object) {\n result[key] = object[key];\n }\n return result;\n}\nexports.shallowCopy = shallowCopy;\nvar opaque = { boolean: true, number: true, string: true };\nfunction deepCopy(object, frozen) {\n // Opaque objects are not mutable, so safe to copy by assignment\n if (object === undefined || object === null || opaque[typeof (object)]) {\n return object;\n }\n // Arrays are mutable, so we need to create a copy\n if (Array.isArray(object)) {\n var result = object.map(function (item) { return deepCopy(item, frozen); });\n if (frozen) {\n Object.freeze(result);\n }\n return result;\n }\n if (typeof (object) === 'object') {\n // Some internal objects, which are already immutable\n if (isType(object, 'BigNumber')) {\n return object;\n }\n if (isType(object, 'Description')) {\n return object;\n }\n if (isType(object, 'Indexed')) {\n return object;\n }\n var result = {};\n for (var key in object) {\n var value = object[key];\n if (value === undefined) {\n continue;\n }\n defineReadOnly(result, key, deepCopy(value, frozen));\n }\n if (frozen) {\n Object.freeze(result);\n }\n return result;\n }\n // The function type is also immutable, so safe to copy by assignment\n if (typeof (object) === 'function') {\n return object;\n }\n throw new Error('Cannot deepCopy ' + typeof (object));\n}\nexports.deepCopy = deepCopy;\n// See: https://github.com/isaacs/inherits/blob/master/inherits_browser.js\nfunction inherits(ctor, superCtor) {\n ctor.super_ = superCtor;\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n}\nfunction inheritable(parent) {\n return function (child) {\n inherits(child, parent);\n defineReadOnly(child, 'inherits', inheritable(child));\n };\n}\nexports.inheritable = inheritable;\n\n\n/***/ }),\n\n/***/ 6100:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\"use strict\";\n\n//See: https://github.com/ethereum/wiki/wiki/RLP\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar bytes_1 = __webpack_require__(8458);\nfunction arrayifyInteger(value) {\n var result = [];\n while (value) {\n result.unshift(value & 0xff);\n value >>= 8;\n }\n return result;\n}\nfunction unarrayifyInteger(data, offset, length) {\n var result = 0;\n for (var i = 0; i < length; i++) {\n result = (result * 256) + data[offset + i];\n }\n return result;\n}\nfunction _encode(object) {\n if (Array.isArray(object)) {\n var payload = [];\n object.forEach(function (child) {\n payload = payload.concat(_encode(child));\n });\n if (payload.length <= 55) {\n payload.unshift(0xc0 + payload.length);\n return payload;\n }\n var length = arrayifyInteger(payload.length);\n length.unshift(0xf7 + length.length);\n return length.concat(payload);\n }\n var data = Array.prototype.slice.call(bytes_1.arrayify(object));\n if (data.length === 1 && data[0] <= 0x7f) {\n return data;\n }\n else if (data.length <= 55) {\n data.unshift(0x80 + data.length);\n return data;\n }\n var length = arrayifyInteger(data.length);\n length.unshift(0xb7 + length.length);\n return length.concat(data);\n}\nfunction encode(object) {\n return bytes_1.hexlify(_encode(object));\n}\nexports.encode = encode;\nfunction _decodeChildren(data, offset, childOffset, length) {\n var result = [];\n while (childOffset < offset + 1 + length) {\n var decoded = _decode(data, childOffset);\n result.push(decoded.result);\n childOffset += decoded.consumed;\n if (childOffset > offset + 1 + length) {\n throw new Error('invalid rlp');\n }\n }\n return { consumed: (1 + length), result: result };\n}\n// returns { consumed: number, result: Object }\nfunction _decode(data, offset) {\n if (data.length === 0) {\n throw new Error('invalid rlp data');\n }\n // Array with extra length prefix\n if (data[offset] >= 0xf8) {\n var lengthLength = data[offset] - 0xf7;\n if (offset + 1 + lengthLength > data.length) {\n throw new Error('too short');\n }\n var length = unarrayifyInteger(data, offset + 1, lengthLength);\n if (offset + 1 + lengthLength + length > data.length) {\n throw new Error('to short');\n }\n return _decodeChildren(data, offset, offset + 1 + lengthLength, lengthLength + length);\n }\n else if (data[offset] >= 0xc0) {\n var length = data[offset] - 0xc0;\n if (offset + 1 + length > data.length) {\n throw new Error('invalid rlp data');\n }\n return _decodeChildren(data, offset, offset + 1, length);\n }\n else if (data[offset] >= 0xb8) {\n var lengthLength = data[offset] - 0xb7;\n if (offset + 1 + lengthLength > data.length) {\n throw new Error('invalid rlp data');\n }\n var length = unarrayifyInteger(data, offset + 1, lengthLength);\n if (offset + 1 + lengthLength + length > data.length) {\n throw new Error('invalid rlp data');\n }\n var result = bytes_1.hexlify(data.slice(offset + 1 + lengthLength, offset + 1 + lengthLength + length));\n return { consumed: (1 + lengthLength + length), result: result };\n }\n else if (data[offset] >= 0x80) {\n var length = data[offset] - 0x80;\n if (offset + 1 + length > data.length) {\n throw new Error('invlaid rlp data');\n }\n var result = bytes_1.hexlify(data.slice(offset + 1, offset + 1 + length));\n return { consumed: (1 + length), result: result };\n }\n return { consumed: 1, result: bytes_1.hexlify(data[offset]) };\n}\nfunction decode(data) {\n var bytes = bytes_1.arrayify(data);\n var decoded = _decode(bytes, 0);\n if (decoded.consumed !== bytes.length) {\n throw new Error('invalid rlp data');\n }\n return decoded.result;\n}\nexports.decode = decode;\n\n\n/***/ }),\n\n/***/ 1165:\n/***/ ((__unused_webpack_module, exports, __webpack_require__) => {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\nvar constants_1 = __webpack_require__(8707);\nvar errors_1 = __webpack_require__(6459);\nvar bytes_1 = __webpack_require__(8458);\n///////////////////////////////\nvar UnicodeNormalizationForm;\n(function (UnicodeNormalizationForm) {\n UnicodeNormalizationForm[\"current\"] = \"\";\n UnicodeNormalizationForm[\"NFC\"] = \"NFC\";\n UnicodeNormalizationForm[\"NFD\"] = \"NFD\";\n UnicodeNormalizationForm[\"NFKC\"] = \"NFKC\";\n UnicodeNormalizationForm[\"NFKD\"] = \"NFKD\";\n})(UnicodeNormalizationForm = exports.UnicodeNormalizationForm || (exports.UnicodeNormalizationForm = {}));\n;\n// http://stackoverflow.com/questions/18729405/how-to-convert-utf8-string-to-byte-array\nfunction toUtf8Bytes(str, form) {\n if (form === void 0) { form = UnicodeNormalizationForm.current; }\n if (form != UnicodeNormalizationForm.current) {\n errors_1.checkNormalize();\n str = str.normalize(form);\n }\n var result = [];\n for (var i = 0; i < str.length; i++) {\n var c = str.charCodeAt(i);\n if (c < 0x80) {\n result.push(c);\n }\n else if (c < 0x800) {\n result.push((c >> 6) | 0xc0);\n result.push((c & 0x3f) | 0x80);\n }\n else if ((c & 0xfc00) == 0xd800) {\n i++;\n var c2 = str.charCodeAt(i);\n if (i >= str.length || (c2 & 0xfc00) !== 0xdc00) {\n throw new Error('invalid utf-8 string');\n }\n // Surrogate Pair\n c = 0x10000 + ((c & 0x03ff) << 10) + (c2 & 0x03ff);\n result.push((c >> 18) | 0xf0);\n result.push(((c >> 12) & 0x3f) | 0x80);\n result.push(((c >> 6) & 0x3f) | 0x80);\n result.push((c & 0x3f) | 0x80);\n }\n else {\n result.push((c >> 12) | 0xe0);\n result.push(((c >> 6) & 0x3f) | 0x80);\n result.push((c & 0x3f) | 0x80);\n }\n }\n return bytes_1.arrayify(result);\n}\nexports.toUtf8Bytes = toUtf8Bytes;\n;\n// http://stackoverflow.com/questions/13356493/decode-utf-8-with-javascript#13691499\nfunction toUtf8String(bytes, ignoreErrors) {\n bytes = bytes_1.arrayify(bytes);\n var result = '';\n var i = 0;\n // Invalid bytes are ignored\n while (i < bytes.length) {\n var c = bytes[i++];\n // 0xxx xxxx\n if (c >> 7 === 0) {\n result += String.fromCharCode(c);\n continue;\n }\n // Multibyte; how many bytes left for this character?\n var extraLength = null;\n var overlongMask = null;\n // 110x xxxx 10xx xxxx\n if ((c & 0xe0) === 0xc0) {\n extraLength = 1;\n overlongMask = 0x7f;\n // 1110 xxxx 10xx xxxx 10xx xxxx\n }\n else if ((c & 0xf0) === 0xe0) {\n extraLength = 2;\n overlongMask = 0x7ff;\n // 1111 0xxx 10xx xxxx 10xx xxxx 10xx xxxx\n }\n else if ((c & 0xf8) === 0xf0) {\n extraLength = 3;\n overlongMask = 0xffff;\n }\n else {\n if (!ignoreErrors) {\n if ((c & 0xc0) === 0x80) {\n throw new Error('invalid utf8 byte sequence; unexpected continuation byte');\n }\n throw new Error('invalid utf8 byte sequence; invalid prefix');\n }\n continue;\n }\n // Do we have enough bytes in our data?\n if (i + extraLength > bytes.length) {\n if (!ignoreErrors) {\n throw new Error('invalid utf8 byte sequence; too short');\n }\n // If there is an invalid unprocessed byte, skip continuation bytes\n for (; i < bytes.length; i++) {\n if (bytes[i] >> 6 !== 0x02) {\n break;\n }\n }\n continue;\n }\n // Remove the length prefix from the char\n var res = c & ((1 << (8 - extraLength - 1)) - 1);\n for (var j = 0; j < extraLength; j++) {\n var nextChar = bytes[i];\n // Invalid continuation byte\n if ((nextChar & 0xc0) != 0x80) {\n res = null;\n break;\n }\n ;\n res = (res << 6) | (nextChar & 0x3f);\n i++;\n }\n if (res === null) {\n if (!ignoreErrors) {\n throw new Error('invalid utf8 byte sequence; invalid continuation byte');\n }\n continue;\n }\n // Check for overlong seuences (more bytes than needed)\n if (res <= overlongMask) {\n if (!ignoreErrors) {\n throw new Error('invalid utf8 byte sequence; overlong');\n }\n continue;\n }\n // Maximum code point\n if (res > 0x10ffff) {\n if (!ignoreErrors) {\n throw new Error('invalid utf8 byte sequence; out-of-range');\n }\n continue;\n }\n // Reserved for UTF-16 surrogate halves\n if (res >= 0xd800 && res <= 0xdfff) {\n if (!ignoreErrors) {\n throw new Error('invalid utf8 byte sequence; utf-16 surrogate');\n }\n continue;\n }\n if (res <= 0xffff) {\n result += String.fromCharCode(res);\n continue;\n }\n res -= 0x10000;\n result += String.fromCharCode(((res >> 10) & 0x3ff) + 0xd800, (res & 0x3ff) + 0xdc00);\n }\n return result;\n}\nexports.toUtf8String = toUtf8String;\nfunction formatBytes32String(text) {\n // Get the bytes\n var bytes = toUtf8Bytes(text);\n // Check we have room for null-termination\n if (bytes.length > 31) {\n throw new Error('bytes32 string must be less than 32 bytes');\n }\n // Zero-pad (implicitly null-terminates)\n return bytes_1.hexlify(bytes_1.concat([bytes, constants_1.HashZero]).slice(0, 32));\n}\nexports.formatBytes32String = formatBytes32String;\nfunction parseBytes32String(bytes) {\n var data = bytes_1.arrayify(bytes);\n // Must be 32 bytes with a null-termination\n if (data.length !== 32) {\n throw new Error('invalid bytes32 - not 32 bytes long');\n }\n if (data[31] !== 0) {\n throw new Error('invalid bytes32 sdtring - no null terminator');\n }\n // Find the null termination\n var length = 31;\n while (data[length - 1] === 0) {\n length--;\n }\n // Determine the string value\n return toUtf8String(data.slice(0, length));\n}\nexports.parseBytes32String = parseBytes32String;\n\n\n/***/ }),\n\n/***/ 634:\n/***/ (function(module, exports, __webpack_require__) {\n\nvar __WEBPACK_AMD_DEFINE_RESULT__;;(function (globalObject) {\r\n 'use strict';\r\n\r\n/*\r\n * bignumber.js v7.2.1\r\n * A JavaScript library for arbitrary-precision arithmetic.\r\n * https://github.com/MikeMcl/bignumber.js\r\n * Copyright (c) 2018 Michael Mclaughlin \r\n * MIT Licensed.\r\n *\r\n * BigNumber.prototype methods | BigNumber methods\r\n * |\r\n * absoluteValue abs | clone\r\n * comparedTo | config set\r\n * decimalPlaces dp | DECIMAL_PLACES\r\n * dividedBy div | ROUNDING_MODE\r\n * dividedToIntegerBy idiv | EXPONENTIAL_AT\r\n * exponentiatedBy pow | RANGE\r\n * integerValue | CRYPTO\r\n * isEqualTo eq | MODULO_MODE\r\n * isFinite | POW_PRECISION\r\n * isGreaterThan gt | FORMAT\r\n * isGreaterThanOrEqualTo gte | ALPHABET\r\n * isInteger | isBigNumber\r\n * isLessThan lt | maximum max\r\n * isLessThanOrEqualTo lte | minimum min\r\n * isNaN | random\r\n * isNegative |\r\n * isPositive |\r\n * isZero |\r\n * minus |\r\n * modulo mod |\r\n * multipliedBy times |\r\n * negated |\r\n * plus |\r\n * precision sd |\r\n * shiftedBy |\r\n * squareRoot sqrt |\r\n * toExponential |\r\n * toFixed |\r\n * toFormat |\r\n * toFraction |\r\n * toJSON |\r\n * toNumber |\r\n * toPrecision |\r\n * toString |\r\n * valueOf |\r\n *\r\n */\r\n\r\n\r\n var BigNumber,\r\n isNumeric = /^-?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?$/i,\r\n\r\n mathceil = Math.ceil,\r\n mathfloor = Math.floor,\r\n\r\n bignumberError = '[BigNumber Error] ',\r\n tooManyDigits = bignumberError + 'Number primitive has more than 15 significant digits: ',\r\n\r\n BASE = 1e14,\r\n LOG_BASE = 14,\r\n MAX_SAFE_INTEGER = 0x1fffffffffffff, // 2^53 - 1\r\n // MAX_INT32 = 0x7fffffff, // 2^31 - 1\r\n POWS_TEN = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13],\r\n SQRT_BASE = 1e7,\r\n\r\n // EDITABLE\r\n // The limit on the value of DECIMAL_PLACES, TO_EXP_NEG, TO_EXP_POS, MIN_EXP, MAX_EXP, and\r\n // the arguments to toExponential, toFixed, toFormat, and toPrecision.\r\n MAX = 1E9; // 0 to MAX_INT32\r\n\r\n\r\n /*\r\n * Create and return a BigNumber constructor.\r\n */\r\n function clone(configObject) {\r\n var div, convertBase, parseNumeric,\r\n P = BigNumber.prototype = { constructor: BigNumber, toString: null, valueOf: null },\r\n ONE = new BigNumber(1),\r\n\r\n\r\n //----------------------------- EDITABLE CONFIG DEFAULTS -------------------------------\r\n\r\n\r\n // The default values below must be integers within the inclusive ranges stated.\r\n // The values can also be changed at run-time using BigNumber.set.\r\n\r\n // The maximum number of decimal places for operations involving division.\r\n DECIMAL_PLACES = 20, // 0 to MAX\r\n\r\n // The rounding mode used when rounding to the above decimal places, and when using\r\n // toExponential, toFixed, toFormat and toPrecision, and round (default value).\r\n // UP 0 Away from zero.\r\n // DOWN 1 Towards zero.\r\n // CEIL 2 Towards +Infinity.\r\n // FLOOR 3 Towards -Infinity.\r\n // HALF_UP 4 Towards nearest neighbour. If equidistant, up.\r\n // HALF_DOWN 5 Towards nearest neighbour. If equidistant, down.\r\n // HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour.\r\n // HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity.\r\n // HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity.\r\n ROUNDING_MODE = 4, // 0 to 8\r\n\r\n // EXPONENTIAL_AT : [TO_EXP_NEG , TO_EXP_POS]\r\n\r\n // The exponent value at and beneath which toString returns exponential notation.\r\n // Number type: -7\r\n TO_EXP_NEG = -7, // 0 to -MAX\r\n\r\n // The exponent value at and above which toString returns exponential notation.\r\n // Number type: 21\r\n TO_EXP_POS = 21, // 0 to MAX\r\n\r\n // RANGE : [MIN_EXP, MAX_EXP]\r\n\r\n // The minimum exponent value, beneath which underflow to zero occurs.\r\n // Number type: -324 (5e-324)\r\n MIN_EXP = -1e7, // -1 to -MAX\r\n\r\n // The maximum exponent value, above which overflow to Infinity occurs.\r\n // Number type: 308 (1.7976931348623157e+308)\r\n // For MAX_EXP > 1e7, e.g. new BigNumber('1e100000000').plus(1) may be slow.\r\n MAX_EXP = 1e7, // 1 to MAX\r\n\r\n // Whether to use cryptographically-secure random number generation, if available.\r\n CRYPTO = false, // true or false\r\n\r\n // The modulo mode used when calculating the modulus: a mod n.\r\n // The quotient (q = a / n) is calculated according to the corresponding rounding mode.\r\n // The remainder (r) is calculated as: r = a - n * q.\r\n //\r\n // UP 0 The remainder is positive if the dividend is negative, else is negative.\r\n // DOWN 1 The remainder has the same sign as the dividend.\r\n // This modulo mode is commonly known as 'truncated division' and is\r\n // equivalent to (a % n) in JavaScript.\r\n // FLOOR 3 The remainder has the same sign as the divisor (Python %).\r\n // HALF_EVEN 6 This modulo mode implements the IEEE 754 remainder function.\r\n // EUCLID 9 Euclidian division. q = sign(n) * floor(a / abs(n)).\r\n // The remainder is always positive.\r\n //\r\n // The truncated division, floored division, Euclidian division and IEEE 754 remainder\r\n // modes are commonly used for the modulus operation.\r\n // Although the other rounding modes can also be used, they may not give useful results.\r\n MODULO_MODE = 1, // 0 to 9\r\n\r\n // The maximum number of significant digits of the result of the exponentiatedBy operation.\r\n // If POW_PRECISION is 0, there will be unlimited significant digits.\r\n POW_PRECISION = 0, // 0 to MAX\r\n\r\n // The format specification used by the BigNumber.prototype.toFormat method.\r\n FORMAT = {\r\n decimalSeparator: '.',\r\n groupSeparator: ',',\r\n groupSize: 3,\r\n secondaryGroupSize: 0,\r\n fractionGroupSeparator: '\\xA0', // non-breaking space\r\n fractionGroupSize: 0\r\n },\r\n\r\n // The alphabet used for base conversion.\r\n // It must be at least 2 characters long, with no '.' or repeated character.\r\n // '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_'\r\n ALPHABET = '0123456789abcdefghijklmnopqrstuvwxyz';\r\n\r\n\r\n //------------------------------------------------------------------------------------------\r\n\r\n\r\n // CONSTRUCTOR\r\n\r\n\r\n /*\r\n * The BigNumber constructor and exported function.\r\n * Create and return a new instance of a BigNumber object.\r\n *\r\n * n {number|string|BigNumber} A numeric value.\r\n * [b] {number} The base of n. Integer, 2 to ALPHABET.length inclusive.\r\n */\r\n function BigNumber(n, b) {\r\n var alphabet, c, caseChanged, e, i, isNum, len, str,\r\n x = this;\r\n\r\n // Enable constructor usage without new.\r\n if (!(x instanceof BigNumber)) {\r\n\r\n // Don't throw on constructor call without new (#81).\r\n // '[BigNumber Error] Constructor call without new: {n}'\r\n //throw Error(bignumberError + ' Constructor call without new: ' + n);\r\n return new BigNumber(n, b);\r\n }\r\n\r\n if (b == null) {\r\n\r\n // Duplicate.\r\n if (n instanceof BigNumber) {\r\n x.s = n.s;\r\n x.e = n.e;\r\n x.c = (n = n.c) ? n.slice() : n;\r\n return;\r\n }\r\n\r\n isNum = typeof n == 'number';\r\n\r\n if (isNum && n * 0 == 0) {\r\n\r\n // Use `1 / n` to handle minus zero also.\r\n x.s = 1 / n < 0 ? (n = -n, -1) : 1;\r\n\r\n // Faster path for integers.\r\n if (n === ~~n) {\r\n for (e = 0, i = n; i >= 10; i /= 10, e++);\r\n x.e = e;\r\n x.c = [n];\r\n return;\r\n }\r\n\r\n str = n + '';\r\n } else {\r\n if (!isNumeric.test(str = n + '')) return parseNumeric(x, str, isNum);\r\n x.s = str.charCodeAt(0) == 45 ? (str = str.slice(1), -1) : 1;\r\n }\r\n\r\n // Decimal point?\r\n if ((e = str.indexOf('.')) > -1) str = str.replace('.', '');\r\n\r\n // Exponential form?\r\n if ((i = str.search(/e/i)) > 0) {\r\n\r\n // Determine exponent.\r\n if (e < 0) e = i;\r\n e += +str.slice(i + 1);\r\n str = str.substring(0, i);\r\n } else if (e < 0) {\r\n\r\n // Integer.\r\n e = str.length;\r\n }\r\n\r\n } else {\r\n\r\n // '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}'\r\n intCheck(b, 2, ALPHABET.length, 'Base');\r\n str = n + '';\r\n\r\n // Allow exponential notation to be used with base 10 argument, while\r\n // also rounding to DECIMAL_PLACES as with other bases.\r\n if (b == 10) {\r\n x = new BigNumber(n instanceof BigNumber ? n : str);\r\n return round(x, DECIMAL_PLACES + x.e + 1, ROUNDING_MODE);\r\n }\r\n\r\n isNum = typeof n == 'number';\r\n\r\n if (isNum) {\r\n\r\n // Avoid potential interpretation of Infinity and NaN as base 44+ values.\r\n if (n * 0 != 0) return parseNumeric(x, str, isNum, b);\r\n\r\n x.s = 1 / n < 0 ? (str = str.slice(1), -1) : 1;\r\n\r\n // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}'\r\n if (BigNumber.DEBUG && str.replace(/^0\\.0*|\\./, '').length > 15) {\r\n throw Error\r\n (tooManyDigits + n);\r\n }\r\n\r\n // Prevent later check for length on converted number.\r\n isNum = false;\r\n } else {\r\n x.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1;\r\n }\r\n\r\n alphabet = ALPHABET.slice(0, b);\r\n e = i = 0;\r\n\r\n // Check that str is a valid base b number.\r\n // Don't use RegExp so alphabet can contain special characters.\r\n for (len = str.length; i < len; i++) {\r\n if (alphabet.indexOf(c = str.charAt(i)) < 0) {\r\n if (c == '.') {\r\n\r\n // If '.' is not the first character and it has not be found before.\r\n if (i > e) {\r\n e = len;\r\n continue;\r\n }\r\n } else if (!caseChanged) {\r\n\r\n // Allow e.g. hexadecimal 'FF' as well as 'ff'.\r\n if (str == str.toUpperCase() && (str = str.toLowerCase()) ||\r\n str == str.toLowerCase() && (str = str.toUpperCase())) {\r\n caseChanged = true;\r\n i = -1;\r\n e = 0;\r\n continue;\r\n }\r\n }\r\n\r\n return parseNumeric(x, n + '', isNum, b);\r\n }\r\n }\r\n\r\n str = convertBase(str, b, 10, x.s);\r\n\r\n // Decimal point?\r\n if ((e = str.indexOf('.')) > -1) str = str.replace('.', '');\r\n else e = str.length;\r\n }\r\n\r\n // Determine leading zeros.\r\n for (i = 0; str.charCodeAt(i) === 48; i++);\r\n\r\n // Determine trailing zeros.\r\n for (len = str.length; str.charCodeAt(--len) === 48;);\r\n\r\n str = str.slice(i, ++len);\r\n\r\n if (str) {\r\n len -= i;\r\n\r\n // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}'\r\n if (isNum && BigNumber.DEBUG &&\r\n len > 15 && (n > MAX_SAFE_INTEGER || n !== mathfloor(n))) {\r\n throw Error\r\n (tooManyDigits + (x.s * n));\r\n }\r\n\r\n e = e - i - 1;\r\n\r\n // Overflow?\r\n if (e > MAX_EXP) {\r\n\r\n // Infinity.\r\n x.c = x.e = null;\r\n\r\n // Underflow?\r\n } else if (e < MIN_EXP) {\r\n\r\n // Zero.\r\n x.c = [x.e = 0];\r\n } else {\r\n x.e = e;\r\n x.c = [];\r\n\r\n // Transform base\r\n\r\n // e is the base 10 exponent.\r\n // i is where to slice str to get the first element of the coefficient array.\r\n i = (e + 1) % LOG_BASE;\r\n if (e < 0) i += LOG_BASE;\r\n\r\n if (i < len) {\r\n if (i) x.c.push(+str.slice(0, i));\r\n\r\n for (len -= LOG_BASE; i < len;) {\r\n x.c.push(+str.slice(i, i += LOG_BASE));\r\n }\r\n\r\n str = str.slice(i);\r\n i = LOG_BASE - str.length;\r\n } else {\r\n i -= len;\r\n }\r\n\r\n for (; i--; str += '0');\r\n x.c.push(+str);\r\n }\r\n } else {\r\n\r\n // Zero.\r\n x.c = [x.e = 0];\r\n }\r\n }\r\n\r\n\r\n // CONSTRUCTOR PROPERTIES\r\n\r\n\r\n BigNumber.clone = clone;\r\n\r\n BigNumber.ROUND_UP = 0;\r\n BigNumber.ROUND_DOWN = 1;\r\n BigNumber.ROUND_CEIL = 2;\r\n BigNumber.ROUND_FLOOR = 3;\r\n BigNumber.ROUND_HALF_UP = 4;\r\n BigNumber.ROUND_HALF_DOWN = 5;\r\n BigNumber.ROUND_HALF_EVEN = 6;\r\n BigNumber.ROUND_HALF_CEIL = 7;\r\n BigNumber.ROUND_HALF_FLOOR = 8;\r\n BigNumber.EUCLID = 9;\r\n\r\n\r\n /*\r\n * Configure infrequently-changing library-wide settings.\r\n *\r\n * Accept an object with the following optional properties (if the value of a property is\r\n * a number, it must be an integer within the inclusive range stated):\r\n *\r\n * DECIMAL_PLACES {number} 0 to MAX\r\n * ROUNDING_MODE {number} 0 to 8\r\n * EXPONENTIAL_AT {number|number[]} -MAX to MAX or [-MAX to 0, 0 to MAX]\r\n * RANGE {number|number[]} -MAX to MAX (not zero) or [-MAX to -1, 1 to MAX]\r\n * CRYPTO {boolean} true or false\r\n * MODULO_MODE {number} 0 to 9\r\n * POW_PRECISION {number} 0 to MAX\r\n * ALPHABET {string} A string of two or more unique characters which does\r\n * not contain '.'.\r\n * FORMAT {object} An object with some of the following properties:\r\n * decimalSeparator {string}\r\n * groupSeparator {string}\r\n * groupSize {number}\r\n * secondaryGroupSize {number}\r\n * fractionGroupSeparator {string}\r\n * fractionGroupSize {number}\r\n *\r\n * (The values assigned to the above FORMAT object properties are not checked for validity.)\r\n *\r\n * E.g.\r\n * BigNumber.config({ DECIMAL_PLACES : 20, ROUNDING_MODE : 4 })\r\n *\r\n * Ignore properties/parameters set to null or undefined, except for ALPHABET.\r\n *\r\n * Return an object with the properties current values.\r\n */\r\n BigNumber.config = BigNumber.set = function (obj) {\r\n var p, v;\r\n\r\n if (obj != null) {\r\n\r\n if (typeof obj == 'object') {\r\n\r\n // DECIMAL_PLACES {number} Integer, 0 to MAX inclusive.\r\n // '[BigNumber Error] DECIMAL_PLACES {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'DECIMAL_PLACES')) {\r\n v = obj[p];\r\n intCheck(v, 0, MAX, p);\r\n DECIMAL_PLACES = v;\r\n }\r\n\r\n // ROUNDING_MODE {number} Integer, 0 to 8 inclusive.\r\n // '[BigNumber Error] ROUNDING_MODE {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'ROUNDING_MODE')) {\r\n v = obj[p];\r\n intCheck(v, 0, 8, p);\r\n ROUNDING_MODE = v;\r\n }\r\n\r\n // EXPONENTIAL_AT {number|number[]}\r\n // Integer, -MAX to MAX inclusive or\r\n // [integer -MAX to 0 inclusive, 0 to MAX inclusive].\r\n // '[BigNumber Error] EXPONENTIAL_AT {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'EXPONENTIAL_AT')) {\r\n v = obj[p];\r\n if (isArray(v)) {\r\n intCheck(v[0], -MAX, 0, p);\r\n intCheck(v[1], 0, MAX, p);\r\n TO_EXP_NEG = v[0];\r\n TO_EXP_POS = v[1];\r\n } else {\r\n intCheck(v, -MAX, MAX, p);\r\n TO_EXP_NEG = -(TO_EXP_POS = v < 0 ? -v : v);\r\n }\r\n }\r\n\r\n // RANGE {number|number[]} Non-zero integer, -MAX to MAX inclusive or\r\n // [integer -MAX to -1 inclusive, integer 1 to MAX inclusive].\r\n // '[BigNumber Error] RANGE {not a primitive number|not an integer|out of range|cannot be zero}: {v}'\r\n if (obj.hasOwnProperty(p = 'RANGE')) {\r\n v = obj[p];\r\n if (isArray(v)) {\r\n intCheck(v[0], -MAX, -1, p);\r\n intCheck(v[1], 1, MAX, p);\r\n MIN_EXP = v[0];\r\n MAX_EXP = v[1];\r\n } else {\r\n intCheck(v, -MAX, MAX, p);\r\n if (v) {\r\n MIN_EXP = -(MAX_EXP = v < 0 ? -v : v);\r\n } else {\r\n throw Error\r\n (bignumberError + p + ' cannot be zero: ' + v);\r\n }\r\n }\r\n }\r\n\r\n // CRYPTO {boolean} true or false.\r\n // '[BigNumber Error] CRYPTO not true or false: {v}'\r\n // '[BigNumber Error] crypto unavailable'\r\n if (obj.hasOwnProperty(p = 'CRYPTO')) {\r\n v = obj[p];\r\n if (v === !!v) {\r\n if (v) {\r\n if (typeof crypto != 'undefined' && crypto &&\r\n (crypto.getRandomValues || crypto.randomBytes)) {\r\n CRYPTO = v;\r\n } else {\r\n CRYPTO = !v;\r\n throw Error\r\n (bignumberError + 'crypto unavailable');\r\n }\r\n } else {\r\n CRYPTO = v;\r\n }\r\n } else {\r\n throw Error\r\n (bignumberError + p + ' not true or false: ' + v);\r\n }\r\n }\r\n\r\n // MODULO_MODE {number} Integer, 0 to 9 inclusive.\r\n // '[BigNumber Error] MODULO_MODE {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'MODULO_MODE')) {\r\n v = obj[p];\r\n intCheck(v, 0, 9, p);\r\n MODULO_MODE = v;\r\n }\r\n\r\n // POW_PRECISION {number} Integer, 0 to MAX inclusive.\r\n // '[BigNumber Error] POW_PRECISION {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'POW_PRECISION')) {\r\n v = obj[p];\r\n intCheck(v, 0, MAX, p);\r\n POW_PRECISION = v;\r\n }\r\n\r\n // FORMAT {object}\r\n // '[BigNumber Error] FORMAT not an object: {v}'\r\n if (obj.hasOwnProperty(p = 'FORMAT')) {\r\n v = obj[p];\r\n if (typeof v == 'object') FORMAT = v;\r\n else throw Error\r\n (bignumberError + p + ' not an object: ' + v);\r\n }\r\n\r\n // ALPHABET {string}\r\n // '[BigNumber Error] ALPHABET invalid: {v}'\r\n if (obj.hasOwnProperty(p = 'ALPHABET')) {\r\n v = obj[p];\r\n\r\n // Disallow if only one character, or contains '.' or a repeated character.\r\n if (typeof v == 'string' && !/^.$|\\.|(.).*\\1/.test(v)) {\r\n ALPHABET = v;\r\n } else {\r\n throw Error\r\n (bignumberError + p + ' invalid: ' + v);\r\n }\r\n }\r\n\r\n } else {\r\n\r\n // '[BigNumber Error] Object expected: {v}'\r\n throw Error\r\n (bignumberError + 'Object expected: ' + obj);\r\n }\r\n }\r\n\r\n return {\r\n DECIMAL_PLACES: DECIMAL_PLACES,\r\n ROUNDING_MODE: ROUNDING_MODE,\r\n EXPONENTIAL_AT: [TO_EXP_NEG, TO_EXP_POS],\r\n RANGE: [MIN_EXP, MAX_EXP],\r\n CRYPTO: CRYPTO,\r\n MODULO_MODE: MODULO_MODE,\r\n POW_PRECISION: POW_PRECISION,\r\n FORMAT: FORMAT,\r\n ALPHABET: ALPHABET\r\n };\r\n };\r\n\r\n\r\n /*\r\n * Return true if v is a BigNumber instance, otherwise return false.\r\n *\r\n * v {any}\r\n */\r\n BigNumber.isBigNumber = function (v) {\r\n return v instanceof BigNumber || v && v._isBigNumber === true || false;\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the maximum of the arguments.\r\n *\r\n * arguments {number|string|BigNumber}\r\n */\r\n BigNumber.maximum = BigNumber.max = function () {\r\n return maxOrMin(arguments, P.lt);\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the minimum of the arguments.\r\n *\r\n * arguments {number|string|BigNumber}\r\n */\r\n BigNumber.minimum = BigNumber.min = function () {\r\n return maxOrMin(arguments, P.gt);\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber with a random value equal to or greater than 0 and less than 1,\r\n * and with dp, or DECIMAL_PLACES if dp is omitted, decimal places (or less if trailing\r\n * zeros are produced).\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp}'\r\n * '[BigNumber Error] crypto unavailable'\r\n */\r\n BigNumber.random = (function () {\r\n var pow2_53 = 0x20000000000000;\r\n\r\n // Return a 53 bit integer n, where 0 <= n < 9007199254740992.\r\n // Check if Math.random() produces more than 32 bits of randomness.\r\n // If it does, assume at least 53 bits are produced, otherwise assume at least 30 bits.\r\n // 0x40000000 is 2^30, 0x800000 is 2^23, 0x1fffff is 2^21 - 1.\r\n var random53bitInt = (Math.random() * pow2_53) & 0x1fffff\r\n ? function () { return mathfloor(Math.random() * pow2_53); }\r\n : function () { return ((Math.random() * 0x40000000 | 0) * 0x800000) +\r\n (Math.random() * 0x800000 | 0); };\r\n\r\n return function (dp) {\r\n var a, b, e, k, v,\r\n i = 0,\r\n c = [],\r\n rand = new BigNumber(ONE);\r\n\r\n if (dp == null) dp = DECIMAL_PLACES;\r\n else intCheck(dp, 0, MAX);\r\n\r\n k = mathceil(dp / LOG_BASE);\r\n\r\n if (CRYPTO) {\r\n\r\n // Browsers supporting crypto.getRandomValues.\r\n if (crypto.getRandomValues) {\r\n\r\n a = crypto.getRandomValues(new Uint32Array(k *= 2));\r\n\r\n for (; i < k;) {\r\n\r\n // 53 bits:\r\n // ((Math.pow(2, 32) - 1) * Math.pow(2, 21)).toString(2)\r\n // 11111 11111111 11111111 11111111 11100000 00000000 00000000\r\n // ((Math.pow(2, 32) - 1) >>> 11).toString(2)\r\n // 11111 11111111 11111111\r\n // 0x20000 is 2^21.\r\n v = a[i] * 0x20000 + (a[i + 1] >>> 11);\r\n\r\n // Rejection sampling:\r\n // 0 <= v < 9007199254740992\r\n // Probability that v >= 9e15, is\r\n // 7199254740992 / 9007199254740992 ~= 0.0008, i.e. 1 in 1251\r\n if (v >= 9e15) {\r\n b = crypto.getRandomValues(new Uint32Array(2));\r\n a[i] = b[0];\r\n a[i + 1] = b[1];\r\n } else {\r\n\r\n // 0 <= v <= 8999999999999999\r\n // 0 <= (v % 1e14) <= 99999999999999\r\n c.push(v % 1e14);\r\n i += 2;\r\n }\r\n }\r\n i = k / 2;\r\n\r\n // Node.js supporting crypto.randomBytes.\r\n } else if (crypto.randomBytes) {\r\n\r\n // buffer\r\n a = crypto.randomBytes(k *= 7);\r\n\r\n for (; i < k;) {\r\n\r\n // 0x1000000000000 is 2^48, 0x10000000000 is 2^40\r\n // 0x100000000 is 2^32, 0x1000000 is 2^24\r\n // 11111 11111111 11111111 11111111 11111111 11111111 11111111\r\n // 0 <= v < 9007199254740992\r\n v = ((a[i] & 31) * 0x1000000000000) + (a[i + 1] * 0x10000000000) +\r\n (a[i + 2] * 0x100000000) + (a[i + 3] * 0x1000000) +\r\n (a[i + 4] << 16) + (a[i + 5] << 8) + a[i + 6];\r\n\r\n if (v >= 9e15) {\r\n crypto.randomBytes(7).copy(a, i);\r\n } else {\r\n\r\n // 0 <= (v % 1e14) <= 99999999999999\r\n c.push(v % 1e14);\r\n i += 7;\r\n }\r\n }\r\n i = k / 7;\r\n } else {\r\n CRYPTO = false;\r\n throw Error\r\n (bignumberError + 'crypto unavailable');\r\n }\r\n }\r\n\r\n // Use Math.random.\r\n if (!CRYPTO) {\r\n\r\n for (; i < k;) {\r\n v = random53bitInt();\r\n if (v < 9e15) c[i++] = v % 1e14;\r\n }\r\n }\r\n\r\n k = c[--i];\r\n dp %= LOG_BASE;\r\n\r\n // Convert trailing digits to zeros according to dp.\r\n if (k && dp) {\r\n v = POWS_TEN[LOG_BASE - dp];\r\n c[i] = mathfloor(k / v) * v;\r\n }\r\n\r\n // Remove trailing elements which are zero.\r\n for (; c[i] === 0; c.pop(), i--);\r\n\r\n // Zero?\r\n if (i < 0) {\r\n c = [e = 0];\r\n } else {\r\n\r\n // Remove leading elements which are zero and adjust exponent accordingly.\r\n for (e = -1 ; c[0] === 0; c.splice(0, 1), e -= LOG_BASE);\r\n\r\n // Count the digits of the first element of c to determine leading zeros, and...\r\n for (i = 1, v = c[0]; v >= 10; v /= 10, i++);\r\n\r\n // adjust the exponent accordingly.\r\n if (i < LOG_BASE) e -= LOG_BASE - i;\r\n }\r\n\r\n rand.e = e;\r\n rand.c = c;\r\n return rand;\r\n };\r\n })();\r\n\r\n\r\n // PRIVATE FUNCTIONS\r\n\r\n\r\n // Called by BigNumber and BigNumber.prototype.toString.\r\n convertBase = (function () {\r\n var decimal = '0123456789';\r\n\r\n /*\r\n * Convert string of baseIn to an array of numbers of baseOut.\r\n * Eg. toBaseOut('255', 10, 16) returns [15, 15].\r\n * Eg. toBaseOut('ff', 16, 10) returns [2, 5, 5].\r\n */\r\n function toBaseOut(str, baseIn, baseOut, alphabet) {\r\n var j,\r\n arr = [0],\r\n arrL,\r\n i = 0,\r\n len = str.length;\r\n\r\n for (; i < len;) {\r\n for (arrL = arr.length; arrL--; arr[arrL] *= baseIn);\r\n\r\n arr[0] += alphabet.indexOf(str.charAt(i++));\r\n\r\n for (j = 0; j < arr.length; j++) {\r\n\r\n if (arr[j] > baseOut - 1) {\r\n if (arr[j + 1] == null) arr[j + 1] = 0;\r\n arr[j + 1] += arr[j] / baseOut | 0;\r\n arr[j] %= baseOut;\r\n }\r\n }\r\n }\r\n\r\n return arr.reverse();\r\n }\r\n\r\n // Convert a numeric string of baseIn to a numeric string of baseOut.\r\n // If the caller is toString, we are converting from base 10 to baseOut.\r\n // If the caller is BigNumber, we are converting from baseIn to base 10.\r\n return function (str, baseIn, baseOut, sign, callerIsToString) {\r\n var alphabet, d, e, k, r, x, xc, y,\r\n i = str.indexOf('.'),\r\n dp = DECIMAL_PLACES,\r\n rm = ROUNDING_MODE;\r\n\r\n // Non-integer.\r\n if (i >= 0) {\r\n k = POW_PRECISION;\r\n\r\n // Unlimited precision.\r\n POW_PRECISION = 0;\r\n str = str.replace('.', '');\r\n y = new BigNumber(baseIn);\r\n x = y.pow(str.length - i);\r\n POW_PRECISION = k;\r\n\r\n // Convert str as if an integer, then restore the fraction part by dividing the\r\n // result by its base raised to a power.\r\n\r\n y.c = toBaseOut(toFixedPoint(coeffToString(x.c), x.e, '0'),\r\n 10, baseOut, decimal);\r\n y.e = y.c.length;\r\n }\r\n\r\n // Convert the number as integer.\r\n\r\n xc = toBaseOut(str, baseIn, baseOut, callerIsToString\r\n ? (alphabet = ALPHABET, decimal)\r\n : (alphabet = decimal, ALPHABET));\r\n\r\n // xc now represents str as an integer and converted to baseOut. e is the exponent.\r\n e = k = xc.length;\r\n\r\n // Remove trailing zeros.\r\n for (; xc[--k] == 0; xc.pop());\r\n\r\n // Zero?\r\n if (!xc[0]) return alphabet.charAt(0);\r\n\r\n // Does str represent an integer? If so, no need for the division.\r\n if (i < 0) {\r\n --e;\r\n } else {\r\n x.c = xc;\r\n x.e = e;\r\n\r\n // The sign is needed for correct rounding.\r\n x.s = sign;\r\n x = div(x, y, dp, rm, baseOut);\r\n xc = x.c;\r\n r = x.r;\r\n e = x.e;\r\n }\r\n\r\n // xc now represents str converted to baseOut.\r\n\r\n // THe index of the rounding digit.\r\n d = e + dp + 1;\r\n\r\n // The rounding digit: the digit to the right of the digit that may be rounded up.\r\n i = xc[d];\r\n\r\n // Look at the rounding digits and mode to determine whether to round up.\r\n\r\n k = baseOut / 2;\r\n r = r || d < 0 || xc[d + 1] != null;\r\n\r\n r = rm < 4 ? (i != null || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2))\r\n : i > k || i == k &&(rm == 4 || r || rm == 6 && xc[d - 1] & 1 ||\r\n rm == (x.s < 0 ? 8 : 7));\r\n\r\n // If the index of the rounding digit is not greater than zero, or xc represents\r\n // zero, then the result of the base conversion is zero or, if rounding up, a value\r\n // such as 0.00001.\r\n if (d < 1 || !xc[0]) {\r\n\r\n // 1^-dp or 0\r\n str = r ? toFixedPoint(alphabet.charAt(1), -dp, alphabet.charAt(0))\r\n : alphabet.charAt(0);\r\n } else {\r\n\r\n // Truncate xc to the required number of decimal places.\r\n xc.length = d;\r\n\r\n // Round up?\r\n if (r) {\r\n\r\n // Rounding up may mean the previous digit has to be rounded up and so on.\r\n for (--baseOut; ++xc[--d] > baseOut;) {\r\n xc[d] = 0;\r\n\r\n if (!d) {\r\n ++e;\r\n xc = [1].concat(xc);\r\n }\r\n }\r\n }\r\n\r\n // Determine trailing zeros.\r\n for (k = xc.length; !xc[--k];);\r\n\r\n // E.g. [4, 11, 15] becomes 4bf.\r\n for (i = 0, str = ''; i <= k; str += alphabet.charAt(xc[i++]));\r\n\r\n // Add leading zeros, decimal point and trailing zeros as required.\r\n str = toFixedPoint(str, e, alphabet.charAt(0));\r\n }\r\n\r\n // The caller will add the sign.\r\n return str;\r\n };\r\n })();\r\n\r\n\r\n // Perform division in the specified base. Called by div and convertBase.\r\n div = (function () {\r\n\r\n // Assume non-zero x and k.\r\n function multiply(x, k, base) {\r\n var m, temp, xlo, xhi,\r\n carry = 0,\r\n i = x.length,\r\n klo = k % SQRT_BASE,\r\n khi = k / SQRT_BASE | 0;\r\n\r\n for (x = x.slice(); i--;) {\r\n xlo = x[i] % SQRT_BASE;\r\n xhi = x[i] / SQRT_BASE | 0;\r\n m = khi * xlo + xhi * klo;\r\n temp = klo * xlo + ((m % SQRT_BASE) * SQRT_BASE) + carry;\r\n carry = (temp / base | 0) + (m / SQRT_BASE | 0) + khi * xhi;\r\n x[i] = temp % base;\r\n }\r\n\r\n if (carry) x = [carry].concat(x);\r\n\r\n return x;\r\n }\r\n\r\n function compare(a, b, aL, bL) {\r\n var i, cmp;\r\n\r\n if (aL != bL) {\r\n cmp = aL > bL ? 1 : -1;\r\n } else {\r\n\r\n for (i = cmp = 0; i < aL; i++) {\r\n\r\n if (a[i] != b[i]) {\r\n cmp = a[i] > b[i] ? 1 : -1;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return cmp;\r\n }\r\n\r\n function subtract(a, b, aL, base) {\r\n var i = 0;\r\n\r\n // Subtract b from a.\r\n for (; aL--;) {\r\n a[aL] -= i;\r\n i = a[aL] < b[aL] ? 1 : 0;\r\n a[aL] = i * base + a[aL] - b[aL];\r\n }\r\n\r\n // Remove leading zeros.\r\n for (; !a[0] && a.length > 1; a.splice(0, 1));\r\n }\r\n\r\n // x: dividend, y: divisor.\r\n return function (x, y, dp, rm, base) {\r\n var cmp, e, i, more, n, prod, prodL, q, qc, rem, remL, rem0, xi, xL, yc0,\r\n yL, yz,\r\n s = x.s == y.s ? 1 : -1,\r\n xc = x.c,\r\n yc = y.c;\r\n\r\n // Either NaN, Infinity or 0?\r\n if (!xc || !xc[0] || !yc || !yc[0]) {\r\n\r\n return new BigNumber(\r\n\r\n // Return NaN if either NaN, or both Infinity or 0.\r\n !x.s || !y.s || (xc ? yc && xc[0] == yc[0] : !yc) ? NaN :\r\n\r\n // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.\r\n xc && xc[0] == 0 || !yc ? s * 0 : s / 0\r\n );\r\n }\r\n\r\n q = new BigNumber(s);\r\n qc = q.c = [];\r\n e = x.e - y.e;\r\n s = dp + e + 1;\r\n\r\n if (!base) {\r\n base = BASE;\r\n e = bitFloor(x.e / LOG_BASE) - bitFloor(y.e / LOG_BASE);\r\n s = s / LOG_BASE | 0;\r\n }\r\n\r\n // Result exponent may be one less then the current value of e.\r\n // The coefficients of the BigNumbers from convertBase may have trailing zeros.\r\n for (i = 0; yc[i] == (xc[i] || 0); i++);\r\n\r\n if (yc[i] > (xc[i] || 0)) e--;\r\n\r\n if (s < 0) {\r\n qc.push(1);\r\n more = true;\r\n } else {\r\n xL = xc.length;\r\n yL = yc.length;\r\n i = 0;\r\n s += 2;\r\n\r\n // Normalise xc and yc so highest order digit of yc is >= base / 2.\r\n\r\n n = mathfloor(base / (yc[0] + 1));\r\n\r\n // Not necessary, but to handle odd bases where yc[0] == (base / 2) - 1.\r\n // if (n > 1 || n++ == 1 && yc[0] < base / 2) {\r\n if (n > 1) {\r\n yc = multiply(yc, n, base);\r\n xc = multiply(xc, n, base);\r\n yL = yc.length;\r\n xL = xc.length;\r\n }\r\n\r\n xi = yL;\r\n rem = xc.slice(0, yL);\r\n remL = rem.length;\r\n\r\n // Add zeros to make remainder as long as divisor.\r\n for (; remL < yL; rem[remL++] = 0);\r\n yz = yc.slice();\r\n yz = [0].concat(yz);\r\n yc0 = yc[0];\r\n if (yc[1] >= base / 2) yc0++;\r\n // Not necessary, but to prevent trial digit n > base, when using base 3.\r\n // else if (base == 3 && yc0 == 1) yc0 = 1 + 1e-15;\r\n\r\n do {\r\n n = 0;\r\n\r\n // Compare divisor and remainder.\r\n cmp = compare(yc, rem, yL, remL);\r\n\r\n // If divisor < remainder.\r\n if (cmp < 0) {\r\n\r\n // Calculate trial digit, n.\r\n\r\n rem0 = rem[0];\r\n if (yL != remL) rem0 = rem0 * base + (rem[1] || 0);\r\n\r\n // n is how many times the divisor goes into the current remainder.\r\n n = mathfloor(rem0 / yc0);\r\n\r\n // Algorithm:\r\n // product = divisor multiplied by trial digit (n).\r\n // Compare product and remainder.\r\n // If product is greater than remainder:\r\n // Subtract divisor from product, decrement trial digit.\r\n // Subtract product from remainder.\r\n // If product was less than remainder at the last compare:\r\n // Compare new remainder and divisor.\r\n // If remainder is greater than divisor:\r\n // Subtract divisor from remainder, increment trial digit.\r\n\r\n if (n > 1) {\r\n\r\n // n may be > base only when base is 3.\r\n if (n >= base) n = base - 1;\r\n\r\n // product = divisor * trial digit.\r\n prod = multiply(yc, n, base);\r\n prodL = prod.length;\r\n remL = rem.length;\r\n\r\n // Compare product and remainder.\r\n // If product > remainder then trial digit n too high.\r\n // n is 1 too high about 5% of the time, and is not known to have\r\n // ever been more than 1 too high.\r\n while (compare(prod, rem, prodL, remL) == 1) {\r\n n--;\r\n\r\n // Subtract divisor from product.\r\n subtract(prod, yL < prodL ? yz : yc, prodL, base);\r\n prodL = prod.length;\r\n cmp = 1;\r\n }\r\n } else {\r\n\r\n // n is 0 or 1, cmp is -1.\r\n // If n is 0, there is no need to compare yc and rem again below,\r\n // so change cmp to 1 to avoid it.\r\n // If n is 1, leave cmp as -1, so yc and rem are compared again.\r\n if (n == 0) {\r\n\r\n // divisor < remainder, so n must be at least 1.\r\n cmp = n = 1;\r\n }\r\n\r\n // product = divisor\r\n prod = yc.slice();\r\n prodL = prod.length;\r\n }\r\n\r\n if (prodL < remL) prod = [0].concat(prod);\r\n\r\n // Subtract product from remainder.\r\n subtract(rem, prod, remL, base);\r\n remL = rem.length;\r\n\r\n // If product was < remainder.\r\n if (cmp == -1) {\r\n\r\n // Compare divisor and new remainder.\r\n // If divisor < new remainder, subtract divisor from remainder.\r\n // Trial digit n too low.\r\n // n is 1 too low about 5% of the time, and very rarely 2 too low.\r\n while (compare(yc, rem, yL, remL) < 1) {\r\n n++;\r\n\r\n // Subtract divisor from remainder.\r\n subtract(rem, yL < remL ? yz : yc, remL, base);\r\n remL = rem.length;\r\n }\r\n }\r\n } else if (cmp === 0) {\r\n n++;\r\n rem = [0];\r\n } // else cmp === 1 and n will be 0\r\n\r\n // Add the next digit, n, to the result array.\r\n qc[i++] = n;\r\n\r\n // Update the remainder.\r\n if (rem[0]) {\r\n rem[remL++] = xc[xi] || 0;\r\n } else {\r\n rem = [xc[xi]];\r\n remL = 1;\r\n }\r\n } while ((xi++ < xL || rem[0] != null) && s--);\r\n\r\n more = rem[0] != null;\r\n\r\n // Leading zero?\r\n if (!qc[0]) qc.splice(0, 1);\r\n }\r\n\r\n if (base == BASE) {\r\n\r\n // To calculate q.e, first get the number of digits of qc[0].\r\n for (i = 1, s = qc[0]; s >= 10; s /= 10, i++);\r\n\r\n round(q, dp + (q.e = i + e * LOG_BASE - 1) + 1, rm, more);\r\n\r\n // Caller is convertBase.\r\n } else {\r\n q.e = e;\r\n q.r = +more;\r\n }\r\n\r\n return q;\r\n };\r\n })();\r\n\r\n\r\n /*\r\n * Return a string representing the value of BigNumber n in fixed-point or exponential\r\n * notation rounded to the specified decimal places or significant digits.\r\n *\r\n * n: a BigNumber.\r\n * i: the index of the last digit required (i.e. the digit that may be rounded up).\r\n * rm: the rounding mode.\r\n * id: 1 (toExponential) or 2 (toPrecision).\r\n */\r\n function format(n, i, rm, id) {\r\n var c0, e, ne, len, str;\r\n\r\n if (rm == null) rm = ROUNDING_MODE;\r\n else intCheck(rm, 0, 8);\r\n\r\n if (!n.c) return n.toString();\r\n\r\n c0 = n.c[0];\r\n ne = n.e;\r\n\r\n if (i == null) {\r\n str = coeffToString(n.c);\r\n str = id == 1 || id == 2 && ne <= TO_EXP_NEG\r\n ? toExponential(str, ne)\r\n : toFixedPoint(str, ne, '0');\r\n } else {\r\n n = round(new BigNumber(n), i, rm);\r\n\r\n // n.e may have changed if the value was rounded up.\r\n e = n.e;\r\n\r\n str = coeffToString(n.c);\r\n len = str.length;\r\n\r\n // toPrecision returns exponential notation if the number of significant digits\r\n // specified is less than the number of digits necessary to represent the integer\r\n // part of the value in fixed-point notation.\r\n\r\n // Exponential notation.\r\n if (id == 1 || id == 2 && (i <= e || e <= TO_EXP_NEG)) {\r\n\r\n // Append zeros?\r\n for (; len < i; str += '0', len++);\r\n str = toExponential(str, e);\r\n\r\n // Fixed-point notation.\r\n } else {\r\n i -= ne;\r\n str = toFixedPoint(str, e, '0');\r\n\r\n // Append zeros?\r\n if (e + 1 > len) {\r\n if (--i > 0) for (str += '.'; i--; str += '0');\r\n } else {\r\n i += e - len;\r\n if (i > 0) {\r\n if (e + 1 == len) str += '.';\r\n for (; i--; str += '0');\r\n }\r\n }\r\n }\r\n }\r\n\r\n return n.s < 0 && c0 ? '-' + str : str;\r\n }\r\n\r\n\r\n // Handle BigNumber.max and BigNumber.min.\r\n function maxOrMin(args, method) {\r\n var m, n,\r\n i = 0;\r\n\r\n if (isArray(args[0])) args = args[0];\r\n m = new BigNumber(args[0]);\r\n\r\n for (; ++i < args.length;) {\r\n n = new BigNumber(args[i]);\r\n\r\n // If any number is NaN, return NaN.\r\n if (!n.s) {\r\n m = n;\r\n break;\r\n } else if (method.call(m, n)) {\r\n m = n;\r\n }\r\n }\r\n\r\n return m;\r\n }\r\n\r\n\r\n /*\r\n * Strip trailing zeros, calculate base 10 exponent and check against MIN_EXP and MAX_EXP.\r\n * Called by minus, plus and times.\r\n */\r\n function normalise(n, c, e) {\r\n var i = 1,\r\n j = c.length;\r\n\r\n // Remove trailing zeros.\r\n for (; !c[--j]; c.pop());\r\n\r\n // Calculate the base 10 exponent. First get the number of digits of c[0].\r\n for (j = c[0]; j >= 10; j /= 10, i++);\r\n\r\n // Overflow?\r\n if ((e = i + e * LOG_BASE - 1) > MAX_EXP) {\r\n\r\n // Infinity.\r\n n.c = n.e = null;\r\n\r\n // Underflow?\r\n } else if (e < MIN_EXP) {\r\n\r\n // Zero.\r\n n.c = [n.e = 0];\r\n } else {\r\n n.e = e;\r\n n.c = c;\r\n }\r\n\r\n return n;\r\n }\r\n\r\n\r\n // Handle values that fail the validity test in BigNumber.\r\n parseNumeric = (function () {\r\n var basePrefix = /^(-?)0([xbo])(?=\\w[\\w.]*$)/i,\r\n dotAfter = /^([^.]+)\\.$/,\r\n dotBefore = /^\\.([^.]+)$/,\r\n isInfinityOrNaN = /^-?(Infinity|NaN)$/,\r\n whitespaceOrPlus = /^\\s*\\+(?=[\\w.])|^\\s+|\\s+$/g;\r\n\r\n return function (x, str, isNum, b) {\r\n var base,\r\n s = isNum ? str : str.replace(whitespaceOrPlus, '');\r\n\r\n // No exception on ±Infinity or NaN.\r\n if (isInfinityOrNaN.test(s)) {\r\n x.s = isNaN(s) ? null : s < 0 ? -1 : 1;\r\n x.c = x.e = null;\r\n } else {\r\n if (!isNum) {\r\n\r\n // basePrefix = /^(-?)0([xbo])(?=\\w[\\w.]*$)/i\r\n s = s.replace(basePrefix, function (m, p1, p2) {\r\n base = (p2 = p2.toLowerCase()) == 'x' ? 16 : p2 == 'b' ? 2 : 8;\r\n return !b || b == base ? p1 : m;\r\n });\r\n\r\n if (b) {\r\n base = b;\r\n\r\n // E.g. '1.' to '1', '.1' to '0.1'\r\n s = s.replace(dotAfter, '$1').replace(dotBefore, '0.$1');\r\n }\r\n\r\n if (str != s) return new BigNumber(s, base);\r\n }\r\n\r\n // '[BigNumber Error] Not a number: {n}'\r\n // '[BigNumber Error] Not a base {b} number: {n}'\r\n if (BigNumber.DEBUG) {\r\n throw Error\r\n (bignumberError + 'Not a' + (b ? ' base ' + b : '') + ' number: ' + str);\r\n }\r\n\r\n // NaN\r\n x.c = x.e = x.s = null;\r\n }\r\n }\r\n })();\r\n\r\n\r\n /*\r\n * Round x to sd significant digits using rounding mode rm. Check for over/under-flow.\r\n * If r is truthy, it is known that there are more digits after the rounding digit.\r\n */\r\n function round(x, sd, rm, r) {\r\n var d, i, j, k, n, ni, rd,\r\n xc = x.c,\r\n pows10 = POWS_TEN;\r\n\r\n // if x is not Infinity or NaN...\r\n if (xc) {\r\n\r\n // rd is the rounding digit, i.e. the digit after the digit that may be rounded up.\r\n // n is a base 1e14 number, the value of the element of array x.c containing rd.\r\n // ni is the index of n within x.c.\r\n // d is the number of digits of n.\r\n // i is the index of rd within n including leading zeros.\r\n // j is the actual index of rd within n (if < 0, rd is a leading zero).\r\n out: {\r\n\r\n // Get the number of digits of the first element of xc.\r\n for (d = 1, k = xc[0]; k >= 10; k /= 10, d++);\r\n i = sd - d;\r\n\r\n // If the rounding digit is in the first element of xc...\r\n if (i < 0) {\r\n i += LOG_BASE;\r\n j = sd;\r\n n = xc[ni = 0];\r\n\r\n // Get the rounding digit at index j of n.\r\n rd = n / pows10[d - j - 1] % 10 | 0;\r\n } else {\r\n ni = mathceil((i + 1) / LOG_BASE);\r\n\r\n if (ni >= xc.length) {\r\n\r\n if (r) {\r\n\r\n // Needed by sqrt.\r\n for (; xc.length <= ni; xc.push(0));\r\n n = rd = 0;\r\n d = 1;\r\n i %= LOG_BASE;\r\n j = i - LOG_BASE + 1;\r\n } else {\r\n break out;\r\n }\r\n } else {\r\n n = k = xc[ni];\r\n\r\n // Get the number of digits of n.\r\n for (d = 1; k >= 10; k /= 10, d++);\r\n\r\n // Get the index of rd within n.\r\n i %= LOG_BASE;\r\n\r\n // Get the index of rd within n, adjusted for leading zeros.\r\n // The number of leading zeros of n is given by LOG_BASE - d.\r\n j = i - LOG_BASE + d;\r\n\r\n // Get the rounding digit at index j of n.\r\n rd = j < 0 ? 0 : n / pows10[d - j - 1] % 10 | 0;\r\n }\r\n }\r\n\r\n r = r || sd < 0 ||\r\n\r\n // Are there any non-zero digits after the rounding digit?\r\n // The expression n % pows10[d - j - 1] returns all digits of n to the right\r\n // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.\r\n xc[ni + 1] != null || (j < 0 ? n : n % pows10[d - j - 1]);\r\n\r\n r = rm < 4\r\n ? (rd || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2))\r\n : rd > 5 || rd == 5 && (rm == 4 || r || rm == 6 &&\r\n\r\n // Check whether the digit to the left of the rounding digit is odd.\r\n ((i > 0 ? j > 0 ? n / pows10[d - j] : 0 : xc[ni - 1]) % 10) & 1 ||\r\n rm == (x.s < 0 ? 8 : 7));\r\n\r\n if (sd < 1 || !xc[0]) {\r\n xc.length = 0;\r\n\r\n if (r) {\r\n\r\n // Convert sd to decimal places.\r\n sd -= x.e + 1;\r\n\r\n // 1, 0.1, 0.01, 0.001, 0.0001 etc.\r\n xc[0] = pows10[(LOG_BASE - sd % LOG_BASE) % LOG_BASE];\r\n x.e = -sd || 0;\r\n } else {\r\n\r\n // Zero.\r\n xc[0] = x.e = 0;\r\n }\r\n\r\n return x;\r\n }\r\n\r\n // Remove excess digits.\r\n if (i == 0) {\r\n xc.length = ni;\r\n k = 1;\r\n ni--;\r\n } else {\r\n xc.length = ni + 1;\r\n k = pows10[LOG_BASE - i];\r\n\r\n // E.g. 56700 becomes 56000 if 7 is the rounding digit.\r\n // j > 0 means i > number of leading zeros of n.\r\n xc[ni] = j > 0 ? mathfloor(n / pows10[d - j] % pows10[j]) * k : 0;\r\n }\r\n\r\n // Round up?\r\n if (r) {\r\n\r\n for (; ;) {\r\n\r\n // If the digit to be rounded up is in the first element of xc...\r\n if (ni == 0) {\r\n\r\n // i will be the length of xc[0] before k is added.\r\n for (i = 1, j = xc[0]; j >= 10; j /= 10, i++);\r\n j = xc[0] += k;\r\n for (k = 1; j >= 10; j /= 10, k++);\r\n\r\n // if i != k the length has increased.\r\n if (i != k) {\r\n x.e++;\r\n if (xc[0] == BASE) xc[0] = 1;\r\n }\r\n\r\n break;\r\n } else {\r\n xc[ni] += k;\r\n if (xc[ni] != BASE) break;\r\n xc[ni--] = 0;\r\n k = 1;\r\n }\r\n }\r\n }\r\n\r\n // Remove trailing zeros.\r\n for (i = xc.length; xc[--i] === 0; xc.pop());\r\n }\r\n\r\n // Overflow? Infinity.\r\n if (x.e > MAX_EXP) {\r\n x.c = x.e = null;\r\n\r\n // Underflow? Zero.\r\n } else if (x.e < MIN_EXP) {\r\n x.c = [x.e = 0];\r\n }\r\n }\r\n\r\n return x;\r\n }\r\n\r\n\r\n // PROTOTYPE/INSTANCE METHODS\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the absolute value of this BigNumber.\r\n */\r\n P.absoluteValue = P.abs = function () {\r\n var x = new BigNumber(this);\r\n if (x.s < 0) x.s = 1;\r\n return x;\r\n };\r\n\r\n\r\n /*\r\n * Return\r\n * 1 if the value of this BigNumber is greater than the value of BigNumber(y, b),\r\n * -1 if the value of this BigNumber is less than the value of BigNumber(y, b),\r\n * 0 if they have the same value,\r\n * or null if the value of either is NaN.\r\n */\r\n P.comparedTo = function (y, b) {\r\n return compare(this, new BigNumber(y, b));\r\n };\r\n\r\n\r\n /*\r\n * If dp is undefined or null or true or false, return the number of decimal places of the\r\n * value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN.\r\n *\r\n * Otherwise, if dp is a number, return a new BigNumber whose value is the value of this\r\n * BigNumber rounded to a maximum of dp decimal places using rounding mode rm, or\r\n * ROUNDING_MODE if rm is omitted.\r\n *\r\n * [dp] {number} Decimal places: integer, 0 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}'\r\n */\r\n P.decimalPlaces = P.dp = function (dp, rm) {\r\n var c, n, v,\r\n x = this;\r\n\r\n if (dp != null) {\r\n intCheck(dp, 0, MAX);\r\n if (rm == null) rm = ROUNDING_MODE;\r\n else intCheck(rm, 0, 8);\r\n\r\n return round(new BigNumber(x), dp + x.e + 1, rm);\r\n }\r\n\r\n if (!(c = x.c)) return null;\r\n n = ((v = c.length - 1) - bitFloor(this.e / LOG_BASE)) * LOG_BASE;\r\n\r\n // Subtract the number of trailing zeros of the last number.\r\n if (v = c[v]) for (; v % 10 == 0; v /= 10, n--);\r\n if (n < 0) n = 0;\r\n\r\n return n;\r\n };\r\n\r\n\r\n /*\r\n * n / 0 = I\r\n * n / N = N\r\n * n / I = 0\r\n * 0 / n = 0\r\n * 0 / 0 = N\r\n * 0 / N = N\r\n * 0 / I = 0\r\n * N / n = N\r\n * N / 0 = N\r\n * N / N = N\r\n * N / I = N\r\n * I / n = I\r\n * I / 0 = I\r\n * I / N = N\r\n * I / I = N\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber divided by the value of\r\n * BigNumber(y, b), rounded according to DECIMAL_PLACES and ROUNDING_MODE.\r\n */\r\n P.dividedBy = P.div = function (y, b) {\r\n return div(this, new BigNumber(y, b), DECIMAL_PLACES, ROUNDING_MODE);\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the integer part of dividing the value of this\r\n * BigNumber by the value of BigNumber(y, b).\r\n */\r\n P.dividedToIntegerBy = P.idiv = function (y, b) {\r\n return div(this, new BigNumber(y, b), 0, 1);\r\n };\r\n\r\n\r\n /*\r\n * Return a BigNumber whose value is the value of this BigNumber exponentiated by n.\r\n *\r\n * If m is present, return the result modulo m.\r\n * If n is negative round according to DECIMAL_PLACES and ROUNDING_MODE.\r\n * If POW_PRECISION is non-zero and m is not present, round to POW_PRECISION using ROUNDING_MODE.\r\n *\r\n * The modular power operation works efficiently when x, n, and m are integers, otherwise it\r\n * is equivalent to calculating x.exponentiatedBy(n).modulo(m) with a POW_PRECISION of 0.\r\n *\r\n * n {number|string|BigNumber} The exponent. An integer.\r\n * [m] {number|string|BigNumber} The modulus.\r\n *\r\n * '[BigNumber Error] Exponent not an integer: {n}'\r\n */\r\n P.exponentiatedBy = P.pow = function (n, m) {\r\n var half, isModExp, k, more, nIsBig, nIsNeg, nIsOdd, y,\r\n x = this;\r\n\r\n n = new BigNumber(n);\r\n\r\n // Allow NaN and ±Infinity, but not other non-integers.\r\n if (n.c && !n.isInteger()) {\r\n throw Error\r\n (bignumberError + 'Exponent not an integer: ' + n);\r\n }\r\n\r\n if (m != null) m = new BigNumber(m);\r\n\r\n // Exponent of MAX_SAFE_INTEGER is 15.\r\n nIsBig = n.e > 14;\r\n\r\n // If x is NaN, ±Infinity, ±0 or ±1, or n is ±Infinity, NaN or ±0.\r\n if (!x.c || !x.c[0] || x.c[0] == 1 && !x.e && x.c.length == 1 || !n.c || !n.c[0]) {\r\n\r\n // The sign of the result of pow when x is negative depends on the evenness of n.\r\n // If +n overflows to ±Infinity, the evenness of n would be not be known.\r\n y = new BigNumber(Math.pow(+x.valueOf(), nIsBig ? 2 - isOdd(n) : +n));\r\n return m ? y.mod(m) : y;\r\n }\r\n\r\n nIsNeg = n.s < 0;\r\n\r\n if (m) {\r\n\r\n // x % m returns NaN if abs(m) is zero, or m is NaN.\r\n if (m.c ? !m.c[0] : !m.s) return new BigNumber(NaN);\r\n\r\n isModExp = !nIsNeg && x.isInteger() && m.isInteger();\r\n\r\n if (isModExp) x = x.mod(m);\r\n\r\n // Overflow to ±Infinity: >=2**1e10 or >=1.0000024**1e15.\r\n // Underflow to ±0: <=0.79**1e10 or <=0.9999975**1e15.\r\n } else if (n.e > 9 && (x.e > 0 || x.e < -1 || (x.e == 0\r\n // [1, 240000000]\r\n ? x.c[0] > 1 || nIsBig && x.c[1] >= 24e7\r\n // [80000000000000] [99999750000000]\r\n : x.c[0] < 8e13 || nIsBig && x.c[0] <= 9999975e7))) {\r\n\r\n // If x is negative and n is odd, k = -0, else k = 0.\r\n k = x.s < 0 && isOdd(n) ? -0 : 0;\r\n\r\n // If x >= 1, k = ±Infinity.\r\n if (x.e > -1) k = 1 / k;\r\n\r\n // If n is negative return ±0, else return ±Infinity.\r\n return new BigNumber(nIsNeg ? 1 / k : k);\r\n\r\n } else if (POW_PRECISION) {\r\n\r\n // Truncating each coefficient array to a length of k after each multiplication\r\n // equates to truncating significant digits to POW_PRECISION + [28, 41],\r\n // i.e. there will be a minimum of 28 guard digits retained.\r\n k = mathceil(POW_PRECISION / LOG_BASE + 2);\r\n }\r\n\r\n if (nIsBig) {\r\n half = new BigNumber(0.5);\r\n nIsOdd = isOdd(n);\r\n } else {\r\n nIsOdd = n % 2;\r\n }\r\n\r\n if (nIsNeg) n.s = 1;\r\n\r\n y = new BigNumber(ONE);\r\n\r\n // Performs 54 loop iterations for n of 9007199254740991.\r\n for (; ;) {\r\n\r\n if (nIsOdd) {\r\n y = y.times(x);\r\n if (!y.c) break;\r\n\r\n if (k) {\r\n if (y.c.length > k) y.c.length = k;\r\n } else if (isModExp) {\r\n y = y.mod(m); //y = y.minus(div(y, m, 0, MODULO_MODE).times(m));\r\n }\r\n }\r\n\r\n if (nIsBig) {\r\n n = n.times(half);\r\n round(n, n.e + 1, 1);\r\n if (!n.c[0]) break;\r\n nIsBig = n.e > 14;\r\n nIsOdd = isOdd(n);\r\n } else {\r\n n = mathfloor(n / 2);\r\n if (!n) break;\r\n nIsOdd = n % 2;\r\n }\r\n\r\n x = x.times(x);\r\n\r\n if (k) {\r\n if (x.c && x.c.length > k) x.c.length = k;\r\n } else if (isModExp) {\r\n x = x.mod(m); //x = x.minus(div(x, m, 0, MODULO_MODE).times(m));\r\n }\r\n }\r\n\r\n if (isModExp) return y;\r\n if (nIsNeg) y = ONE.div(y);\r\n\r\n return m ? y.mod(m) : k ? round(y, POW_PRECISION, ROUNDING_MODE, more) : y;\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the value of this BigNumber rounded to an integer\r\n * using rounding mode rm, or ROUNDING_MODE if rm is omitted.\r\n *\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {rm}'\r\n */\r\n P.integerValue = function (rm) {\r\n var n = new BigNumber(this);\r\n if (rm == null) rm = ROUNDING_MODE;\r\n else intCheck(rm, 0, 8);\r\n return round(n, n.e + 1, rm);\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is equal to the value of BigNumber(y, b),\r\n * otherwise return false.\r\n */\r\n P.isEqualTo = P.eq = function (y, b) {\r\n return compare(this, new BigNumber(y, b)) === 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is a finite number, otherwise return false.\r\n */\r\n P.isFinite = function () {\r\n return !!this.c;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is greater than the value of BigNumber(y, b),\r\n * otherwise return false.\r\n */\r\n P.isGreaterThan = P.gt = function (y, b) {\r\n return compare(this, new BigNumber(y, b)) > 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is greater than or equal to the value of\r\n * BigNumber(y, b), otherwise return false.\r\n */\r\n P.isGreaterThanOrEqualTo = P.gte = function (y, b) {\r\n return (b = compare(this, new BigNumber(y, b))) === 1 || b === 0;\r\n\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is an integer, otherwise return false.\r\n */\r\n P.isInteger = function () {\r\n return !!this.c && bitFloor(this.e / LOG_BASE) > this.c.length - 2;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is less than the value of BigNumber(y, b),\r\n * otherwise return false.\r\n */\r\n P.isLessThan = P.lt = function (y, b) {\r\n return compare(this, new BigNumber(y, b)) < 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is less than or equal to the value of\r\n * BigNumber(y, b), otherwise return false.\r\n */\r\n P.isLessThanOrEqualTo = P.lte = function (y, b) {\r\n return (b = compare(this, new BigNumber(y, b))) === -1 || b === 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is NaN, otherwise return false.\r\n */\r\n P.isNaN = function () {\r\n return !this.s;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is negative, otherwise return false.\r\n */\r\n P.isNegative = function () {\r\n return this.s < 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is positive, otherwise return false.\r\n */\r\n P.isPositive = function () {\r\n return this.s > 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is 0 or -0, otherwise return false.\r\n */\r\n P.isZero = function () {\r\n return !!this.c && this.c[0] == 0;\r\n };\r\n\r\n\r\n /*\r\n * n - 0 = n\r\n * n - N = N\r\n * n - I = -I\r\n * 0 - n = -n\r\n * 0 - 0 = 0\r\n * 0 - N = N\r\n * 0 - I = -I\r\n * N - n = N\r\n * N - 0 = N\r\n * N - N = N\r\n * N - I = N\r\n * I - n = I\r\n * I - 0 = I\r\n * I - N = N\r\n * I - I = N\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber minus the value of\r\n * BigNumber(y, b).\r\n */\r\n P.minus = function (y, b) {\r\n var i, j, t, xLTy,\r\n x = this,\r\n a = x.s;\r\n\r\n y = new BigNumber(y, b);\r\n b = y.s;\r\n\r\n // Either NaN?\r\n if (!a || !b) return new BigNumber(NaN);\r\n\r\n // Signs differ?\r\n if (a != b) {\r\n y.s = -b;\r\n return x.plus(y);\r\n }\r\n\r\n var xe = x.e / LOG_BASE,\r\n ye = y.e / LOG_BASE,\r\n xc = x.c,\r\n yc = y.c;\r\n\r\n if (!xe || !ye) {\r\n\r\n // Either Infinity?\r\n if (!xc || !yc) return xc ? (y.s = -b, y) : new BigNumber(yc ? x : NaN);\r\n\r\n // Either zero?\r\n if (!xc[0] || !yc[0]) {\r\n\r\n // Return y if y is non-zero, x if x is non-zero, or zero if both are zero.\r\n return yc[0] ? (y.s = -b, y) : new BigNumber(xc[0] ? x :\r\n\r\n // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity\r\n ROUNDING_MODE == 3 ? -0 : 0);\r\n }\r\n }\r\n\r\n xe = bitFloor(xe);\r\n ye = bitFloor(ye);\r\n xc = xc.slice();\r\n\r\n // Determine which is the bigger number.\r\n if (a = xe - ye) {\r\n\r\n if (xLTy = a < 0) {\r\n a = -a;\r\n t = xc;\r\n } else {\r\n ye = xe;\r\n t = yc;\r\n }\r\n\r\n t.reverse();\r\n\r\n // Prepend zeros to equalise exponents.\r\n for (b = a; b--; t.push(0));\r\n t.reverse();\r\n } else {\r\n\r\n // Exponents equal. Check digit by digit.\r\n j = (xLTy = (a = xc.length) < (b = yc.length)) ? a : b;\r\n\r\n for (a = b = 0; b < j; b++) {\r\n\r\n if (xc[b] != yc[b]) {\r\n xLTy = xc[b] < yc[b];\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // x < y? Point xc to the array of the bigger number.\r\n if (xLTy) t = xc, xc = yc, yc = t, y.s = -y.s;\r\n\r\n b = (j = yc.length) - (i = xc.length);\r\n\r\n // Append zeros to xc if shorter.\r\n // No need to add zeros to yc if shorter as subtract only needs to start at yc.length.\r\n if (b > 0) for (; b--; xc[i++] = 0);\r\n b = BASE - 1;\r\n\r\n // Subtract yc from xc.\r\n for (; j > a;) {\r\n\r\n if (xc[--j] < yc[j]) {\r\n for (i = j; i && !xc[--i]; xc[i] = b);\r\n --xc[i];\r\n xc[j] += BASE;\r\n }\r\n\r\n xc[j] -= yc[j];\r\n }\r\n\r\n // Remove leading zeros and adjust exponent accordingly.\r\n for (; xc[0] == 0; xc.splice(0, 1), --ye);\r\n\r\n // Zero?\r\n if (!xc[0]) {\r\n\r\n // Following IEEE 754 (2008) 6.3,\r\n // n - n = +0 but n - n = -0 when rounding towards -Infinity.\r\n y.s = ROUNDING_MODE == 3 ? -1 : 1;\r\n y.c = [y.e = 0];\r\n return y;\r\n }\r\n\r\n // No need to check for Infinity as +x - +y != Infinity && -x - -y != Infinity\r\n // for finite x and y.\r\n return normalise(y, xc, ye);\r\n };\r\n\r\n\r\n /*\r\n * n % 0 = N\r\n * n % N = N\r\n * n % I = n\r\n * 0 % n = 0\r\n * -0 % n = -0\r\n * 0 % 0 = N\r\n * 0 % N = N\r\n * 0 % I = 0\r\n * N % n = N\r\n * N % 0 = N\r\n * N % N = N\r\n * N % I = N\r\n * I % n = N\r\n * I % 0 = N\r\n * I % N = N\r\n * I % I = N\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber modulo the value of\r\n * BigNumber(y, b). The result depends on the value of MODULO_MODE.\r\n */\r\n P.modulo = P.mod = function (y, b) {\r\n var q, s,\r\n x = this;\r\n\r\n y = new BigNumber(y, b);\r\n\r\n // Return NaN if x is Infinity or NaN, or y is NaN or zero.\r\n if (!x.c || !y.s || y.c && !y.c[0]) {\r\n return new BigNumber(NaN);\r\n\r\n // Return x if y is Infinity or x is zero.\r\n } else if (!y.c || x.c && !x.c[0]) {\r\n return new BigNumber(x);\r\n }\r\n\r\n if (MODULO_MODE == 9) {\r\n\r\n // Euclidian division: q = sign(y) * floor(x / abs(y))\r\n // r = x - qy where 0 <= r < abs(y)\r\n s = y.s;\r\n y.s = 1;\r\n q = div(x, y, 0, 3);\r\n y.s = s;\r\n q.s *= s;\r\n } else {\r\n q = div(x, y, 0, MODULO_MODE);\r\n }\r\n\r\n y = x.minus(q.times(y));\r\n\r\n // To match JavaScript %, ensure sign of zero is sign of dividend.\r\n if (!y.c[0] && MODULO_MODE == 1) y.s = x.s;\r\n\r\n return y;\r\n };\r\n\r\n\r\n /*\r\n * n * 0 = 0\r\n * n * N = N\r\n * n * I = I\r\n * 0 * n = 0\r\n * 0 * 0 = 0\r\n * 0 * N = N\r\n * 0 * I = N\r\n * N * n = N\r\n * N * 0 = N\r\n * N * N = N\r\n * N * I = N\r\n * I * n = I\r\n * I * 0 = N\r\n * I * N = N\r\n * I * I = I\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber multiplied by the value\r\n * of BigNumber(y, b).\r\n */\r\n P.multipliedBy = P.times = function (y, b) {\r\n var c, e, i, j, k, m, xcL, xlo, xhi, ycL, ylo, yhi, zc,\r\n base, sqrtBase,\r\n x = this,\r\n xc = x.c,\r\n yc = (y = new BigNumber(y, b)).c;\r\n\r\n // Either NaN, ±Infinity or ±0?\r\n if (!xc || !yc || !xc[0] || !yc[0]) {\r\n\r\n // Return NaN if either is NaN, or one is 0 and the other is Infinity.\r\n if (!x.s || !y.s || xc && !xc[0] && !yc || yc && !yc[0] && !xc) {\r\n y.c = y.e = y.s = null;\r\n } else {\r\n y.s *= x.s;\r\n\r\n // Return ±Infinity if either is ±Infinity.\r\n if (!xc || !yc) {\r\n y.c = y.e = null;\r\n\r\n // Return ±0 if either is ±0.\r\n } else {\r\n y.c = [0];\r\n y.e = 0;\r\n }\r\n }\r\n\r\n return y;\r\n }\r\n\r\n e = bitFloor(x.e / LOG_BASE) + bitFloor(y.e / LOG_BASE);\r\n y.s *= x.s;\r\n xcL = xc.length;\r\n ycL = yc.length;\r\n\r\n // Ensure xc points to longer array and xcL to its length.\r\n if (xcL < ycL) zc = xc, xc = yc, yc = zc, i = xcL, xcL = ycL, ycL = i;\r\n\r\n // Initialise the result array with zeros.\r\n for (i = xcL + ycL, zc = []; i--; zc.push(0));\r\n\r\n base = BASE;\r\n sqrtBase = SQRT_BASE;\r\n\r\n for (i = ycL; --i >= 0;) {\r\n c = 0;\r\n ylo = yc[i] % sqrtBase;\r\n yhi = yc[i] / sqrtBase | 0;\r\n\r\n for (k = xcL, j = i + k; j > i;) {\r\n xlo = xc[--k] % sqrtBase;\r\n xhi = xc[k] / sqrtBase | 0;\r\n m = yhi * xlo + xhi * ylo;\r\n xlo = ylo * xlo + ((m % sqrtBase) * sqrtBase) + zc[j] + c;\r\n c = (xlo / base | 0) + (m / sqrtBase | 0) + yhi * xhi;\r\n zc[j--] = xlo % base;\r\n }\r\n\r\n zc[j] = c;\r\n }\r\n\r\n if (c) {\r\n ++e;\r\n } else {\r\n zc.splice(0, 1);\r\n }\r\n\r\n return normalise(y, zc, e);\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the value of this BigNumber negated,\r\n * i.e. multiplied by -1.\r\n */\r\n P.negated = function () {\r\n var x = new BigNumber(this);\r\n x.s = -x.s || null;\r\n return x;\r\n };\r\n\r\n\r\n /*\r\n * n + 0 = n\r\n * n + N = N\r\n * n + I = I\r\n * 0 + n = n\r\n * 0 + 0 = 0\r\n * 0 + N = N\r\n * 0 + I = I\r\n * N + n = N\r\n * N + 0 = N\r\n * N + N = N\r\n * N + I = N\r\n * I + n = I\r\n * I + 0 = I\r\n * I + N = N\r\n * I + I = I\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber plus the value of\r\n * BigNumber(y, b).\r\n */\r\n P.plus = function (y, b) {\r\n var t,\r\n x = this,\r\n a = x.s;\r\n\r\n y = new BigNumber(y, b);\r\n b = y.s;\r\n\r\n // Either NaN?\r\n if (!a || !b) return new BigNumber(NaN);\r\n\r\n // Signs differ?\r\n if (a != b) {\r\n y.s = -b;\r\n return x.minus(y);\r\n }\r\n\r\n var xe = x.e / LOG_BASE,\r\n ye = y.e / LOG_BASE,\r\n xc = x.c,\r\n yc = y.c;\r\n\r\n if (!xe || !ye) {\r\n\r\n // Return ±Infinity if either ±Infinity.\r\n if (!xc || !yc) return new BigNumber(a / 0);\r\n\r\n // Either zero?\r\n // Return y if y is non-zero, x if x is non-zero, or zero if both are zero.\r\n if (!xc[0] || !yc[0]) return yc[0] ? y : new BigNumber(xc[0] ? x : a * 0);\r\n }\r\n\r\n xe = bitFloor(xe);\r\n ye = bitFloor(ye);\r\n xc = xc.slice();\r\n\r\n // Prepend zeros to equalise exponents. Faster to use reverse then do unshifts.\r\n if (a = xe - ye) {\r\n if (a > 0) {\r\n ye = xe;\r\n t = yc;\r\n } else {\r\n a = -a;\r\n t = xc;\r\n }\r\n\r\n t.reverse();\r\n for (; a--; t.push(0));\r\n t.reverse();\r\n }\r\n\r\n a = xc.length;\r\n b = yc.length;\r\n\r\n // Point xc to the longer array, and b to the shorter length.\r\n if (a - b < 0) t = yc, yc = xc, xc = t, b = a;\r\n\r\n // Only start adding at yc.length - 1 as the further digits of xc can be ignored.\r\n for (a = 0; b;) {\r\n a = (xc[--b] = xc[b] + yc[b] + a) / BASE | 0;\r\n xc[b] = BASE === xc[b] ? 0 : xc[b] % BASE;\r\n }\r\n\r\n if (a) {\r\n xc = [a].concat(xc);\r\n ++ye;\r\n }\r\n\r\n // No need to check for zero, as +x + +y != 0 && -x + -y != 0\r\n // ye = MAX_EXP + 1 possible\r\n return normalise(y, xc, ye);\r\n };\r\n\r\n\r\n /*\r\n * If sd is undefined or null or true or false, return the number of significant digits of\r\n * the value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN.\r\n * If sd is true include integer-part trailing zeros in the count.\r\n *\r\n * Otherwise, if sd is a number, return a new BigNumber whose value is the value of this\r\n * BigNumber rounded to a maximum of sd significant digits using rounding mode rm, or\r\n * ROUNDING_MODE if rm is omitted.\r\n *\r\n * sd {number|boolean} number: significant digits: integer, 1 to MAX inclusive.\r\n * boolean: whether to count integer-part trailing zeros: true or false.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}'\r\n */\r\n P.precision = P.sd = function (sd, rm) {\r\n var c, n, v,\r\n x = this;\r\n\r\n if (sd != null && sd !== !!sd) {\r\n intCheck(sd, 1, MAX);\r\n if (rm == null) rm = ROUNDING_MODE;\r\n else intCheck(rm, 0, 8);\r\n\r\n return round(new BigNumber(x), sd, rm);\r\n }\r\n\r\n if (!(c = x.c)) return null;\r\n v = c.length - 1;\r\n n = v * LOG_BASE + 1;\r\n\r\n if (v = c[v]) {\r\n\r\n // Subtract the number of trailing zeros of the last element.\r\n for (; v % 10 == 0; v /= 10, n--);\r\n\r\n // Add the number of digits of the first element.\r\n for (v = c[0]; v >= 10; v /= 10, n++);\r\n }\r\n\r\n if (sd && x.e + 1 > n) n = x.e + 1;\r\n\r\n return n;\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the value of this BigNumber shifted by k places\r\n * (powers of 10). Shift to the right if n > 0, and to the left if n < 0.\r\n *\r\n * k {number} Integer, -MAX_SAFE_INTEGER to MAX_SAFE_INTEGER inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {k}'\r\n */\r\n P.shiftedBy = function (k) {\r\n intCheck(k, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER);\r\n return this.times('1e' + k);\r\n };\r\n\r\n\r\n /*\r\n * sqrt(-n) = N\r\n * sqrt(N) = N\r\n * sqrt(-I) = N\r\n * sqrt(I) = I\r\n * sqrt(0) = 0\r\n * sqrt(-0) = -0\r\n *\r\n * Return a new BigNumber whose value is the square root of the value of this BigNumber,\r\n * rounded according to DECIMAL_PLACES and ROUNDING_MODE.\r\n */\r\n P.squareRoot = P.sqrt = function () {\r\n var m, n, r, rep, t,\r\n x = this,\r\n c = x.c,\r\n s = x.s,\r\n e = x.e,\r\n dp = DECIMAL_PLACES + 4,\r\n half = new BigNumber('0.5');\r\n\r\n // Negative/NaN/Infinity/zero?\r\n if (s !== 1 || !c || !c[0]) {\r\n return new BigNumber(!s || s < 0 && (!c || c[0]) ? NaN : c ? x : 1 / 0);\r\n }\r\n\r\n // Initial estimate.\r\n s = Math.sqrt(+x);\r\n\r\n // Math.sqrt underflow/overflow?\r\n // Pass x to Math.sqrt as integer, then adjust the exponent of the result.\r\n if (s == 0 || s == 1 / 0) {\r\n n = coeffToString(c);\r\n if ((n.length + e) % 2 == 0) n += '0';\r\n s = Math.sqrt(n);\r\n e = bitFloor((e + 1) / 2) - (e < 0 || e % 2);\r\n\r\n if (s == 1 / 0) {\r\n n = '1e' + e;\r\n } else {\r\n n = s.toExponential();\r\n n = n.slice(0, n.indexOf('e') + 1) + e;\r\n }\r\n\r\n r = new BigNumber(n);\r\n } else {\r\n r = new BigNumber(s + '');\r\n }\r\n\r\n // Check for zero.\r\n // r could be zero if MIN_EXP is changed after the this value was created.\r\n // This would cause a division by zero (x/t) and hence Infinity below, which would cause\r\n // coeffToString to throw.\r\n if (r.c[0]) {\r\n e = r.e;\r\n s = e + dp;\r\n if (s < 3) s = 0;\r\n\r\n // Newton-Raphson iteration.\r\n for (; ;) {\r\n t = r;\r\n r = half.times(t.plus(div(x, t, dp, 1)));\r\n\r\n if (coeffToString(t.c ).slice(0, s) === (n =\r\n coeffToString(r.c)).slice(0, s)) {\r\n\r\n // The exponent of r may here be one less than the final result exponent,\r\n // e.g 0.0009999 (e-4) --> 0.001 (e-3), so adjust s so the rounding digits\r\n // are indexed correctly.\r\n if (r.e < e) --s;\r\n n = n.slice(s - 3, s + 1);\r\n\r\n // The 4th rounding digit may be in error by -1 so if the 4 rounding digits\r\n // are 9999 or 4999 (i.e. approaching a rounding boundary) continue the\r\n // iteration.\r\n if (n == '9999' || !rep && n == '4999') {\r\n\r\n // On the first iteration only, check to see if rounding up gives the\r\n // exact result as the nines may infinitely repeat.\r\n if (!rep) {\r\n round(t, t.e + DECIMAL_PLACES + 2, 0);\r\n\r\n if (t.times(t).eq(x)) {\r\n r = t;\r\n break;\r\n }\r\n }\r\n\r\n dp += 4;\r\n s += 4;\r\n rep = 1;\r\n } else {\r\n\r\n // If rounding digits are null, 0{0,4} or 50{0,3}, check for exact\r\n // result. If not, then there are further digits and m will be truthy.\r\n if (!+n || !+n.slice(1) && n.charAt(0) == '5') {\r\n\r\n // Truncate to the first rounding digit.\r\n round(r, r.e + DECIMAL_PLACES + 2, 1);\r\n m = !r.times(r).eq(x);\r\n }\r\n\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return round(r, r.e + DECIMAL_PLACES + 1, ROUNDING_MODE, m);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber in exponential notation and\r\n * rounded using ROUNDING_MODE to dp fixed decimal places.\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}'\r\n */\r\n P.toExponential = function (dp, rm) {\r\n if (dp != null) {\r\n intCheck(dp, 0, MAX);\r\n dp++;\r\n }\r\n return format(this, dp, rm, 1);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber in fixed-point notation rounding\r\n * to dp fixed decimal places using rounding mode rm, or ROUNDING_MODE if rm is omitted.\r\n *\r\n * Note: as with JavaScript's number type, (-0).toFixed(0) is '0',\r\n * but e.g. (-0.00001).toFixed(0) is '-0'.\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}'\r\n */\r\n P.toFixed = function (dp, rm) {\r\n if (dp != null) {\r\n intCheck(dp, 0, MAX);\r\n dp = dp + this.e + 1;\r\n }\r\n return format(this, dp, rm);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber in fixed-point notation rounded\r\n * using rm or ROUNDING_MODE to dp decimal places, and formatted according to the properties\r\n * of the FORMAT object (see BigNumber.set).\r\n *\r\n * FORMAT = {\r\n * decimalSeparator : '.',\r\n * groupSeparator : ',',\r\n * groupSize : 3,\r\n * secondaryGroupSize : 0,\r\n * fractionGroupSeparator : '\\xA0', // non-breaking space\r\n * fractionGroupSize : 0\r\n * };\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}'\r\n */\r\n P.toFormat = function (dp, rm) {\r\n var str = this.toFixed(dp, rm);\r\n\r\n if (this.c) {\r\n var i,\r\n arr = str.split('.'),\r\n g1 = +FORMAT.groupSize,\r\n g2 = +FORMAT.secondaryGroupSize,\r\n groupSeparator = FORMAT.groupSeparator,\r\n intPart = arr[0],\r\n fractionPart = arr[1],\r\n isNeg = this.s < 0,\r\n intDigits = isNeg ? intPart.slice(1) : intPart,\r\n len = intDigits.length;\r\n\r\n if (g2) i = g1, g1 = g2, g2 = i, len -= i;\r\n\r\n if (g1 > 0 && len > 0) {\r\n i = len % g1 || g1;\r\n intPart = intDigits.substr(0, i);\r\n\r\n for (; i < len; i += g1) {\r\n intPart += groupSeparator + intDigits.substr(i, g1);\r\n }\r\n\r\n if (g2 > 0) intPart += groupSeparator + intDigits.slice(i);\r\n if (isNeg) intPart = '-' + intPart;\r\n }\r\n\r\n str = fractionPart\r\n ? intPart + FORMAT.decimalSeparator + ((g2 = +FORMAT.fractionGroupSize)\r\n ? fractionPart.replace(new RegExp('\\\\d{' + g2 + '}\\\\B', 'g'),\r\n '$&' + FORMAT.fractionGroupSeparator)\r\n : fractionPart)\r\n : intPart;\r\n }\r\n\r\n return str;\r\n };\r\n\r\n\r\n /*\r\n * Return a string array representing the value of this BigNumber as a simple fraction with\r\n * an integer numerator and an integer denominator. The denominator will be a positive\r\n * non-zero value less than or equal to the specified maximum denominator. If a maximum\r\n * denominator is not specified, the denominator will be the lowest value necessary to\r\n * represent the number exactly.\r\n *\r\n * [md] {number|string|BigNumber} Integer >= 1, or Infinity. The maximum denominator.\r\n *\r\n * '[BigNumber Error] Argument {not an integer|out of range} : {md}'\r\n */\r\n P.toFraction = function (md) {\r\n var arr, d, d0, d1, d2, e, exp, n, n0, n1, q, s,\r\n x = this,\r\n xc = x.c;\r\n\r\n if (md != null) {\r\n n = new BigNumber(md);\r\n\r\n // Throw if md is less than one or is not an integer, unless it is Infinity.\r\n if (!n.isInteger() && (n.c || n.s !== 1) || n.lt(ONE)) {\r\n throw Error\r\n (bignumberError + 'Argument ' +\r\n (n.isInteger() ? 'out of range: ' : 'not an integer: ') + md);\r\n }\r\n }\r\n\r\n if (!xc) return x.toString();\r\n\r\n d = new BigNumber(ONE);\r\n n1 = d0 = new BigNumber(ONE);\r\n d1 = n0 = new BigNumber(ONE);\r\n s = coeffToString(xc);\r\n\r\n // Determine initial denominator.\r\n // d is a power of 10 and the minimum max denominator that specifies the value exactly.\r\n e = d.e = s.length - x.e - 1;\r\n d.c[0] = POWS_TEN[(exp = e % LOG_BASE) < 0 ? LOG_BASE + exp : exp];\r\n md = !md || n.comparedTo(d) > 0 ? (e > 0 ? d : n1) : n;\r\n\r\n exp = MAX_EXP;\r\n MAX_EXP = 1 / 0;\r\n n = new BigNumber(s);\r\n\r\n // n0 = d1 = 0\r\n n0.c[0] = 0;\r\n\r\n for (; ;) {\r\n q = div(n, d, 0, 1);\r\n d2 = d0.plus(q.times(d1));\r\n if (d2.comparedTo(md) == 1) break;\r\n d0 = d1;\r\n d1 = d2;\r\n n1 = n0.plus(q.times(d2 = n1));\r\n n0 = d2;\r\n d = n.minus(q.times(d2 = d));\r\n n = d2;\r\n }\r\n\r\n d2 = div(md.minus(d0), d1, 0, 1);\r\n n0 = n0.plus(d2.times(n1));\r\n d0 = d0.plus(d2.times(d1));\r\n n0.s = n1.s = x.s;\r\n e *= 2;\r\n\r\n // Determine which fraction is closer to x, n0/d0 or n1/d1\r\n arr = div(n1, d1, e, ROUNDING_MODE).minus(x).abs().comparedTo(\r\n div(n0, d0, e, ROUNDING_MODE).minus(x).abs()) < 1\r\n ? [n1.toString(), d1.toString()]\r\n : [n0.toString(), d0.toString()];\r\n\r\n MAX_EXP = exp;\r\n return arr;\r\n };\r\n\r\n\r\n /*\r\n * Return the value of this BigNumber converted to a number primitive.\r\n */\r\n P.toNumber = function () {\r\n return +this;\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber rounded to sd significant digits\r\n * using rounding mode rm or ROUNDING_MODE. If sd is less than the number of digits\r\n * necessary to represent the integer part of the value in fixed-point notation, then use\r\n * exponential notation.\r\n *\r\n * [sd] {number} Significant digits. Integer, 1 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}'\r\n */\r\n P.toPrecision = function (sd, rm) {\r\n if (sd != null) intCheck(sd, 1, MAX);\r\n return format(this, sd, rm, 2);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber in base b, or base 10 if b is\r\n * omitted. If a base is specified, including base 10, round according to DECIMAL_PLACES and\r\n * ROUNDING_MODE. If a base is not specified, and this BigNumber has a positive exponent\r\n * that is equal to or greater than TO_EXP_POS, or a negative exponent equal to or less than\r\n * TO_EXP_NEG, return exponential notation.\r\n *\r\n * [b] {number} Integer, 2 to ALPHABET.length inclusive.\r\n *\r\n * '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}'\r\n */\r\n P.toString = function (b) {\r\n var str,\r\n n = this,\r\n s = n.s,\r\n e = n.e;\r\n\r\n // Infinity or NaN?\r\n if (e === null) {\r\n\r\n if (s) {\r\n str = 'Infinity';\r\n if (s < 0) str = '-' + str;\r\n } else {\r\n str = 'NaN';\r\n }\r\n } else {\r\n str = coeffToString(n.c);\r\n\r\n if (b == null) {\r\n str = e <= TO_EXP_NEG || e >= TO_EXP_POS\r\n ? toExponential(str, e)\r\n : toFixedPoint(str, e, '0');\r\n } else {\r\n intCheck(b, 2, ALPHABET.length, 'Base');\r\n str = convertBase(toFixedPoint(str, e, '0'), 10, b, s, true);\r\n }\r\n\r\n if (s < 0 && n.c[0]) str = '-' + str;\r\n }\r\n\r\n return str;\r\n };\r\n\r\n\r\n /*\r\n * Return as toString, but do not accept a base argument, and include the minus sign for\r\n * negative zero.\r\n */\r\n P.valueOf = P.toJSON = function () {\r\n var str,\r\n n = this,\r\n e = n.e;\r\n\r\n if (e === null) return n.toString();\r\n\r\n str = coeffToString(n.c);\r\n\r\n str = e <= TO_EXP_NEG || e >= TO_EXP_POS\r\n ? toExponential(str, e)\r\n : toFixedPoint(str, e, '0');\r\n\r\n return n.s < 0 ? '-' + str : str;\r\n };\r\n\r\n\r\n P._isBigNumber = true;\r\n\r\n if (configObject != null) BigNumber.set(configObject);\r\n\r\n return BigNumber;\r\n }\r\n\r\n\r\n // PRIVATE HELPER FUNCTIONS\r\n\r\n\r\n function bitFloor(n) {\r\n var i = n | 0;\r\n return n > 0 || n === i ? i : i - 1;\r\n }\r\n\r\n\r\n // Return a coefficient array as a string of base 10 digits.\r\n function coeffToString(a) {\r\n var s, z,\r\n i = 1,\r\n j = a.length,\r\n r = a[0] + '';\r\n\r\n for (; i < j;) {\r\n s = a[i++] + '';\r\n z = LOG_BASE - s.length;\r\n for (; z--; s = '0' + s);\r\n r += s;\r\n }\r\n\r\n // Determine trailing zeros.\r\n for (j = r.length; r.charCodeAt(--j) === 48;);\r\n return r.slice(0, j + 1 || 1);\r\n }\r\n\r\n\r\n // Compare the value of BigNumbers x and y.\r\n function compare(x, y) {\r\n var a, b,\r\n xc = x.c,\r\n yc = y.c,\r\n i = x.s,\r\n j = y.s,\r\n k = x.e,\r\n l = y.e;\r\n\r\n // Either NaN?\r\n if (!i || !j) return null;\r\n\r\n a = xc && !xc[0];\r\n b = yc && !yc[0];\r\n\r\n // Either zero?\r\n if (a || b) return a ? b ? 0 : -j : i;\r\n\r\n // Signs differ?\r\n if (i != j) return i;\r\n\r\n a = i < 0;\r\n b = k == l;\r\n\r\n // Either Infinity?\r\n if (!xc || !yc) return b ? 0 : !xc ^ a ? 1 : -1;\r\n\r\n // Compare exponents.\r\n if (!b) return k > l ^ a ? 1 : -1;\r\n\r\n j = (k = xc.length) < (l = yc.length) ? k : l;\r\n\r\n // Compare digit by digit.\r\n for (i = 0; i < j; i++) if (xc[i] != yc[i]) return xc[i] > yc[i] ^ a ? 1 : -1;\r\n\r\n // Compare lengths.\r\n return k == l ? 0 : k > l ^ a ? 1 : -1;\r\n }\r\n\r\n\r\n /*\r\n * Check that n is a primitive number, an integer, and in range, otherwise throw.\r\n */\r\n function intCheck(n, min, max, name) {\r\n if (n < min || n > max || n !== (n < 0 ? mathceil(n) : mathfloor(n))) {\r\n throw Error\r\n (bignumberError + (name || 'Argument') + (typeof n == 'number'\r\n ? n < min || n > max ? ' out of range: ' : ' not an integer: '\r\n : ' not a primitive number: ') + n);\r\n }\r\n }\r\n\r\n\r\n function isArray(obj) {\r\n return Object.prototype.toString.call(obj) == '[object Array]';\r\n }\r\n\r\n\r\n // Assumes finite n.\r\n function isOdd(n) {\r\n var k = n.c.length - 1;\r\n return bitFloor(n.e / LOG_BASE) == k && n.c[k] % 2 != 0;\r\n }\r\n\r\n\r\n function toExponential(str, e) {\r\n return (str.length > 1 ? str.charAt(0) + '.' + str.slice(1) : str) +\r\n (e < 0 ? 'e' : 'e+') + e;\r\n }\r\n\r\n\r\n function toFixedPoint(str, e, z) {\r\n var len, zs;\r\n\r\n // Negative exponent?\r\n if (e < 0) {\r\n\r\n // Prepend zeros.\r\n for (zs = z + '.'; ++e; zs += z);\r\n str = zs + str;\r\n\r\n // Positive exponent\r\n } else {\r\n len = str.length;\r\n\r\n // Append zeros.\r\n if (++e > len) {\r\n for (zs = z, e -= len; --e; zs += z);\r\n str += zs;\r\n } else if (e < len) {\r\n str = str.slice(0, e) + '.' + str.slice(e);\r\n }\r\n }\r\n\r\n return str;\r\n }\r\n\r\n\r\n // EXPORT\r\n\r\n\r\n BigNumber = clone();\r\n BigNumber['default'] = BigNumber.BigNumber = BigNumber;\r\n\r\n // AMD.\r\n if (true) {\r\n !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { return BigNumber; }).call(exports, __webpack_require__, exports, module),\n\t\t__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));\r\n\r\n // Node.js and other environments that support module.exports.\r\n } else {}\r\n})(this);\r\n\n\n/***/ }),\n\n/***/ 5697:\n/***/ (function(module, __unused_webpack_exports, __webpack_require__) {\n\n/* module decorator */ module = __webpack_require__.nmd(module);\n(function (module, exports) {\n 'use strict';\n\n // Utils\n function assert (val, msg) {\n if (!val) throw new Error(msg || 'Assertion failed');\n }\n\n // Could use `inherits` module, but don't want to move from single file\n // architecture yet.\n function inherits (ctor, superCtor) {\n ctor.super_ = superCtor;\n var TempCtor = function () {};\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n }\n\n // BN\n\n function BN (number, base, endian) {\n if (BN.isBN(number)) {\n return number;\n }\n\n this.negative = 0;\n this.words = null;\n this.length = 0;\n\n // Reduction context\n this.red = null;\n\n if (number !== null) {\n if (base === 'le' || base === 'be') {\n endian = base;\n base = 10;\n }\n\n this._init(number || 0, base || 10, endian || 'be');\n }\n }\n if (typeof module === 'object') {\n module.exports = BN;\n } else {\n exports.BN = BN;\n }\n\n BN.BN = BN;\n BN.wordSize = 26;\n\n var Buffer;\n try {\n if (typeof window !== 'undefined' && typeof window.Buffer !== 'undefined') {\n Buffer = window.Buffer;\n } else {\n Buffer = __webpack_require__(2574).Buffer;\n }\n } catch (e) {\n }\n\n BN.isBN = function isBN (num) {\n if (num instanceof BN) {\n return true;\n }\n\n return num !== null && typeof num === 'object' &&\n num.constructor.wordSize === BN.wordSize && Array.isArray(num.words);\n };\n\n BN.max = function max (left, right) {\n if (left.cmp(right) > 0) return left;\n return right;\n };\n\n BN.min = function min (left, right) {\n if (left.cmp(right) < 0) return left;\n return right;\n };\n\n BN.prototype._init = function init (number, base, endian) {\n if (typeof number === 'number') {\n return this._initNumber(number, base, endian);\n }\n\n if (typeof number === 'object') {\n return this._initArray(number, base, endian);\n }\n\n if (base === 'hex') {\n base = 16;\n }\n assert(base === (base | 0) && base >= 2 && base <= 36);\n\n number = number.toString().replace(/\\s+/g, '');\n var start = 0;\n if (number[0] === '-') {\n start++;\n this.negative = 1;\n }\n\n if (start < number.length) {\n if (base === 16) {\n this._parseHex(number, start, endian);\n } else {\n this._parseBase(number, base, start);\n if (endian === 'le') {\n this._initArray(this.toArray(), base, endian);\n }\n }\n }\n };\n\n BN.prototype._initNumber = function _initNumber (number, base, endian) {\n if (number < 0) {\n this.negative = 1;\n number = -number;\n }\n if (number < 0x4000000) {\n this.words = [ number & 0x3ffffff ];\n this.length = 1;\n } else if (number < 0x10000000000000) {\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff\n ];\n this.length = 2;\n } else {\n assert(number < 0x20000000000000); // 2 ^ 53 (unsafe)\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff,\n 1\n ];\n this.length = 3;\n }\n\n if (endian !== 'le') return;\n\n // Reverse the bytes\n this._initArray(this.toArray(), base, endian);\n };\n\n BN.prototype._initArray = function _initArray (number, base, endian) {\n // Perhaps a Uint8Array\n assert(typeof number.length === 'number');\n if (number.length <= 0) {\n this.words = [ 0 ];\n this.length = 1;\n return this;\n }\n\n this.length = Math.ceil(number.length / 3);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n var j, w;\n var off = 0;\n if (endian === 'be') {\n for (i = number.length - 1, j = 0; i >= 0; i -= 3) {\n w = number[i] | (number[i - 1] << 8) | (number[i - 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n } else if (endian === 'le') {\n for (i = 0, j = 0; i < number.length; i += 3) {\n w = number[i] | (number[i + 1] << 8) | (number[i + 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n }\n return this.strip();\n };\n\n function parseHex4Bits (string, index) {\n var c = string.charCodeAt(index);\n // 'A' - 'F'\n if (c >= 65 && c <= 70) {\n return c - 55;\n // 'a' - 'f'\n } else if (c >= 97 && c <= 102) {\n return c - 87;\n // '0' - '9'\n } else {\n return (c - 48) & 0xf;\n }\n }\n\n function parseHexByte (string, lowerBound, index) {\n var r = parseHex4Bits(string, index);\n if (index - 1 >= lowerBound) {\n r |= parseHex4Bits(string, index - 1) << 4;\n }\n return r;\n }\n\n BN.prototype._parseHex = function _parseHex (number, start, endian) {\n // Create possibly bigger array to ensure that it fits the number\n this.length = Math.ceil((number.length - start) / 6);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n // 24-bits chunks\n var off = 0;\n var j = 0;\n\n var w;\n if (endian === 'be') {\n for (i = number.length - 1; i >= start; i -= 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n } else {\n var parseLength = number.length - start;\n for (i = parseLength % 2 === 0 ? start + 1 : start; i < number.length; i += 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n }\n\n this.strip();\n };\n\n function parseBase (str, start, end, mul) {\n var r = 0;\n var len = Math.min(str.length, end);\n for (var i = start; i < len; i++) {\n var c = str.charCodeAt(i) - 48;\n\n r *= mul;\n\n // 'a'\n if (c >= 49) {\n r += c - 49 + 0xa;\n\n // 'A'\n } else if (c >= 17) {\n r += c - 17 + 0xa;\n\n // '0' - '9'\n } else {\n r += c;\n }\n }\n return r;\n }\n\n BN.prototype._parseBase = function _parseBase (number, base, start) {\n // Initialize as zero\n this.words = [ 0 ];\n this.length = 1;\n\n // Find length of limb in base\n for (var limbLen = 0, limbPow = 1; limbPow <= 0x3ffffff; limbPow *= base) {\n limbLen++;\n }\n limbLen--;\n limbPow = (limbPow / base) | 0;\n\n var total = number.length - start;\n var mod = total % limbLen;\n var end = Math.min(total, total - mod) + start;\n\n var word = 0;\n for (var i = start; i < end; i += limbLen) {\n word = parseBase(number, i, i + limbLen, base);\n\n this.imuln(limbPow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n if (mod !== 0) {\n var pow = 1;\n word = parseBase(number, i, number.length, base);\n\n for (i = 0; i < mod; i++) {\n pow *= base;\n }\n\n this.imuln(pow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n this.strip();\n };\n\n BN.prototype.copy = function copy (dest) {\n dest.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n dest.words[i] = this.words[i];\n }\n dest.length = this.length;\n dest.negative = this.negative;\n dest.red = this.red;\n };\n\n BN.prototype.clone = function clone () {\n var r = new BN(null);\n this.copy(r);\n return r;\n };\n\n BN.prototype._expand = function _expand (size) {\n while (this.length < size) {\n this.words[this.length++] = 0;\n }\n return this;\n };\n\n // Remove leading `0` from `this`\n BN.prototype.strip = function strip () {\n while (this.length > 1 && this.words[this.length - 1] === 0) {\n this.length--;\n }\n return this._normSign();\n };\n\n BN.prototype._normSign = function _normSign () {\n // -0 = 0\n if (this.length === 1 && this.words[0] === 0) {\n this.negative = 0;\n }\n return this;\n };\n\n BN.prototype.inspect = function inspect () {\n return (this.red ? '';\n };\n\n /*\n\n var zeros = [];\n var groupSizes = [];\n var groupBases = [];\n\n var s = '';\n var i = -1;\n while (++i < BN.wordSize) {\n zeros[i] = s;\n s += '0';\n }\n groupSizes[0] = 0;\n groupSizes[1] = 0;\n groupBases[0] = 0;\n groupBases[1] = 0;\n var base = 2 - 1;\n while (++base < 36 + 1) {\n var groupSize = 0;\n var groupBase = 1;\n while (groupBase < (1 << BN.wordSize) / base) {\n groupBase *= base;\n groupSize += 1;\n }\n groupSizes[base] = groupSize;\n groupBases[base] = groupBase;\n }\n\n */\n\n var zeros = [\n '',\n '0',\n '00',\n '000',\n '0000',\n '00000',\n '000000',\n '0000000',\n '00000000',\n '000000000',\n '0000000000',\n '00000000000',\n '000000000000',\n '0000000000000',\n '00000000000000',\n '000000000000000',\n '0000000000000000',\n '00000000000000000',\n '000000000000000000',\n '0000000000000000000',\n '00000000000000000000',\n '000000000000000000000',\n '0000000000000000000000',\n '00000000000000000000000',\n '000000000000000000000000',\n '0000000000000000000000000'\n ];\n\n var groupSizes = [\n 0, 0,\n 25, 16, 12, 11, 10, 9, 8,\n 8, 7, 7, 7, 7, 6, 6,\n 6, 6, 6, 6, 6, 5, 5,\n 5, 5, 5, 5, 5, 5, 5,\n 5, 5, 5, 5, 5, 5, 5\n ];\n\n var groupBases = [\n 0, 0,\n 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216,\n 43046721, 10000000, 19487171, 35831808, 62748517, 7529536, 11390625,\n 16777216, 24137569, 34012224, 47045881, 64000000, 4084101, 5153632,\n 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149,\n 24300000, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176\n ];\n\n BN.prototype.toString = function toString (base, padding) {\n base = base || 10;\n padding = padding | 0 || 1;\n\n var out;\n if (base === 16 || base === 'hex') {\n out = '';\n var off = 0;\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = this.words[i];\n var word = (((w << off) | carry) & 0xffffff).toString(16);\n carry = (w >>> (24 - off)) & 0xffffff;\n if (carry !== 0 || i !== this.length - 1) {\n out = zeros[6 - word.length] + word + out;\n } else {\n out = word + out;\n }\n off += 2;\n if (off >= 26) {\n off -= 26;\n i--;\n }\n }\n if (carry !== 0) {\n out = carry.toString(16) + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n if (base === (base | 0) && base >= 2 && base <= 36) {\n // var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base));\n var groupSize = groupSizes[base];\n // var groupBase = Math.pow(base, groupSize);\n var groupBase = groupBases[base];\n out = '';\n var c = this.clone();\n c.negative = 0;\n while (!c.isZero()) {\n var r = c.modn(groupBase).toString(base);\n c = c.idivn(groupBase);\n\n if (!c.isZero()) {\n out = zeros[groupSize - r.length] + r + out;\n } else {\n out = r + out;\n }\n }\n if (this.isZero()) {\n out = '0' + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n assert(false, 'Base should be between 2 and 36');\n };\n\n BN.prototype.toNumber = function toNumber () {\n var ret = this.words[0];\n if (this.length === 2) {\n ret += this.words[1] * 0x4000000;\n } else if (this.length === 3 && this.words[2] === 0x01) {\n // NOTE: at this stage it is known that the top bit is set\n ret += 0x10000000000000 + (this.words[1] * 0x4000000);\n } else if (this.length > 2) {\n assert(false, 'Number can only safely store up to 53 bits');\n }\n return (this.negative !== 0) ? -ret : ret;\n };\n\n BN.prototype.toJSON = function toJSON () {\n return this.toString(16);\n };\n\n BN.prototype.toBuffer = function toBuffer (endian, length) {\n assert(typeof Buffer !== 'undefined');\n return this.toArrayLike(Buffer, endian, length);\n };\n\n BN.prototype.toArray = function toArray (endian, length) {\n return this.toArrayLike(Array, endian, length);\n };\n\n BN.prototype.toArrayLike = function toArrayLike (ArrayType, endian, length) {\n var byteLength = this.byteLength();\n var reqLength = length || Math.max(1, byteLength);\n assert(byteLength <= reqLength, 'byte array longer than desired length');\n assert(reqLength > 0, 'Requested array length <= 0');\n\n this.strip();\n var littleEndian = endian === 'le';\n var res = new ArrayType(reqLength);\n\n var b, i;\n var q = this.clone();\n if (!littleEndian) {\n // Assume big-endian\n for (i = 0; i < reqLength - byteLength; i++) {\n res[i] = 0;\n }\n\n for (i = 0; !q.isZero(); i++) {\n b = q.andln(0xff);\n q.iushrn(8);\n\n res[reqLength - i - 1] = b;\n }\n } else {\n for (i = 0; !q.isZero(); i++) {\n b = q.andln(0xff);\n q.iushrn(8);\n\n res[i] = b;\n }\n\n for (; i < reqLength; i++) {\n res[i] = 0;\n }\n }\n\n return res;\n };\n\n if (Math.clz32) {\n BN.prototype._countBits = function _countBits (w) {\n return 32 - Math.clz32(w);\n };\n } else {\n BN.prototype._countBits = function _countBits (w) {\n var t = w;\n var r = 0;\n if (t >= 0x1000) {\n r += 13;\n t >>>= 13;\n }\n if (t >= 0x40) {\n r += 7;\n t >>>= 7;\n }\n if (t >= 0x8) {\n r += 4;\n t >>>= 4;\n }\n if (t >= 0x02) {\n r += 2;\n t >>>= 2;\n }\n return r + t;\n };\n }\n\n BN.prototype._zeroBits = function _zeroBits (w) {\n // Short-cut\n if (w === 0) return 26;\n\n var t = w;\n var r = 0;\n if ((t & 0x1fff) === 0) {\n r += 13;\n t >>>= 13;\n }\n if ((t & 0x7f) === 0) {\n r += 7;\n t >>>= 7;\n }\n if ((t & 0xf) === 0) {\n r += 4;\n t >>>= 4;\n }\n if ((t & 0x3) === 0) {\n r += 2;\n t >>>= 2;\n }\n if ((t & 0x1) === 0) {\n r++;\n }\n return r;\n };\n\n // Return number of used bits in a BN\n BN.prototype.bitLength = function bitLength () {\n var w = this.words[this.length - 1];\n var hi = this._countBits(w);\n return (this.length - 1) * 26 + hi;\n };\n\n function toBitArray (num) {\n var w = new Array(num.bitLength());\n\n for (var bit = 0; bit < w.length; bit++) {\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n w[bit] = (num.words[off] & (1 << wbit)) >>> wbit;\n }\n\n return w;\n }\n\n // Number of trailing zero bits\n BN.prototype.zeroBits = function zeroBits () {\n if (this.isZero()) return 0;\n\n var r = 0;\n for (var i = 0; i < this.length; i++) {\n var b = this._zeroBits(this.words[i]);\n r += b;\n if (b !== 26) break;\n }\n return r;\n };\n\n BN.prototype.byteLength = function byteLength () {\n return Math.ceil(this.bitLength() / 8);\n };\n\n BN.prototype.toTwos = function toTwos (width) {\n if (this.negative !== 0) {\n return this.abs().inotn(width).iaddn(1);\n }\n return this.clone();\n };\n\n BN.prototype.fromTwos = function fromTwos (width) {\n if (this.testn(width - 1)) {\n return this.notn(width).iaddn(1).ineg();\n }\n return this.clone();\n };\n\n BN.prototype.isNeg = function isNeg () {\n return this.negative !== 0;\n };\n\n // Return negative clone of `this`\n BN.prototype.neg = function neg () {\n return this.clone().ineg();\n };\n\n BN.prototype.ineg = function ineg () {\n if (!this.isZero()) {\n this.negative ^= 1;\n }\n\n return this;\n };\n\n // Or `num` with `this` in-place\n BN.prototype.iuor = function iuor (num) {\n while (this.length < num.length) {\n this.words[this.length++] = 0;\n }\n\n for (var i = 0; i < num.length; i++) {\n this.words[i] = this.words[i] | num.words[i];\n }\n\n return this.strip();\n };\n\n BN.prototype.ior = function ior (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuor(num);\n };\n\n // Or `num` with `this`\n BN.prototype.or = function or (num) {\n if (this.length > num.length) return this.clone().ior(num);\n return num.clone().ior(this);\n };\n\n BN.prototype.uor = function uor (num) {\n if (this.length > num.length) return this.clone().iuor(num);\n return num.clone().iuor(this);\n };\n\n // And `num` with `this` in-place\n BN.prototype.iuand = function iuand (num) {\n // b = min-length(num, this)\n var b;\n if (this.length > num.length) {\n b = num;\n } else {\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = this.words[i] & num.words[i];\n }\n\n this.length = b.length;\n\n return this.strip();\n };\n\n BN.prototype.iand = function iand (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuand(num);\n };\n\n // And `num` with `this`\n BN.prototype.and = function and (num) {\n if (this.length > num.length) return this.clone().iand(num);\n return num.clone().iand(this);\n };\n\n BN.prototype.uand = function uand (num) {\n if (this.length > num.length) return this.clone().iuand(num);\n return num.clone().iuand(this);\n };\n\n // Xor `num` with `this` in-place\n BN.prototype.iuxor = function iuxor (num) {\n // a.length > b.length\n var a;\n var b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = a.words[i] ^ b.words[i];\n }\n\n if (this !== a) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = a.length;\n\n return this.strip();\n };\n\n BN.prototype.ixor = function ixor (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuxor(num);\n };\n\n // Xor `num` with `this`\n BN.prototype.xor = function xor (num) {\n if (this.length > num.length) return this.clone().ixor(num);\n return num.clone().ixor(this);\n };\n\n BN.prototype.uxor = function uxor (num) {\n if (this.length > num.length) return this.clone().iuxor(num);\n return num.clone().iuxor(this);\n };\n\n // Not ``this`` with ``width`` bitwidth\n BN.prototype.inotn = function inotn (width) {\n assert(typeof width === 'number' && width >= 0);\n\n var bytesNeeded = Math.ceil(width / 26) | 0;\n var bitsLeft = width % 26;\n\n // Extend the buffer with leading zeroes\n this._expand(bytesNeeded);\n\n if (bitsLeft > 0) {\n bytesNeeded--;\n }\n\n // Handle complete words\n for (var i = 0; i < bytesNeeded; i++) {\n this.words[i] = ~this.words[i] & 0x3ffffff;\n }\n\n // Handle the residue\n if (bitsLeft > 0) {\n this.words[i] = ~this.words[i] & (0x3ffffff >> (26 - bitsLeft));\n }\n\n // And remove leading zeroes\n return this.strip();\n };\n\n BN.prototype.notn = function notn (width) {\n return this.clone().inotn(width);\n };\n\n // Set `bit` of `this`\n BN.prototype.setn = function setn (bit, val) {\n assert(typeof bit === 'number' && bit >= 0);\n\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n this._expand(off + 1);\n\n if (val) {\n this.words[off] = this.words[off] | (1 << wbit);\n } else {\n this.words[off] = this.words[off] & ~(1 << wbit);\n }\n\n return this.strip();\n };\n\n // Add `num` to `this` in-place\n BN.prototype.iadd = function iadd (num) {\n var r;\n\n // negative + positive\n if (this.negative !== 0 && num.negative === 0) {\n this.negative = 0;\n r = this.isub(num);\n this.negative ^= 1;\n return this._normSign();\n\n // positive + negative\n } else if (this.negative === 0 && num.negative !== 0) {\n num.negative = 0;\n r = this.isub(num);\n num.negative = 1;\n return r._normSign();\n }\n\n // a.length > b.length\n var a, b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) + (b.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n\n this.length = a.length;\n if (carry !== 0) {\n this.words[this.length] = carry;\n this.length++;\n // Copy the rest of the words\n } else if (a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n return this;\n };\n\n // Add `num` to `this`\n BN.prototype.add = function add (num) {\n var res;\n if (num.negative !== 0 && this.negative === 0) {\n num.negative = 0;\n res = this.sub(num);\n num.negative ^= 1;\n return res;\n } else if (num.negative === 0 && this.negative !== 0) {\n this.negative = 0;\n res = num.sub(this);\n this.negative = 1;\n return res;\n }\n\n if (this.length > num.length) return this.clone().iadd(num);\n\n return num.clone().iadd(this);\n };\n\n // Subtract `num` from `this` in-place\n BN.prototype.isub = function isub (num) {\n // this - (-num) = this + num\n if (num.negative !== 0) {\n num.negative = 0;\n var r = this.iadd(num);\n num.negative = 1;\n return r._normSign();\n\n // -this - num = -(this + num)\n } else if (this.negative !== 0) {\n this.negative = 0;\n this.iadd(num);\n this.negative = 1;\n return this._normSign();\n }\n\n // At this point both numbers are positive\n var cmp = this.cmp(num);\n\n // Optimization - zeroify\n if (cmp === 0) {\n this.negative = 0;\n this.length = 1;\n this.words[0] = 0;\n return this;\n }\n\n // a > b\n var a, b;\n if (cmp > 0) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) - (b.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n\n // Copy rest of the words\n if (carry === 0 && i < a.length && a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = Math.max(this.length, i);\n\n if (a !== this) {\n this.negative = 1;\n }\n\n return this.strip();\n };\n\n // Subtract `num` from `this`\n BN.prototype.sub = function sub (num) {\n return this.clone().isub(num);\n };\n\n function smallMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n var len = (self.length + num.length) | 0;\n out.length = len;\n len = (len - 1) | 0;\n\n // Peel one iteration (compiler can't do it, because of code complexity)\n var a = self.words[0] | 0;\n var b = num.words[0] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n var carry = (r / 0x4000000) | 0;\n out.words[0] = lo;\n\n for (var k = 1; k < len; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = carry >>> 26;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = (k - j) | 0;\n a = self.words[i] | 0;\n b = num.words[j] | 0;\n r = a * b + rword;\n ncarry += (r / 0x4000000) | 0;\n rword = r & 0x3ffffff;\n }\n out.words[k] = rword | 0;\n carry = ncarry | 0;\n }\n if (carry !== 0) {\n out.words[k] = carry | 0;\n } else {\n out.length--;\n }\n\n return out.strip();\n }\n\n // TODO(indutny): it may be reasonable to omit it for users who don't need\n // to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit\n // multiplication (like elliptic secp256k1).\n var comb10MulTo = function comb10MulTo (self, num, out) {\n var a = self.words;\n var b = num.words;\n var o = out.words;\n var c = 0;\n var lo;\n var mid;\n var hi;\n var a0 = a[0] | 0;\n var al0 = a0 & 0x1fff;\n var ah0 = a0 >>> 13;\n var a1 = a[1] | 0;\n var al1 = a1 & 0x1fff;\n var ah1 = a1 >>> 13;\n var a2 = a[2] | 0;\n var al2 = a2 & 0x1fff;\n var ah2 = a2 >>> 13;\n var a3 = a[3] | 0;\n var al3 = a3 & 0x1fff;\n var ah3 = a3 >>> 13;\n var a4 = a[4] | 0;\n var al4 = a4 & 0x1fff;\n var ah4 = a4 >>> 13;\n var a5 = a[5] | 0;\n var al5 = a5 & 0x1fff;\n var ah5 = a5 >>> 13;\n var a6 = a[6] | 0;\n var al6 = a6 & 0x1fff;\n var ah6 = a6 >>> 13;\n var a7 = a[7] | 0;\n var al7 = a7 & 0x1fff;\n var ah7 = a7 >>> 13;\n var a8 = a[8] | 0;\n var al8 = a8 & 0x1fff;\n var ah8 = a8 >>> 13;\n var a9 = a[9] | 0;\n var al9 = a9 & 0x1fff;\n var ah9 = a9 >>> 13;\n var b0 = b[0] | 0;\n var bl0 = b0 & 0x1fff;\n var bh0 = b0 >>> 13;\n var b1 = b[1] | 0;\n var bl1 = b1 & 0x1fff;\n var bh1 = b1 >>> 13;\n var b2 = b[2] | 0;\n var bl2 = b2 & 0x1fff;\n var bh2 = b2 >>> 13;\n var b3 = b[3] | 0;\n var bl3 = b3 & 0x1fff;\n var bh3 = b3 >>> 13;\n var b4 = b[4] | 0;\n var bl4 = b4 & 0x1fff;\n var bh4 = b4 >>> 13;\n var b5 = b[5] | 0;\n var bl5 = b5 & 0x1fff;\n var bh5 = b5 >>> 13;\n var b6 = b[6] | 0;\n var bl6 = b6 & 0x1fff;\n var bh6 = b6 >>> 13;\n var b7 = b[7] | 0;\n var bl7 = b7 & 0x1fff;\n var bh7 = b7 >>> 13;\n var b8 = b[8] | 0;\n var bl8 = b8 & 0x1fff;\n var bh8 = b8 >>> 13;\n var b9 = b[9] | 0;\n var bl9 = b9 & 0x1fff;\n var bh9 = b9 >>> 13;\n\n out.negative = self.negative ^ num.negative;\n out.length = 19;\n /* k = 0 */\n lo = Math.imul(al0, bl0);\n mid = Math.imul(al0, bh0);\n mid = (mid + Math.imul(ah0, bl0)) | 0;\n hi = Math.imul(ah0, bh0);\n var w0 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w0 >>> 26)) | 0;\n w0 &= 0x3ffffff;\n /* k = 1 */\n lo = Math.imul(al1, bl0);\n mid = Math.imul(al1, bh0);\n mid = (mid + Math.imul(ah1, bl0)) | 0;\n hi = Math.imul(ah1, bh0);\n lo = (lo + Math.imul(al0, bl1)) | 0;\n mid = (mid + Math.imul(al0, bh1)) | 0;\n mid = (mid + Math.imul(ah0, bl1)) | 0;\n hi = (hi + Math.imul(ah0, bh1)) | 0;\n var w1 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w1 >>> 26)) | 0;\n w1 &= 0x3ffffff;\n /* k = 2 */\n lo = Math.imul(al2, bl0);\n mid = Math.imul(al2, bh0);\n mid = (mid + Math.imul(ah2, bl0)) | 0;\n hi = Math.imul(ah2, bh0);\n lo = (lo + Math.imul(al1, bl1)) | 0;\n mid = (mid + Math.imul(al1, bh1)) | 0;\n mid = (mid + Math.imul(ah1, bl1)) | 0;\n hi = (hi + Math.imul(ah1, bh1)) | 0;\n lo = (lo + Math.imul(al0, bl2)) | 0;\n mid = (mid + Math.imul(al0, bh2)) | 0;\n mid = (mid + Math.imul(ah0, bl2)) | 0;\n hi = (hi + Math.imul(ah0, bh2)) | 0;\n var w2 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w2 >>> 26)) | 0;\n w2 &= 0x3ffffff;\n /* k = 3 */\n lo = Math.imul(al3, bl0);\n mid = Math.imul(al3, bh0);\n mid = (mid + Math.imul(ah3, bl0)) | 0;\n hi = Math.imul(ah3, bh0);\n lo = (lo + Math.imul(al2, bl1)) | 0;\n mid = (mid + Math.imul(al2, bh1)) | 0;\n mid = (mid + Math.imul(ah2, bl1)) | 0;\n hi = (hi + Math.imul(ah2, bh1)) | 0;\n lo = (lo + Math.imul(al1, bl2)) | 0;\n mid = (mid + Math.imul(al1, bh2)) | 0;\n mid = (mid + Math.imul(ah1, bl2)) | 0;\n hi = (hi + Math.imul(ah1, bh2)) | 0;\n lo = (lo + Math.imul(al0, bl3)) | 0;\n mid = (mid + Math.imul(al0, bh3)) | 0;\n mid = (mid + Math.imul(ah0, bl3)) | 0;\n hi = (hi + Math.imul(ah0, bh3)) | 0;\n var w3 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w3 >>> 26)) | 0;\n w3 &= 0x3ffffff;\n /* k = 4 */\n lo = Math.imul(al4, bl0);\n mid = Math.imul(al4, bh0);\n mid = (mid + Math.imul(ah4, bl0)) | 0;\n hi = Math.imul(ah4, bh0);\n lo = (lo + Math.imul(al3, bl1)) | 0;\n mid = (mid + Math.imul(al3, bh1)) | 0;\n mid = (mid + Math.imul(ah3, bl1)) | 0;\n hi = (hi + Math.imul(ah3, bh1)) | 0;\n lo = (lo + Math.imul(al2, bl2)) | 0;\n mid = (mid + Math.imul(al2, bh2)) | 0;\n mid = (mid + Math.imul(ah2, bl2)) | 0;\n hi = (hi + Math.imul(ah2, bh2)) | 0;\n lo = (lo + Math.imul(al1, bl3)) | 0;\n mid = (mid + Math.imul(al1, bh3)) | 0;\n mid = (mid + Math.imul(ah1, bl3)) | 0;\n hi = (hi + Math.imul(ah1, bh3)) | 0;\n lo = (lo + Math.imul(al0, bl4)) | 0;\n mid = (mid + Math.imul(al0, bh4)) | 0;\n mid = (mid + Math.imul(ah0, bl4)) | 0;\n hi = (hi + Math.imul(ah0, bh4)) | 0;\n var w4 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w4 >>> 26)) | 0;\n w4 &= 0x3ffffff;\n /* k = 5 */\n lo = Math.imul(al5, bl0);\n mid = Math.imul(al5, bh0);\n mid = (mid + Math.imul(ah5, bl0)) | 0;\n hi = Math.imul(ah5, bh0);\n lo = (lo + Math.imul(al4, bl1)) | 0;\n mid = (mid + Math.imul(al4, bh1)) | 0;\n mid = (mid + Math.imul(ah4, bl1)) | 0;\n hi = (hi + Math.imul(ah4, bh1)) | 0;\n lo = (lo + Math.imul(al3, bl2)) | 0;\n mid = (mid + Math.imul(al3, bh2)) | 0;\n mid = (mid + Math.imul(ah3, bl2)) | 0;\n hi = (hi + Math.imul(ah3, bh2)) | 0;\n lo = (lo + Math.imul(al2, bl3)) | 0;\n mid = (mid + Math.imul(al2, bh3)) | 0;\n mid = (mid + Math.imul(ah2, bl3)) | 0;\n hi = (hi + Math.imul(ah2, bh3)) | 0;\n lo = (lo + Math.imul(al1, bl4)) | 0;\n mid = (mid + Math.imul(al1, bh4)) | 0;\n mid = (mid + Math.imul(ah1, bl4)) | 0;\n hi = (hi + Math.imul(ah1, bh4)) | 0;\n lo = (lo + Math.imul(al0, bl5)) | 0;\n mid = (mid + Math.imul(al0, bh5)) | 0;\n mid = (mid + Math.imul(ah0, bl5)) | 0;\n hi = (hi + Math.imul(ah0, bh5)) | 0;\n var w5 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w5 >>> 26)) | 0;\n w5 &= 0x3ffffff;\n /* k = 6 */\n lo = Math.imul(al6, bl0);\n mid = Math.imul(al6, bh0);\n mid = (mid + Math.imul(ah6, bl0)) | 0;\n hi = Math.imul(ah6, bh0);\n lo = (lo + Math.imul(al5, bl1)) | 0;\n mid = (mid + Math.imul(al5, bh1)) | 0;\n mid = (mid + Math.imul(ah5, bl1)) | 0;\n hi = (hi + Math.imul(ah5, bh1)) | 0;\n lo = (lo + Math.imul(al4, bl2)) | 0;\n mid = (mid + Math.imul(al4, bh2)) | 0;\n mid = (mid + Math.imul(ah4, bl2)) | 0;\n hi = (hi + Math.imul(ah4, bh2)) | 0;\n lo = (lo + Math.imul(al3, bl3)) | 0;\n mid = (mid + Math.imul(al3, bh3)) | 0;\n mid = (mid + Math.imul(ah3, bl3)) | 0;\n hi = (hi + Math.imul(ah3, bh3)) | 0;\n lo = (lo + Math.imul(al2, bl4)) | 0;\n mid = (mid + Math.imul(al2, bh4)) | 0;\n mid = (mid + Math.imul(ah2, bl4)) | 0;\n hi = (hi + Math.imul(ah2, bh4)) | 0;\n lo = (lo + Math.imul(al1, bl5)) | 0;\n mid = (mid + Math.imul(al1, bh5)) | 0;\n mid = (mid + Math.imul(ah1, bl5)) | 0;\n hi = (hi + Math.imul(ah1, bh5)) | 0;\n lo = (lo + Math.imul(al0, bl6)) | 0;\n mid = (mid + Math.imul(al0, bh6)) | 0;\n mid = (mid + Math.imul(ah0, bl6)) | 0;\n hi = (hi + Math.imul(ah0, bh6)) | 0;\n var w6 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w6 >>> 26)) | 0;\n w6 &= 0x3ffffff;\n /* k = 7 */\n lo = Math.imul(al7, bl0);\n mid = Math.imul(al7, bh0);\n mid = (mid + Math.imul(ah7, bl0)) | 0;\n hi = Math.imul(ah7, bh0);\n lo = (lo + Math.imul(al6, bl1)) | 0;\n mid = (mid + Math.imul(al6, bh1)) | 0;\n mid = (mid + Math.imul(ah6, bl1)) | 0;\n hi = (hi + Math.imul(ah6, bh1)) | 0;\n lo = (lo + Math.imul(al5, bl2)) | 0;\n mid = (mid + Math.imul(al5, bh2)) | 0;\n mid = (mid + Math.imul(ah5, bl2)) | 0;\n hi = (hi + Math.imul(ah5, bh2)) | 0;\n lo = (lo + Math.imul(al4, bl3)) | 0;\n mid = (mid + Math.imul(al4, bh3)) | 0;\n mid = (mid + Math.imul(ah4, bl3)) | 0;\n hi = (hi + Math.imul(ah4, bh3)) | 0;\n lo = (lo + Math.imul(al3, bl4)) | 0;\n mid = (mid + Math.imul(al3, bh4)) | 0;\n mid = (mid + Math.imul(ah3, bl4)) | 0;\n hi = (hi + Math.imul(ah3, bh4)) | 0;\n lo = (lo + Math.imul(al2, bl5)) | 0;\n mid = (mid + Math.imul(al2, bh5)) | 0;\n mid = (mid + Math.imul(ah2, bl5)) | 0;\n hi = (hi + Math.imul(ah2, bh5)) | 0;\n lo = (lo + Math.imul(al1, bl6)) | 0;\n mid = (mid + Math.imul(al1, bh6)) | 0;\n mid = (mid + Math.imul(ah1, bl6)) | 0;\n hi = (hi + Math.imul(ah1, bh6)) | 0;\n lo = (lo + Math.imul(al0, bl7)) | 0;\n mid = (mid + Math.imul(al0, bh7)) | 0;\n mid = (mid + Math.imul(ah0, bl7)) | 0;\n hi = (hi + Math.imul(ah0, bh7)) | 0;\n var w7 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w7 >>> 26)) | 0;\n w7 &= 0x3ffffff;\n /* k = 8 */\n lo = Math.imul(al8, bl0);\n mid = Math.imul(al8, bh0);\n mid = (mid + Math.imul(ah8, bl0)) | 0;\n hi = Math.imul(ah8, bh0);\n lo = (lo + Math.imul(al7, bl1)) | 0;\n mid = (mid + Math.imul(al7, bh1)) | 0;\n mid = (mid + Math.imul(ah7, bl1)) | 0;\n hi = (hi + Math.imul(ah7, bh1)) | 0;\n lo = (lo + Math.imul(al6, bl2)) | 0;\n mid = (mid + Math.imul(al6, bh2)) | 0;\n mid = (mid + Math.imul(ah6, bl2)) | 0;\n hi = (hi + Math.imul(ah6, bh2)) | 0;\n lo = (lo + Math.imul(al5, bl3)) | 0;\n mid = (mid + Math.imul(al5, bh3)) | 0;\n mid = (mid + Math.imul(ah5, bl3)) | 0;\n hi = (hi + Math.imul(ah5, bh3)) | 0;\n lo = (lo + Math.imul(al4, bl4)) | 0;\n mid = (mid + Math.imul(al4, bh4)) | 0;\n mid = (mid + Math.imul(ah4, bl4)) | 0;\n hi = (hi + Math.imul(ah4, bh4)) | 0;\n lo = (lo + Math.imul(al3, bl5)) | 0;\n mid = (mid + Math.imul(al3, bh5)) | 0;\n mid = (mid + Math.imul(ah3, bl5)) | 0;\n hi = (hi + Math.imul(ah3, bh5)) | 0;\n lo = (lo + Math.imul(al2, bl6)) | 0;\n mid = (mid + Math.imul(al2, bh6)) | 0;\n mid = (mid + Math.imul(ah2, bl6)) | 0;\n hi = (hi + Math.imul(ah2, bh6)) | 0;\n lo = (lo + Math.imul(al1, bl7)) | 0;\n mid = (mid + Math.imul(al1, bh7)) | 0;\n mid = (mid + Math.imul(ah1, bl7)) | 0;\n hi = (hi + Math.imul(ah1, bh7)) | 0;\n lo = (lo + Math.imul(al0, bl8)) | 0;\n mid = (mid + Math.imul(al0, bh8)) | 0;\n mid = (mid + Math.imul(ah0, bl8)) | 0;\n hi = (hi + Math.imul(ah0, bh8)) | 0;\n var w8 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w8 >>> 26)) | 0;\n w8 &= 0x3ffffff;\n /* k = 9 */\n lo = Math.imul(al9, bl0);\n mid = Math.imul(al9, bh0);\n mid = (mid + Math.imul(ah9, bl0)) | 0;\n hi = Math.imul(ah9, bh0);\n lo = (lo + Math.imul(al8, bl1)) | 0;\n mid = (mid + Math.imul(al8, bh1)) | 0;\n mid = (mid + Math.imul(ah8, bl1)) | 0;\n hi = (hi + Math.imul(ah8, bh1)) | 0;\n lo = (lo + Math.imul(al7, bl2)) | 0;\n mid = (mid + Math.imul(al7, bh2)) | 0;\n mid = (mid + Math.imul(ah7, bl2)) | 0;\n hi = (hi + Math.imul(ah7, bh2)) | 0;\n lo = (lo + Math.imul(al6, bl3)) | 0;\n mid = (mid + Math.imul(al6, bh3)) | 0;\n mid = (mid + Math.imul(ah6, bl3)) | 0;\n hi = (hi + Math.imul(ah6, bh3)) | 0;\n lo = (lo + Math.imul(al5, bl4)) | 0;\n mid = (mid + Math.imul(al5, bh4)) | 0;\n mid = (mid + Math.imul(ah5, bl4)) | 0;\n hi = (hi + Math.imul(ah5, bh4)) | 0;\n lo = (lo + Math.imul(al4, bl5)) | 0;\n mid = (mid + Math.imul(al4, bh5)) | 0;\n mid = (mid + Math.imul(ah4, bl5)) | 0;\n hi = (hi + Math.imul(ah4, bh5)) | 0;\n lo = (lo + Math.imul(al3, bl6)) | 0;\n mid = (mid + Math.imul(al3, bh6)) | 0;\n mid = (mid + Math.imul(ah3, bl6)) | 0;\n hi = (hi + Math.imul(ah3, bh6)) | 0;\n lo = (lo + Math.imul(al2, bl7)) | 0;\n mid = (mid + Math.imul(al2, bh7)) | 0;\n mid = (mid + Math.imul(ah2, bl7)) | 0;\n hi = (hi + Math.imul(ah2, bh7)) | 0;\n lo = (lo + Math.imul(al1, bl8)) | 0;\n mid = (mid + Math.imul(al1, bh8)) | 0;\n mid = (mid + Math.imul(ah1, bl8)) | 0;\n hi = (hi + Math.imul(ah1, bh8)) | 0;\n lo = (lo + Math.imul(al0, bl9)) | 0;\n mid = (mid + Math.imul(al0, bh9)) | 0;\n mid = (mid + Math.imul(ah0, bl9)) | 0;\n hi = (hi + Math.imul(ah0, bh9)) | 0;\n var w9 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w9 >>> 26)) | 0;\n w9 &= 0x3ffffff;\n /* k = 10 */\n lo = Math.imul(al9, bl1);\n mid = Math.imul(al9, bh1);\n mid = (mid + Math.imul(ah9, bl1)) | 0;\n hi = Math.imul(ah9, bh1);\n lo = (lo + Math.imul(al8, bl2)) | 0;\n mid = (mid + Math.imul(al8, bh2)) | 0;\n mid = (mid + Math.imul(ah8, bl2)) | 0;\n hi = (hi + Math.imul(ah8, bh2)) | 0;\n lo = (lo + Math.imul(al7, bl3)) | 0;\n mid = (mid + Math.imul(al7, bh3)) | 0;\n mid = (mid + Math.imul(ah7, bl3)) | 0;\n hi = (hi + Math.imul(ah7, bh3)) | 0;\n lo = (lo + Math.imul(al6, bl4)) | 0;\n mid = (mid + Math.imul(al6, bh4)) | 0;\n mid = (mid + Math.imul(ah6, bl4)) | 0;\n hi = (hi + Math.imul(ah6, bh4)) | 0;\n lo = (lo + Math.imul(al5, bl5)) | 0;\n mid = (mid + Math.imul(al5, bh5)) | 0;\n mid = (mid + Math.imul(ah5, bl5)) | 0;\n hi = (hi + Math.imul(ah5, bh5)) | 0;\n lo = (lo + Math.imul(al4, bl6)) | 0;\n mid = (mid + Math.imul(al4, bh6)) | 0;\n mid = (mid + Math.imul(ah4, bl6)) | 0;\n hi = (hi + Math.imul(ah4, bh6)) | 0;\n lo = (lo + Math.imul(al3, bl7)) | 0;\n mid = (mid + Math.imul(al3, bh7)) | 0;\n mid = (mid + Math.imul(ah3, bl7)) | 0;\n hi = (hi + Math.imul(ah3, bh7)) | 0;\n lo = (lo + Math.imul(al2, bl8)) | 0;\n mid = (mid + Math.imul(al2, bh8)) | 0;\n mid = (mid + Math.imul(ah2, bl8)) | 0;\n hi = (hi + Math.imul(ah2, bh8)) | 0;\n lo = (lo + Math.imul(al1, bl9)) | 0;\n mid = (mid + Math.imul(al1, bh9)) | 0;\n mid = (mid + Math.imul(ah1, bl9)) | 0;\n hi = (hi + Math.imul(ah1, bh9)) | 0;\n var w10 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w10 >>> 26)) | 0;\n w10 &= 0x3ffffff;\n /* k = 11 */\n lo = Math.imul(al9, bl2);\n mid = Math.imul(al9, bh2);\n mid = (mid + Math.imul(ah9, bl2)) | 0;\n hi = Math.imul(ah9, bh2);\n lo = (lo + Math.imul(al8, bl3)) | 0;\n mid = (mid + Math.imul(al8, bh3)) | 0;\n mid = (mid + Math.imul(ah8, bl3)) | 0;\n hi = (hi + Math.imul(ah8, bh3)) | 0;\n lo = (lo + Math.imul(al7, bl4)) | 0;\n mid = (mid + Math.imul(al7, bh4)) | 0;\n mid = (mid + Math.imul(ah7, bl4)) | 0;\n hi = (hi + Math.imul(ah7, bh4)) | 0;\n lo = (lo + Math.imul(al6, bl5)) | 0;\n mid = (mid + Math.imul(al6, bh5)) | 0;\n mid = (mid + Math.imul(ah6, bl5)) | 0;\n hi = (hi + Math.imul(ah6, bh5)) | 0;\n lo = (lo + Math.imul(al5, bl6)) | 0;\n mid = (mid + Math.imul(al5, bh6)) | 0;\n mid = (mid + Math.imul(ah5, bl6)) | 0;\n hi = (hi + Math.imul(ah5, bh6)) | 0;\n lo = (lo + Math.imul(al4, bl7)) | 0;\n mid = (mid + Math.imul(al4, bh7)) | 0;\n mid = (mid + Math.imul(ah4, bl7)) | 0;\n hi = (hi + Math.imul(ah4, bh7)) | 0;\n lo = (lo + Math.imul(al3, bl8)) | 0;\n mid = (mid + Math.imul(al3, bh8)) | 0;\n mid = (mid + Math.imul(ah3, bl8)) | 0;\n hi = (hi + Math.imul(ah3, bh8)) | 0;\n lo = (lo + Math.imul(al2, bl9)) | 0;\n mid = (mid + Math.imul(al2, bh9)) | 0;\n mid = (mid + Math.imul(ah2, bl9)) | 0;\n hi = (hi + Math.imul(ah2, bh9)) | 0;\n var w11 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w11 >>> 26)) | 0;\n w11 &= 0x3ffffff;\n /* k = 12 */\n lo = Math.imul(al9, bl3);\n mid = Math.imul(al9, bh3);\n mid = (mid + Math.imul(ah9, bl3)) | 0;\n hi = Math.imul(ah9, bh3);\n lo = (lo + Math.imul(al8, bl4)) | 0;\n mid = (mid + Math.imul(al8, bh4)) | 0;\n mid = (mid + Math.imul(ah8, bl4)) | 0;\n hi = (hi + Math.imul(ah8, bh4)) | 0;\n lo = (lo + Math.imul(al7, bl5)) | 0;\n mid = (mid + Math.imul(al7, bh5)) | 0;\n mid = (mid + Math.imul(ah7, bl5)) | 0;\n hi = (hi + Math.imul(ah7, bh5)) | 0;\n lo = (lo + Math.imul(al6, bl6)) | 0;\n mid = (mid + Math.imul(al6, bh6)) | 0;\n mid = (mid + Math.imul(ah6, bl6)) | 0;\n hi = (hi + Math.imul(ah6, bh6)) | 0;\n lo = (lo + Math.imul(al5, bl7)) | 0;\n mid = (mid + Math.imul(al5, bh7)) | 0;\n mid = (mid + Math.imul(ah5, bl7)) | 0;\n hi = (hi + Math.imul(ah5, bh7)) | 0;\n lo = (lo + Math.imul(al4, bl8)) | 0;\n mid = (mid + Math.imul(al4, bh8)) | 0;\n mid = (mid + Math.imul(ah4, bl8)) | 0;\n hi = (hi + Math.imul(ah4, bh8)) | 0;\n lo = (lo + Math.imul(al3, bl9)) | 0;\n mid = (mid + Math.imul(al3, bh9)) | 0;\n mid = (mid + Math.imul(ah3, bl9)) | 0;\n hi = (hi + Math.imul(ah3, bh9)) | 0;\n var w12 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w12 >>> 26)) | 0;\n w12 &= 0x3ffffff;\n /* k = 13 */\n lo = Math.imul(al9, bl4);\n mid = Math.imul(al9, bh4);\n mid = (mid + Math.imul(ah9, bl4)) | 0;\n hi = Math.imul(ah9, bh4);\n lo = (lo + Math.imul(al8, bl5)) | 0;\n mid = (mid + Math.imul(al8, bh5)) | 0;\n mid = (mid + Math.imul(ah8, bl5)) | 0;\n hi = (hi + Math.imul(ah8, bh5)) | 0;\n lo = (lo + Math.imul(al7, bl6)) | 0;\n mid = (mid + Math.imul(al7, bh6)) | 0;\n mid = (mid + Math.imul(ah7, bl6)) | 0;\n hi = (hi + Math.imul(ah7, bh6)) | 0;\n lo = (lo + Math.imul(al6, bl7)) | 0;\n mid = (mid + Math.imul(al6, bh7)) | 0;\n mid = (mid + Math.imul(ah6, bl7)) | 0;\n hi = (hi + Math.imul(ah6, bh7)) | 0;\n lo = (lo + Math.imul(al5, bl8)) | 0;\n mid = (mid + Math.imul(al5, bh8)) | 0;\n mid = (mid + Math.imul(ah5, bl8)) | 0;\n hi = (hi + Math.imul(ah5, bh8)) | 0;\n lo = (lo + Math.imul(al4, bl9)) | 0;\n mid = (mid + Math.imul(al4, bh9)) | 0;\n mid = (mid + Math.imul(ah4, bl9)) | 0;\n hi = (hi + Math.imul(ah4, bh9)) | 0;\n var w13 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w13 >>> 26)) | 0;\n w13 &= 0x3ffffff;\n /* k = 14 */\n lo = Math.imul(al9, bl5);\n mid = Math.imul(al9, bh5);\n mid = (mid + Math.imul(ah9, bl5)) | 0;\n hi = Math.imul(ah9, bh5);\n lo = (lo + Math.imul(al8, bl6)) | 0;\n mid = (mid + Math.imul(al8, bh6)) | 0;\n mid = (mid + Math.imul(ah8, bl6)) | 0;\n hi = (hi + Math.imul(ah8, bh6)) | 0;\n lo = (lo + Math.imul(al7, bl7)) | 0;\n mid = (mid + Math.imul(al7, bh7)) | 0;\n mid = (mid + Math.imul(ah7, bl7)) | 0;\n hi = (hi + Math.imul(ah7, bh7)) | 0;\n lo = (lo + Math.imul(al6, bl8)) | 0;\n mid = (mid + Math.imul(al6, bh8)) | 0;\n mid = (mid + Math.imul(ah6, bl8)) | 0;\n hi = (hi + Math.imul(ah6, bh8)) | 0;\n lo = (lo + Math.imul(al5, bl9)) | 0;\n mid = (mid + Math.imul(al5, bh9)) | 0;\n mid = (mid + Math.imul(ah5, bl9)) | 0;\n hi = (hi + Math.imul(ah5, bh9)) | 0;\n var w14 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w14 >>> 26)) | 0;\n w14 &= 0x3ffffff;\n /* k = 15 */\n lo = Math.imul(al9, bl6);\n mid = Math.imul(al9, bh6);\n mid = (mid + Math.imul(ah9, bl6)) | 0;\n hi = Math.imul(ah9, bh6);\n lo = (lo + Math.imul(al8, bl7)) | 0;\n mid = (mid + Math.imul(al8, bh7)) | 0;\n mid = (mid + Math.imul(ah8, bl7)) | 0;\n hi = (hi + Math.imul(ah8, bh7)) | 0;\n lo = (lo + Math.imul(al7, bl8)) | 0;\n mid = (mid + Math.imul(al7, bh8)) | 0;\n mid = (mid + Math.imul(ah7, bl8)) | 0;\n hi = (hi + Math.imul(ah7, bh8)) | 0;\n lo = (lo + Math.imul(al6, bl9)) | 0;\n mid = (mid + Math.imul(al6, bh9)) | 0;\n mid = (mid + Math.imul(ah6, bl9)) | 0;\n hi = (hi + Math.imul(ah6, bh9)) | 0;\n var w15 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w15 >>> 26)) | 0;\n w15 &= 0x3ffffff;\n /* k = 16 */\n lo = Math.imul(al9, bl7);\n mid = Math.imul(al9, bh7);\n mid = (mid + Math.imul(ah9, bl7)) | 0;\n hi = Math.imul(ah9, bh7);\n lo = (lo + Math.imul(al8, bl8)) | 0;\n mid = (mid + Math.imul(al8, bh8)) | 0;\n mid = (mid + Math.imul(ah8, bl8)) | 0;\n hi = (hi + Math.imul(ah8, bh8)) | 0;\n lo = (lo + Math.imul(al7, bl9)) | 0;\n mid = (mid + Math.imul(al7, bh9)) | 0;\n mid = (mid + Math.imul(ah7, bl9)) | 0;\n hi = (hi + Math.imul(ah7, bh9)) | 0;\n var w16 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w16 >>> 26)) | 0;\n w16 &= 0x3ffffff;\n /* k = 17 */\n lo = Math.imul(al9, bl8);\n mid = Math.imul(al9, bh8);\n mid = (mid + Math.imul(ah9, bl8)) | 0;\n hi = Math.imul(ah9, bh8);\n lo = (lo + Math.imul(al8, bl9)) | 0;\n mid = (mid + Math.imul(al8, bh9)) | 0;\n mid = (mid + Math.imul(ah8, bl9)) | 0;\n hi = (hi + Math.imul(ah8, bh9)) | 0;\n var w17 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w17 >>> 26)) | 0;\n w17 &= 0x3ffffff;\n /* k = 18 */\n lo = Math.imul(al9, bl9);\n mid = Math.imul(al9, bh9);\n mid = (mid + Math.imul(ah9, bl9)) | 0;\n hi = Math.imul(ah9, bh9);\n var w18 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w18 >>> 26)) | 0;\n w18 &= 0x3ffffff;\n o[0] = w0;\n o[1] = w1;\n o[2] = w2;\n o[3] = w3;\n o[4] = w4;\n o[5] = w5;\n o[6] = w6;\n o[7] = w7;\n o[8] = w8;\n o[9] = w9;\n o[10] = w10;\n o[11] = w11;\n o[12] = w12;\n o[13] = w13;\n o[14] = w14;\n o[15] = w15;\n o[16] = w16;\n o[17] = w17;\n o[18] = w18;\n if (c !== 0) {\n o[19] = c;\n out.length++;\n }\n return out;\n };\n\n // Polyfill comb\n if (!Math.imul) {\n comb10MulTo = smallMulTo;\n }\n\n function bigMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n out.length = self.length + num.length;\n\n var carry = 0;\n var hncarry = 0;\n for (var k = 0; k < out.length - 1; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = hncarry;\n hncarry = 0;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = k - j;\n var a = self.words[i] | 0;\n var b = num.words[j] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n ncarry = (ncarry + ((r / 0x4000000) | 0)) | 0;\n lo = (lo + rword) | 0;\n rword = lo & 0x3ffffff;\n ncarry = (ncarry + (lo >>> 26)) | 0;\n\n hncarry += ncarry >>> 26;\n ncarry &= 0x3ffffff;\n }\n out.words[k] = rword;\n carry = ncarry;\n ncarry = hncarry;\n }\n if (carry !== 0) {\n out.words[k] = carry;\n } else {\n out.length--;\n }\n\n return out.strip();\n }\n\n function jumboMulTo (self, num, out) {\n var fftm = new FFTM();\n return fftm.mulp(self, num, out);\n }\n\n BN.prototype.mulTo = function mulTo (num, out) {\n var res;\n var len = this.length + num.length;\n if (this.length === 10 && num.length === 10) {\n res = comb10MulTo(this, num, out);\n } else if (len < 63) {\n res = smallMulTo(this, num, out);\n } else if (len < 1024) {\n res = bigMulTo(this, num, out);\n } else {\n res = jumboMulTo(this, num, out);\n }\n\n return res;\n };\n\n // Cooley-Tukey algorithm for FFT\n // slightly revisited to rely on looping instead of recursion\n\n function FFTM (x, y) {\n this.x = x;\n this.y = y;\n }\n\n FFTM.prototype.makeRBT = function makeRBT (N) {\n var t = new Array(N);\n var l = BN.prototype._countBits(N) - 1;\n for (var i = 0; i < N; i++) {\n t[i] = this.revBin(i, l, N);\n }\n\n return t;\n };\n\n // Returns binary-reversed representation of `x`\n FFTM.prototype.revBin = function revBin (x, l, N) {\n if (x === 0 || x === N - 1) return x;\n\n var rb = 0;\n for (var i = 0; i < l; i++) {\n rb |= (x & 1) << (l - i - 1);\n x >>= 1;\n }\n\n return rb;\n };\n\n // Performs \"tweedling\" phase, therefore 'emulating'\n // behaviour of the recursive algorithm\n FFTM.prototype.permute = function permute (rbt, rws, iws, rtws, itws, N) {\n for (var i = 0; i < N; i++) {\n rtws[i] = rws[rbt[i]];\n itws[i] = iws[rbt[i]];\n }\n };\n\n FFTM.prototype.transform = function transform (rws, iws, rtws, itws, N, rbt) {\n this.permute(rbt, rws, iws, rtws, itws, N);\n\n for (var s = 1; s < N; s <<= 1) {\n var l = s << 1;\n\n var rtwdf = Math.cos(2 * Math.PI / l);\n var itwdf = Math.sin(2 * Math.PI / l);\n\n for (var p = 0; p < N; p += l) {\n var rtwdf_ = rtwdf;\n var itwdf_ = itwdf;\n\n for (var j = 0; j < s; j++) {\n var re = rtws[p + j];\n var ie = itws[p + j];\n\n var ro = rtws[p + j + s];\n var io = itws[p + j + s];\n\n var rx = rtwdf_ * ro - itwdf_ * io;\n\n io = rtwdf_ * io + itwdf_ * ro;\n ro = rx;\n\n rtws[p + j] = re + ro;\n itws[p + j] = ie + io;\n\n rtws[p + j + s] = re - ro;\n itws[p + j + s] = ie - io;\n\n /* jshint maxdepth : false */\n if (j !== l) {\n rx = rtwdf * rtwdf_ - itwdf * itwdf_;\n\n itwdf_ = rtwdf * itwdf_ + itwdf * rtwdf_;\n rtwdf_ = rx;\n }\n }\n }\n }\n };\n\n FFTM.prototype.guessLen13b = function guessLen13b (n, m) {\n var N = Math.max(m, n) | 1;\n var odd = N & 1;\n var i = 0;\n for (N = N / 2 | 0; N; N = N >>> 1) {\n i++;\n }\n\n return 1 << i + 1 + odd;\n };\n\n FFTM.prototype.conjugate = function conjugate (rws, iws, N) {\n if (N <= 1) return;\n\n for (var i = 0; i < N / 2; i++) {\n var t = rws[i];\n\n rws[i] = rws[N - i - 1];\n rws[N - i - 1] = t;\n\n t = iws[i];\n\n iws[i] = -iws[N - i - 1];\n iws[N - i - 1] = -t;\n }\n };\n\n FFTM.prototype.normalize13b = function normalize13b (ws, N) {\n var carry = 0;\n for (var i = 0; i < N / 2; i++) {\n var w = Math.round(ws[2 * i + 1] / N) * 0x2000 +\n Math.round(ws[2 * i] / N) +\n carry;\n\n ws[i] = w & 0x3ffffff;\n\n if (w < 0x4000000) {\n carry = 0;\n } else {\n carry = w / 0x4000000 | 0;\n }\n }\n\n return ws;\n };\n\n FFTM.prototype.convert13b = function convert13b (ws, len, rws, N) {\n var carry = 0;\n for (var i = 0; i < len; i++) {\n carry = carry + (ws[i] | 0);\n\n rws[2 * i] = carry & 0x1fff; carry = carry >>> 13;\n rws[2 * i + 1] = carry & 0x1fff; carry = carry >>> 13;\n }\n\n // Pad with zeroes\n for (i = 2 * len; i < N; ++i) {\n rws[i] = 0;\n }\n\n assert(carry === 0);\n assert((carry & ~0x1fff) === 0);\n };\n\n FFTM.prototype.stub = function stub (N) {\n var ph = new Array(N);\n for (var i = 0; i < N; i++) {\n ph[i] = 0;\n }\n\n return ph;\n };\n\n FFTM.prototype.mulp = function mulp (x, y, out) {\n var N = 2 * this.guessLen13b(x.length, y.length);\n\n var rbt = this.makeRBT(N);\n\n var _ = this.stub(N);\n\n var rws = new Array(N);\n var rwst = new Array(N);\n var iwst = new Array(N);\n\n var nrws = new Array(N);\n var nrwst = new Array(N);\n var niwst = new Array(N);\n\n var rmws = out.words;\n rmws.length = N;\n\n this.convert13b(x.words, x.length, rws, N);\n this.convert13b(y.words, y.length, nrws, N);\n\n this.transform(rws, _, rwst, iwst, N, rbt);\n this.transform(nrws, _, nrwst, niwst, N, rbt);\n\n for (var i = 0; i < N; i++) {\n var rx = rwst[i] * nrwst[i] - iwst[i] * niwst[i];\n iwst[i] = rwst[i] * niwst[i] + iwst[i] * nrwst[i];\n rwst[i] = rx;\n }\n\n this.conjugate(rwst, iwst, N);\n this.transform(rwst, iwst, rmws, _, N, rbt);\n this.conjugate(rmws, _, N);\n this.normalize13b(rmws, N);\n\n out.negative = x.negative ^ y.negative;\n out.length = x.length + y.length;\n return out.strip();\n };\n\n // Multiply `this` by `num`\n BN.prototype.mul = function mul (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return this.mulTo(num, out);\n };\n\n // Multiply employing FFT\n BN.prototype.mulf = function mulf (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return jumboMulTo(this, num, out);\n };\n\n // In-place Multiplication\n BN.prototype.imul = function imul (num) {\n return this.clone().mulTo(num, this);\n };\n\n BN.prototype.imuln = function imuln (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n\n // Carry\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = (this.words[i] | 0) * num;\n var lo = (w & 0x3ffffff) + (carry & 0x3ffffff);\n carry >>= 26;\n carry += (w / 0x4000000) | 0;\n // NOTE: lo is 27bit maximum\n carry += lo >>> 26;\n this.words[i] = lo & 0x3ffffff;\n }\n\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n\n return this;\n };\n\n BN.prototype.muln = function muln (num) {\n return this.clone().imuln(num);\n };\n\n // `this` * `this`\n BN.prototype.sqr = function sqr () {\n return this.mul(this);\n };\n\n // `this` * `this` in-place\n BN.prototype.isqr = function isqr () {\n return this.imul(this.clone());\n };\n\n // Math.pow(`this`, `num`)\n BN.prototype.pow = function pow (num) {\n var w = toBitArray(num);\n if (w.length === 0) return new BN(1);\n\n // Skip leading zeroes\n var res = this;\n for (var i = 0; i < w.length; i++, res = res.sqr()) {\n if (w[i] !== 0) break;\n }\n\n if (++i < w.length) {\n for (var q = res.sqr(); i < w.length; i++, q = q.sqr()) {\n if (w[i] === 0) continue;\n\n res = res.mul(q);\n }\n }\n\n return res;\n };\n\n // Shift-left in-place\n BN.prototype.iushln = function iushln (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n var carryMask = (0x3ffffff >>> (26 - r)) << (26 - r);\n var i;\n\n if (r !== 0) {\n var carry = 0;\n\n for (i = 0; i < this.length; i++) {\n var newCarry = this.words[i] & carryMask;\n var c = ((this.words[i] | 0) - newCarry) << r;\n this.words[i] = c | carry;\n carry = newCarry >>> (26 - r);\n }\n\n if (carry) {\n this.words[i] = carry;\n this.length++;\n }\n }\n\n if (s !== 0) {\n for (i = this.length - 1; i >= 0; i--) {\n this.words[i + s] = this.words[i];\n }\n\n for (i = 0; i < s; i++) {\n this.words[i] = 0;\n }\n\n this.length += s;\n }\n\n return this.strip();\n };\n\n BN.prototype.ishln = function ishln (bits) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushln(bits);\n };\n\n // Shift-right in-place\n // NOTE: `hint` is a lowest bit before trailing zeroes\n // NOTE: if `extended` is present - it will be filled with destroyed bits\n BN.prototype.iushrn = function iushrn (bits, hint, extended) {\n assert(typeof bits === 'number' && bits >= 0);\n var h;\n if (hint) {\n h = (hint - (hint % 26)) / 26;\n } else {\n h = 0;\n }\n\n var r = bits % 26;\n var s = Math.min((bits - r) / 26, this.length);\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n var maskedWords = extended;\n\n h -= s;\n h = Math.max(0, h);\n\n // Extended mode, copy masked part\n if (maskedWords) {\n for (var i = 0; i < s; i++) {\n maskedWords.words[i] = this.words[i];\n }\n maskedWords.length = s;\n }\n\n if (s === 0) {\n // No-op, we should not move anything at all\n } else if (this.length > s) {\n this.length -= s;\n for (i = 0; i < this.length; i++) {\n this.words[i] = this.words[i + s];\n }\n } else {\n this.words[0] = 0;\n this.length = 1;\n }\n\n var carry = 0;\n for (i = this.length - 1; i >= 0 && (carry !== 0 || i >= h); i--) {\n var word = this.words[i] | 0;\n this.words[i] = (carry << (26 - r)) | (word >>> r);\n carry = word & mask;\n }\n\n // Push carried bits as a mask\n if (maskedWords && carry !== 0) {\n maskedWords.words[maskedWords.length++] = carry;\n }\n\n if (this.length === 0) {\n this.words[0] = 0;\n this.length = 1;\n }\n\n return this.strip();\n };\n\n BN.prototype.ishrn = function ishrn (bits, hint, extended) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushrn(bits, hint, extended);\n };\n\n // Shift-left\n BN.prototype.shln = function shln (bits) {\n return this.clone().ishln(bits);\n };\n\n BN.prototype.ushln = function ushln (bits) {\n return this.clone().iushln(bits);\n };\n\n // Shift-right\n BN.prototype.shrn = function shrn (bits) {\n return this.clone().ishrn(bits);\n };\n\n BN.prototype.ushrn = function ushrn (bits) {\n return this.clone().iushrn(bits);\n };\n\n // Test if n bit is set\n BN.prototype.testn = function testn (bit) {\n assert(typeof bit === 'number' && bit >= 0);\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) return false;\n\n // Check bit and return\n var w = this.words[s];\n\n return !!(w & q);\n };\n\n // Return only lowers bits of number (in-place)\n BN.prototype.imaskn = function imaskn (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n\n assert(this.negative === 0, 'imaskn works only with positive numbers');\n\n if (this.length <= s) {\n return this;\n }\n\n if (r !== 0) {\n s++;\n }\n this.length = Math.min(s, this.length);\n\n if (r !== 0) {\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n this.words[this.length - 1] &= mask;\n }\n\n return this.strip();\n };\n\n // Return only lowers bits of number\n BN.prototype.maskn = function maskn (bits) {\n return this.clone().imaskn(bits);\n };\n\n // Add plain number `num` to `this`\n BN.prototype.iaddn = function iaddn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.isubn(-num);\n\n // Possible sign change\n if (this.negative !== 0) {\n if (this.length === 1 && (this.words[0] | 0) < num) {\n this.words[0] = num - (this.words[0] | 0);\n this.negative = 0;\n return this;\n }\n\n this.negative = 0;\n this.isubn(num);\n this.negative = 1;\n return this;\n }\n\n // Add without checks\n return this._iaddn(num);\n };\n\n BN.prototype._iaddn = function _iaddn (num) {\n this.words[0] += num;\n\n // Carry\n for (var i = 0; i < this.length && this.words[i] >= 0x4000000; i++) {\n this.words[i] -= 0x4000000;\n if (i === this.length - 1) {\n this.words[i + 1] = 1;\n } else {\n this.words[i + 1]++;\n }\n }\n this.length = Math.max(this.length, i + 1);\n\n return this;\n };\n\n // Subtract plain number `num` from `this`\n BN.prototype.isubn = function isubn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.iaddn(-num);\n\n if (this.negative !== 0) {\n this.negative = 0;\n this.iaddn(num);\n this.negative = 1;\n return this;\n }\n\n this.words[0] -= num;\n\n if (this.length === 1 && this.words[0] < 0) {\n this.words[0] = -this.words[0];\n this.negative = 1;\n } else {\n // Carry\n for (var i = 0; i < this.length && this.words[i] < 0; i++) {\n this.words[i] += 0x4000000;\n this.words[i + 1] -= 1;\n }\n }\n\n return this.strip();\n };\n\n BN.prototype.addn = function addn (num) {\n return this.clone().iaddn(num);\n };\n\n BN.prototype.subn = function subn (num) {\n return this.clone().isubn(num);\n };\n\n BN.prototype.iabs = function iabs () {\n this.negative = 0;\n\n return this;\n };\n\n BN.prototype.abs = function abs () {\n return this.clone().iabs();\n };\n\n BN.prototype._ishlnsubmul = function _ishlnsubmul (num, mul, shift) {\n var len = num.length + shift;\n var i;\n\n this._expand(len);\n\n var w;\n var carry = 0;\n for (i = 0; i < num.length; i++) {\n w = (this.words[i + shift] | 0) + carry;\n var right = (num.words[i] | 0) * mul;\n w -= right & 0x3ffffff;\n carry = (w >> 26) - ((right / 0x4000000) | 0);\n this.words[i + shift] = w & 0x3ffffff;\n }\n for (; i < this.length - shift; i++) {\n w = (this.words[i + shift] | 0) + carry;\n carry = w >> 26;\n this.words[i + shift] = w & 0x3ffffff;\n }\n\n if (carry === 0) return this.strip();\n\n // Subtraction overflow\n assert(carry === -1);\n carry = 0;\n for (i = 0; i < this.length; i++) {\n w = -(this.words[i] | 0) + carry;\n carry = w >> 26;\n this.words[i] = w & 0x3ffffff;\n }\n this.negative = 1;\n\n return this.strip();\n };\n\n BN.prototype._wordDiv = function _wordDiv (num, mode) {\n var shift = this.length - num.length;\n\n var a = this.clone();\n var b = num;\n\n // Normalize\n var bhi = b.words[b.length - 1] | 0;\n var bhiBits = this._countBits(bhi);\n shift = 26 - bhiBits;\n if (shift !== 0) {\n b = b.ushln(shift);\n a.iushln(shift);\n bhi = b.words[b.length - 1] | 0;\n }\n\n // Initialize quotient\n var m = a.length - b.length;\n var q;\n\n if (mode !== 'mod') {\n q = new BN(null);\n q.length = m + 1;\n q.words = new Array(q.length);\n for (var i = 0; i < q.length; i++) {\n q.words[i] = 0;\n }\n }\n\n var diff = a.clone()._ishlnsubmul(b, 1, m);\n if (diff.negative === 0) {\n a = diff;\n if (q) {\n q.words[m] = 1;\n }\n }\n\n for (var j = m - 1; j >= 0; j--) {\n var qj = (a.words[b.length + j] | 0) * 0x4000000 +\n (a.words[b.length + j - 1] | 0);\n\n // NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max\n // (0x7ffffff)\n qj = Math.min((qj / bhi) | 0, 0x3ffffff);\n\n a._ishlnsubmul(b, qj, j);\n while (a.negative !== 0) {\n qj--;\n a.negative = 0;\n a._ishlnsubmul(b, 1, j);\n if (!a.isZero()) {\n a.negative ^= 1;\n }\n }\n if (q) {\n q.words[j] = qj;\n }\n }\n if (q) {\n q.strip();\n }\n a.strip();\n\n // Denormalize\n if (mode !== 'div' && shift !== 0) {\n a.iushrn(shift);\n }\n\n return {\n div: q || null,\n mod: a\n };\n };\n\n // NOTE: 1) `mode` can be set to `mod` to request mod only,\n // to `div` to request div only, or be absent to\n // request both div & mod\n // 2) `positive` is true if unsigned mod is requested\n BN.prototype.divmod = function divmod (num, mode, positive) {\n assert(!num.isZero());\n\n if (this.isZero()) {\n return {\n div: new BN(0),\n mod: new BN(0)\n };\n }\n\n var div, mod, res;\n if (this.negative !== 0 && num.negative === 0) {\n res = this.neg().divmod(num, mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.iadd(num);\n }\n }\n\n return {\n div: div,\n mod: mod\n };\n }\n\n if (this.negative === 0 && num.negative !== 0) {\n res = this.divmod(num.neg(), mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n return {\n div: div,\n mod: res.mod\n };\n }\n\n if ((this.negative & num.negative) !== 0) {\n res = this.neg().divmod(num.neg(), mode);\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.isub(num);\n }\n }\n\n return {\n div: res.div,\n mod: mod\n };\n }\n\n // Both numbers are positive at this point\n\n // Strip both numbers to approximate shift value\n if (num.length > this.length || this.cmp(num) < 0) {\n return {\n div: new BN(0),\n mod: this\n };\n }\n\n // Very short reduction\n if (num.length === 1) {\n if (mode === 'div') {\n return {\n div: this.divn(num.words[0]),\n mod: null\n };\n }\n\n if (mode === 'mod') {\n return {\n div: null,\n mod: new BN(this.modn(num.words[0]))\n };\n }\n\n return {\n div: this.divn(num.words[0]),\n mod: new BN(this.modn(num.words[0]))\n };\n }\n\n return this._wordDiv(num, mode);\n };\n\n // Find `this` / `num`\n BN.prototype.div = function div (num) {\n return this.divmod(num, 'div', false).div;\n };\n\n // Find `this` % `num`\n BN.prototype.mod = function mod (num) {\n return this.divmod(num, 'mod', false).mod;\n };\n\n BN.prototype.umod = function umod (num) {\n return this.divmod(num, 'mod', true).mod;\n };\n\n // Find Round(`this` / `num`)\n BN.prototype.divRound = function divRound (num) {\n var dm = this.divmod(num);\n\n // Fast case - exact division\n if (dm.mod.isZero()) return dm.div;\n\n var mod = dm.div.negative !== 0 ? dm.mod.isub(num) : dm.mod;\n\n var half = num.ushrn(1);\n var r2 = num.andln(1);\n var cmp = mod.cmp(half);\n\n // Round down\n if (cmp < 0 || r2 === 1 && cmp === 0) return dm.div;\n\n // Round up\n return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1);\n };\n\n BN.prototype.modn = function modn (num) {\n assert(num <= 0x3ffffff);\n var p = (1 << 26) % num;\n\n var acc = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n acc = (p * acc + (this.words[i] | 0)) % num;\n }\n\n return acc;\n };\n\n // In-place division by number\n BN.prototype.idivn = function idivn (num) {\n assert(num <= 0x3ffffff);\n\n var carry = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var w = (this.words[i] | 0) + carry * 0x4000000;\n this.words[i] = (w / num) | 0;\n carry = w % num;\n }\n\n return this.strip();\n };\n\n BN.prototype.divn = function divn (num) {\n return this.clone().idivn(num);\n };\n\n BN.prototype.egcd = function egcd (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var x = this;\n var y = p.clone();\n\n if (x.negative !== 0) {\n x = x.umod(p);\n } else {\n x = x.clone();\n }\n\n // A * x + B * y = x\n var A = new BN(1);\n var B = new BN(0);\n\n // C * x + D * y = y\n var C = new BN(0);\n var D = new BN(1);\n\n var g = 0;\n\n while (x.isEven() && y.isEven()) {\n x.iushrn(1);\n y.iushrn(1);\n ++g;\n }\n\n var yp = y.clone();\n var xp = x.clone();\n\n while (!x.isZero()) {\n for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n x.iushrn(i);\n while (i-- > 0) {\n if (A.isOdd() || B.isOdd()) {\n A.iadd(yp);\n B.isub(xp);\n }\n\n A.iushrn(1);\n B.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n y.iushrn(j);\n while (j-- > 0) {\n if (C.isOdd() || D.isOdd()) {\n C.iadd(yp);\n D.isub(xp);\n }\n\n C.iushrn(1);\n D.iushrn(1);\n }\n }\n\n if (x.cmp(y) >= 0) {\n x.isub(y);\n A.isub(C);\n B.isub(D);\n } else {\n y.isub(x);\n C.isub(A);\n D.isub(B);\n }\n }\n\n return {\n a: C,\n b: D,\n gcd: y.iushln(g)\n };\n };\n\n // This is reduced incarnation of the binary EEA\n // above, designated to invert members of the\n // _prime_ fields F(p) at a maximal speed\n BN.prototype._invmp = function _invmp (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var a = this;\n var b = p.clone();\n\n if (a.negative !== 0) {\n a = a.umod(p);\n } else {\n a = a.clone();\n }\n\n var x1 = new BN(1);\n var x2 = new BN(0);\n\n var delta = b.clone();\n\n while (a.cmpn(1) > 0 && b.cmpn(1) > 0) {\n for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n a.iushrn(i);\n while (i-- > 0) {\n if (x1.isOdd()) {\n x1.iadd(delta);\n }\n\n x1.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n b.iushrn(j);\n while (j-- > 0) {\n if (x2.isOdd()) {\n x2.iadd(delta);\n }\n\n x2.iushrn(1);\n }\n }\n\n if (a.cmp(b) >= 0) {\n a.isub(b);\n x1.isub(x2);\n } else {\n b.isub(a);\n x2.isub(x1);\n }\n }\n\n var res;\n if (a.cmpn(1) === 0) {\n res = x1;\n } else {\n res = x2;\n }\n\n if (res.cmpn(0) < 0) {\n res.iadd(p);\n }\n\n return res;\n };\n\n BN.prototype.gcd = function gcd (num) {\n if (this.isZero()) return num.abs();\n if (num.isZero()) return this.abs();\n\n var a = this.clone();\n var b = num.clone();\n a.negative = 0;\n b.negative = 0;\n\n // Remove common factor of two\n for (var shift = 0; a.isEven() && b.isEven(); shift++) {\n a.iushrn(1);\n b.iushrn(1);\n }\n\n do {\n while (a.isEven()) {\n a.iushrn(1);\n }\n while (b.isEven()) {\n b.iushrn(1);\n }\n\n var r = a.cmp(b);\n if (r < 0) {\n // Swap `a` and `b` to make `a` always bigger than `b`\n var t = a;\n a = b;\n b = t;\n } else if (r === 0 || b.cmpn(1) === 0) {\n break;\n }\n\n a.isub(b);\n } while (true);\n\n return b.iushln(shift);\n };\n\n // Invert number in the field F(num)\n BN.prototype.invm = function invm (num) {\n return this.egcd(num).a.umod(num);\n };\n\n BN.prototype.isEven = function isEven () {\n return (this.words[0] & 1) === 0;\n };\n\n BN.prototype.isOdd = function isOdd () {\n return (this.words[0] & 1) === 1;\n };\n\n // And first word and num\n BN.prototype.andln = function andln (num) {\n return this.words[0] & num;\n };\n\n // Increment at the bit position in-line\n BN.prototype.bincn = function bincn (bit) {\n assert(typeof bit === 'number');\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) {\n this._expand(s + 1);\n this.words[s] |= q;\n return this;\n }\n\n // Add bit and propagate, if needed\n var carry = q;\n for (var i = s; carry !== 0 && i < this.length; i++) {\n var w = this.words[i] | 0;\n w += carry;\n carry = w >>> 26;\n w &= 0x3ffffff;\n this.words[i] = w;\n }\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n return this;\n };\n\n BN.prototype.isZero = function isZero () {\n return this.length === 1 && this.words[0] === 0;\n };\n\n BN.prototype.cmpn = function cmpn (num) {\n var negative = num < 0;\n\n if (this.negative !== 0 && !negative) return -1;\n if (this.negative === 0 && negative) return 1;\n\n this.strip();\n\n var res;\n if (this.length > 1) {\n res = 1;\n } else {\n if (negative) {\n num = -num;\n }\n\n assert(num <= 0x3ffffff, 'Number is too big');\n\n var w = this.words[0] | 0;\n res = w === num ? 0 : w < num ? -1 : 1;\n }\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Compare two numbers and return:\n // 1 - if `this` > `num`\n // 0 - if `this` == `num`\n // -1 - if `this` < `num`\n BN.prototype.cmp = function cmp (num) {\n if (this.negative !== 0 && num.negative === 0) return -1;\n if (this.negative === 0 && num.negative !== 0) return 1;\n\n var res = this.ucmp(num);\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Unsigned comparison\n BN.prototype.ucmp = function ucmp (num) {\n // At this point both numbers have the same sign\n if (this.length > num.length) return 1;\n if (this.length < num.length) return -1;\n\n var res = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var a = this.words[i] | 0;\n var b = num.words[i] | 0;\n\n if (a === b) continue;\n if (a < b) {\n res = -1;\n } else if (a > b) {\n res = 1;\n }\n break;\n }\n return res;\n };\n\n BN.prototype.gtn = function gtn (num) {\n return this.cmpn(num) === 1;\n };\n\n BN.prototype.gt = function gt (num) {\n return this.cmp(num) === 1;\n };\n\n BN.prototype.gten = function gten (num) {\n return this.cmpn(num) >= 0;\n };\n\n BN.prototype.gte = function gte (num) {\n return this.cmp(num) >= 0;\n };\n\n BN.prototype.ltn = function ltn (num) {\n return this.cmpn(num) === -1;\n };\n\n BN.prototype.lt = function lt (num) {\n return this.cmp(num) === -1;\n };\n\n BN.prototype.lten = function lten (num) {\n return this.cmpn(num) <= 0;\n };\n\n BN.prototype.lte = function lte (num) {\n return this.cmp(num) <= 0;\n };\n\n BN.prototype.eqn = function eqn (num) {\n return this.cmpn(num) === 0;\n };\n\n BN.prototype.eq = function eq (num) {\n return this.cmp(num) === 0;\n };\n\n //\n // A reduce context, could be using montgomery or something better, depending\n // on the `m` itself.\n //\n BN.red = function red (num) {\n return new Red(num);\n };\n\n BN.prototype.toRed = function toRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n assert(this.negative === 0, 'red works only with positives');\n return ctx.convertTo(this)._forceRed(ctx);\n };\n\n BN.prototype.fromRed = function fromRed () {\n assert(this.red, 'fromRed works only with numbers in reduction context');\n return this.red.convertFrom(this);\n };\n\n BN.prototype._forceRed = function _forceRed (ctx) {\n this.red = ctx;\n return this;\n };\n\n BN.prototype.forceRed = function forceRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n return this._forceRed(ctx);\n };\n\n BN.prototype.redAdd = function redAdd (num) {\n assert(this.red, 'redAdd works only with red numbers');\n return this.red.add(this, num);\n };\n\n BN.prototype.redIAdd = function redIAdd (num) {\n assert(this.red, 'redIAdd works only with red numbers');\n return this.red.iadd(this, num);\n };\n\n BN.prototype.redSub = function redSub (num) {\n assert(this.red, 'redSub works only with red numbers');\n return this.red.sub(this, num);\n };\n\n BN.prototype.redISub = function redISub (num) {\n assert(this.red, 'redISub works only with red numbers');\n return this.red.isub(this, num);\n };\n\n BN.prototype.redShl = function redShl (num) {\n assert(this.red, 'redShl works only with red numbers');\n return this.red.shl(this, num);\n };\n\n BN.prototype.redMul = function redMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.mul(this, num);\n };\n\n BN.prototype.redIMul = function redIMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.imul(this, num);\n };\n\n BN.prototype.redSqr = function redSqr () {\n assert(this.red, 'redSqr works only with red numbers');\n this.red._verify1(this);\n return this.red.sqr(this);\n };\n\n BN.prototype.redISqr = function redISqr () {\n assert(this.red, 'redISqr works only with red numbers');\n this.red._verify1(this);\n return this.red.isqr(this);\n };\n\n // Square root over p\n BN.prototype.redSqrt = function redSqrt () {\n assert(this.red, 'redSqrt works only with red numbers');\n this.red._verify1(this);\n return this.red.sqrt(this);\n };\n\n BN.prototype.redInvm = function redInvm () {\n assert(this.red, 'redInvm works only with red numbers');\n this.red._verify1(this);\n return this.red.invm(this);\n };\n\n // Return negative clone of `this` % `red modulo`\n BN.prototype.redNeg = function redNeg () {\n assert(this.red, 'redNeg works only with red numbers');\n this.red._verify1(this);\n return this.red.neg(this);\n };\n\n BN.prototype.redPow = function redPow (num) {\n assert(this.red && !num.red, 'redPow(normalNum)');\n this.red._verify1(this);\n return this.red.pow(this, num);\n };\n\n // Prime numbers with efficient reduction\n var primes = {\n k256: null,\n p224: null,\n p192: null,\n p25519: null\n };\n\n // Pseudo-Mersenne prime\n function MPrime (name, p) {\n // P = 2 ^ N - K\n this.name = name;\n this.p = new BN(p, 16);\n this.n = this.p.bitLength();\n this.k = new BN(1).iushln(this.n).isub(this.p);\n\n this.tmp = this._tmp();\n }\n\n MPrime.prototype._tmp = function _tmp () {\n var tmp = new BN(null);\n tmp.words = new Array(Math.ceil(this.n / 13));\n return tmp;\n };\n\n MPrime.prototype.ireduce = function ireduce (num) {\n // Assumes that `num` is less than `P^2`\n // num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P)\n var r = num;\n var rlen;\n\n do {\n this.split(r, this.tmp);\n r = this.imulK(r);\n r = r.iadd(this.tmp);\n rlen = r.bitLength();\n } while (rlen > this.n);\n\n var cmp = rlen < this.n ? -1 : r.ucmp(this.p);\n if (cmp === 0) {\n r.words[0] = 0;\n r.length = 1;\n } else if (cmp > 0) {\n r.isub(this.p);\n } else {\n if (r.strip !== undefined) {\n // r is BN v4 instance\n r.strip();\n } else {\n // r is BN v5 instance\n r._strip();\n }\n }\n\n return r;\n };\n\n MPrime.prototype.split = function split (input, out) {\n input.iushrn(this.n, 0, out);\n };\n\n MPrime.prototype.imulK = function imulK (num) {\n return num.imul(this.k);\n };\n\n function K256 () {\n MPrime.call(\n this,\n 'k256',\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f');\n }\n inherits(K256, MPrime);\n\n K256.prototype.split = function split (input, output) {\n // 256 = 9 * 26 + 22\n var mask = 0x3fffff;\n\n var outLen = Math.min(input.length, 9);\n for (var i = 0; i < outLen; i++) {\n output.words[i] = input.words[i];\n }\n output.length = outLen;\n\n if (input.length <= 9) {\n input.words[0] = 0;\n input.length = 1;\n return;\n }\n\n // Shift by 9 limbs\n var prev = input.words[9];\n output.words[output.length++] = prev & mask;\n\n for (i = 10; i < input.length; i++) {\n var next = input.words[i] | 0;\n input.words[i - 10] = ((next & mask) << 4) | (prev >>> 22);\n prev = next;\n }\n prev >>>= 22;\n input.words[i - 10] = prev;\n if (prev === 0 && input.length > 10) {\n input.length -= 10;\n } else {\n input.length -= 9;\n }\n };\n\n K256.prototype.imulK = function imulK (num) {\n // K = 0x1000003d1 = [ 0x40, 0x3d1 ]\n num.words[num.length] = 0;\n num.words[num.length + 1] = 0;\n num.length += 2;\n\n // bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390\n var lo = 0;\n for (var i = 0; i < num.length; i++) {\n var w = num.words[i] | 0;\n lo += w * 0x3d1;\n num.words[i] = lo & 0x3ffffff;\n lo = w * 0x40 + ((lo / 0x4000000) | 0);\n }\n\n // Fast length reduction\n if (num.words[num.length - 1] === 0) {\n num.length--;\n if (num.words[num.length - 1] === 0) {\n num.length--;\n }\n }\n return num;\n };\n\n function P224 () {\n MPrime.call(\n this,\n 'p224',\n 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001');\n }\n inherits(P224, MPrime);\n\n function P192 () {\n MPrime.call(\n this,\n 'p192',\n 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff');\n }\n inherits(P192, MPrime);\n\n function P25519 () {\n // 2 ^ 255 - 19\n MPrime.call(\n this,\n '25519',\n '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed');\n }\n inherits(P25519, MPrime);\n\n P25519.prototype.imulK = function imulK (num) {\n // K = 0x13\n var carry = 0;\n for (var i = 0; i < num.length; i++) {\n var hi = (num.words[i] | 0) * 0x13 + carry;\n var lo = hi & 0x3ffffff;\n hi >>>= 26;\n\n num.words[i] = lo;\n carry = hi;\n }\n if (carry !== 0) {\n num.words[num.length++] = carry;\n }\n return num;\n };\n\n // Exported mostly for testing purposes, use plain name instead\n BN._prime = function prime (name) {\n // Cached version of prime\n if (primes[name]) return primes[name];\n\n var prime;\n if (name === 'k256') {\n prime = new K256();\n } else if (name === 'p224') {\n prime = new P224();\n } else if (name === 'p192') {\n prime = new P192();\n } else if (name === 'p25519') {\n prime = new P25519();\n } else {\n throw new Error('Unknown prime ' + name);\n }\n primes[name] = prime;\n\n return prime;\n };\n\n //\n // Base reduction engine\n //\n function Red (m) {\n if (typeof m === 'string') {\n var prime = BN._prime(m);\n this.m = prime.p;\n this.prime = prime;\n } else {\n assert(m.gtn(1), 'modulus must be greater than 1');\n this.m = m;\n this.prime = null;\n }\n }\n\n Red.prototype._verify1 = function _verify1 (a) {\n assert(a.negative === 0, 'red works only with positives');\n assert(a.red, 'red works only with red numbers');\n };\n\n Red.prototype._verify2 = function _verify2 (a, b) {\n assert((a.negative | b.negative) === 0, 'red works only with positives');\n assert(a.red && a.red === b.red,\n 'red works only with red numbers');\n };\n\n Red.prototype.imod = function imod (a) {\n if (this.prime) return this.prime.ireduce(a)._forceRed(this);\n return a.umod(this.m)._forceRed(this);\n };\n\n Red.prototype.neg = function neg (a) {\n if (a.isZero()) {\n return a.clone();\n }\n\n return this.m.sub(a)._forceRed(this);\n };\n\n Red.prototype.add = function add (a, b) {\n this._verify2(a, b);\n\n var res = a.add(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.iadd = function iadd (a, b) {\n this._verify2(a, b);\n\n var res = a.iadd(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res;\n };\n\n Red.prototype.sub = function sub (a, b) {\n this._verify2(a, b);\n\n var res = a.sub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.isub = function isub (a, b) {\n this._verify2(a, b);\n\n var res = a.isub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res;\n };\n\n Red.prototype.shl = function shl (a, num) {\n this._verify1(a);\n return this.imod(a.ushln(num));\n };\n\n Red.prototype.imul = function imul (a, b) {\n this._verify2(a, b);\n return this.imod(a.imul(b));\n };\n\n Red.prototype.mul = function mul (a, b) {\n this._verify2(a, b);\n return this.imod(a.mul(b));\n };\n\n Red.prototype.isqr = function isqr (a) {\n return this.imul(a, a.clone());\n };\n\n Red.prototype.sqr = function sqr (a) {\n return this.mul(a, a);\n };\n\n Red.prototype.sqrt = function sqrt (a) {\n if (a.isZero()) return a.clone();\n\n var mod3 = this.m.andln(3);\n assert(mod3 % 2 === 1);\n\n // Fast case\n if (mod3 === 3) {\n var pow = this.m.add(new BN(1)).iushrn(2);\n return this.pow(a, pow);\n }\n\n // Tonelli-Shanks algorithm (Totally unoptimized and slow)\n //\n // Find Q and S, that Q * 2 ^ S = (P - 1)\n var q = this.m.subn(1);\n var s = 0;\n while (!q.isZero() && q.andln(1) === 0) {\n s++;\n q.iushrn(1);\n }\n assert(!q.isZero());\n\n var one = new BN(1).toRed(this);\n var nOne = one.redNeg();\n\n // Find quadratic non-residue\n // NOTE: Max is such because of generalized Riemann hypothesis.\n var lpow = this.m.subn(1).iushrn(1);\n var z = this.m.bitLength();\n z = new BN(2 * z * z).toRed(this);\n\n while (this.pow(z, lpow).cmp(nOne) !== 0) {\n z.redIAdd(nOne);\n }\n\n var c = this.pow(z, q);\n var r = this.pow(a, q.addn(1).iushrn(1));\n var t = this.pow(a, q);\n var m = s;\n while (t.cmp(one) !== 0) {\n var tmp = t;\n for (var i = 0; tmp.cmp(one) !== 0; i++) {\n tmp = tmp.redSqr();\n }\n assert(i < m);\n var b = this.pow(c, new BN(1).iushln(m - i - 1));\n\n r = r.redMul(b);\n c = b.redSqr();\n t = t.redMul(c);\n m = i;\n }\n\n return r;\n };\n\n Red.prototype.invm = function invm (a) {\n var inv = a._invmp(this.m);\n if (inv.negative !== 0) {\n inv.negative = 0;\n return this.imod(inv).redNeg();\n } else {\n return this.imod(inv);\n }\n };\n\n Red.prototype.pow = function pow (a, num) {\n if (num.isZero()) return new BN(1).toRed(this);\n if (num.cmpn(1) === 0) return a.clone();\n\n var windowSize = 4;\n var wnd = new Array(1 << windowSize);\n wnd[0] = new BN(1).toRed(this);\n wnd[1] = a;\n for (var i = 2; i < wnd.length; i++) {\n wnd[i] = this.mul(wnd[i - 1], a);\n }\n\n var res = wnd[0];\n var current = 0;\n var currentLen = 0;\n var start = num.bitLength() % 26;\n if (start === 0) {\n start = 26;\n }\n\n for (i = num.length - 1; i >= 0; i--) {\n var word = num.words[i];\n for (var j = start - 1; j >= 0; j--) {\n var bit = (word >> j) & 1;\n if (res !== wnd[0]) {\n res = this.sqr(res);\n }\n\n if (bit === 0 && current === 0) {\n currentLen = 0;\n continue;\n }\n\n current <<= 1;\n current |= bit;\n currentLen++;\n if (currentLen !== windowSize && (i !== 0 || j !== 0)) continue;\n\n res = this.mul(res, wnd[current]);\n currentLen = 0;\n current = 0;\n }\n start = 26;\n }\n\n return res;\n };\n\n Red.prototype.convertTo = function convertTo (num) {\n var r = num.umod(this.m);\n\n return r === num ? r.clone() : r;\n };\n\n Red.prototype.convertFrom = function convertFrom (num) {\n var res = num.clone();\n res.red = null;\n return res;\n };\n\n //\n // Montgomery method engine\n //\n\n BN.mont = function mont (num) {\n return new Mont(num);\n };\n\n function Mont (m) {\n Red.call(this, m);\n\n this.shift = this.m.bitLength();\n if (this.shift % 26 !== 0) {\n this.shift += 26 - (this.shift % 26);\n }\n\n this.r = new BN(1).iushln(this.shift);\n this.r2 = this.imod(this.r.sqr());\n this.rinv = this.r._invmp(this.m);\n\n this.minv = this.rinv.mul(this.r).isubn(1).div(this.m);\n this.minv = this.minv.umod(this.r);\n this.minv = this.r.sub(this.minv);\n }\n inherits(Mont, Red);\n\n Mont.prototype.convertTo = function convertTo (num) {\n return this.imod(num.ushln(this.shift));\n };\n\n Mont.prototype.convertFrom = function convertFrom (num) {\n var r = this.imod(num.mul(this.rinv));\n r.red = null;\n return r;\n };\n\n Mont.prototype.imul = function imul (a, b) {\n if (a.isZero() || b.isZero()) {\n a.words[0] = 0;\n a.length = 1;\n return a;\n }\n\n var t = a.imul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.mul = function mul (a, b) {\n if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this);\n\n var t = a.mul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.invm = function invm (a) {\n // (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R\n var res = this.imod(a._invmp(this.m).mul(this.r2));\n return res._forceRed(this);\n };\n})( false || module, this);\n\n\n/***/ }),\n\n/***/ 747:\n/***/ ((module, __unused_webpack_exports, __webpack_require__) => {\n\n/**\r\n * [js-sha3]{@link https://github.com/emn178/js-sha3}\r\n *\r\n * @version 0.5.7\r\n * @author Chen, Yi-Cyuan [emn178@gmail.com]\r\n * @copyright Chen, Yi-Cyuan 2015-2016\r\n * @license MIT\r\n */\r\n/*jslint bitwise: true */\r\n(function () {\r\n 'use strict';\r\n\r\n var root = typeof window === 'object' ? window : {};\r\n var NODE_JS = !root.JS_SHA3_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node;\r\n if (NODE_JS) {\r\n root = __webpack_require__.g;\r\n }\r\n var COMMON_JS = !root.JS_SHA3_NO_COMMON_JS && \"object\" === 'object' && module.exports;\r\n var HEX_CHARS = '0123456789abcdef'.split('');\r\n var SHAKE_PADDING = [31, 7936, 2031616, 520093696];\r\n var KECCAK_PADDING = [1, 256, 65536, 16777216];\r\n var PADDING = [6, 1536, 393216, 100663296];\r\n var SHIFT = [0, 8, 16, 24];\r\n var RC = [1, 0, 32898, 0, 32906, 2147483648, 2147516416, 2147483648, 32907, 0, 2147483649,\r\n 0, 2147516545, 2147483648, 32777, 2147483648, 138, 0, 136, 0, 2147516425, 0,\r\n 2147483658, 0, 2147516555, 0, 139, 2147483648, 32905, 2147483648, 32771,\r\n 2147483648, 32770, 2147483648, 128, 2147483648, 32778, 0, 2147483658, 2147483648,\r\n 2147516545, 2147483648, 32896, 2147483648, 2147483649, 0, 2147516424, 2147483648];\r\n var BITS = [224, 256, 384, 512];\r\n var SHAKE_BITS = [128, 256];\r\n var OUTPUT_TYPES = ['hex', 'buffer', 'arrayBuffer', 'array'];\r\n\r\n var createOutputMethod = function (bits, padding, outputType) {\r\n return function (message) {\r\n return new Keccak(bits, padding, bits).update(message)[outputType]();\r\n };\r\n };\r\n\r\n var createShakeOutputMethod = function (bits, padding, outputType) {\r\n return function (message, outputBits) {\r\n return new Keccak(bits, padding, outputBits).update(message)[outputType]();\r\n };\r\n };\r\n\r\n var createMethod = function (bits, padding) {\r\n var method = createOutputMethod(bits, padding, 'hex');\r\n method.create = function () {\r\n return new Keccak(bits, padding, bits);\r\n };\r\n method.update = function (message) {\r\n return method.create().update(message);\r\n };\r\n for (var i = 0; i < OUTPUT_TYPES.length; ++i) {\r\n var type = OUTPUT_TYPES[i];\r\n method[type] = createOutputMethod(bits, padding, type);\r\n }\r\n return method;\r\n };\r\n\r\n var createShakeMethod = function (bits, padding) {\r\n var method = createShakeOutputMethod(bits, padding, 'hex');\r\n method.create = function (outputBits) {\r\n return new Keccak(bits, padding, outputBits);\r\n };\r\n method.update = function (message, outputBits) {\r\n return method.create(outputBits).update(message);\r\n };\r\n for (var i = 0; i < OUTPUT_TYPES.length; ++i) {\r\n var type = OUTPUT_TYPES[i];\r\n method[type] = createShakeOutputMethod(bits, padding, type);\r\n }\r\n return method;\r\n };\r\n\r\n var algorithms = [\r\n {name: 'keccak', padding: KECCAK_PADDING, bits: BITS, createMethod: createMethod},\r\n {name: 'sha3', padding: PADDING, bits: BITS, createMethod: createMethod},\r\n {name: 'shake', padding: SHAKE_PADDING, bits: SHAKE_BITS, createMethod: createShakeMethod}\r\n ];\r\n\r\n var methods = {}, methodNames = [];\r\n\r\n for (var i = 0; i < algorithms.length; ++i) {\r\n var algorithm = algorithms[i];\r\n var bits = algorithm.bits;\r\n for (var j = 0; j < bits.length; ++j) {\r\n var methodName = algorithm.name +'_' + bits[j];\r\n methodNames.push(methodName);\r\n methods[methodName] = algorithm.createMethod(bits[j], algorithm.padding);\r\n }\r\n }\r\n\r\n function Keccak(bits, padding, outputBits) {\r\n this.blocks = [];\r\n this.s = [];\r\n this.padding = padding;\r\n this.outputBits = outputBits;\r\n this.reset = true;\r\n this.block = 0;\r\n this.start = 0;\r\n this.blockCount = (1600 - (bits << 1)) >> 5;\r\n this.byteCount = this.blockCount << 2;\r\n this.outputBlocks = outputBits >> 5;\r\n this.extraBytes = (outputBits & 31) >> 3;\r\n\r\n for (var i = 0; i < 50; ++i) {\r\n this.s[i] = 0;\r\n }\r\n }\r\n\r\n Keccak.prototype.update = function (message) {\r\n var notString = typeof message !== 'string';\r\n if (notString && message.constructor === ArrayBuffer) {\r\n message = new Uint8Array(message);\r\n }\r\n var length = message.length, blocks = this.blocks, byteCount = this.byteCount,\r\n blockCount = this.blockCount, index = 0, s = this.s, i, code;\r\n\r\n while (index < length) {\r\n if (this.reset) {\r\n this.reset = false;\r\n blocks[0] = this.block;\r\n for (i = 1; i < blockCount + 1; ++i) {\r\n blocks[i] = 0;\r\n }\r\n }\r\n if (notString) {\r\n for (i = this.start; index < length && i < byteCount; ++index) {\r\n blocks[i >> 2] |= message[index] << SHIFT[i++ & 3];\r\n }\r\n } else {\r\n for (i = this.start; index < length && i < byteCount; ++index) {\r\n code = message.charCodeAt(index);\r\n if (code < 0x80) {\r\n blocks[i >> 2] |= code << SHIFT[i++ & 3];\r\n } else if (code < 0x800) {\r\n blocks[i >> 2] |= (0xc0 | (code >> 6)) << SHIFT[i++ & 3];\r\n blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];\r\n } else if (code < 0xd800 || code >= 0xe000) {\r\n blocks[i >> 2] |= (0xe0 | (code >> 12)) << SHIFT[i++ & 3];\r\n blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3];\r\n blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];\r\n } else {\r\n code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff));\r\n blocks[i >> 2] |= (0xf0 | (code >> 18)) << SHIFT[i++ & 3];\r\n blocks[i >> 2] |= (0x80 | ((code >> 12) & 0x3f)) << SHIFT[i++ & 3];\r\n blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3];\r\n blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];\r\n }\r\n }\r\n }\r\n this.lastByteIndex = i;\r\n if (i >= byteCount) {\r\n this.start = i - byteCount;\r\n this.block = blocks[blockCount];\r\n for (i = 0; i < blockCount; ++i) {\r\n s[i] ^= blocks[i];\r\n }\r\n f(s);\r\n this.reset = true;\r\n } else {\r\n this.start = i;\r\n }\r\n }\r\n return this;\r\n };\r\n\r\n Keccak.prototype.finalize = function () {\r\n var blocks = this.blocks, i = this.lastByteIndex, blockCount = this.blockCount, s = this.s;\r\n blocks[i >> 2] |= this.padding[i & 3];\r\n if (this.lastByteIndex === this.byteCount) {\r\n blocks[0] = blocks[blockCount];\r\n for (i = 1; i < blockCount + 1; ++i) {\r\n blocks[i] = 0;\r\n }\r\n }\r\n blocks[blockCount - 1] |= 0x80000000;\r\n for (i = 0; i < blockCount; ++i) {\r\n s[i] ^= blocks[i];\r\n }\r\n f(s);\r\n };\r\n\r\n Keccak.prototype.toString = Keccak.prototype.hex = function () {\r\n this.finalize();\r\n\r\n var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks,\r\n extraBytes = this.extraBytes, i = 0, j = 0;\r\n var hex = '', block;\r\n while (j < outputBlocks) {\r\n for (i = 0; i < blockCount && j < outputBlocks; ++i, ++j) {\r\n block = s[i];\r\n hex += HEX_CHARS[(block >> 4) & 0x0F] + HEX_CHARS[block & 0x0F] +\r\n HEX_CHARS[(block >> 12) & 0x0F] + HEX_CHARS[(block >> 8) & 0x0F] +\r\n HEX_CHARS[(block >> 20) & 0x0F] + HEX_CHARS[(block >> 16) & 0x0F] +\r\n HEX_CHARS[(block >> 28) & 0x0F] + HEX_CHARS[(block >> 24) & 0x0F];\r\n }\r\n if (j % blockCount === 0) {\r\n f(s);\r\n i = 0;\r\n }\r\n }\r\n if (extraBytes) {\r\n block = s[i];\r\n if (extraBytes > 0) {\r\n hex += HEX_CHARS[(block >> 4) & 0x0F] + HEX_CHARS[block & 0x0F];\r\n }\r\n if (extraBytes > 1) {\r\n hex += HEX_CHARS[(block >> 12) & 0x0F] + HEX_CHARS[(block >> 8) & 0x0F];\r\n }\r\n if (extraBytes > 2) {\r\n hex += HEX_CHARS[(block >> 20) & 0x0F] + HEX_CHARS[(block >> 16) & 0x0F];\r\n }\r\n }\r\n return hex;\r\n };\r\n\r\n Keccak.prototype.arrayBuffer = function () {\r\n this.finalize();\r\n\r\n var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks,\r\n extraBytes = this.extraBytes, i = 0, j = 0;\r\n var bytes = this.outputBits >> 3;\r\n var buffer;\r\n if (extraBytes) {\r\n buffer = new ArrayBuffer((outputBlocks + 1) << 2);\r\n } else {\r\n buffer = new ArrayBuffer(bytes);\r\n }\r\n var array = new Uint32Array(buffer);\r\n while (j < outputBlocks) {\r\n for (i = 0; i < blockCount && j < outputBlocks; ++i, ++j) {\r\n array[j] = s[i];\r\n }\r\n if (j % blockCount === 0) {\r\n f(s);\r\n }\r\n }\r\n if (extraBytes) {\r\n array[i] = s[i];\r\n buffer = buffer.slice(0, bytes);\r\n }\r\n return buffer;\r\n };\r\n\r\n Keccak.prototype.buffer = Keccak.prototype.arrayBuffer;\r\n\r\n Keccak.prototype.digest = Keccak.prototype.array = function () {\r\n this.finalize();\r\n\r\n var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks,\r\n extraBytes = this.extraBytes, i = 0, j = 0;\r\n var array = [], offset, block;\r\n while (j < outputBlocks) {\r\n for (i = 0; i < blockCount && j < outputBlocks; ++i, ++j) {\r\n offset = j << 2;\r\n block = s[i];\r\n array[offset] = block & 0xFF;\r\n array[offset + 1] = (block >> 8) & 0xFF;\r\n array[offset + 2] = (block >> 16) & 0xFF;\r\n array[offset + 3] = (block >> 24) & 0xFF;\r\n }\r\n if (j % blockCount === 0) {\r\n f(s);\r\n }\r\n }\r\n if (extraBytes) {\r\n offset = j << 2;\r\n block = s[i];\r\n if (extraBytes > 0) {\r\n array[offset] = block & 0xFF;\r\n }\r\n if (extraBytes > 1) {\r\n array[offset + 1] = (block >> 8) & 0xFF;\r\n }\r\n if (extraBytes > 2) {\r\n array[offset + 2] = (block >> 16) & 0xFF;\r\n }\r\n }\r\n return array;\r\n };\r\n\r\n var f = function (s) {\r\n var h, l, n, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9,\r\n b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14, b15, b16, b17,\r\n b18, b19, b20, b21, b22, b23, b24, b25, b26, b27, b28, b29, b30, b31, b32, b33,\r\n b34, b35, b36, b37, b38, b39, b40, b41, b42, b43, b44, b45, b46, b47, b48, b49;\r\n for (n = 0; n < 48; n += 2) {\r\n c0 = s[0] ^ s[10] ^ s[20] ^ s[30] ^ s[40];\r\n c1 = s[1] ^ s[11] ^ s[21] ^ s[31] ^ s[41];\r\n c2 = s[2] ^ s[12] ^ s[22] ^ s[32] ^ s[42];\r\n c3 = s[3] ^ s[13] ^ s[23] ^ s[33] ^ s[43];\r\n c4 = s[4] ^ s[14] ^ s[24] ^ s[34] ^ s[44];\r\n c5 = s[5] ^ s[15] ^ s[25] ^ s[35] ^ s[45];\r\n c6 = s[6] ^ s[16] ^ s[26] ^ s[36] ^ s[46];\r\n c7 = s[7] ^ s[17] ^ s[27] ^ s[37] ^ s[47];\r\n c8 = s[8] ^ s[18] ^ s[28] ^ s[38] ^ s[48];\r\n c9 = s[9] ^ s[19] ^ s[29] ^ s[39] ^ s[49];\r\n\r\n h = c8 ^ ((c2 << 1) | (c3 >>> 31));\r\n l = c9 ^ ((c3 << 1) | (c2 >>> 31));\r\n s[0] ^= h;\r\n s[1] ^= l;\r\n s[10] ^= h;\r\n s[11] ^= l;\r\n s[20] ^= h;\r\n s[21] ^= l;\r\n s[30] ^= h;\r\n s[31] ^= l;\r\n s[40] ^= h;\r\n s[41] ^= l;\r\n h = c0 ^ ((c4 << 1) | (c5 >>> 31));\r\n l = c1 ^ ((c5 << 1) | (c4 >>> 31));\r\n s[2] ^= h;\r\n s[3] ^= l;\r\n s[12] ^= h;\r\n s[13] ^= l;\r\n s[22] ^= h;\r\n s[23] ^= l;\r\n s[32] ^= h;\r\n s[33] ^= l;\r\n s[42] ^= h;\r\n s[43] ^= l;\r\n h = c2 ^ ((c6 << 1) | (c7 >>> 31));\r\n l = c3 ^ ((c7 << 1) | (c6 >>> 31));\r\n s[4] ^= h;\r\n s[5] ^= l;\r\n s[14] ^= h;\r\n s[15] ^= l;\r\n s[24] ^= h;\r\n s[25] ^= l;\r\n s[34] ^= h;\r\n s[35] ^= l;\r\n s[44] ^= h;\r\n s[45] ^= l;\r\n h = c4 ^ ((c8 << 1) | (c9 >>> 31));\r\n l = c5 ^ ((c9 << 1) | (c8 >>> 31));\r\n s[6] ^= h;\r\n s[7] ^= l;\r\n s[16] ^= h;\r\n s[17] ^= l;\r\n s[26] ^= h;\r\n s[27] ^= l;\r\n s[36] ^= h;\r\n s[37] ^= l;\r\n s[46] ^= h;\r\n s[47] ^= l;\r\n h = c6 ^ ((c0 << 1) | (c1 >>> 31));\r\n l = c7 ^ ((c1 << 1) | (c0 >>> 31));\r\n s[8] ^= h;\r\n s[9] ^= l;\r\n s[18] ^= h;\r\n s[19] ^= l;\r\n s[28] ^= h;\r\n s[29] ^= l;\r\n s[38] ^= h;\r\n s[39] ^= l;\r\n s[48] ^= h;\r\n s[49] ^= l;\r\n\r\n b0 = s[0];\r\n b1 = s[1];\r\n b32 = (s[11] << 4) | (s[10] >>> 28);\r\n b33 = (s[10] << 4) | (s[11] >>> 28);\r\n b14 = (s[20] << 3) | (s[21] >>> 29);\r\n b15 = (s[21] << 3) | (s[20] >>> 29);\r\n b46 = (s[31] << 9) | (s[30] >>> 23);\r\n b47 = (s[30] << 9) | (s[31] >>> 23);\r\n b28 = (s[40] << 18) | (s[41] >>> 14);\r\n b29 = (s[41] << 18) | (s[40] >>> 14);\r\n b20 = (s[2] << 1) | (s[3] >>> 31);\r\n b21 = (s[3] << 1) | (s[2] >>> 31);\r\n b2 = (s[13] << 12) | (s[12] >>> 20);\r\n b3 = (s[12] << 12) | (s[13] >>> 20);\r\n b34 = (s[22] << 10) | (s[23] >>> 22);\r\n b35 = (s[23] << 10) | (s[22] >>> 22);\r\n b16 = (s[33] << 13) | (s[32] >>> 19);\r\n b17 = (s[32] << 13) | (s[33] >>> 19);\r\n b48 = (s[42] << 2) | (s[43] >>> 30);\r\n b49 = (s[43] << 2) | (s[42] >>> 30);\r\n b40 = (s[5] << 30) | (s[4] >>> 2);\r\n b41 = (s[4] << 30) | (s[5] >>> 2);\r\n b22 = (s[14] << 6) | (s[15] >>> 26);\r\n b23 = (s[15] << 6) | (s[14] >>> 26);\r\n b4 = (s[25] << 11) | (s[24] >>> 21);\r\n b5 = (s[24] << 11) | (s[25] >>> 21);\r\n b36 = (s[34] << 15) | (s[35] >>> 17);\r\n b37 = (s[35] << 15) | (s[34] >>> 17);\r\n b18 = (s[45] << 29) | (s[44] >>> 3);\r\n b19 = (s[44] << 29) | (s[45] >>> 3);\r\n b10 = (s[6] << 28) | (s[7] >>> 4);\r\n b11 = (s[7] << 28) | (s[6] >>> 4);\r\n b42 = (s[17] << 23) | (s[16] >>> 9);\r\n b43 = (s[16] << 23) | (s[17] >>> 9);\r\n b24 = (s[26] << 25) | (s[27] >>> 7);\r\n b25 = (s[27] << 25) | (s[26] >>> 7);\r\n b6 = (s[36] << 21) | (s[37] >>> 11);\r\n b7 = (s[37] << 21) | (s[36] >>> 11);\r\n b38 = (s[47] << 24) | (s[46] >>> 8);\r\n b39 = (s[46] << 24) | (s[47] >>> 8);\r\n b30 = (s[8] << 27) | (s[9] >>> 5);\r\n b31 = (s[9] << 27) | (s[8] >>> 5);\r\n b12 = (s[18] << 20) | (s[19] >>> 12);\r\n b13 = (s[19] << 20) | (s[18] >>> 12);\r\n b44 = (s[29] << 7) | (s[28] >>> 25);\r\n b45 = (s[28] << 7) | (s[29] >>> 25);\r\n b26 = (s[38] << 8) | (s[39] >>> 24);\r\n b27 = (s[39] << 8) | (s[38] >>> 24);\r\n b8 = (s[48] << 14) | (s[49] >>> 18);\r\n b9 = (s[49] << 14) | (s[48] >>> 18);\r\n\r\n s[0] = b0 ^ (~b2 & b4);\r\n s[1] = b1 ^ (~b3 & b5);\r\n s[10] = b10 ^ (~b12 & b14);\r\n s[11] = b11 ^ (~b13 & b15);\r\n s[20] = b20 ^ (~b22 & b24);\r\n s[21] = b21 ^ (~b23 & b25);\r\n s[30] = b30 ^ (~b32 & b34);\r\n s[31] = b31 ^ (~b33 & b35);\r\n s[40] = b40 ^ (~b42 & b44);\r\n s[41] = b41 ^ (~b43 & b45);\r\n s[2] = b2 ^ (~b4 & b6);\r\n s[3] = b3 ^ (~b5 & b7);\r\n s[12] = b12 ^ (~b14 & b16);\r\n s[13] = b13 ^ (~b15 & b17);\r\n s[22] = b22 ^ (~b24 & b26);\r\n s[23] = b23 ^ (~b25 & b27);\r\n s[32] = b32 ^ (~b34 & b36);\r\n s[33] = b33 ^ (~b35 & b37);\r\n s[42] = b42 ^ (~b44 & b46);\r\n s[43] = b43 ^ (~b45 & b47);\r\n s[4] = b4 ^ (~b6 & b8);\r\n s[5] = b5 ^ (~b7 & b9);\r\n s[14] = b14 ^ (~b16 & b18);\r\n s[15] = b15 ^ (~b17 & b19);\r\n s[24] = b24 ^ (~b26 & b28);\r\n s[25] = b25 ^ (~b27 & b29);\r\n s[34] = b34 ^ (~b36 & b38);\r\n s[35] = b35 ^ (~b37 & b39);\r\n s[44] = b44 ^ (~b46 & b48);\r\n s[45] = b45 ^ (~b47 & b49);\r\n s[6] = b6 ^ (~b8 & b0);\r\n s[7] = b7 ^ (~b9 & b1);\r\n s[16] = b16 ^ (~b18 & b10);\r\n s[17] = b17 ^ (~b19 & b11);\r\n s[26] = b26 ^ (~b28 & b20);\r\n s[27] = b27 ^ (~b29 & b21);\r\n s[36] = b36 ^ (~b38 & b30);\r\n s[37] = b37 ^ (~b39 & b31);\r\n s[46] = b46 ^ (~b48 & b40);\r\n s[47] = b47 ^ (~b49 & b41);\r\n s[8] = b8 ^ (~b0 & b2);\r\n s[9] = b9 ^ (~b1 & b3);\r\n s[18] = b18 ^ (~b10 & b12);\r\n s[19] = b19 ^ (~b11 & b13);\r\n s[28] = b28 ^ (~b20 & b22);\r\n s[29] = b29 ^ (~b21 & b23);\r\n s[38] = b38 ^ (~b30 & b32);\r\n s[39] = b39 ^ (~b31 & b33);\r\n s[48] = b48 ^ (~b40 & b42);\r\n s[49] = b49 ^ (~b41 & b43);\r\n\r\n s[0] ^= RC[n];\r\n s[1] ^= RC[n + 1];\r\n }\r\n };\r\n\r\n if (COMMON_JS) {\r\n module.exports = methods;\r\n } else {\r\n for (var i = 0; i < methodNames.length; ++i) {\r\n root[methodNames[i]] = methods[methodNames[i]];\r\n }\r\n }\r\n})();\r\n\n\n/***/ }),\n\n/***/ 6462:\n/***/ ((__unused_webpack_module, exports) => {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", ({ value: true }));\n/**\n * convert the given Scheme into a Rule that allows undefined value\n * @param scheme the scheme\n */\nfunction optional(scheme) {\n return (value, context) => {\n if (value !== undefined) {\n validate(value, scheme, context);\n }\n return '';\n };\n}\nexports.optional = optional;\n/**\n * convert the given Scheme into a Rule that allows null value\n * @param scheme the scheme\n */\nfunction nullable(scheme) {\n return (value, context) => {\n if (value !== null) {\n validate(value, scheme, context);\n }\n return '';\n };\n}\nexports.nullable = nullable;\n/** Validator class */\nclass Validator {\n constructor(scheme) {\n this.scheme = scheme;\n }\n test(value, context) {\n return validate(value, this.scheme, context);\n }\n}\nexports.Validator = Validator;\n/** Error class describes validation error */\nclass ValidationError extends Error {\n constructor(rawMessage, context) {\n super(context ? `${context}: ${rawMessage}` : rawMessage);\n this.rawMessage = rawMessage;\n this.context = context;\n }\n}\nexports.ValidationError = ValidationError;\nValidationError.prototype.name = 'ValidationError';\n/**\n * direct function to validate value without construct Validator object\n * @param value value to be validated\n * @param scheme scheme\n * @param context context string appears in error object\n */\nfunction validate(value, scheme, context) {\n if (Array.isArray(scheme)) {\n if (!Array.isArray(value)) {\n throw new ValidationError('expected array', context || '');\n }\n value.forEach((el, i) => validate(el, scheme[0], context ? `${context}.#${i}` : `#${i}`));\n }\n else if (scheme instanceof Function) {\n const errMsg = scheme(value, context);\n if (errMsg) {\n throw new ValidationError(errMsg, context || '');\n }\n }\n else {\n if (!(value instanceof Object)) {\n throw new ValidationError('expected object', context || '');\n }\n for (const key in scheme) {\n if (scheme.hasOwnProperty(key)) {\n validate(value[key], scheme[key], context ? `${context}.${key}` : key);\n }\n }\n }\n return value;\n}\nexports.validate = validate;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFVQTs7O0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UFJLENBQUMsQ0FBQyxLQUFLLFlBQVksTUFBTSxDQUFDLEVBQUU7WUFDNUIsTUFBTSxJQUFJLGVBQWUsQ0FBQyxpQkFBaUIsRUFBRSxPQUFPLElBQUksRUFBRSxDQUFDLENBQUE7U0FDOUQ7UUFDRCxLQUFLLE1BQU0sR0FBRyxJQUFJLE1BQU0sRUFBRTtZQUN0QixJQUFJLE1BQU0sQ0FBQyxjQUFjLENBQUMsR0FBRyxDQUFDLEVBQUU7Z0JBQzVCLFFBQVEsQ0FBQyxLQUFLLENBQUMsR0FBWSxDQUFDLEVBQUUsTUFBTSxDQUFDLEdBQUcsQ0FBQyxFQUFFLE9BQU8sQ0FBQyxDQUFDLENBQUMsR0FBRyxPQUFPLElBQUksR0FBRyxFQUFFLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFBO2FBQ2xGO1NBQ0o7S0FDSjtJQUNELE9BQU8sS0FBSyxDQUFBO0FBQ2hCLENBQUM7QUF2QkQsNEJBdUJDIn0=\n\n/***/ }),\n\n/***/ 2574:\n/***/ (() => {\n\n/* (ignored) */\n\n/***/ })\n\n/******/ \t});\n/************************************************************************/\n/******/ \t// The module cache\n/******/ \tvar __webpack_module_cache__ = {};\n/******/ \t\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(__webpack_module_cache__[moduleId]) {\n/******/ \t\t\treturn __webpack_module_cache__[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = __webpack_module_cache__[moduleId] = {\n/******/ \t\t\tid: moduleId,\n/******/ \t\t\tloaded: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/ \t\n/******/ \t\t// Execute the module function\n/******/ \t\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/ \t\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.loaded = true;\n/******/ \t\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/ \t\n/************************************************************************/\n/******/ \t/* webpack/runtime/compat get default export */\n/******/ \t(() => {\n/******/ \t\t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t\t__webpack_require__.n = (module) => {\n/******/ \t\t\tvar getter = module && module.__esModule ?\n/******/ \t\t\t\t() => module['default'] :\n/******/ \t\t\t\t() => module;\n/******/ \t\t\t__webpack_require__.d(getter, { a: getter });\n/******/ \t\t\treturn getter;\n/******/ \t\t};\n/******/ \t})();\n/******/ \t\n/******/ \t/* webpack/runtime/define property getters */\n/******/ \t(() => {\n/******/ \t\t// define getter functions for harmony exports\n/******/ \t\t__webpack_require__.d = (exports, definition) => {\n/******/ \t\t\tfor(var key in definition) {\n/******/ \t\t\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n/******/ \t\t\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n/******/ \t\t\t\t}\n/******/ \t\t\t}\n/******/ \t\t};\n/******/ \t})();\n/******/ \t\n/******/ \t/* webpack/runtime/global */\n/******/ \t(() => {\n/******/ \t\t__webpack_require__.g = (function() {\n/******/ \t\t\tif (typeof globalThis === 'object') return globalThis;\n/******/ \t\t\ttry {\n/******/ \t\t\t\treturn this || new Function('return this')();\n/******/ \t\t\t} catch (e) {\n/******/ \t\t\t\tif (typeof window === 'object') return window;\n/******/ \t\t\t}\n/******/ \t\t})();\n/******/ \t})();\n/******/ \t\n/******/ \t/* webpack/runtime/hasOwnProperty shorthand */\n/******/ \t(() => {\n/******/ \t\t__webpack_require__.o = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop)\n/******/ \t})();\n/******/ \t\n/******/ \t/* webpack/runtime/make namespace object */\n/******/ \t(() => {\n/******/ \t\t// define __esModule on exports\n/******/ \t\t__webpack_require__.r = (exports) => {\n/******/ \t\t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n/******/ \t\t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n/******/ \t\t\t}\n/******/ \t\t\tObject.defineProperty(exports, '__esModule', { value: true });\n/******/ \t\t};\n/******/ \t})();\n/******/ \t\n/******/ \t/* webpack/runtime/node module decorator */\n/******/ \t(() => {\n/******/ \t\t__webpack_require__.nmd = (module) => {\n/******/ \t\t\tmodule.paths = [];\n/******/ \t\t\tif (!module.children) module.children = [];\n/******/ \t\t\treturn module;\n/******/ \t\t};\n/******/ \t})();\n/******/ \t\n/************************************************************************/\n/******/ \t// module exports must be returned from runtime so entry inlining is disabled\n/******/ \t// startup\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(4628);\n/******/ })()\n;\n});\n//# sourceMappingURL=connex.js.map","import { AbiCoder, formatSignature as _formatSignature } from '@vechain/ethers/utils/abi-coder';\nimport { keccak256 } from './keccak';\nimport { Buffer } from 'buffer';\nclass Coder extends AbiCoder {\n constructor() {\n super((type, value) => {\n if ((type.match(/^u?int/) && !Array.isArray(value) && typeof value !== 'object') ||\n value._ethersType === 'BigNumber') {\n return value.toString();\n }\n return value;\n });\n }\n encode(types, values) {\n try {\n return super.encode(types, values);\n }\n catch (err) {\n if (err.reason) {\n throw new Error(err.reason);\n }\n throw err;\n }\n }\n decode(types, data) {\n try {\n return super.decode(types, data);\n }\n catch (err) {\n if (err.reason) {\n throw new Error(err.reason);\n }\n throw err;\n }\n }\n}\nconst coder = new Coder();\nfunction formatSignature(fragment) {\n try {\n return _formatSignature(fragment)\n .replace(/\\(tuple\\(/g, '((')\n .replace(/,tuple\\(/g, ',(');\n }\n catch (err) {\n if (err.reason) {\n throw new Error(err.reason);\n }\n throw err;\n }\n}\n/** encode/decode parameters of contract function call, event log, according to ABI JSON */\nexport var abi;\n(function (abi) {\n /**\n * encode single parameter\n * @param type type of the parameter\n * @param value value of the parameter\n * @returns encoded value in hex string\n */\n function encodeParameter(type, value) {\n return coder.encode([type], [value]);\n }\n abi.encodeParameter = encodeParameter;\n /**\n * decode single parameter\n * @param type type of the parameter\n * @param data encoded parameter in hex string\n * @returns decoded value\n */\n function decodeParameter(type, data) {\n return coder.decode([type], data)[0];\n }\n abi.decodeParameter = decodeParameter;\n /**\n * encode a group of parameters\n * @param types type array\n * @param values value array\n * @returns encoded values in hex string\n */\n function encodeParameters(types, values) {\n return coder.encode(types, values);\n }\n abi.encodeParameters = encodeParameters;\n /**\n * decode a group of parameters\n * @param types type array\n * @param data encoded values in hex string\n * @returns decoded object\n */\n function decodeParameters(types, data) {\n const result = coder.decode(types, data);\n const decoded = {};\n types.forEach((t, i) => {\n decoded[i] = result[i];\n if (t.name) {\n decoded[t.name] = result[i];\n }\n });\n return decoded;\n }\n abi.decodeParameters = decodeParameters;\n /** for contract function */\n class Function {\n /**\n * create a function object\n * @param definition abi definition of the function\n */\n constructor(definition) {\n this.definition = definition;\n this.canonicalName = formatSignature(definition);\n this.signature = '0x' + keccak256(this.canonicalName).slice(0, 4).toString('hex');\n }\n /**\n * encode input parameters into call data\n * @param args arguments for the function\n */\n encode(...args) {\n return this.signature + encodeParameters(this.definition.inputs, args).slice(2);\n }\n /**\n * decode output data\n * @param outputData output data to decode\n */\n decode(outputData) {\n return decodeParameters(this.definition.outputs, outputData);\n }\n }\n abi.Function = Function;\n /** for contract event */\n class Event {\n /** for contract event */\n constructor(definition) {\n this.definition = definition;\n this.canonicalName = formatSignature(definition);\n this.signature = '0x' + keccak256(this.canonicalName).toString('hex');\n }\n /**\n * encode an object of indexed keys into topics.\n * @param indexed an object contains indexed keys\n */\n encode(indexed) {\n const topics = [];\n if (!this.definition.anonymous) {\n topics.push(this.signature);\n }\n for (const input of this.definition.inputs) {\n if (!input.indexed) {\n continue;\n }\n const value = indexed[input.name];\n if (value === undefined || value === null) {\n topics.push(null);\n }\n else {\n let topic;\n // https://docs.soliditylang.org/en/v0.8.11/abi-spec.html#encoding-of-indexed-event-parameters\n if (isValueType(input.type)) {\n topic = encodeParameter(input.type, value);\n }\n else {\n if (input.type === 'string') {\n topic = '0x' + keccak256(value).toString('hex');\n }\n else if (typeof value === 'string' && /^0x[0-9a-f]+$/i.test(value) && value.length % 2 === 0) {\n // value is encoded\n topic = '0x' + keccak256(Buffer.from(value.slice(2), 'hex')).toString('hex');\n }\n else {\n throw new Error(`event.encode: invalid ${input.type} value`);\n }\n }\n topics.push(topic);\n }\n }\n return topics;\n }\n /**\n * decode event log\n * @param data data in event output\n * @param topics topics in event\n */\n decode(data, topics) {\n if (!this.definition.anonymous) {\n topics = topics.slice(1);\n }\n if (this.definition.inputs.filter(t => t.indexed).length !== topics.length) {\n throw new Error('invalid topics count');\n }\n const decodedNonIndexed = coder.decode(this.definition.inputs.filter(t => !t.indexed), data);\n const decoded = {};\n this.definition.inputs.forEach((t, i) => {\n if (t.indexed) {\n const topic = topics.shift();\n decoded[i] = isValueType(t.type) ? decodeParameter(t.type, topic) : topic;\n }\n else {\n decoded[i] = decodedNonIndexed.shift();\n }\n if (t.name) {\n decoded[t.name] = decoded[i];\n }\n });\n return decoded;\n }\n }\n abi.Event = Event;\n function isValueType(type) {\n return (type === \"address\" ||\n type === \"bool\" ||\n /^(u?int)(\\d*)$/.test(type) ||\n /^bytes(\\d+)$/.test(type));\n }\n})(abi || (abi = {}));\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJpLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2FiaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLGVBQWUsSUFBSSxnQkFBZ0IsRUFBRSxNQUFNLGlDQUFpQyxDQUFBO0FBQy9GLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxVQUFVLENBQUE7QUFDcEMsT0FBTyxFQUFFLE1BQU0sRUFBRSxNQUFNLFFBQVEsQ0FBQTtBQUUvQixNQUFNLEtBQU0sU0FBUSxRQUFRO0lBQ3hCO1FB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PLEVBQUU7b0JBQ1gsTUFBTSxLQUFLLEdBQUcsTUFBTSxDQUFDLEtBQUssRUFBRyxDQUFBO29CQUM3QixPQUFPLENBQUMsQ0FBQyxDQUFDLEdBQUcsV0FBVyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUMsZUFBZSxDQUFDLENBQUMsQ0FBQyxJQUFJLEVBQUUsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDLEtBQUssQ0FBQTtpQkFDNUU7cUJBQU07b0JBQ0gsT0FBTyxDQUFDLENBQUMsQ0FBQyxHQUFHLGlCQUFpQixDQUFDLEtBQUssRUFBRSxDQUFBO2lCQUN6QztnQkFDRCxJQUFJLENBQUMsQ0FBQyxJQUFJLEVBQUU7b0JBQ1IsT0FBTyxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLENBQUE7aUJBQy9CO1lBQ0wsQ0FBQyxDQUFDLENBQUE7WUFDRixPQUFPLE9BQU8sQ0FBQTtRQUNsQixDQUFDO0tBQ0o7SUFqRlksU0FBSyxRQWlGakIsQ0FBQTtJQXFCRCxTQUFTLFdBQVcsQ0FBQyxJQUFZO1FBQzdCLE9BQU8sQ0FDSCxJQUFJLEtBQUssU0FBUztZQUNsQixJQUFJLEtBQUssTUFBTTtZQUNmLGdCQUFnQixDQUFDLElBQUksQ0FBQyxJQUFJLENBQUM7WUFDM0IsY0FBYyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FDNUIsQ0FBQTtJQUNMLENBQUM7QUFDTCxDQUFDLEVBdk5nQixHQUFHLEtBQUgsR0FBRyxRQXVObkIifQ==","import { abi, keccak256 } from 'thor-devkit';\n// https://docs.soliditylang.org/en/v0.8.16/control-structures.html#error-handling-assert-require-revert-and-exceptions\n// builtin errors in solidity, Error(string) and Panic(uint256)\nconst errorSelector = '0x' + keccak256('Error(string)').toString('hex').slice(0, 8);\nconst panicSelector = '0x' + keccak256('Panic(uint256)').toString('hex').slice(0, 8);\nexport function decodeRevertReason(data) {\n try {\n if (data.startsWith(errorSelector)) {\n return abi.decodeParameter('string', '0x' + data.slice(errorSelector.length));\n }\n else if (data.startsWith(panicSelector)) {\n const decoded = abi.decodeParameter('uint256', '0x' + data.slice(panicSelector.length));\n return `Panic(0x${parseInt(decoded).toString(16).padStart(2, '0')})`;\n }\n return '';\n }\n catch (_a) {\n return '';\n }\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmV2ZXJ0LXJlYXNvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9yZXZlcnQtcmVhc29uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxHQUFHLEVBQUUsU0FBUyxFQUFFLE1BQU0sYUFBYSxDQUFBO0FBRTVDLHVIQUF1SDtBQUN2SCwrREFBK0Q7QUFFL0QsTUFBTSxhQUFhLEdBQUcsSUFBSSxHQUFHLFNBQVMsQ0FBQyxlQUFlLENBQUMsQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDLENBQUMsS0FBSyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQTtBQUNuRixNQUFNLGFBQWEsR0FBRyxJQUFJLEdBQUcsU0FBUyxDQUFDLGdCQUFnQixDQUFDLENBQUMsUUFBUSxDQUFDLEtBQUssQ0FBQyxDQUFDLEtBQUssQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUE7QUFFcEYsTUFBTSxVQUFVLGtCQUFrQixDQUFDLElBQVk7SUFDM0MsSUFBSTtRQUNBLElBQUksSUFBSSxDQUFDLFVBQVUsQ0FBQyxhQUFhLENBQUMsRUFBRTtZQUNoQyxPQUFPLEdBQUcsQ0FBQyxlQUFlLENBQUMsUUFBUSxFQUFFLElBQUksR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLGFBQWEsQ0FBQyxNQUFNLENBQUMsQ0FBVyxDQUFBO1NBQzFGO2FBQU0sSUFBSSxJQUFJLENBQUMsVUFBVSxDQUFDLGFBQWEsQ0FBQyxFQUFFO1lBQ3ZDLE1BQU0sT0FBTyxHQUFHLEdBQUcsQ0FBQyxlQUFlLENBQUMsU0FBUyxFQUFFLElBQUksR0FBRyxJQUFJLENBQUMsS0FBSyxDQUFDLGFBQWEsQ0FBQyxNQUFNLENBQUMsQ0FBVyxDQUFBO1lBQ2pHLE9BQU8sV0FBVyxRQUFRLENBQUMsT0FBTyxDQUFDLENBQUMsUUFBUSxDQUFDLEVBQUUsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxDQUFDLEVBQUUsR0FBRyxDQUFDLEdBQUcsQ0FBQTtTQUN2RTtRQUNELE9BQU8sRUFBRSxDQUFBO0tBQ1o7SUFBQyxXQUFNO1FBQ0osT0FBTyxFQUFFLENBQUE7S0FDWjtBQUNMLENBQUMifQ==","/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\nexport function isDecString(val) {\n return typeof val === 'string' && /^[0-9]+$/.test(val);\n}\nexport function isHexString(val) {\n return typeof val === 'string' && /^0x[0-9a-f]+$/i.test(val);\n}\nexport function isHexBytes(val, n) {\n if (typeof val !== 'string' || !/^0x[0-9a-f]*$/i.test(val)) {\n return false;\n }\n return n ? val.length === n * 2 + 2 : val.length % 2 === 0;\n}\nexport function isUInt(val, bit) {\n if (val < 0 || !Number.isInteger(val)) {\n return false;\n }\n return bit ? val < Math.pow(2, bit) : true;\n}\nexport function isBigInt(v) {\n return typeof v === 'string' ?\n (isDecString(v) || isHexString(v)) :\n isUInt(v, 0);\n}\nexport class BadParameter extends Error {\n constructor(msg) {\n super(msg);\n }\n}\nBadParameter.prototype.name = 'BadParameter';\nexport function ensure(b, msg) {\n if (!b) {\n throw new BadParameter(msg);\n }\n}\nimport * as V from 'validator-ts';\nexport function test(value, scheme, context) {\n try {\n return V.validate(value, scheme, context);\n }\n catch (err) {\n if (err instanceof V.ValidationError) {\n throw new BadParameter(err.message);\n }\n throw err;\n }\n}\n// rules\nexport function bytes(v) {\n return isHexBytes(v) ? '' : 'expected bytes in hex string';\n}\nexport function bytes8(v) {\n return isHexBytes(v, 8) ? '' : 'expected bytes8';\n}\nexport function bytes32(v) {\n return isHexBytes(v, 32) ? '' : 'expected bytes32';\n}\nexport function uint8(v) {\n return isUInt(v, 8) ? '' : 'expected 8-bit unsigned integer';\n}\nexport function uint32(v) {\n return isUInt(v, 32) ? '' : 'expected 32-bit unsigned integer';\n}\nexport function uint64(v) {\n return isUInt(v, 64) ? '' : 'expected 64-bit unsigned integer';\n}\nexport function bool(v) {\n return typeof v === 'boolean' ? '' : 'expected boolean';\n}\nexport function bigInt(v) {\n return isBigInt(v) ? '' : 'expected unsigned integer in number or string';\n}\nexport function hexString(v) {\n return isHexString(v) ? '' : 'expected integer in hex string';\n}\nexport function address(v) {\n return isHexBytes(v, 20) ? '' : 'expected address';\n}\nexport function string(v) {\n return typeof v === 'string' ? '' : 'expected string';\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicnVsZXMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvcnVsZXMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsc0VBQXNFO0FBQ3RFLE1BQU0sVUFBVSxXQUFXLENBQUMsR0FBVztJQUNuQyxPQUFPLE9BQU8sR0FBRyxLQUFLLFFBQVEsSUFBSSxVQUFVLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFBO0FBQzFELENBQUM7QUFFRCxNQUFNLFVBQVUsV0FBVyxDQUFDLEdBQVc7SUFDbkMsT0FBTyxPQUFPLEdBQUcsS0FBSyxRQUFRLElBQUksZ0JBQWdCLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFBO0FBQ2hFLENBQUM7QUFFRCxNQUFNLFVBQ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zVCLE9BQU8sV0FBVyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLGdDQUFnQyxDQUFBO0FBQ2pFLENBQUM7QUFDRCxNQUFNLFVBQVUsT0FBTyxDQUFDLENBQU07SUFDMUIsT0FBTyxVQUFVLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLGtCQUFrQixDQUFBO0FBQ3RELENBQUM7QUFDRCxNQUFNLFVBQVUsTUFBTSxDQUFDLENBQU07SUFDekIsT0FBTyxPQUFPLENBQUMsS0FBSyxRQUFRLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsaUJBQWlCLENBQUE7QUFDekQsQ0FBQyJ9","import * as R from './rules';\nconst MAX_LIMIT = 256;\nexport function newFilter(readyDriver, kind, criteria) {\n const filterBody = {\n range: {\n unit: 'block',\n from: 0,\n to: Math.pow(2, 32) - 1\n },\n options: {\n offset: 0,\n limit: 10\n },\n criteriaSet: criteria,\n order: 'asc'\n };\n let cacheHints;\n return {\n range(range) {\n R.test(range, {\n unit: v => (v === 'block' || v === 'time') ? '' : `expected 'block' or 'time'`,\n from: R.uint64,\n to: R.uint64\n }, 'arg0');\n R.ensure(range.from <= range.to, 'arg0.from: expected <= arg0.to');\n filterBody.range = Object.assign({}, range);\n return this;\n },\n order(order) {\n R.ensure(order === 'asc' || order === 'desc', `arg0: expected 'asc' or 'desc'`);\n filterBody.order = order;\n return this;\n },\n cache(hints) {\n cacheHints = R.test(hints, [R.address], 'arg0').map(t => t.toLowerCase());\n return this;\n },\n apply(offset, limit) {\n R.test(offset, R.uint64, 'arg0');\n R.ensure(limit >= 0 && limit <= MAX_LIMIT && Number.isInteger(limit), `arg1: expected unsigned integer <= ${MAX_LIMIT}`);\n filterBody.options.offset = offset;\n filterBody.options.limit = limit;\n if (kind === 'transfer') {\n return readyDriver.then(d => d.filterTransferLogs(filterBody, cacheHints));\n }\n else {\n return readyDriver.then(d => d.filterEventLogs(filterBody, cacheHints));\n }\n }\n };\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZmlsdGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2ZpbHRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssQ0FBQyxNQUFNLFNBQVMsQ0FBQTtBQUU1QixNQUFNLFNBQVMsR0FBRyxHQUFHLENBQUE7QUFFckIsTUFBTSxVQUFVLFNBQVMsQ0FDckIsV0FBbUMsRUFDbkMsSUFBTyxFQUNQLFFBQTBDO0lBRzFDLE1BQU0sVUFBVSxHQUFHO1FBQ2YsS0FBSyxFQUFFO1lBQ0gsSUFBSSxFQUFFLE9BQU87WUFDYixJQUFJLEVBQUUsQ0FBQztZQUNQLEVBQUUsRUFBRSxTQUFBLENBQUMsRUFBSSxFQUFFLENBQUEsR0FBRyxDQUFDO1NBQ2xCO1FBQ0QsT0FBTyxFQUFFO1lBQ0wsTUFBTSxFQUFFLENBQUM7WUFDVCxLQUFLLEVBQUUsRUFBRTtTQUNaO1FBQ0QsV0FBVyxFQUFFLFFBQVE7UUFDckIsS0FBSyxFQUFFLEtBQUs7S0FDZixDQUFBO0lBRUQsSUFBSSxVQUFnQyxDQUFBO0lBRXBDLE9BQU87UUFDSCxLQUFLLENBQUMsS0FBSztZQUNQLENBQUMsQ0FBQyxJQUFJLENBQUMsS0FBSyxFQUFFO2dCQUNWLElBQUksRUFBRSxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxLQUFLLE9BQU8sSUFBSSxDQUFDLEtBQUssTUFBTSxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsNEJBQTRCO2dCQUM5RSxJQUFJLEVBQUUsQ0FBQyx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EVBQ2hFLHNDQUFzQyxTQUFTLEVBQUUsQ0FBQyxDQUFBO1lBRXRELFVBQVUsQ0FBQyxPQUFPLENBQUMsTUFBTSxHQUFHLE1BQU0sQ0FBQTtZQUNsQyxVQUFVLENBQUMsT0FBTyxDQUFDLEtBQUssR0FBRyxLQUFLLENBQUE7WUFFaEMsSUFBSSxJQUFJLEtBQUssVUFBVSxFQUFFO2dCQUNyQixPQUFPLFdBQVcsQ0FBQyxJQUFJLENBQU0sQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsa0JBQWtCLENBQUMsVUFBaUIsRUFBRSxVQUFVLENBQUMsQ0FBQyxDQUFBO2FBQ3pGO2lCQUFNO2dCQUNILE9BQU8sV0FBVyxDQUFDLElBQUksQ0FBTSxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxlQUFlLENBQUMsVUFBaUIsRUFBRSxVQUFVLENBQUMsQ0FBQyxDQUFBO2FBQ3RGO1FBQ0wsQ0FBQztLQUNKLENBQUE7QUFDTCxDQUFDIn0=","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport * as R from './rules';\nimport * as V from 'validator-ts';\nimport { abi } from 'thor-devkit';\nimport BigNumber from 'bignumber.js';\nexport function newVendor(driver) {\n return {\n sign: (kind, msg) => {\n if (kind === 'tx') {\n R.test(msg, [clauseScheme], 'arg1');\n return newTxSigningService(Promise.resolve(driver), msg);\n }\n else if (kind === 'cert') {\n R.test(msg, {\n purpose: v => (v === 'agreement' || v === 'identification') ?\n '' : `expected 'agreement' or 'identification'`,\n payload: {\n type: v => v === 'text' ? '' : `expected 'text'`,\n content: R.string\n }\n }, 'arg1');\n return newCertSigningService(Promise.resolve(driver), msg);\n }\n else {\n throw new R.BadParameter(`arg0: expected 'tx' or 'cert'`);\n }\n }\n };\n}\nexport function newTxSigningService(readyDriver, msg) {\n const opts = {};\n return {\n signer(addr) {\n opts.signer = R.test(addr, R.address, 'arg0').toLowerCase();\n return this;\n },\n gas(gas) {\n opts.gas = R.test(gas, R.uint64, 'arg0');\n return this;\n },\n dependsOn(txid) {\n opts.dependsOn = R.test(txid, R.bytes32, 'arg0').toLowerCase();\n return this;\n },\n link(url) {\n opts.link = R.test(url, R.string, 'arg0');\n return this;\n },\n comment(text) {\n opts.comment = R.test(text, R.string, 'arg0');\n return this;\n },\n delegate(url, signer) {\n R.ensure(typeof url === 'string', `arg0: expected url string`);\n R.test(signer, V.optional(R.address), 'arg1');\n opts.delegator = { url, signer: signer && signer.toLowerCase() };\n return this;\n },\n accepted(cb) {\n R.ensure(typeof cb === 'function', 'arg0: expected function');\n opts.onAccepted = cb;\n return this;\n },\n request() {\n const transformedMsg = msg.map(c => (Object.assign(Object.assign({}, c), { value: new BigNumber(c.value).toString(10) })));\n return (() => __awaiter(this, void 0, void 0, function* () {\n try {\n const driver = yield readyDriver;\n return yield driver.signTx(transformedMsg, opts);\n }\n catch (err) {\n throw new Rejected(err.message);\n }\n }))();\n }\n };\n}\nfunction newCertSigningService(readyDriver, msg) {\n const opts = {};\n return {\n signer(addr) {\n opts.signer = R.test(addr, R.address, 'arg0').toLowerCase();\n return this;\n },\n link(url) {\n opts.link = R.test(url, R.string, 'arg0');\n return this;\n },\n accepted(cb) {\n R.ensure(typeof cb === 'function', 'arg0: expected function');\n opts.onAccepted = cb;\n return this;\n },\n request() {\n return (() => __awaiter(this, void 0, void 0, function* () {\n try {\n const driver = yield readyDriver;\n return yield driver.signCert(msg, opts);\n }\n catch (err) {\n throw new Rejected(err.message);\n }\n }))();\n }\n };\n}\nclass Rejected extends Error {\n constructor(msg) {\n super(msg);\n }\n}\nRejected.prototype.name = 'Rejected';\nconst clauseScheme = {\n to: V.nullable(R.address),\n value: R.bigInt,\n data: V.optional(R.bytes),\n comment: V.optional(R.string),\n abi: V.optional(v => {\n if (!(v instanceof Object)) {\n return 'expected object';\n }\n try {\n new abi.Function(v).signature;\n return '';\n }\n catch (err) {\n return `expected valid ABI (${err.message})`;\n }\n })\n};\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVuZG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3ZlbmRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSxPQUFPLEtBQUssQ0FBQyxNQUFNLFNBQVMsQ0FBQTtBQUM1QixPQUFPLEtBQUssQ0FBQyxNQUFNLGNBQWMsQ0FBQTtBQUNqQyxPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0sYUFBYSxDQUFBO0FBQ2pDLE9BQU8sU0FBUyxNQUFNLGNBQWMsQ0FBQTtBQUVwQyxNQUFNLFVBQVUsU0FBUyxDQUFDLE1BQXFCO0lBQzNDLE9BQU87UUFDSCxJQUFJLEVBQUUsQ0FBMEIsSUFBTyxFQUFFLEdBQXlFLEVBQU8sRUFBRTtZQUN2SCxJQUFJLElBQUksS0FBSyxJQUFJLEVBQUU7Z0JBQ2YsQ0FBQyxDQUFDLElBQUksQ0FBQyxHQUE4QixFQUFFLENBQUMsWUFBWSxDQUFDLEVBQUUsTUFBTSxDQUFDLENBQUE7Z0JBQzlELE9BQU8sbUJBQW1CLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxNQUFNLENBQUMsRUFBRSxHQUE4QixDQUFDLENBQUE7YUFDdEY7aUJBQU0sSUFBSSxJQUFJLEtBQUssTUFBTSxFQUFFO2dCQUN4QixDQUFDLENBQUMsSUFBSSxDQUFDLEdB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BQUcsQ0FBQyxDQUFBO0lBQ2QsQ0FBQztDQUNKO0FBRUQsUUFBUSxDQUFDLFNBQVMsQ0FBQyxJQUFJLEdBQUcsVUFBVSxDQUFBO0FBRXBDLE1BQU0sWUFBWSxHQUE4QztJQUM1RCxFQUFFLEVBQUUsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsT0FBTyxDQUFDO0lBQ3pCLEtBQUssRUFBRSxDQUFDLENBQUMsTUFBTTtJQUNmLElBQUksRUFBRSxDQUFDLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxLQUFLLENBQUM7SUFDekIsT0FBTyxFQUFFLENBQUMsQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDLE1BQU0sQ0FBQztJQUM3QixHQUFHLEVBQUUsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsRUFBRTtRQUNoQixJQUFJLENBQUMsQ0FBQyxDQUFDLFlBQVksTUFBTSxDQUFDLEVBQUU7WUFDeEIsT0FBTyxpQkFBaUIsQ0FBQTtTQUMzQjtRQUNELElBQUk7WUFDQSxJQUFJLEdBQUcsQ0FBQyxRQUFRLENBQUMsQ0FBUSxDQUFDLENBQUMsU0FBUyxDQUFBO1lBQ3BDLE9BQU8sRUFBRSxDQUFBO1NBQ1o7UUFBQyxPQUFPLEdBQUcsRUFBRTtZQUNWLE9BQU8sdUJBQXVCLEdBQUcsQ0FBQyxPQUFPLEdBQUcsQ0FBQTtTQUMvQztJQUNMLENBQUMsQ0FBQztDQUNMLENBQUEifQ==","import { abi } from 'thor-devkit';\nimport { decodeRevertReason } from './revert-reason';\nimport { newFilter } from './filter';\nimport { newTxSigningService } from './vendor';\nimport * as R from './rules';\nexport function newAccountVisitor(readyDriver, addr) {\n return {\n get address() { return addr; },\n get: () => {\n return readyDriver.then(d => d.getAccount(addr, d.head.id));\n },\n getCode: () => {\n return readyDriver.then(d => d.getCode(addr, d.head.id));\n },\n getStorage: key => {\n key = R.test(key, R.bytes32, 'arg0').toLowerCase();\n return readyDriver.then(d => d.getStorage(addr, key, d.head.id));\n },\n method: jsonABI => {\n let coder;\n try {\n coder = new abi.Function(JSON.parse(JSON.stringify(jsonABI)));\n }\n catch (err) {\n throw new R.BadParameter(`arg0: expected valid ABI (${err.message})`);\n }\n return newMethod(readyDriver, addr, coder);\n },\n event: jsonABI => {\n let coder;\n try {\n coder = new abi.Event(JSON.parse(JSON.stringify(jsonABI)));\n }\n catch (err) {\n throw new R.BadParameter(`arg0: expected valid ABI (${err.message})`);\n }\n return newEvent(readyDriver, addr, coder);\n }\n };\n}\nfunction newMethod(readyDriver, addr, coder) {\n let value = 0;\n const opts = {};\n let cacheHints;\n return {\n value(val) {\n value = R.test(val, R.bigInt, 'arg0');\n return this;\n },\n caller(addr) {\n opts.caller = R.test(addr, R.address, 'arg0').toLowerCase();\n return this;\n },\n gas(gas) {\n opts.gas = R.test(gas, R.uint64, 'arg0');\n return this;\n },\n gasPrice(gp) {\n opts.gasPrice = R.test(gp, R.bigInt, 'arg0').toString().toLowerCase();\n return this;\n },\n gasPayer(addr) {\n opts.gasPayer = R.test(addr, R.address, 'arg0').toLowerCase();\n return this;\n },\n cache(hints) {\n cacheHints = R.test(hints, [R.address], 'arg0').map(t => t.toLowerCase());\n return this;\n },\n asClause: (...args) => {\n const inputsLen = (coder.definition.inputs || []).length;\n R.ensure(inputsLen === args.length, `args count expected ${inputsLen}`);\n try {\n const data = coder.encode(...args);\n return {\n to: addr,\n value: value.toString().toLowerCase(),\n data\n };\n }\n catch (err) {\n throw new R.BadParameter(`args can not be encoded (${err.message})`);\n }\n },\n call(...args) {\n const clause = this.asClause(...args);\n return readyDriver.then(d => d.explain(Object.assign({ clauses: [clause] }, opts), d.head.id, cacheHints))\n .then(outputs => outputs[0])\n .then(output => {\n if (output.reverted) {\n const revertReason = decodeRevertReason(output.data);\n return Object.assign(Object.assign({}, output), { revertReason, decoded: {} });\n }\n else {\n const decoded = coder.decode(output.data);\n return Object.assign(Object.assign({}, output), { decoded });\n }\n });\n },\n transact(...args) {\n const clause = this.asClause(...args);\n return newTxSigningService(readyDriver, [Object.assign(Object.assign({}, clause), { abi: coder.definition })]);\n }\n };\n}\nfunction newEvent(readyDriver, addr, coder) {\n const encode = (indexed) => {\n const topics = coder.encode(indexed);\n return {\n address: addr,\n topic0: topics[0] || undefined,\n topic1: topics[1] || undefined,\n topic2: topics[2] || undefined,\n topic3: topics[3] || undefined,\n topic4: topics[4] || undefined\n };\n };\n return {\n asCriteria: indexed => {\n try {\n return encode(indexed);\n }\n catch (err) {\n throw new R.BadParameter(`arg0: can not be encoded (${err.message})`);\n }\n },\n filter: (indexed) => {\n R.test(indexed, [{}], 'arg0');\n if (indexed.length === 0) {\n indexed = [{}];\n }\n const criteria = indexed.map((o, i) => {\n try {\n return encode(o);\n }\n catch (err) {\n throw new R.BadParameter(`arg0.#${i}: can not be encoded (${err.message})`);\n }\n });\n const filter = newFilter(readyDriver, 'event', criteria);\n return {\n range(range) {\n filter.range(range);\n return this;\n },\n order(order) {\n filter.order(order);\n return this;\n },\n cache(hints) {\n filter.cache(hints);\n return this;\n },\n apply(offset, limit) {\n return filter.apply(offset, limit)\n .then(events => events.map(event => {\n const decoded = coder.decode(event.data, event.topics);\n return Object.assign(Object.assign({}, event), { decoded });\n }));\n }\n };\n }\n };\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3VudC12aXNpdG9yLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2FjY291bnQtdmlzaXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0sYUFBYSxDQUFBO0FBQ2pDLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGlCQUFpQixDQUFBO0FBQ3BELE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxVQUFVLENB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UFNLENBQUMsR0FBRyxDQUFDLEtBQUssQ0FBQyxFQUFFO3dCQUMvQixNQUFNLE9BQU8sR0FBRyxLQUFLLENBQUMsTUFBTSxDQUFDLEtBQUssQ0FBQyxJQUFJLEVBQUUsS0FBSyxDQUFDLE1BQU0sQ0FBQyxDQUFBO3dCQUN0RCx1Q0FBWSxLQUFLLEtBQUUsT0FBTyxJQUFFO29CQUNoQyxDQUFDLENBQUMsQ0FBQyxDQUFBO2dCQUNYLENBQUM7YUFDSixDQUFBO1FBQ0wsQ0FBQztLQUNKLENBQUE7QUFDTCxDQUFDIn0=","export function newBlockVisitor(driver, revision) {\n return {\n get revision() { return revision; },\n get: () => driver.getBlock(revision)\n };\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxvY2stdmlzaXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9ibG9jay12aXNpdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sVUFBVSxlQUFlLENBQzNCLE1BQXFCLEVBQ3JCLFFBQXlCO0lBR3pCLE9BQU87UUFDSCxJQUFJLFFBQVEsS0FBSyxPQUFPLFFBQVEsQ0FBQSxDQUFDLENBQUM7UUFDbEMsR0FBRyxFQUFFLEdBQUcsRUFBRSxDQUFDLE1BQU0sQ0FBQyxRQUFRLENBQUMsUUFBUSxDQUFDO0tBQ3ZDLENBQUE7QUFDTCxDQUFDIn0=","export function newTxVisitor(readyDriver, id) {\n let allowPending = false;\n return {\n get id() {\n return id;\n },\n allowPending() {\n allowPending = true;\n return this;\n },\n get: () => readyDriver.then(d => d.getTransaction(id, allowPending)),\n getReceipt: () => readyDriver.then(d => d.getReceipt(id))\n };\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHgtdmlzaXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy90eC12aXNpdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE1BQU0sVUFBVSxZQUFZLENBQ3hCLFdBQW1DLEVBQ25DLEVBQVU7SUFFVixJQUFJLFlBQVksR0FBRyxLQUFLLENBQUE7SUFDeEIsT0FBTztRQUNILElBQUksRUFBRTtZQUNGLE9BQU8sRUFBRSxDQUFBO1FBQ2IsQ0FBQztRQUNELFlBQVk7WUFDUixZQUFZLEdBQUcsSUFBSSxDQUFBO1lBQ25CLE9BQU8sSUFBSSxDQUFBO1FBQ2YsQ0FBQztRQUNELEdBQUcsRUFBRSxHQUFHLEVBQUUsQ0FBQyxXQUFXLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLGNBQWMsQ0FBQyxFQUFFLEVBQUUsWUFBWSxDQUFDLENBQUM7UUFDcEUsVUFBVSxFQUFFLEdBQUcsRUFBRSxDQUFDLFdBQVcsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsVUFBVSxDQUFDLEVBQUUsQ0FBQyxDQUFDO0tBQzVELENBQUE7QUFDTCxDQUFDIn0=","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nconst checkpointInterval = 180;\nexport function newHeadTracker(driver) {\n let head = Object.assign({}, driver.head);\n let finalized = driver.genesis.id;\n let resolvers = [];\n void (() => __awaiter(this, void 0, void 0, function* () {\n for (;;) {\n try {\n const newHead = yield driver.pollHead();\n if (newHead.id !== head.id && newHead.number >= head.number) {\n if (head.number === 0 || (newHead.number + 1) % checkpointInterval === 0) {\n try {\n const finalizedBlk = yield driver.getBlock('finalized');\n if (finalizedBlk && finalizedBlk.id != finalized) {\n finalized = finalizedBlk.id;\n }\n }\n catch (_a) {\n void 0;\n }\n }\n head = Object.assign({}, newHead);\n const resolversCopy = resolvers;\n resolvers = [];\n resolversCopy.forEach(r => r(newHead));\n }\n else {\n yield new Promise(resolve => setTimeout(resolve, 1 * 1000));\n }\n }\n catch (_b) {\n // rejection from driver.getHead means driver closed\n break;\n }\n }\n }))();\n const genesisTs = driver.genesis.timestamp;\n return {\n get head() { return head; },\n get progress() {\n const nowTsMs = Date.now();\n const headTsMs = head.timestamp * 1000;\n if (nowTsMs - headTsMs < 30 * 1000) {\n return 1;\n }\n const genesisTsMs = genesisTs * 1000;\n const p = (headTsMs - genesisTsMs) / (nowTsMs - genesisTsMs);\n return p < 0 ? NaN : p;\n },\n get finalized() { return finalized; },\n ticker: () => {\n let lastHeadId = head.id;\n return {\n next: () => {\n return new Promise(resolve => {\n if (lastHeadId !== head.id) {\n return resolve(Object.assign({}, head));\n }\n resolvers.push(newHead => {\n resolve(Object.assign({}, newHead));\n });\n }).then(h => {\n lastHeadId = h.id;\n return h;\n });\n }\n };\n }\n };\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVhZC10cmFja2VyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2hlYWQtdHJhY2tlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQSw2RUFBNkU7QUFDN0UsTUFBTSxrQkFBa0IsR0FBRyxHQUFHLENBQUE7QUFFOUIsTUFBTSxVQUFVLGNBQWMsQ0FBQyxNQUFxQjtJQUNoRCxJQUFJLElBQUkscUJBQVEs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xJQUFJLFVBQVUsR0FBRyxJQUFJLENBQUMsRUFBRSxDQUFBO1lBQ3hCLE9BQU87Z0JBQ0gsSUFBSSxFQUFFLEdBQUcsRUFBRTtvQkFDUCxPQUFPLElBQUksT0FBTyxDQUE2QixPQUFPLENBQUMsRUFBRTt3QkFDckQsSUFBSSxVQUFVLEtBQUssSUFBSSxDQUFDLEVBQUUsRUFBRTs0QkFDeEIsT0FBTyxPQUFPLG1CQUFNLElBQUksRUFBRyxDQUFBO3lCQUM5Qjt3QkFDRCxTQUFTLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxFQUFFOzRCQUNyQixPQUFPLG1CQUFNLE9BQU8sRUFBRyxDQUFBO3dCQUMzQixDQUFDLENBQUMsQ0FBQTtvQkFDTixDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLEVBQUU7d0JBQ1IsVUFBVSxHQUFHLENBQUMsQ0FBQyxFQUFFLENBQUE7d0JBQ2pCLE9BQU8sQ0FBQyxDQUFBO29CQUNaLENBQUMsQ0FBQyxDQUFBO2dCQUNOLENBQUM7YUFDSixDQUFBO1FBQ0wsQ0FBQztLQUNKLENBQUE7QUFDTCxDQUFDIn0=","import { decodeRevertReason } from './revert-reason';\nimport * as R from './rules';\nimport BigNumber from 'bignumber.js';\nexport function newExplainer(readyDriver, clauses) {\n const opts = {};\n let cacheHints;\n return {\n caller(addr) {\n opts.caller = R.test(addr, R.address, 'arg0').toLowerCase();\n return this;\n },\n gas(gas) {\n opts.gas = R.test(gas, R.uint64, 'arg0');\n return this;\n },\n gasPrice(gp) {\n opts.gasPrice = R.test(gp, R.bigInt, 'arg0').toString().toLowerCase();\n return this;\n },\n gasPayer(addr) {\n opts.gasPayer = R.test(addr, R.address, 'arg0').toLowerCase();\n return this;\n },\n cache(hints) {\n cacheHints = R.test(hints, [R.address], 'arg0').map(t => t.toLowerCase());\n return this;\n },\n execute() {\n const transformedClauses = clauses.map(c => {\n return {\n to: c.to ? c.to.toLowerCase() : null,\n value: new BigNumber(c.value).toString(10),\n data: (c.data || '0x').toLowerCase()\n };\n });\n return readyDriver.then(d => d.explain(Object.assign({ clauses: transformedClauses }, opts), d.head.id, cacheHints))\n .then(outputs => {\n return outputs.map(o => {\n if (o.reverted) {\n const revertReason = decodeRevertReason(o.data);\n return Object.assign(Object.assign({}, o), { revertReason });\n }\n return o;\n });\n });\n }\n };\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXhwbGFpbmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2V4cGxhaW5lci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQTtBQUNwRCxPQUFPLEtBQUssQ0FBQyxNQUFNLFNBQVMsQ0FBQTtBQUM1QixPQUFPLFNBQVMsTUFBTSxjQUFjLENBQUE7QUFFcEMsTUFBTSxVQUFVLFlBQVksQ0FBQyxXQUFtQyxFQUFFLE9BQTJCO0lBQ3pGLE1BQU0sSUFBSSxHQUtOLEVBQUUsQ0FBQTtJQUNOLElBQUksVUFBZ0MsQ0FBQTtJQUVwQyxPQUFPO1FBQ0gsTUFBTSxDQUFDLElBQUk7WUFDUCxJQUFJLENBQUMsTUFBTSxHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUMsSUFBSSxFQUFFLENBQUMsQ0FBQyxPQUFPLEVBQUUsTUFBTSxDQUFDLENBQUMsV0FBVyxFQUFFLENBQUE7WUFDM0QsT0FBTyxJQUFJLENBQUE7UUFDZixDQUFDO1FBQ0QsR0FBRyxDQUFDLEdBQUc7WUFDSCxJQUFJLENBQUMsR0FBRyxHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUMsR0FBRyxFQUFFLENBQUMsQ0FBQyxNQUFNLEVBQUUsTUFBTSxDQUFDLENBQUE7WUFDeEMsT0FBTyx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RLENBQUMsRUFBRSxDQUFDO29CQUMxQyxJQUFJLEVBQUUsQ0FBQyxDQUFDLENBQUMsSUFBSSxJQUFJLElBQUksQ0FBQyxDQUFDLFdBQVcsRUFBRTtpQkFDdkMsQ0FBQTtZQUNMLENBQUMsQ0FBQyxDQUFBO1lBRUYsT0FBTyxXQUFXLENBQUMsSUFBSSxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLE9BQU8saUJBRTlCLE9BQU8sRUFBRSxrQkFBa0IsSUFDeEIsSUFBSSxHQUVYLENBQUMsQ0FBQyxJQUFJLENBQUMsRUFBRSxFQUFFLFVBQVUsQ0FBQyxDQUFDO2lCQUN0QixJQUFJLENBQUMsT0FBTyxDQUFDLEVBQUU7Z0JBQ1osT0FBTyxPQUFPLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFO29CQUNuQixJQUFJLENBQUMsQ0FBQyxRQUFRLEVBQUU7d0JBQ1osTUFBTSxZQUFZLEdBQUcsa0JBQWtCLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxDQUFBO3dCQUMvQyx1Q0FBWSxDQUFDLEtBQUUsWUFBWSxJQUFFO3FCQUNoQztvQkFDRCxPQUFPLENBQUMsQ0FBQTtnQkFDWixDQUFDLENBQUMsQ0FBQTtZQUNOLENBQUMsQ0FBQyxDQUFBO1FBQ1YsQ0FBQztLQUNKLENBQUE7QUFDTCxDQUFDIn0=","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { newAccountVisitor } from './account-visitor';\nimport { newBlockVisitor } from './block-visitor';\nimport { newTxVisitor } from './tx-visitor';\nimport { newFilter } from './filter';\nimport { newHeadTracker } from './head-tracker';\nimport { newExplainer } from './explainer';\nimport * as R from './rules';\nimport * as V from 'validator-ts';\nexport function newThor(driver) {\n const headTracker = newHeadTracker(driver);\n const readyDriver = (() => __awaiter(this, void 0, void 0, function* () {\n if (headTracker.head.number > 0) {\n return driver;\n }\n yield headTracker.ticker().next();\n return driver;\n }))();\n const genesis = JSON.parse(JSON.stringify(driver.genesis));\n return {\n get genesis() { return genesis; },\n get status() {\n return {\n head: headTracker.head,\n progress: headTracker.progress,\n finalized: headTracker.finalized\n };\n },\n ticker: () => headTracker.ticker(),\n account: addr => {\n addr = R.test(addr, R.address, 'arg0').toLowerCase();\n return newAccountVisitor(readyDriver, addr);\n },\n block: revision => {\n if (typeof revision === 'undefined') {\n revision = driver.head.id;\n }\n else {\n R.ensure(typeof revision === 'string' ? R.isHexBytes(revision, 32) : R.isUInt(revision, 32), 'arg0: expected bytes32 or unsigned 32-bit integer');\n }\n return newBlockVisitor(driver, typeof revision === 'string' ? revision.toLowerCase() : revision);\n },\n transaction: id => {\n id = R.test(id, R.bytes32, 'arg0').toLowerCase();\n return newTxVisitor(readyDriver, id);\n },\n filter: (kind, criteria) => {\n R.ensure(kind === 'event' || kind === 'transfer', `arg0: expected 'event' or 'transfer'`);\n if (kind === 'event') {\n R.test(criteria, [eventCriteriaScheme], 'arg1');\n return newFilter(readyDriver, 'event', criteria\n .map(c => {\n return {\n address: c.address ? c.address.toLowerCase() : undefined,\n topic0: c.topic0 ? c.topic0.toLowerCase() : undefined,\n topic1: c.topic1 ? c.topic1.toLowerCase() : undefined,\n topic2: c.topic2 ? c.topic2.toLowerCase() : undefined,\n topic3: c.topic3 ? c.topic3.toLowerCase() : undefined,\n topic4: c.topic4 ? c.topic4.toLowerCase() : undefined\n };\n }));\n }\n else {\n R.test(criteria, [transferCriteriaScheme], 'arg1');\n return newFilter(readyDriver, 'transfer', criteria\n .map(c => {\n return {\n txOrigin: c.txOrigin ? c.txOrigin.toLowerCase() : undefined,\n sender: c.sender ? c.sender.toLowerCase() : undefined,\n recipient: c.recipient ? c.recipient.toLowerCase() : undefined\n };\n }));\n }\n },\n explain: (clauses) => {\n R.test(clauses, [clauseScheme], 'arg0');\n return newExplainer(readyDriver, clauses);\n }\n };\n}\nconst clauseScheme = {\n to: V.nullable(R.address),\n value: R.bigInt,\n data: V.optional(R.bytes)\n};\nconst eventCriteriaScheme = {\n address: V.optional(R.address),\n topic0: V.optional(R.bytes32),\n topic1: V.optional(R.bytes32),\n topic2: V.optional(R.bytes32),\n topic3: V.optional(R.bytes32),\n topic4: V.optional(R.bytes32)\n};\nconst transferCriteriaScheme = {\n sender: V.optional(R.address),\n recipient: V.optional(R.address),\n txOrigin: V.optional(R.address)\n};\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGhvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy90aG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUFBLE9BQU8sRUFBRSxpQkFBaUIsRUFBRSxNQUFNLG1CQUFtQixDQUFBO0FBQ3JELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQTtBQUNqRCxPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sY0FBYyxDQUFBO0FBQzNDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxVQUFVLENBQUE7QUFDcEMsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLGdCQUFnQixDQUFBO0FBQy9DLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxhQUFhLENBQUE7QUFDMUMsT0FBTyxLQUFLLENBQUMsTUFBTSxTQUFTLENBQUE7QUFDNUIsT0FBTyxLQUFLLENBQUMsTUFBTSxjQUFjLENBQUE7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Handler) {\n const test = (obj, scheme, path) => {\n try {\n V.validate(obj, scheme, path);\n }\n catch (err) {\n if (errHandler) {\n errHandler(err);\n }\n else {\n // tslint:disable-next-line:no-console\n console.warn(`Connex-Driver[MALFORMED RESPONSE]: ${err.message}`);\n }\n }\n return obj;\n };\n const genesis = test(driver.genesis, blockScheme, 'genesis');\n return {\n genesis,\n get head() {\n return test(driver.head, headScheme, 'head');\n },\n pollHead() {\n return driver.pollHead()\n .then(h => test(h, headScheme, 'getHead()'));\n },\n getBlock(revision) {\n return driver.getBlock(revision)\n .then(b => b ? test(b, blockScheme, 'getBlock()') : b);\n },\n getTransaction(id, allowPending) {\n return driver.getTransaction(id, allowPending)\n .then(tx => tx ? test(tx, txScheme, 'getTransaction()') : tx);\n },\n getReceipt(id) {\n return driver.getReceipt(id)\n .then(r => r ? test(r, receiptScheme, 'getReceipt()') : r);\n },\n getAccount(addr, revision) {\n return driver.getAccount(addr, revision)\n .then(a => test(a, {\n balance: R.hexString,\n energy: R.hexString,\n hasCode: R.bool\n }, 'getAccount()'));\n },\n getCode(addr, revision) {\n return driver.getCode(addr, revision)\n .then(c => test(c, {\n code: R.bytes\n }, 'getCode()'));\n },\n getStorage(addr, key, revision) {\n return driver.getStorage(addr, key, revision)\n .then(s => test(s, {\n value: R.bytes32\n }, 'getStorage()'));\n },\n explain(arg, revision) {\n return driver.explain(arg, revision)\n .then(r => test(r, [vmOutputScheme], 'explain()'));\n },\n filterEventLogs(arg) {\n return driver.filterEventLogs(arg)\n .then(r => test(r, [eventWithMetaScheme], 'filterEventLogs()'));\n },\n filterTransferLogs(arg) {\n return driver.filterTransferLogs(arg)\n .then(r => test(r, [transferWithMetaScheme], 'filterTransferLogs()'));\n },\n signTx(msg, options) {\n return driver.signTx(msg, options)\n .then(r => test(r, {\n txid: R.bytes32,\n signer: R.address\n }, 'signTx()'));\n },\n signCert(msg, options) {\n return driver.signCert(msg, options)\n .then(r => test(r, {\n annex: {\n domain: R.string,\n timestamp: R.uint64,\n signer: R.address\n },\n signature: v => R.isHexBytes(v, 65) ? '' : 'expected 65 bytes'\n }, 'signCert()'));\n }\n };\n}\nconst headScheme = {\n id: R.bytes32,\n number: R.uint32,\n timestamp: R.uint64,\n parentID: R.bytes32,\n txsFeatures: V.optional(R.uint32),\n gasLimit: R.uint64\n};\nconst blockScheme = {\n id: R.bytes32,\n number: R.uint32,\n size: R.uint32,\n parentID: R.bytes32,\n timestamp: R.uint64,\n gasLimit: R.uint64,\n beneficiary: R.address,\n gasUsed: R.uint64,\n totalScore: R.uint64,\n txsRoot: R.bytes32,\n txsFeatures: V.optional(R.uint32),\n stateRoot: R.bytes32,\n receiptsRoot: R.bytes32,\n signer: R.address,\n com: V.optional(R.bool),\n isFinalized: V.optional(R.bool),\n isTrunk: R.bool,\n transactions: [R.bytes32]\n};\nconst txScheme = {\n id: R.bytes32,\n chainTag: R.uint8,\n blockRef: R.bytes8,\n expiration: R.uint32,\n gasPriceCoef: R.uint8,\n gas: R.uint64,\n origin: R.address,\n delegator: V.nullable(V.optional(R.address)),\n nonce: R.hexString,\n dependsOn: V.nullable(R.bytes32),\n size: R.uint32,\n clauses: [{\n to: V.nullable(R.address),\n value: R.hexString,\n data: R.bytes\n }],\n meta: V.nullable({\n blockID: R.bytes32,\n blockNumber: R.uint32,\n blockTimestamp: R.uint64\n })\n};\nconst logMetaScheme = {\n blockID: R.bytes32,\n blockNumber: R.uint32,\n blockTimestamp: R.uint64,\n txID: R.bytes32,\n txOrigin: R.address,\n clauseIndex: R.uint32\n};\nconst eventScheme = {\n address: R.address,\n topics: [R.bytes32],\n data: R.bytes,\n};\nconst eventWithMetaScheme = Object.assign(Object.assign({}, eventScheme), { meta: logMetaScheme });\nconst transferScheme = {\n sender: R.address,\n recipient: R.address,\n amount: R.hexString,\n};\nconst transferWithMetaScheme = Object.assign(Object.assign({}, transferScheme), { meta: logMetaScheme });\nconst receiptScheme = {\n gasUsed: R.uint64,\n gasPayer: R.address,\n paid: R.hexString,\n reward: R.hexString,\n reverted: R.bool,\n outputs: [{\n contractAddress: V.nullable(R.address),\n events: [eventScheme],\n transfers: [transferScheme]\n }],\n meta: {\n blockID: R.bytes32,\n blockNumber: R.uint32,\n blockTimestamp: R.uint64,\n txID: R.bytes32,\n txOrigin: R.address\n }\n};\nconst vmOutputScheme = {\n data: R.bytes,\n vmError: R.string,\n gasUsed: R.uint64,\n reverted: R.bool,\n revertReason: () => '',\n events: [{\n address: R.address,\n topics: [R.bytes32],\n data: R.bytes,\n }],\n transfers: [{\n sender: R.address,\n recipient: R.address,\n amount: R.hexString,\n }]\n};\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJpdmVyLWd1YXJkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2RyaXZlci1ndWFyZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEtBQUssQ0FBQyxNQUFNLGNBQWMsQ0FBQTtBQUNqQyxPQUFPLEtBQUssQ0FBQyxNQUFNLFNBQVMsQ0FBQTtBQUU1QixNQUFNLFVBQVUsY0FBYyxDQUMxQixNQUFxQixFQUNyQixVQUFpQztJQUdqQyxNQUFNLElBQUksR0FBRyxDQUFJLEdBQU0sRUFBRSxNQUFtQixFQUFFLElBQVksRUFBRSxFQUFFO1FBQzFELElBQUk7WUFDQSxDQUFDLENBQUMsUUFBUSxDQUFDLEdBQUcsRUFBRSxNQUFNLEVBQUUsSUFBSSxDQUFDLENBQUE7U0FDaEM7UUFBQyxPQUFPLEdBQUcsRUFBRTtZQUNWLElBQUksVUFBVSxFQUFFO2dCQUNaLFVBQVUsQ0FBQyxHQUFHLENBQUMsQ0FBQTthQUNsQjtpQkFBTTtnQkFDSCxzQ0FBc0M7Z0JBQ3RDLE9BQU8sQ0FBQyxJQUFJLENBQUMsc0NBQXNDLEdBQUcsQ0FBQyxPQUFPLEVBQUUsQ0FBQyxDQUFBO2FBQ3BFO1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FTLEVBQUUsQ0FBQyxjQUFjLENBQUM7U0FDOUIsQ0FBQztJQUNGLElBQUksRUFBRTtRQUNGLE9BQU8sRUFBRSxDQUFDLENBQUMsT0FBTztRQUNsQixXQUFXLEVBQUUsQ0FBQyxDQUFDLE1BQU07UUFDckIsY0FBYyxFQUFFLENBQUMsQ0FBQyxNQUFNO1FBQ3hCLElBQUksRUFBRSxDQUFDLENBQUMsT0FBTztRQUNmLFFBQVEsRUFBRSxDQUFDLENBQUMsT0FBTztLQUN0QjtDQUNKLENBQUE7QUFFRCxNQUFNLGNBQWMsR0FBK0I7SUFDL0MsSUFBSSxFQUFFLENBQUMsQ0FBQyxLQUFLO0lBQ2IsT0FBTyxFQUFFLENBQUMsQ0FBQyxNQUFNO0lBQ2pCLE9BQU8sRUFBRSxDQUFDLENBQUMsTUFBTTtJQUNqQixRQUFRLEVBQUUsQ0FBQyxDQUFDLElBQUk7SUFDaEIsWUFBWSxFQUFFLEdBQUcsRUFBRSxDQUFDLEVBQUU7SUFDdEIsTUFBTSxFQUFFLENBQUM7WUFDTCxPQUFPLEVBQUUsQ0FBQyxDQUFDLE9BQU87WUFDbEIsTUFBTSxFQUFFLENBQUMsQ0FBQyxDQUFDLE9BQU8sQ0FBQztZQUNuQixJQUFJLEVBQUUsQ0FBQyxDQUFDLEtBQUs7U0FDaEIsQ0FBQztJQUNGLFNBQVMsRUFBRSxDQUFDO1lBQ1IsTUFBTSxFQUFFLENBQUMsQ0FBQyxPQUFPO1lBQ2pCLFNBQVMsRUFBRSxDQUFDLENBQUMsT0FBTztZQUNwQixNQUFNLEVBQUUsQ0FBQyxDQUFDLFNBQVM7U0FDdEIsQ0FBQztDQUNMLENBQUEifQ==","import { newThor } from './thor';\nimport { newVendor } from './vendor';\nimport { newDriverGuard } from './driver-guard';\n/**\n * Class implements Connex interface\n */\nexport class Framework {\n /**\n * constructor\n * @param driver the driver instance\n */\n constructor(driver) {\n this.thor = newThor(driver);\n this.vendor = newVendor(driver);\n }\n /**\n * create a wrapper for driver, to validate responses. it should be helpful to make sure driver is properly\n * implemented in development stage.\n * @param driver the driver to be wrapped\n * @param errorHandler optional error handler. If omitted, error message will be printed via console.warn.\n */\n static guardDriver(driver, errorHandler) {\n return newDriverGuard(driver, errorHandler);\n }\n}\nexport { newVendor };\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLFFBQVEsQ0FBQTtBQUNoQyxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sVUFBVSxDQUFBO0FBQ3BDLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQTtBQUUvQzs7R0FFRztBQUNILE1BQU0sT0FBTyxTQUFTO0lBaUJsQjs7O09BR0c7SUFDSCxZQUFZLE1BQXFCO1FBQzdCLElBQUksQ0FBQyxJQUFJLEdBQUcsT0FBTyxDQUFDLE1BQU0sQ0FBQyxDQUFBO1FBQzNCLElBQUksQ0FBQyxNQUFNLEdBQUcsU0FBUyxDQUFDLE1BQU0sQ0FBQyxDQUFBO0lBQ25DLENBQUM7SUF2QkQ7Ozs7O09BS0c7SUFDSSxNQUFNLENBQUMsV0FBVyxDQUNyQixNQUFxQixFQUNyQixZQUFtQztRQUVuQyxPQUFPLGNBQWMsQ0FBQyxNQUFNLEVBQUUsWUFBWSxDQUFDLENBQUE7SUFDL0MsQ0FBQztDQWFKO0FBRUQsT0FBTyxFQUFFLFNBQVMsRUFBRSxDQUFBIn0=","export const genesisBlocks = {\n main: {\n number: 0,\n id: '0x00000000851caf3cfdb6e899cf5958bfb1ac3413d346d43539627e6be7ec1b4a',\n size: 170,\n parentID: '0xffffffff53616c757465202620526573706563742c20457468657265756d2100',\n timestamp: 1530316800,\n gasLimit: 10000000,\n beneficiary: '0x0000000000000000000000000000000000000000',\n gasUsed: 0,\n totalScore: 0,\n txsRoot: '0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0',\n txsFeatures: 0,\n stateRoot: '0x09bfdf9e24dd5cd5b63f3c1b5d58b97ff02ca0490214a021ed7d99b93867839c',\n receiptsRoot: '0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0',\n signer: '0x0000000000000000000000000000000000000000',\n isTrunk: true,\n transactions: []\n },\n test: {\n number: 0,\n id: '0x000000000b2bce3c70bc649a02749e8687721b09ed2e15997f466536b20bb127',\n size: 170,\n parentID: '0xffffffff00000000000000000000000000000000000000000000000000000000',\n timestamp: 1530014400,\n gasLimit: 10000000,\n beneficiary: '0x0000000000000000000000000000000000000000',\n gasUsed: 0,\n totalScore: 0,\n txsRoot: '0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0',\n txsFeatures: 0,\n stateRoot: '0x4ec3af0acbad1ae467ad569337d2fe8576fe303928d35b8cdd91de47e9ac84bb',\n receiptsRoot: '0x45b0cfc220ceec5b7c1c62c4d4193d38e4eba48e8815729ce75f9c0ab0e4c1c0',\n signer: '0x0000000000000000000000000000000000000000',\n isTrunk: true,\n transactions: []\n }\n};\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxhQUFhLEdBQUc7SUFDekIsSUFBSSxFQUFFO1FBQ0YsTUFBTSxFQUFFLENBQUM7UUFDVCxFQUFFLEVBQUUsb0VBQW9FO1FBQ3hFLElBQUksRUFBRSxHQUFHO1FBQ1QsUUFBUSxFQUFFLG9FQUFvRTtRQUM5RSxTQUFTLEVBQUUsVUFBVTtRQUNyQixRQUFRLEVBQUUsUUFBUTtRQUNsQixXQUFXLEVBQUUsNENBQTRDO1FBQ3pELE9BQU8sRUFBRSxDQUFDO1FBQ1YsVUFBVSxFQUFFLENBQUM7UUFDYixPQUFPLEVBQUUsb0VBQW9FO1FBQzdFLFdBQVcsRUFBRSxDQUFDO1FBQ2QsU0FBUyxFQUFFLG9FQUFvRTtRQUMvRSxZQUFZLEVBQUUsb0VBQW9FO1FBQ2xGLE1BQU0sRUFBRSw0Q0FBNEM7UUFDcEQsT0FBTyxFQUFFLElBQUk7UUFDYixZQUFZLEVBQUUsRUFBRTtLQUNuQjtJQUNELElBQUksRUFBRTtRQUNGLE1BQU0sRUFBRSxDQUFDO1FBQ1QsRUFBRSxFQUFFLG9FQUFvRTtRQUN4RSxJQUFJLEVBQUUsR0FBRztRQUNULFFBQVEsRUFBRSxvRUFBb0U7UUFDOUUsU0FBUyxFQUFFLFVBQVU7UUFDckIsUUFBUSxFQUFFLFFBQVE7UUFDbEIsV0FBVyxFQUFFLDRDQUE0QztRQUN6RCxPQUFPLEVBQUUsQ0FBQztRQUNWLFVBQVUsRUFBRSxDQUFDO1FBQ2IsT0FBTyxFQUFFLG9FQUFvRTtRQUM3RSxXQUFXLEVBQUUsQ0FBQztRQUNkLFNBQVMsRUFBRSxvRUFBb0U7UUFDL0UsWUFBWSxFQUFFLG9FQUFvRTtRQUNsRixNQUFNLEVBQUUsNENBQTRDO1FBQ3BELE9BQU8sRUFBRSxJQUFJO1FBQ2IsWUFBWSxFQUFFLEVBQUU7S0FDbkI7Q0FDSixDQUFBIn0=","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { abi } from 'thor-devkit';\nimport * as R from '@vechain/connex-framework/dist/rules';\n/** ports connex v1 to connex v2 */\nexport function compat1(connex1) {\n const t1 = connex1.thor;\n const v1 = connex1.vendor;\n return {\n get thor() {\n const t2 = {\n get genesis() { return t1.genesis; },\n get status() {\n const s = t1.status;\n return Object.assign(Object.assign({}, s), { head: Object.assign(Object.assign({}, s.head), { gasLimit: 20000000 }), finalized: '0000000000000000000000000000000000000000000000000000000000000000' });\n },\n ticker: () => {\n const t = t1.ticker();\n return {\n next: () => t.next().then(h => (Object.assign(Object.assign({}, h), { gasLimit: 20000000 })))\n };\n },\n account: addr => {\n const a1 = t1.account(addr);\n return {\n get address() { return a1.address; },\n get: () => a1.get(),\n getCode: () => a1.getCode(),\n getStorage: key => a1.getStorage(key),\n method: jsonABI => newMethod(a1, jsonABI, this),\n event: jsonABI => newEvent(a1, jsonABI, this)\n };\n },\n block: rev => t1.block(rev),\n transaction: id => t1.transaction(id),\n filter: (kind, criteria) => {\n const f1 = t1.filter(kind);\n f1.criteria(criteria);\n return {\n range(r) { f1.range(r); return this; },\n order(o) { f1.order(o); return this; },\n cache() { console.warn('filter :cache is not supported in compat mode'); return this; },\n apply(offset, limit) {\n return f1.apply(offset, limit);\n }\n };\n },\n explain: (clauses) => {\n const e1 = t1.explain();\n return {\n caller(addr) { e1.caller(addr); return this; },\n gas(gas) { e1.gas(gas); return this; },\n gasPrice(gp) { e1.gasPrice(gp); return this; },\n gasPayer(addr) { console.warn(\"gasPayer is not supported in compat mode\"); return this; },\n cache() { console.warn('explainer :cache is not supported in compat mode'); return this; },\n execute: () => e1.execute(clauses)\n };\n }\n };\n return t2;\n },\n get vendor() {\n return {\n sign: (kind, msg) => {\n let onAccepted;\n if (kind === 'tx') {\n const s1 = v1.sign(kind);\n const s2 = {\n signer(addr) { s1.signer(addr); return this; },\n gas(gas) { s1.gas(gas); return this; },\n dependsOn(txid) { s1.dependsOn(txid); return this; },\n link(url) { s1.link(url); return this; },\n comment(text) { s1.comment(text); return this; },\n delegate(url) {\n R.ensure(typeof url === 'string', `arg0: expected url string`);\n s1.delegate((unsignedTx) => __awaiter(this, void 0, void 0, function* () {\n const res = yield fetch(url, {\n method: 'POST',\n body: JSON.stringify(unsignedTx),\n headers: {\n \"Content-Type\": 'application/json'\n }\n });\n return res.json();\n }));\n return this;\n },\n accepted(cb) { onAccepted = cb; return this; },\n request: () => {\n onAccepted && onAccepted();\n return s1.request(msg);\n }\n };\n return s2;\n }\n else {\n const s1 = v1.sign(kind);\n const s2 = {\n signer(addr) { s1.signer(addr); return this; },\n link(url) { s1.link(url); return this; },\n accepted(cb) {\n onAccepted = cb;\n return this;\n },\n request: () => {\n onAccepted && onAccepted();\n return s1.request(msg);\n }\n };\n return s2;\n }\n }\n };\n }\n };\n}\nconst newMethod = (acc, jsonABI, connex) => {\n const coder = new abi.Function(JSON.parse(JSON.stringify(jsonABI)));\n let value = 0;\n const opts = {};\n return {\n value(val) {\n value = R.test(val, R.bigInt, 'arg0');\n return this;\n },\n caller(addr) {\n opts.caller = R.test(addr, R.address, 'arg0').toLowerCase();\n return this;\n },\n gas(gas) {\n opts.gas = R.test(gas, R.uint64, 'arg0');\n return this;\n },\n gasPrice(gp) {\n opts.gasPrice = R.test(gp, R.bigInt, 'arg0').toString().toLowerCase();\n return this;\n },\n gasPayer(addr) { console.warn(\"gasPayer is not supported in compat mode\"); return this; },\n cache(hints) { console.warn(\"account.method :cache is not supported in compat mode\"); return this; },\n asClause: (...args) => {\n const inputsLen = (coder.definition.inputs || []).length;\n R.ensure(inputsLen === args.length, `args count expected ${inputsLen}`);\n try {\n const data = coder.encode(...args);\n return {\n to: acc.address,\n value: value.toString().toLowerCase(),\n data\n };\n }\n catch (err) {\n throw new R.BadParameter(`args can not be encoded (${err.message})`);\n }\n },\n call(...args) {\n const clause = this.asClause(...args);\n const explainer = connex.thor.explain([clause]);\n if (opts.caller)\n explainer.caller(opts.caller);\n if (opts.gas)\n explainer.gas(opts.gas);\n if (opts.gasPrice)\n explainer.gasPrice(opts.gasPrice);\n return explainer.execute().then(outputs => {\n const out = Object.assign(Object.assign({}, outputs[0]), { decoded: {} });\n if (!out.reverted && out.data !== '0x') {\n out.decoded = coder.decode(out.data);\n }\n return out;\n });\n },\n transact(...args) {\n const clause = this.asClause(...args);\n return connex.vendor.sign('tx', [clause]);\n }\n };\n};\nconst newEvent = (acc, jsonABI, connex) => {\n const coder = new abi.Event(JSON.parse(JSON.stringify(jsonABI)));\n const encode = (indexed) => {\n const topics = coder.encode(indexed);\n return {\n address: acc.address,\n topic0: topics[0] || undefined,\n topic1: topics[1] || undefined,\n topic2: topics[2] || undefined,\n topic3: topics[3] || undefined,\n topic4: topics[4] || undefined\n };\n };\n return {\n asCriteria: indexed => {\n try {\n return encode(indexed);\n }\n catch (err) {\n throw new R.BadParameter(`arg0: can not be encoded (${err.message})`);\n }\n },\n filter(indexed) {\n R.test(indexed, [{}], 'arg0');\n if (indexed.length === 0) {\n indexed = [{}];\n }\n const criteriaSet = indexed.map((o, i) => {\n try {\n return encode(o);\n }\n catch (err) {\n throw new R.BadParameter(`arg0.#${i}: can not be encoded (${err.message})`);\n }\n });\n const filter = connex.thor.filter('event', criteriaSet);\n return {\n range(r) { filter.range(r); return this; },\n order(o) { filter.order(o); return this; },\n cache() { console.warn('account.event :cache is not supported in compat mode'); return this; },\n apply(offset, limit) {\n return filter.apply(offset, limit).then(events => events.map(e => {\n const event = Object.assign(Object.assign({}, e), { decoded: {} });\n event.decoded = coder.decode(event.data, event.topics);\n return event;\n }));\n }\n };\n }\n };\n};\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcGF0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NvbXBhdC50cyJdLCJuYW1lcy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SxDQUFDLE1BQU0sQ0FBQyxFQUFFLENBQUMsTUFBTSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsRUFBRTt3QkFDN0QsTUFBTSxLQUFLLG1DQUF5RSxDQUFDLEtBQUUsT0FBTyxFQUFFLEVBQUUsR0FBQyxDQUFBO3dCQUNuRyxLQUFLLENBQUMsT0FBTyxHQUFHLEtBQUssQ0FBQyxNQUFNLENBQUMsS0FBSyxDQUFDLElBQUksRUFBRSxLQUFLLENBQUMsTUFBTSxDQUFDLENBQUE7d0JBQ3RELE9BQU8sS0FBSyxDQUFBO29CQUNoQixDQUFDLENBQUMsQ0FBQyxDQUFBO2dCQUNQLENBQUM7YUFDSixDQUFBO1FBQ0wsQ0FBQztLQUNKLENBQUE7QUFDTCxDQUFDLENBQUEifQ==","/** class to make promise interruptable */\nexport class PromInt {\n constructor() {\n this.rejectors = new Set();\n }\n /**\n * interrupt all wrapped promises\n */\n interrupt() {\n const rejectors = this.rejectors;\n this.rejectors = new Set();\n rejectors.forEach(r => r(new InterruptedError()));\n }\n /**\n * wrap the promise\n * @param p the given promise\n * @returns the wrapped promise which will raise InterruptedError on interruption\n */\n wrap(p) {\n return new Promise((resolve, reject) => {\n const rejectors = this.rejectors;\n rejectors.add(reject);\n void p.then(resolve)\n .catch(reject)\n .then(() => rejectors.delete(reject));\n });\n }\n}\nexport class InterruptedError extends Error {\n constructor() {\n super('promise interrupted');\n }\n}\nInterruptedError.prototype.name = 'InterruptedError';\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvbWludC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9wcm9taW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLDBDQUEwQztBQUMxQyxNQUFNLE9BQU8sT0FBTztJQUFwQjtRQUNZLGNBQVMsR0FBRyxJQUFJLEdBQUcsRUFBd0IsQ0FBQTtJQTJCdkQsQ0FBQztJQXpCRzs7T0FFRztJQUNJLFNBQVM7UUFDWixNQUFNLFNBQVMsR0FBRyxJQUFJLENBQUMsU0FBUyxDQUFBO1FBQ2hDLElBQUksQ0FBQyxTQUFTLEdBQUcsSUFBSSxHQUFHLEVBQUUsQ0FBQTtRQUUxQixTQUFTLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDLElBQUksZ0JBQWdCLEVBQUUsQ0FBQyxDQUFDLENBQUE7SUFDckQsQ0FBQztJQUVEOzs7O09BSUc7SUFDSSxJQUFJLENBQUksQ0FBYTtRQUN4QixPQUFPLElBQUksT0FBTyxDQUFJLENBQUMsT0FBTyxFQUFFLE1BQU0sRUFBRSxFQUFFO1lBQ3RDLE1BQU0sU0FBUyxHQUFHLElBQUksQ0FBQyxTQUFTLENBQUE7WUFDaEMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxNQUFNLENBQUMsQ0FBQTtZQUVyQixLQUFLLENBQUMsQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDO2lCQUNmLEtBQUssQ0FBQyxNQUFNLENBQUM7aUJBQ2IsSUFBSSxDQUFDLEdBQUcsRUFBRSxDQUFDLFNBQVMsQ0FBQyxNQUFNLENBQUMsTUFBTSxDQUFDLENBQUMsQ0FBQTtRQUM3QyxDQUFDLENBQUMsQ0FBQTtJQUNOLENBQUM7Q0FDSjtBQUVELE1BQU0sT0FBTyxnQkFBaUIsU0FBUSxLQUFLO0lBQ3ZDO1FBQ0ksS0FBSyxDQUFDLHFCQUFxQixDQUFDLENBQUE7SUFDaEMsQ0FBQztDQUNKO0FBRUQsZ0JBQWdCLENBQUMsU0FBUyxDQUFDLElBQUksR0FBRyxrQkFBa0IsQ0FBQSJ9","import blake from 'blakejs';\nimport { Buffer } from 'buffer';\n/**\n * computes blake2b 256bit hash of given data\n * @param data one or more Buffer | string\n */\nexport function blake2b256(...data) {\n const ctx = blake.blake2bInit(32);\n data.forEach(d => {\n if (Buffer.isBuffer(d)) {\n blake.blake2bUpdate(ctx, d);\n }\n else {\n blake.blake2bUpdate(ctx, Buffer.from(d, 'utf8'));\n }\n });\n return Buffer.from(blake.blake2bFinal(ctx));\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxha2UyYi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9ibGFrZTJiLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQVEsS0FBSyxNQUFNLFNBQVMsQ0FBQTtBQUM1QixPQUFPLEVBQUUsTUFBTSxFQUFFLE1BQU0sUUFBUSxDQUFBO0FBRS9COzs7R0FHRztBQUNILE1BQU0sVUFBVSxVQUFVLENBQUMsR0FBRyxJQUE0QjtJQUN0RCxNQUFNLEdBQUcsR0FBRyxLQUFLLENBQUMsV0FBVyxDQUFDLEVBQUUsQ0FBQyxDQUFBO0lBQ2pDLElBQUksQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLEVBQUU7UUFDYixJQUFJLE1BQU0sQ0FBQyxRQUFRLENBQUMsQ0FBQyxDQUFDLEVBQUU7WUFDcEIsS0FBSyxDQUFDLGFBQWEsQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFDLENBQUE7U0FDOUI7YUFBTTtZQUNILEtBQUssQ0FBQyxhQUFhLENBQUMsR0FBRyxFQUFFLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQyxFQUFFLE1BQU0sQ0FBQyxDQUFDLENBQUE7U0FDbkQ7SUFDTCxDQUFDLENBQUMsQ0FBQTtJQUNGLE9BQU8sTUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsWUFBWSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUE7QUFDL0MsQ0FBQyJ9","import { blake2b256 } from \"thor-devkit\";\nexport function newFilter(bits, k) {\n const nBits = bits.length * 8;\n return {\n contains(key) {\n let hash = blake2b256(key).readUInt32BE(0);\n const delta = (hash >>> 17) | (hash << 15 >>> 0);\n for (let i = 0; i < k; i++) {\n const bitPos = hash % nBits;\n const index = bitPos >>> 3;\n const bit = 1 << (bitPos % 8);\n if (!(bits[index] & bit)) {\n return false;\n }\n hash = (hash + delta) >>> 0;\n }\n return true;\n }\n };\n}\n// // test vector\n// const bits = Buffer.from('63b2a4758c74e246c818e080b870437f5327a15cf81172512d98e61c54361a851ba8f108420e6b2b74a4196fb8e7bfe2b96c985e49abddb21c0600063997c93edb7c54921551600bcfc80fb62bfcd045c030b328eb8b5498e06dce610d22e901201226226441b8da094141526e0e58f5baf53064d63d598a4024bf68e0', 'hex')\n// const f = newFilter(bits, 6)\n// for (let i = 0; i < 100; i++) {\n// if (!f.contains(Buffer.from(i + ''))) {\n// throw new Error('should return true')\n// }\n// }\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmxvb20uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvYmxvb20udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFVBQVUsRUFBRSxNQUFNLGFBQWEsQ0FBQTtBQUV4QyxNQUFNLFVBQVUsU0FBUyxDQUFDLElBQVksRUFBRSxDQUFTO0lBQzdDLE1BQU0sS0FBSyxHQUFHLElBQUksQ0FBQyxNQUFNLEdBQUcsQ0FBQyxDQUFBO0lBQzdCLE9BQU87UUFDSCxRQUFRLENBQUMsR0FBVztZQUNoQixJQUFJLElBQUksR0FBRyxVQUFVLENBQUMsR0FBRyxDQUFDLENBQUMsWUFBWSxDQUFDLENBQUMsQ0FBQyxDQUFBO1lBQzFDLE1BQU0sS0FBSyxHQUFHLENBQUMsSUFBSSxLQUFLLEVBQUUsQ0FBQyxHQUFHLENBQUMsSUFBSSxJQUFJLEVBQUUsS0FBSyxDQUFDLENBQUMsQ0FBQTtZQUNoRCxLQUFLLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLEdBQUcsQ0FBQyxFQUFFLENBQUMsRUFBRSxFQUFFO2dCQUN4QixNQUFNLE1BQU0sR0FBRyxJQUFJLEdBQUcsS0FBSyxDQUFBO2dCQUMzQixNQUFNLEtBQUssR0FBRyxNQUFNLEtBQUssQ0FBQyxDQUFBO2dCQUMxQixNQUFNLEdBQUcsR0FBRyxDQUFDLElBQUksQ0FBQyxNQUFNLEdBQUcsQ0FBQyxDQUFDLENBQUE7Z0JBQzdCLElBQUksQ0FBQyxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsR0FBRyxHQUFHLENBQUMsRUFBRTtvQkFDdEIsT0FBTyxLQUFLLENBQUE7aUJBQ2Y7Z0JBQ0QsSUFBSSxHQUFHLENBQUMsSUFBSSxHQUFHLEtBQUssQ0FBQyxLQUFLLENBQUMsQ0FBQTthQUM5QjtZQUNELE9BQU8sSUFBSSxDQUFBO1FBQ2YsQ0FBQztLQUNKLENBQUE7QUFDTCxDQUFDO0FBQ0QsaUJBQWlCO0FBQ2pCLGdTQUFnUztBQUNoUywrQkFBK0I7QUFDL0Isa0NBQWtDO0FBQ2xDLDhDQUE4QztBQUM5QyxnREFBZ0Q7QUFDaEQsUUFBUTtBQUNSLElBQUkifQ==","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport * as LRU from 'lru-cache';\nimport BigNumber from 'bignumber.js';\nimport { newFilter } from './bloom';\nconst WINDOW_LEN = 12;\nexport class Cache {\n constructor() {\n this.irreversible = {\n blocks: new LRU(256),\n txs: new LRU(512),\n receipts: new LRU(512)\n };\n this.window = [];\n }\n handleNewBlock(head, bloom, block) {\n while (this.window.length > 0) {\n const top = this.window[this.window.length - 1];\n if (top.id === head.id) {\n return;\n }\n if (top.id === head.parentID) {\n break;\n }\n this.window.pop();\n }\n this.window.push(Object.assign(Object.assign({}, head), { bloom: bloom ? newFilter(Buffer.from(bloom.bits.slice(2), 'hex'), bloom.k) : undefined, block, accounts: new Map(), txs: new Map(), receipts: new Map(), tied: new Map() }));\n // shift out old slots and move cached items into frozen cache\n while (this.window.length > WINDOW_LEN) {\n const bottom = this.window.shift();\n bottom.txs.forEach((v, k) => this.irreversible.txs.set(k, v));\n bottom.receipts.forEach((v, k) => this.irreversible.receipts.set(k, v));\n if (bottom.block) {\n this.irreversible.blocks.set(bottom.block.id, bottom.block);\n this.irreversible.blocks.set(bottom.block.number, bottom.block);\n }\n }\n }\n getBlock(revision, fetch) {\n return __awaiter(this, void 0, void 0, function* () {\n let block = this.irreversible.blocks.get(revision) || null;\n if (block) {\n return block;\n }\n const { slot } = this.findSlot(revision);\n if (slot && slot.block) {\n return slot.block;\n }\n block = yield fetch();\n if (block) {\n if (slot && slot.id === block.id) {\n slot.block = block;\n }\n if (this.isIrreversible(block.number)) {\n this.irreversible.blocks.set(block.id, block);\n if (block.isTrunk) {\n this.irreversible.blocks.set(block.number, block);\n }\n }\n }\n return block;\n });\n }\n getTx(txid, fetch) {\n return __awaiter(this, void 0, void 0, function* () {\n let tx = this.irreversible.txs.get(txid) || null;\n if (tx) {\n return tx;\n }\n for (const slot of this.window) {\n tx = slot.txs.get(txid) || null;\n if (tx) {\n return tx;\n }\n }\n tx = yield fetch();\n if (tx && tx.meta) { // only cache non-pending tx\n const { slot } = this.findSlot(tx.meta.blockID);\n if (slot) {\n slot.txs.set(txid, tx);\n }\n if (this.isIrreversible(tx.meta.blockNumber)) {\n this.irreversible.txs.set(txid, tx);\n }\n }\n return tx;\n });\n }\n getReceipt(txid, fetch) {\n return __awaiter(this, void 0, void 0, function* () {\n let receipt = this.irreversible.receipts.get(txid) || null;\n if (receipt) {\n return receipt;\n }\n for (const slot of this.window) {\n receipt = slot.receipts.get(txid) || null;\n if (receipt) {\n return receipt;\n }\n }\n receipt = yield fetch();\n if (receipt) {\n const { slot } = this.findSlot(receipt.meta.blockID);\n if (slot) {\n slot.receipts.set(txid, receipt);\n }\n if (this.isIrreversible(receipt.meta.blockNumber)) {\n this.irreversible.receipts.set(txid, receipt);\n }\n }\n return receipt;\n });\n }\n getAccount(addr, revision, fetch) {\n return __awaiter(this, void 0, void 0, function* () {\n const found = this.findSlot(revision);\n for (let i = found.index; i >= 0; i--) {\n const slot = this.window[i];\n const acc = slot.accounts.get(addr);\n if (acc) {\n if (i !== found.index) {\n found.slot.accounts.set(addr, acc);\n }\n return acc.snapshot(found.slot.timestamp);\n }\n if (!slot.bloom || testBytesHex(slot.bloom, addr)) {\n // account might be dirty\n break;\n }\n }\n const accObj = yield fetch();\n if (found.slot) {\n found.slot.accounts.set(addr, new Account(accObj, found.slot.timestamp));\n }\n return accObj;\n });\n }\n /**\n * get cached entry which is tied to a batch of addresses\n * @param key the cache key\n * @param revision block id where cache bound to\n * @param fetch to fetch value when cache missing\n * @param hints array of tied addresses, as the gist to invalidate cache key. undefined means the key is always\n * invalidated on different revision.\n */\n getTied(key, revision, fetch, hints) {\n return __awaiter(this, void 0, void 0, function* () {\n const found = this.findSlot(revision);\n for (let i = found.index; i >= 0; i--) {\n const slot = this.window[i];\n const v = slot.tied.get(key);\n if (v) {\n if (i !== found.index) {\n found.slot.tied.set(key, v);\n }\n return v;\n }\n if (!slot.bloom || !hints) {\n break;\n }\n // if hints.length === 0, never invalidate cache\n if (hints.some(t => testBytesHex(slot.bloom, t))) {\n // might be dirty\n break;\n }\n }\n const value = yield fetch();\n if (found.slot) {\n found.slot.tied.set(key, value);\n }\n return value;\n });\n }\n findSlot(revision) {\n const index = this.window.findIndex(s => s.id === revision || s.number === revision);\n if (index >= 0) {\n return { slot: this.window[index], index };\n }\n return { index };\n }\n isIrreversible(n) {\n if (this.window.length > 0) {\n return n < this.window[this.window.length - 1].number - WINDOW_LEN;\n }\n return false;\n }\n}\nfunction testBytesHex(filter, hex) {\n let buf = Buffer.from(hex.slice(2), 'hex');\n const nzIndex = buf.findIndex(v => v !== 0);\n if (nzIndex < 0) {\n buf = Buffer.alloc(0);\n }\n else {\n buf = buf.slice(nzIndex);\n }\n return filter.contains(buf);\n}\nconst ENERGY_GROWTH_RATE = 5000000000;\nclass Account {\n constructor(obj, initTimestamp) {\n this.obj = obj;\n this.initTimestamp = initTimestamp;\n }\n snapshot(timestamp) {\n return Object.assign(Object.assign({}, this.obj), { energy: this.energyAt(timestamp) });\n }\n energyAt(timestamp) {\n if (timestamp < this.initTimestamp) {\n return this.obj.energy;\n }\n return '0x' + new BigNumber(this.obj.balance)\n .times(timestamp - this.initTimestamp)\n .times(ENERGY_GROWTH_RATE)\n .dividedToIntegerBy(1e18)\n .plus(this.obj.energy)\n .toString(16);\n }\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FjaGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvY2FjaGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7O0FBQUEsT0FBTyxLQUFLLEdBQUcsTUFBTSxXQUFXLENBQUE7QUFDaEMsT0FBTyxTQUFTLE1BQU0sY0FBYyxDQUFBO0FBQ3BDLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxTQUFTLENBQUE7QUFFbkMsTUFBTSxVQUFVLEdBQUcsRUFBRSxDQUFBO0FBWXJCLE1BQU0sT0FBTyxLQUFLO0lBQWxCO1FBQ3FCLGlCQUFZLEdBQUc7WUFDNUIsTUFBTSxFQUFFLElBQUksR0FBRyxDQUFxQyxHQUFHLENBQUM7WUFDeEQsR0FBRyxFQUFFLElBQUksR0FBR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0JBQWtCLENBQUM7YUFDekIsa0JBQWtCLENBQUMsSUFBSSxDQUFDO2FBQ3hCLElBQUksQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLE1BQU0sQ0FBQzthQUNyQixRQUFRLENBQUMsRUFBRSxDQUFDLENBQUE7SUFDckIsQ0FBQztDQUNKIn0=","export function sleep(ms) {\n return new Promise(resolve => setTimeout(resolve, ms));\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbW9uLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NvbW1vbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxNQUFNLFVBQVUsS0FBSyxDQUFDLEVBQVU7SUFDNUIsT0FBTyxJQUFJLE9BQU8sQ0FBQyxPQUFPLENBQUMsRUFBRSxDQUFDLFVBQVUsQ0FBQyxPQUFPLEVBQUUsRUFBRSxDQUFDLENBQUMsQ0FBQTtBQUMxRCxDQUFDIn0=","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport { PromInt, InterruptedError } from './promint';\nimport { Cache } from './cache';\nimport { blake2b256 } from 'thor-devkit';\nimport { sleep } from './common';\n/** class implements Connex.Driver leaves out Vendor related methods */\nexport class DriverNoVendor {\n constructor(net, genesis, initialHead) {\n this.net = net;\n this.genesis = genesis;\n this.headResolvers = [];\n this.int = new PromInt();\n this.cache = new Cache();\n // to merge concurrent identical remote requests\n this.pendingRequests = {};\n if (initialHead) {\n this.head = initialHead;\n }\n else {\n this.head = {\n id: genesis.id,\n number: genesis.number,\n timestamp: genesis.timestamp,\n parentID: genesis.parentID,\n txsFeatures: genesis.txsFeatures,\n gasLimit: genesis.gasLimit\n };\n }\n void this.headTrackerLoop();\n }\n // close the driver to prevent mem leak\n close() {\n this.int.interrupt();\n }\n // implementations\n pollHead() {\n return this.int.wrap(new Promise(resolve => {\n this.headResolvers.push(() => resolve(this.head));\n }));\n }\n getBlock(revision) {\n return this.cache.getBlock(revision, () => this.httpGet(`blocks/${revision}`));\n }\n getTransaction(id, allowPending) {\n return this.cache.getTx(id, () => {\n const query = { head: this.head.id };\n if (allowPending) {\n query.pending = 'true';\n }\n return this.httpGet(`transactions/${id}`, query);\n });\n }\n getReceipt(id) {\n return this.cache.getReceipt(id, () => this.httpGet(`transactions/${id}/receipt`, { head: this.head.id }));\n }\n getAccount(addr, revision) {\n return this.cache.getAccount(addr, revision, () => this.httpGet(`accounts/${addr}`, { revision }));\n }\n getCode(addr, revision) {\n return this.cache.getTied(`code-${addr}`, revision, () => this.httpGet(`accounts/${addr}/code`, { revision }));\n }\n getStorage(addr, key, revision) {\n return this.cache.getTied(`storage-${addr}-${key}`, revision, () => this.httpGet(`accounts/${addr}/storage/${key}`, { revision }));\n }\n explain(arg, revision, cacheHints) {\n const cacheKey = `explain-${blake2b256(JSON.stringify(arg)).toString('hex')}`;\n return this.cache.getTied(cacheKey, revision, () => this.httpPost('accounts/*', arg, { revision }), cacheHints);\n }\n filterEventLogs(arg, cacheHints) {\n const cacheKey = `event-${blake2b256(JSON.stringify(arg)).toString('hex')}`;\n return this.cache.getTied(cacheKey, this.head.id, () => this.httpPost('logs/event', arg), cacheHints);\n }\n filterTransferLogs(arg, cacheHints) {\n const cacheKey = `transfer-${blake2b256(JSON.stringify(arg)).toString('hex')}`;\n return this.cache.getTied(cacheKey, this.head.id, () => this.httpPost('logs/transfer', arg), cacheHints);\n }\n signTx(msg, options) {\n throw new Error('signer not implemented');\n }\n signCert(msg, options) {\n throw new Error('signer not implemented');\n }\n //////\n mergeRequest(req, ...keyParts) {\n const key = JSON.stringify(keyParts);\n const pending = this.pendingRequests[key];\n // eslint-disable-next-line @typescript-eslint/no-misused-promises\n if (pending) {\n return pending;\n }\n return this.pendingRequests[key] = (() => __awaiter(this, void 0, void 0, function* () {\n try {\n return yield req();\n }\n finally {\n delete this.pendingRequests[key];\n }\n }))();\n }\n httpGet(path, query) {\n return this.mergeRequest(() => {\n return this.net.http('GET', path, {\n query,\n validateResponseHeader: this.headerValidator\n });\n }, path, query || '');\n }\n httpPost(path, body, query) {\n return this.mergeRequest(() => {\n return this.net.http('POST', path, {\n query,\n body,\n validateResponseHeader: this.headerValidator\n });\n }, path, query || '', body || '');\n }\n get headerValidator() {\n return (headers) => {\n const xgid = headers['x-genesis-id'];\n if (xgid && xgid !== this.genesis.id) {\n throw new Error(`responded 'x-genesis-id' not matched`);\n }\n };\n }\n emitNewHead() {\n const resolvers = this.headResolvers;\n this.headResolvers = [];\n resolvers.forEach(r => r());\n }\n headTrackerLoop() {\n return __awaiter(this, void 0, void 0, function* () {\n for (;;) {\n let attemptWs = false;\n try {\n const best = yield this.int.wrap(this.httpGet('blocks/best'));\n if (best.id !== this.head.id && best.number >= this.head.number) {\n this.head = {\n id: best.id,\n number: best.number,\n timestamp: best.timestamp,\n parentID: best.parentID,\n txsFeatures: best.txsFeatures,\n gasLimit: best.gasLimit\n };\n this.cache.handleNewBlock(this.head, undefined, best);\n this.emitNewHead();\n if (Date.now() - this.head.timestamp * 1000 < 60 * 1000) {\n // nearly synced\n attemptWs = true;\n }\n }\n }\n catch (err) {\n if (err instanceof InterruptedError) {\n break;\n }\n }\n if (attemptWs) {\n try {\n yield this.trackWs();\n }\n catch (err) {\n if (err instanceof InterruptedError) {\n break;\n }\n }\n }\n try {\n yield this.int.wrap(sleep(8 * 1000));\n }\n catch (_a) {\n break;\n }\n }\n });\n }\n trackWs() {\n return __awaiter(this, void 0, void 0, function* () {\n const wsPath = `subscriptions/beat2?pos=${this.head.parentID}`;\n const wsr = this.net.openWebSocketReader(wsPath);\n try {\n for (;;) {\n const data = yield this.int.wrap(wsr.read());\n const beat = JSON.parse(data);\n if (!beat.obsolete && beat.id !== this.head.id && beat.number >= this.head.number) {\n this.head = {\n id: beat.id,\n number: beat.number,\n timestamp: beat.timestamp,\n parentID: beat.parentID,\n txsFeatures: beat.txsFeatures,\n gasLimit: beat.gasLimit\n };\n this.cache.handleNewBlock(this.head, { k: beat.k, bits: beat.bloom });\n this.emitNewHead();\n }\n }\n }\n finally {\n wsr.close();\n }\n });\n }\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJpdmVyLW5vLXZlbmRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9kcml2ZXItbm8tdmVuZG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUNBLE9BQU8sRUFBRSxPQUFPLEVBQUUsZ0JBQWdCLEVBQUUsTUFBTSxXQUFXLENBQUE7QUFDckQsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLFNBQVMsQ0FBQTtBQUMvQixPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sYUFBYSxDQUFBO0FBQ3hDLE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxVQUFVLENBQUE7QUFFaEMsdUVBQXVFO0FBQ3ZFLE1BQU0sT0FBTyxjQUFjO0lBU3ZCLFlBQ3VCLEdBQVEsRUFDbEIsT0FBMEIsRUFDbkMsV0FBd0M7UUFGckIsUUFBRyxHQUFILEdBQUcsQ0FBSztRQUNsQixZQUFPLEdBQVAsT0FBTyxDQUFtQjtRQVIvQixrQkFBYSxHQUFHLEVBQXVCLENBQUE7UUFDOUIsUUFBRyxHQUFHLElBQUksT0FBTyxFQUFFLENBQUE7UUFDbkIsVUFBSyxHQUFHLElBQUksS0FBSyxFQUFFLENBQ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sSUFBSSxDQUFDLFFBQVE7eUJBQzFCLENBQUE7d0JBQ0QsSUFBSSxDQUFDLEtBQUssQ0FBQyxjQUFjLENBQUMsSUFBSSxDQUFDLElBQUksRUFBRSxFQUFFLENBQUMsRUFBRSxJQUFJLENBQUMsQ0FBQyxFQUFFLElBQUksRUFBRSxJQUFJLENBQUMsS0FBSyxFQUFFLENBQUMsQ0FBQTt3QkFDckUsSUFBSSxDQUFDLFdBQVcsRUFBRSxDQUFBO3FCQUNyQjtpQkFDSjthQUNKO29CQUFTO2dCQUNOLEdBQUcsQ0FBQyxLQUFLLEVBQUUsQ0FBQTthQUNkO1FBQ0wsQ0FBQztLQUFBO0NBQ0oifQ==","import * as WebSocket from 'isomorphic-ws';\nexport class SimpleWebSocketReader {\n constructor(url, timeout = 30 * 1000) {\n this.timeout = timeout;\n this.callbacks = [];\n this.ws = new WebSocket(url);\n this.ws.onmessage = ev => {\n try {\n const cbs = this.callbacks;\n this.callbacks = [];\n cbs.forEach(cb => cb(ev.data));\n }\n catch (err) {\n this.setError(err);\n this.ws.close();\n }\n };\n this.ws.onerror = ev => {\n this.setError(ev.error);\n this.ws.close();\n };\n this.ws.onclose = () => {\n this.setError(new Error('closed'));\n };\n }\n read() {\n return new Promise((resolve, reject) => {\n if (this.error) {\n return reject(this.error);\n }\n const timer = setTimeout(() => {\n reject(new Error('ws read timeout'));\n }, this.timeout);\n this.callbacks.push((data, err) => {\n clearTimeout(timer);\n if (err) {\n return reject(err);\n }\n resolve(data);\n });\n });\n }\n close() {\n this.ws.close();\n }\n setError(err) {\n if (!this.error) {\n this.error = err;\n const cbs = this.callbacks;\n this.callbacks = [];\n cbs.forEach(cb => cb(null, err));\n }\n }\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2ltcGxlLXdlYnNvY2tldC1yZWFkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvc2ltcGxlLXdlYnNvY2tld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CLE1BQU0sR0FBRyxHQUFHLElBQUksQ0FBQyxTQUFTLENBQUE7WUFDMUIsSUFBSSxDQUFDLFNBQVMsR0FBRyxFQUFFLENBQUE7WUFDbkIsR0FBRyxDQUFDLE9BQU8sQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxJQUFJLEVBQUUsR0FBRyxDQUFDLENBQUMsQ0FBQTtTQUNuQztJQUNMLENBQUM7Q0FDSiJ9","var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\nimport Axios from 'axios';\nimport { SimpleWebSocketReader } from './simple-websocket-reader';\nimport { resolve } from 'url';\nimport { Agent as HttpAgent } from 'http';\nimport { Agent as HttpsAgent } from 'https';\n/** class simply implements Net interface */\nexport class SimpleNet {\n constructor(baseURL, timeout = 30 * 1000, wsTimeout = 30 * 1000) {\n this.baseURL = baseURL;\n this.wsTimeout = wsTimeout;\n this.axios = Axios.create({\n httpAgent: new HttpAgent({ keepAlive: true }),\n httpsAgent: new HttpsAgent({ keepAlive: true }),\n baseURL,\n timeout\n });\n }\n http(method, path, params) {\n return __awaiter(this, void 0, void 0, function* () {\n params = params || {};\n try {\n const resp = yield this.axios.request({\n method,\n url: path,\n data: params.body,\n headers: params.headers,\n params: params.query\n });\n if (params.validateResponseHeader) {\n params.validateResponseHeader(resp.headers);\n }\n return resp.data;\n }\n catch (err) {\n if (err.isAxiosError) {\n throw convertError(err);\n }\n throw new Error(`${method} ${resolve(this.baseURL, path)}: ${err.message}`);\n }\n });\n }\n openWebSocketReader(path) {\n const url = resolve(this.baseURL, path)\n .replace(/^http:/i, 'ws:')\n .replace(/^https:/i, 'wss:');\n return new SimpleWebSocketReader(url, this.wsTimeout);\n }\n}\nfunction convertError(err) {\n if (err.response) {\n const resp = err.response;\n if (typeof resp.data === 'string') {\n let text = resp.data.trim();\n if (text.length > 50) {\n text = text.slice(0, 50) + '...';\n }\n return new Error(`${resp.status} ${err.config.method} ${err.config.url}: ${text}`);\n }\n else {\n return new Error(`${resp.status} ${err.config.method} ${err.config.url}`);\n }\n }\n else {\n return new Error(`${err.config.method} ${err.config.url}: ${err.message}`);\n }\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2ltcGxlLW5ldC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9zaW1wbGUtbmV0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7OztBQUNBLE9BQU8sS0FBb0MsTUFBTSxPQUFPLENBQUE7QUFDeEQsT0FBTyxFQUFFLHFCQUFxQixFQUFFLE1BQU0sMkJBQTJCLENBQUE7QUFDakUsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLEtBQUssQ0FBQTtBQUM3QixPQUFPLEVBQUUsS0FBSyxJQUFJLFNBQVMsRUFBRSxNQUFNLE1BQU0sQ0FBQTtBQUN6QyxPQUFPLEVBQUUsS0FBSyxJQUFJLFVBQVUsRUFBRSxNQUFNLE9BQU8sQ0FBQTtBQUUzQyw0Q0FBNEM7QUFDNUMsTUFBTSxPQUFPLFNBQVM7SUFHbEIsWUFDYSxPQUFlLEVBQ3hCLE9BQU8sR0FBRyxFQUFFLEdBQUcsSUFBSSxFQUNGLFlBQVksRUFBRSxHQUFHLElBQUk7UUFGN0IsWUFBTyxHQUFQLE9BQU8sQ0FBUTtRQUVQLGNBQVMsR0FBVCxTQUFTLENBQVk7UUFFdEMsSUFBSSxDQUFDLEtBQUssR0FBRyxLQUFLLEN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BQU0sSUFBSSxHQUFHLENBQUMsTUFBTSxDQUFDLE1BQU0sSUFBSSxHQUFHLENBQUMsTUFBTSxDQUFDLEdBQUcsRUFBRSxDQUFDLENBQUE7U0FDNUU7S0FDSjtTQUFNO1FBQ0gsT0FBTyxJQUFJLEtBQUssQ0FBQyxHQUFHLEdBQUcsQ0FBQyxNQUFNLENBQUMsTUFBTSxJQUFJLEdBQUcsQ0FBQyxNQUFNLENBQUMsR0FBRyxLQUFLLEdBQUcsQ0FBQyxPQUFPLEVBQUUsQ0FBQyxDQUFBO0tBQzdFO0FBQ0wsQ0FBQyJ9","// maps src to library promise\nconst cache = {};\nexport function loadLibrary(src, libName) {\n let lib = cache[src];\n if (!lib) {\n const script = document.createElement('script');\n cache[src] = lib = new Promise((resolve, reject) => {\n script.onload = () => resolve(window[libName]);\n script.onerror = err => reject(new Error(err.toString()));\n });\n script.src = src;\n document.body.appendChild(script);\n }\n return lib;\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2NyaXB0LWxvYWRlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9zY3JpcHQtbG9hZGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLDhCQUE4QjtBQUM5QixNQUFNLEtBQUssR0FBcUMsRUFBRSxDQUFBO0FBRWxELE1BQU0sVUFBVSxXQUFXLENBQUksR0FBVyxFQUFFLE9BQWU7SUFDdkQsSUFBSSxHQUFHLEdBQUcsS0FBSyxDQUFDLEdBQUcsQ0FBMkIsQ0FBQTtJQUM5QyxJQUFJLENBQUMsR0FBRyxFQUFFO1FBQ04sTUFBTSxNQUFNLEdBQUcsUUFBUSxDQUFDLGFBQWEsQ0FBQyxRQUFRLENBQUMsQ0FBQTtRQUMvQyxLQUFLLENBQUMsR0FBRyxDQUFDLEdBQUcsR0FBRyxHQUFHLElBQUksT0FBTyxDQUFDLENBQUMsT0FBTyxFQUFFLE1BQU0sRUFBRSxFQUFFO1lBQy9DLE1BQU0sQ0FBQyxNQUFNLEdBQUcsR0FBRyxFQUFFLENBQUMsT0FBTyxDQUFFLE1BQWdCLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQTtZQUN6RCxNQUFNLENBQUMsT0FBTyxHQUFHLEdBQUcsQ0FBQyxFQUFFLENBQUMsTUFBTSxDQUFDLElBQUksS0FBSyxDQUFDLEdBQUcsQ0FBQyxRQUFRLEVBQUUsQ0FBQyxDQUFDLENBQUE7UUFDN0QsQ0FBQyxDQUFDLENBQUE7UUFDRixNQUFNLENBQUMsR0FBRyxHQUFHLEdBQUcsQ0FBQTtRQUNoQixRQUFRLENBQUMsSUFBSSxDQUFDLFdBQVcsQ0FBQyxNQUFNLENBQUMsQ0FBQTtLQUNwQztJQUNELE9BQU8sR0FBRyxDQUFBO0FBQ2QsQ0FBQyJ9","/* eslint-disable @typescript-eslint/no-unused-vars */\nimport { DriverNoVendor, SimpleNet } from '@vechain/connex-driver';\nimport { loadLibrary } from './script-loader';\nimport randomBytes from 'randombytes';\nimport { blake2b256 } from 'thor-devkit';\nconst BUDDY_SRC = 'https://unpkg.com/@vechain/connex-wallet-buddy@0.1';\nconst BUDDY_LIB_NAME = 'ConnexWalletBuddy';\n/** the driver implements vendor methods only */\nexport class DriverVendorOnly {\n constructor(genesisId, useExtension) {\n this.signer = this.initSigner(genesisId, useExtension);\n }\n get genesis() { throw new Error('not implemented'); }\n get head() { throw new Error('not implemented'); }\n pollHead() { throw new Error('not implemented'); }\n getBlock(revision) { throw new Error('not implemented'); }\n getTransaction(id, allowPending) { throw new Error('not implemented'); }\n getReceipt(id) { throw new Error('not implemented'); }\n getAccount(addr, revision) { throw new Error('not implemented'); }\n getCode(addr, revision) { throw new Error('not implemented'); }\n getStorage(addr, key, revision) { throw new Error('not implemented'); }\n explain(arg, revision, cacheHints) { throw new Error('not implemented'); }\n filterEventLogs(arg) { throw new Error('not implemented'); }\n filterTransferLogs(arg) { throw new Error('not implemented'); }\n signTx(msg, options) {\n return this.signer.then(b => b.signTx(msg, options));\n }\n signCert(msg, options) {\n return this.signer.then(b => b.signCert(msg, options));\n }\n initSigner(genesisId, useExtension) {\n if (useExtension) {\n return Promise.resolve(window.vechain.newConnexSigner(genesisId));\n }\n return loadLibrary(BUDDY_SRC, BUDDY_LIB_NAME).then(lib => lib.create(genesisId, () => randomBytes(16).toString('hex'), val => blake2b256(val).toString('hex')));\n }\n}\n/** fully implemented Connex.Driver */\nclass FullDriver extends DriverNoVendor {\n constructor(node, genesis, useExtension) {\n super(new SimpleNet(node), genesis);\n this.vd = new DriverVendorOnly(genesis.id, useExtension);\n }\n signTx(msg, options) {\n return this.vd.signTx(msg, options);\n }\n signCert(msg, options) {\n return this.vd.signCert(msg, options);\n }\n}\nconst cache = {};\n/**\n * create full driver\n * @param node the url of thor node\n * @param genesis the enforced genesis block\n */\nexport function createFull(node, genesis, useExtension) {\n const key = blake2b256(JSON.stringify({\n node,\n genesis,\n useExtension\n })).toString('hex');\n let driver = cache[key];\n if (!driver) {\n cache[key] = driver = new FullDriver(node, genesis, useExtension);\n }\n return driver;\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJpdmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2RyaXZlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxzREFBc0Q7QUFDdEQsT0FBTyxFQUFFLGNBQWMsRUFBRSxTQUFTLEVBQUUsTUFBTSx3QkFBd0IsQ0FBQTtBQUNsRSxPQUFPLEVBQUUsV0FBVyxFQUFFLE1BQU0saUJBQWlCLENBQUE7QUFFN0MsT0FBTyxXQUFXLE1BQU0sYUFBYSxDQUFBO0FBQ3JDLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxhQUFhLENBQUE7QUFFeEMsTUFBTSxTQUFTLEdBQUcsb0RBQW9ELENBQU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DSCxNQUFNLFVBQVUsVUFBVSxDQUFDLElBQVksRUFBRSxPQUEwQixFQUFFLFlBQXFCO0lBQ3RGLE1BQU0sR0FBRyxHQUFHLFVBQVUsQ0FBQyxJQUFJLENBQUMsU0FBUyxDQUFDO1FBQ2xDLElBQUk7UUFDSixPQUFPO1FBQ1AsWUFBWTtLQUNmLENBQUMsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxLQUFLLENBQUMsQ0FBQTtJQUVuQixJQUFJLE1BQU0sR0FBRyxLQUFLLENBQUMsR0FBRyxDQUFDLENBQUE7SUFDdkIsSUFBSSxDQUFDLE1BQU0sRUFBRTtRQUNULEtBQUssQ0FBQyxHQUFHLENBQUMsR0FBRyxNQUFNLEdBQUcsSUFBSSxVQUFVLENBQUMsSUFBSSxFQUFFLE9BQU8sRUFBRSxZQUFZLENBQUMsQ0FBQTtLQUNwRTtJQUNELE9BQU8sTUFBTSxDQUFBO0FBQ2pCLENBQUMifQ==","import { Framework } from '@vechain/connex-framework';\nimport { genesisBlocks } from './config';\nimport { compat1 } from './compat';\nimport { createFull, DriverVendorOnly } from './driver';\nimport { newVendor } from '@vechain/connex-framework';\n/** convert options.network to Connex.Thor.Block */\nfunction normalizeNetwork(n) {\n n = n || 'main';\n if (typeof n === 'string') {\n const gb = genesisBlocks[n];\n if (!gb) {\n throw new Error('invalid network');\n }\n return gb;\n }\n else {\n return n;\n }\n}\n/** convert network name to genesis id */\nfunction normalizeGenesisId(id) {\n id = id || 'main';\n if (/^0x[0-9a-f]{64}$/.test(id)) {\n return id;\n }\n const gb = genesisBlocks[id];\n if (gb) {\n return gb.id;\n }\n throw new Error('invalid genesis id');\n}\n/** Vendor class which can work standalone to provides signing-services only */\nclass VendorClass {\n constructor(genesisId, opts) {\n genesisId = normalizeGenesisId(genesisId);\n if (!(opts && opts.noV1Compat)) {\n try {\n // to detect injected connex\n const injected = window.connex;\n if (injected && injected.thor.genesis.id === genesisId) {\n // injected genesis id matched\n if (/^1\\./.test(injected.version)) {\n // wrap v1 vendor to v2\n return compat1(injected).vendor;\n }\n }\n }\n catch ( /**/_a) { /**/ }\n }\n // detect the extension injected vechain\n const useExtension = !(opts && opts.noExtension) && !!window.vechain;\n const driver = new DriverVendorOnly(genesisId, useExtension);\n const vendor = newVendor(driver);\n return {\n get sign() {\n return vendor.sign.bind(vendor);\n }\n };\n }\n}\n/** Connex class */\nclass ConnexClass {\n constructor(opts) {\n const genesis = normalizeNetwork(opts.network);\n if (!opts.noV1Compat) {\n try {\n // to detect injected connex\n const injected = window.connex;\n if (injected && injected.thor.genesis.id === genesis.id) {\n // injected genesis id matched\n if (/^1\\./.test(injected.version)) {\n // wrap v1 to v2\n return compat1(injected);\n }\n }\n }\n catch ( /**/_a) { /**/ }\n }\n // detect the extension injected vechain\n const useExtension = !opts.noExtension && !!window.vechain;\n const driver = createFull(opts.node, genesis, useExtension);\n const framework = new Framework(driver);\n return {\n get thor() { return framework.thor; },\n get vendor() { return framework.vendor; }\n };\n }\n}\nConnexClass.Vendor = VendorClass;\nexport default ConnexClass;\nexport { ConnexClass as Connex };\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxNQUFNLDJCQUEyQixDQUFBO0FBQ3JELE9BQU8sRUFBRSxhQUFhLEVBQUUsTUFBTSxVQUFVLENBQUE7QUFDeEMsT0FBTyxFQUFFLE9BQU8sRUFBVyxNQUFNLFVBQVUsQ0FBQTtBQUMzQyxPQUFPLEVBQUUsVUFBVSxFQUFFLGdCQUFnQixFQUFtQixNQUFNLFVBQVUsQ0FBQTtBQUN4RSxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sMkJBQTJCLENBQUE7QUFXckQsbURBQW1EO0FBQ25ELFNBQVMs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ports.version = \"4.0.27-5\";\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar bignumber_1 = require(\"./utils/bignumber\");\nvar AddressZero = '0x0000000000000000000000000000000000000000';\nexports.AddressZero = AddressZero;\nvar HashZero = '0x0000000000000000000000000000000000000000000000000000000000000000';\nexports.HashZero = HashZero;\n// NFKD (decomposed)\n//const EtherSymbol = '\\uD835\\uDF63';\n// NFKC (composed)\nvar EtherSymbol = '\\u039e';\nexports.EtherSymbol = EtherSymbol;\nvar NegativeOne = bignumber_1.bigNumberify(-1);\nexports.NegativeOne = NegativeOne;\nvar Zero = bignumber_1.bigNumberify(0);\nexports.Zero = Zero;\nvar One = bignumber_1.bigNumberify(1);\nexports.One = One;\nvar Two = bignumber_1.bigNumberify(2);\nexports.Two = Two;\nvar WeiPerEther = bignumber_1.bigNumberify('1000000000000000000');\nexports.WeiPerEther = WeiPerEther;\nvar MaxUint256 = bignumber_1.bigNumberify('0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff');\nexports.MaxUint256 = MaxUint256;\n","'use strict';\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar _version_1 = require(\"./_version\");\n// Unknown Error\nexports.UNKNOWN_ERROR = 'UNKNOWN_ERROR';\n// Not implemented\nexports.NOT_IMPLEMENTED = 'NOT_IMPLEMENTED';\n// Missing new operator to an object\n// - name: The name of the class\nexports.MISSING_NEW = 'MISSING_NEW';\n// Call exception\n// - transaction: the transaction\n// - address?: the contract address\n// - args?: The arguments passed into the function\n// - method?: The Solidity method signature\n// - errorSignature?: The EIP848 error signature\n// - errorArgs?: The EIP848 error parameters\n// - reason: The reason (only for EIP848 \"Error(string)\")\nexports.CALL_EXCEPTION = 'CALL_EXCEPTION';\n// Invalid argument (e.g. value is incompatible with type) to a function:\n// - argument: The argument name that was invalid\n// - value: The value of the argument\nexports.INVALID_ARGUMENT = 'INVALID_ARGUMENT';\n// Missing argument to a function:\n// - count: The number of arguments received\n// - expectedCount: The number of arguments expected\nexports.MISSING_ARGUMENT = 'MISSING_ARGUMENT';\n// Too many arguments\n// - count: The number of arguments received\n// - expectedCount: The number of arguments expected\nexports.UNEXPECTED_ARGUMENT = 'UNEXPECTED_ARGUMENT';\n// Numeric Fault\n// - operation: the operation being executed\n// - fault: the reason this faulted\nexports.NUMERIC_FAULT = 'NUMERIC_FAULT';\n// Insufficien funds (< value + gasLimit * gasPrice)\n// - transaction: the transaction attempted\nexports.INSUFFICIENT_FUNDS = 'INSUFFICIENT_FUNDS';\n// Nonce has already been used\n// - transaction: the transaction attempted\nexports.NONCE_EXPIRED = 'NONCE_EXPIRED';\n// The replacement fee for the transaction is too low\n// - transaction: the transaction attempted\nexports.REPLACEMENT_UNDERPRICED = 'REPLACEMENT_UNDERPRICED';\n// Unsupported operation\n// - operation\nexports.UNSUPPORTED_OPERATION = 'UNSUPPORTED_OPERATION';\nvar _permanentCensorErrors = false;\nvar _censorErrors = false;\n// @TODO: Enum\nfunction throwError(message, code, params) {\n if (_censorErrors) {\n throw new Error('unknown error');\n }\n if (!code) {\n code = exports.UNKNOWN_ERROR;\n }\n if (!params) {\n params = {};\n }\n var messageDetails = [];\n Object.keys(params).forEach(function (key) {\n try {\n messageDetails.push(key + '=' + JSON.stringify(params[key]));\n }\n catch (error) {\n messageDetails.push(key + '=' + JSON.stringify(params[key].toString()));\n }\n });\n messageDetails.push(\"version=\" + _version_1.version);\n var reason = message;\n if (messageDetails.length) {\n message += ' (' + messageDetails.join(', ') + ')';\n }\n // @TODO: Any??\n var error = new Error(message);\n error.reason = reason;\n error.code = code;\n Object.keys(params).forEach(function (key) {\n error[key] = params[key];\n });\n throw error;\n}\nexports.throwError = throwError;\nfunction checkNew(self, kind) {\n if (!(self instanceof kind)) {\n throwError('missing new', exports.MISSING_NEW, { name: kind.name });\n }\n}\nexports.checkNew = checkNew;\nfunction checkArgumentCount(count, expectedCount, suffix) {\n if (!suffix) {\n suffix = '';\n }\n if (count < expectedCount) {\n throwError('missing argument' + suffix, exports.MISSING_ARGUMENT, { count: count, expectedCount: expectedCount });\n }\n if (count > expectedCount) {\n throwError('too many arguments' + suffix, exports.UNEXPECTED_ARGUMENT, { count: count, expectedCount: expectedCount });\n }\n}\nexports.checkArgumentCount = checkArgumentCount;\nfunction setCensorship(censorship, permanent) {\n if (_permanentCensorErrors) {\n throwError('error censorship permanent', exports.UNSUPPORTED_OPERATION, { operation: 'setCensorship' });\n }\n _censorErrors = !!censorship;\n _permanentCensorErrors = !!permanent;\n}\nexports.setCensorship = setCensorship;\nfunction checkNormalize() {\n try {\n // Make sure all forms of normalization are supported\n [\"NFD\", \"NFC\", \"NFKD\", \"NFKC\"].forEach(function (form) {\n try {\n \"test\".normalize(form);\n }\n catch (error) {\n throw new Error('missing ' + form);\n }\n });\n if (String.fromCharCode(0xe9).normalize('NFD') !== String.fromCharCode(0x65, 0x0301)) {\n throw new Error('broken implementation');\n }\n }\n catch (error) {\n throwError('platform missing String.prototype.normalize', exports.UNSUPPORTED_OPERATION, { operation: 'String.prototype.normalize', form: error.message });\n }\n}\nexports.checkNormalize = checkNormalize;\nvar LogLevels = { debug: 1, \"default\": 2, info: 2, warn: 3, error: 4, off: 5 };\nvar LogLevel = LogLevels[\"default\"];\nfunction setLogLevel(logLevel) {\n var level = LogLevels[logLevel];\n if (level == null) {\n warn(\"invliad log level - \" + logLevel);\n return;\n }\n LogLevel = level;\n}\nexports.setLogLevel = setLogLevel;\nfunction log(logLevel, args) {\n if (LogLevel > LogLevels[logLevel]) {\n return;\n }\n console.log.apply(console, args);\n}\nfunction warn() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n log(\"warn\", args);\n}\nexports.warn = warn;\nfunction info() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n log(\"info\", args);\n}\nexports.info = info;\n","'use strict';\nvar __extends = (this && this.__extends) || (function () {\n var extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\n return function (d, b) {\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// See: https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI\nvar constants_1 = require(\"../constants\");\nvar errors = __importStar(require(\"../errors\"));\nvar address_1 = require(\"./address\");\nvar bignumber_1 = require(\"./bignumber\");\nvar bytes_1 = require(\"./bytes\");\nvar utf8_1 = require(\"./utf8\");\nvar properties_1 = require(\"./properties\");\n///////////////////////////////\nvar paramTypeBytes = new RegExp(/^bytes([0-9]*)$/);\nvar paramTypeNumber = new RegExp(/^(u?int)([0-9]*)$/);\nvar paramTypeArray = new RegExp(/^(.*)\\[([0-9]*)\\]$/);\nexports.defaultCoerceFunc = function (type, value) {\n var match = type.match(paramTypeNumber);\n if (match && parseInt(match[2]) <= 48) {\n return value.toNumber();\n }\n return value;\n};\n///////////////////////////////////\n// Parsing for Solidity Signatures\nvar regexParen = new RegExp(\"^([^)(]*)\\\\((.*)\\\\)([^)(]*)$\");\nvar regexIdentifier = new RegExp(\"^[A-Za-z_][A-Za-z0-9_]*$\");\nfunction verifyType(type) {\n // These need to be transformed to their full description\n if (type.match(/^uint($|[^1-9])/)) {\n type = 'uint256' + type.substring(4);\n }\n else if (type.match(/^int($|[^1-9])/)) {\n type = 'int256' + type.substring(3);\n }\n return type;\n}\nfunction parseParam(param, allowIndexed) {\n var originalParam = param;\n function throwError(i) {\n throw new Error('unexpected character \"' + originalParam[i] + '\" at position ' + i + ' in \"' + originalParam + '\"');\n }\n param = param.replace(/\\s/g, ' ');\n var parent = { type: '', name: '', state: { allowType: true } };\n var node = parent;\n for (var i = 0; i < param.length; i++) {\n var c = param[i];\n switch (c) {\n case '(':\n if (!node.state.allowParams) {\n throwError(i);\n }\n node.state.allowType = false;\n node.type = verifyType(node.type);\n node.components = [{ type: '', name: '', parent: node, state: { allowType: true } }];\n node = node.components[0];\n break;\n case ')':\n delete node.state;\n if (allowIndexed && node.name === 'indexed') {\n node.indexed = true;\n node.name = '';\n }\n node.type = verifyType(node.type);\n var child = node;\n node = node.parent;\n if (!node) {\n throwError(i);\n }\n delete child.parent;\n node.state.allowParams = false;\n node.state.allowName = true;\n node.state.allowArray = true;\n break;\n case ',':\n delete node.state;\n if (allowIndexed && node.name === 'indexed') {\n node.indexed = true;\n node.name = '';\n }\n node.type = verifyType(node.type);\n var sibling = { type: '', name: '', parent: node.parent, state: { allowType: true } };\n node.parent.components.push(sibling);\n delete node.parent;\n node = sibling;\n break;\n // Hit a space...\n case ' ':\n // If reading type, the type is done and may read a param or name\n if (node.state.allowType) {\n if (node.type !== '') {\n node.type = verifyType(node.type);\n delete node.state.allowType;\n node.state.allowName = true;\n node.state.allowParams = true;\n }\n }\n // If reading name, the name is done\n if (node.state.allowName) {\n if (node.name !== '') {\n if (allowIndexed && node.name === 'indexed') {\n node.indexed = true;\n node.name = '';\n }\n else {\n node.state.allowName = false;\n }\n }\n }\n break;\n case '[':\n if (!node.state.allowArray) {\n throwError(i);\n }\n node.type += c;\n node.state.allowArray = false;\n node.state.allowName = false;\n node.state.readArray = true;\n break;\n case ']':\n if (!node.state.readArray) {\n throwError(i);\n }\n node.type += c;\n node.state.readArray = false;\n node.state.allowArray = true;\n node.state.allowName = true;\n break;\n default:\n if (node.state.allowType) {\n node.type += c;\n node.state.allowParams = true;\n node.state.allowArray = true;\n }\n else if (node.state.allowName) {\n node.name += c;\n delete node.state.allowArray;\n }\n else if (node.state.readArray) {\n node.type += c;\n }\n else {\n throwError(i);\n }\n }\n }\n if (node.parent) {\n throw new Error(\"unexpected eof\");\n }\n delete parent.state;\n if (allowIndexed && node.name === 'indexed') {\n node.indexed = true;\n node.name = '';\n }\n parent.type = verifyType(parent.type);\n return parent;\n}\n// @TODO: Better return type\nfunction parseSignatureEvent(fragment) {\n var abi = {\n anonymous: false,\n inputs: [],\n name: '',\n type: 'event'\n };\n var match = fragment.match(regexParen);\n if (!match) {\n throw new Error('invalid event: ' + fragment);\n }\n abi.name = match[1].trim();\n splitNesting(match[2]).forEach(function (param) {\n param = parseParam(param, true);\n param.indexed = !!param.indexed;\n abi.inputs.push(param);\n });\n match[3].split(' ').forEach(function (modifier) {\n switch (modifier) {\n case 'anonymous':\n abi.anonymous = true;\n break;\n case '':\n break;\n default:\n errors.info('unknown modifier: ' + modifier);\n }\n });\n if (abi.name && !abi.name.match(regexIdentifier)) {\n throw new Error('invalid identifier: \"' + abi.name + '\"');\n }\n return abi;\n}\nfunction parseSignatureFunction(fragment) {\n var abi = {\n constant: false,\n gas: null,\n inputs: [],\n name: '',\n outputs: [],\n payable: false,\n stateMutability: null,\n type: 'function'\n };\n var comps = fragment.split('@');\n if (comps.length !== 1) {\n if (comps.length > 2) {\n throw new Error('invalid signature');\n }\n if (!comps[1].match(/^[0-9]+$/)) {\n throw new Error('invalid signature gas');\n }\n abi.gas = bignumber_1.bigNumberify(comps[1]);\n fragment = comps[0];\n }\n comps = fragment.split(' returns ');\n var left = comps[0].match(regexParen);\n if (!left) {\n throw new Error('invalid signature');\n }\n abi.name = left[1].trim();\n if (!abi.name.match(regexIdentifier)) {\n throw new Error('invalid identifier: \"' + left[1] + '\"');\n }\n splitNesting(left[2]).forEach(function (param) {\n abi.inputs.push(parseParam(param));\n });\n left[3].split(' ').forEach(function (modifier) {\n switch (modifier) {\n case 'constant':\n abi.constant = true;\n break;\n case 'payable':\n abi.payable = true;\n abi.stateMutability = 'payable';\n break;\n case 'pure':\n abi.constant = true;\n abi.stateMutability = 'pure';\n break;\n case 'view':\n abi.constant = true;\n abi.stateMutability = 'view';\n break;\n case 'external':\n case 'public':\n case '':\n break;\n default:\n errors.info('unknown modifier: ' + modifier);\n }\n });\n // We have outputs\n if (comps.length > 1) {\n var right = comps[1].match(regexParen);\n if (right[1].trim() != '' || right[3].trim() != '') {\n throw new Error('unexpected tokens');\n }\n splitNesting(right[2]).forEach(function (param) {\n abi.outputs.push(parseParam(param));\n });\n }\n if (abi.name === 'constructor') {\n abi.type = \"constructor\";\n if (abi.outputs.length) {\n throw new Error('constructor may not have outputs');\n }\n delete abi.name;\n delete abi.outputs;\n }\n return abi;\n}\nfunction parseParamType(type) {\n return parseParam(type, true);\n}\nexports.parseParamType = parseParamType;\n// @TODO: Allow a second boolean to expose names\nfunction formatParamType(paramType) {\n return getParamCoder(exports.defaultCoerceFunc, paramType).type;\n}\nexports.formatParamType = formatParamType;\n// @TODO: Allow a second boolean to expose names and modifiers\nfunction formatSignature(fragment) {\n return fragment.name + '(' + fragment.inputs.map(function (i) { return formatParamType(i); }).join(',') + ')';\n}\nexports.formatSignature = formatSignature;\nfunction parseSignature(fragment) {\n if (typeof (fragment) === 'string') {\n // Make sure the \"returns\" is surrounded by a space and all whitespace is exactly one space\n fragment = fragment.replace(/\\s/g, ' ');\n fragment = fragment.replace(/\\(/g, ' (').replace(/\\)/g, ') ').replace(/\\s+/g, ' ');\n fragment = fragment.trim();\n if (fragment.substring(0, 6) === 'event ') {\n return parseSignatureEvent(fragment.substring(6).trim());\n }\n else {\n if (fragment.substring(0, 9) === 'function ') {\n fragment = fragment.substring(9);\n }\n return parseSignatureFunction(fragment.trim());\n }\n }\n throw new Error('unknown signature');\n}\nexports.parseSignature = parseSignature;\nvar Coder = /** @class */ (function () {\n function Coder(coerceFunc, name, type, localName, dynamic) {\n this.coerceFunc = coerceFunc;\n this.name = name;\n this.type = type;\n this.localName = localName;\n this.dynamic = dynamic;\n }\n return Coder;\n}());\n// Clones the functionality of an existing Coder, but without a localName\nvar CoderAnonymous = /** @class */ (function (_super) {\n __extends(CoderAnonymous, _super);\n function CoderAnonymous(coder) {\n var _this = _super.call(this, coder.coerceFunc, coder.name, coder.type, undefined, coder.dynamic) || this;\n properties_1.defineReadOnly(_this, 'coder', coder);\n return _this;\n }\n CoderAnonymous.prototype.encode = function (value) { return this.coder.encode(value); };\n CoderAnonymous.prototype.decode = function (data, offset) { return this.coder.decode(data, offset); };\n return CoderAnonymous;\n}(Coder));\nvar CoderNull = /** @class */ (function (_super) {\n __extends(CoderNull, _super);\n function CoderNull(coerceFunc, localName) {\n return _super.call(this, coerceFunc, 'null', '', localName, false) || this;\n }\n CoderNull.prototype.encode = function (value) {\n return bytes_1.arrayify([]);\n };\n CoderNull.prototype.decode = function (data, offset) {\n if (offset > data.length) {\n throw new Error('invalid null');\n }\n return {\n consumed: 0,\n value: this.coerceFunc('null', undefined)\n };\n };\n return CoderNull;\n}(Coder));\nvar CoderNumber = /** @class */ (function (_super) {\n __extends(CoderNumber, _super);\n function CoderNumber(coerceFunc, size, signed, localName) {\n var _this = this;\n var name = ((signed ? 'int' : 'uint') + (size * 8));\n _this = _super.call(this, coerceFunc, name, name, localName, false) || this;\n _this.size = size;\n _this.signed = signed;\n return _this;\n }\n CoderNumber.prototype.encode = function (value) {\n try {\n var v = bignumber_1.bigNumberify(value);\n if (this.signed) {\n var bounds = constants_1.MaxUint256.maskn(this.size * 8 - 1);\n if (v.gt(bounds)) {\n throw new Error('out-of-bounds');\n }\n bounds = bounds.add(constants_1.One).mul(constants_1.NegativeOne);\n if (v.lt(bounds)) {\n throw new Error('out-of-bounds');\n }\n }\n else if (v.lt(constants_1.Zero) || v.gt(constants_1.MaxUint256.maskn(this.size * 8))) {\n throw new Error('out-of-bounds');\n }\n v = v.toTwos(this.size * 8).maskn(this.size * 8);\n if (this.signed) {\n v = v.fromTwos(this.size * 8).toTwos(256);\n }\n return bytes_1.padZeros(bytes_1.arrayify(v), 32);\n }\n catch (error) {\n errors.throwError('invalid number value', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: this.name,\n value: value\n });\n }\n return null;\n };\n CoderNumber.prototype.decode = function (data, offset) {\n if (data.length < offset + 32) {\n errors.throwError('insufficient data for ' + this.name + ' type', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: this.name,\n value: bytes_1.hexlify(data.slice(offset, offset + 32))\n });\n }\n var junkLength = 32 - this.size;\n var value = bignumber_1.bigNumberify(data.slice(offset + junkLength, offset + 32));\n if (this.signed) {\n value = value.fromTwos(this.size * 8);\n }\n else {\n value = value.maskn(this.size * 8);\n }\n return {\n consumed: 32,\n value: this.coerceFunc(this.name, value),\n };\n };\n return CoderNumber;\n}(Coder));\nvar uint256Coder = new CoderNumber(function (type, value) { return value; }, 32, false, 'none');\nvar CoderBoolean = /** @class */ (function (_super) {\n __extends(CoderBoolean, _super);\n function CoderBoolean(coerceFunc, localName) {\n return _super.call(this, coerceFunc, 'bool', 'bool', localName, false) || this;\n }\n CoderBoolean.prototype.encode = function (value) {\n return uint256Coder.encode(!!value ? 1 : 0);\n };\n CoderBoolean.prototype.decode = function (data, offset) {\n try {\n var result = uint256Coder.decode(data, offset);\n }\n catch (error) {\n if (error.reason === 'insufficient data for uint256 type') {\n errors.throwError('insufficient data for boolean type', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'boolean',\n value: error.value\n });\n }\n throw error;\n }\n return {\n consumed: result.consumed,\n value: this.coerceFunc('bool', !result.value.isZero())\n };\n };\n return CoderBoolean;\n}(Coder));\nvar CoderFixedBytes = /** @class */ (function (_super) {\n __extends(CoderFixedBytes, _super);\n function CoderFixedBytes(coerceFunc, length, localName) {\n var _this = this;\n var name = ('bytes' + length);\n _this = _super.call(this, coerceFunc, name, name, localName, false) || this;\n _this.length = length;\n return _this;\n }\n CoderFixedBytes.prototype.encode = function (value) {\n var result = new Uint8Array(32);\n try {\n var data = bytes_1.arrayify(value);\n if (data.length !== this.length) {\n throw new Error('incorrect data length');\n }\n result.set(data);\n }\n catch (error) {\n errors.throwError('invalid ' + this.name + ' value', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: this.name,\n value: (error.value || value)\n });\n }\n return result;\n };\n CoderFixedBytes.prototype.decode = function (data, offset) {\n if (data.length < offset + 32) {\n errors.throwError('insufficient data for ' + name + ' type', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: this.name,\n value: bytes_1.hexlify(data.slice(offset, offset + 32))\n });\n }\n return {\n consumed: 32,\n value: this.coerceFunc(this.name, bytes_1.hexlify(data.slice(offset, offset + this.length)))\n };\n };\n return CoderFixedBytes;\n}(Coder));\nvar CoderAddress = /** @class */ (function (_super) {\n __extends(CoderAddress, _super);\n function CoderAddress(coerceFunc, localName) {\n return _super.call(this, coerceFunc, 'address', 'address', localName, false) || this;\n }\n CoderAddress.prototype.encode = function (value) {\n var result = new Uint8Array(32);\n try {\n result.set(bytes_1.arrayify(address_1.getAddress(value, false)), 12);\n }\n catch (error) {\n errors.throwError('invalid address', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'address',\n value: value\n });\n }\n return result;\n };\n CoderAddress.prototype.decode = function (data, offset) {\n if (data.length < offset + 32) {\n errors.throwError('insufficuent data for address type', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'address',\n value: bytes_1.hexlify(data.slice(offset, offset + 32))\n });\n }\n return {\n consumed: 32,\n value: this.coerceFunc('address', address_1.getAddress(bytes_1.hexlify(data.slice(offset + 12, offset + 32)), false))\n };\n };\n return CoderAddress;\n}(Coder));\nfunction _encodeDynamicBytes(value) {\n var dataLength = 32 * Math.ceil(value.length / 32);\n var padding = new Uint8Array(dataLength - value.length);\n return bytes_1.concat([\n uint256Coder.encode(value.length),\n value,\n padding\n ]);\n}\nfunction _decodeDynamicBytes(data, offset, localName) {\n if (data.length < offset + 32) {\n errors.throwError('insufficient data for dynamicBytes length', errors.INVALID_ARGUMENT, {\n arg: localName,\n coderType: 'dynamicBytes',\n value: bytes_1.hexlify(data.slice(offset, offset + 32))\n });\n }\n var length = uint256Coder.decode(data, offset).value;\n try {\n length = length.toNumber();\n }\n catch (error) {\n errors.throwError('dynamic bytes count too large', errors.INVALID_ARGUMENT, {\n arg: localName,\n coderType: 'dynamicBytes',\n value: length.toString()\n });\n }\n if (data.length < offset + 32 + length) {\n errors.throwError('insufficient data for dynamicBytes type', errors.INVALID_ARGUMENT, {\n arg: localName,\n coderType: 'dynamicBytes',\n value: bytes_1.hexlify(data.slice(offset, offset + 32 + length))\n });\n }\n return {\n consumed: 32 + 32 * Math.ceil(length / 32),\n value: data.slice(offset + 32, offset + 32 + length),\n };\n}\nvar CoderDynamicBytes = /** @class */ (function (_super) {\n __extends(CoderDynamicBytes, _super);\n function CoderDynamicBytes(coerceFunc, localName) {\n return _super.call(this, coerceFunc, 'bytes', 'bytes', localName, true) || this;\n }\n CoderDynamicBytes.prototype.encode = function (value) {\n try {\n return _encodeDynamicBytes(bytes_1.arrayify(value));\n }\n catch (error) {\n errors.throwError('invalid bytes value', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'bytes',\n value: error.value\n });\n }\n return null;\n };\n CoderDynamicBytes.prototype.decode = function (data, offset) {\n var result = _decodeDynamicBytes(data, offset, this.localName);\n result.value = this.coerceFunc('bytes', bytes_1.hexlify(result.value));\n return result;\n };\n return CoderDynamicBytes;\n}(Coder));\nvar CoderString = /** @class */ (function (_super) {\n __extends(CoderString, _super);\n function CoderString(coerceFunc, localName) {\n return _super.call(this, coerceFunc, 'string', 'string', localName, true) || this;\n }\n CoderString.prototype.encode = function (value) {\n if (typeof (value) !== 'string') {\n errors.throwError('invalid string value', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'string',\n value: value\n });\n }\n return _encodeDynamicBytes(utf8_1.toUtf8Bytes(value));\n };\n CoderString.prototype.decode = function (data, offset) {\n var result = _decodeDynamicBytes(data, offset, this.localName);\n result.value = this.coerceFunc('string', utf8_1.toUtf8String(result.value));\n return result;\n };\n return CoderString;\n}(Coder));\nfunction alignSize(size) {\n return 32 * Math.ceil(size / 32);\n}\nfunction pack(coders, values) {\n if (Array.isArray(values)) {\n // do nothing\n }\n else if (values && typeof (values) === 'object') {\n var arrayValues = [];\n coders.forEach(function (coder) {\n arrayValues.push(values[coder.localName]);\n });\n values = arrayValues;\n }\n else {\n errors.throwError('invalid tuple value', errors.INVALID_ARGUMENT, {\n coderType: 'tuple',\n value: values\n });\n }\n if (coders.length !== values.length) {\n errors.throwError('types/value length mismatch', errors.INVALID_ARGUMENT, {\n coderType: 'tuple',\n value: values\n });\n }\n var parts = [];\n coders.forEach(function (coder, index) {\n parts.push({ dynamic: coder.dynamic, value: coder.encode(values[index]) });\n });\n var staticSize = 0, dynamicSize = 0;\n parts.forEach(function (part) {\n if (part.dynamic) {\n staticSize += 32;\n dynamicSize += alignSize(part.value.length);\n }\n else {\n staticSize += alignSize(part.value.length);\n }\n });\n var offset = 0, dynamicOffset = staticSize;\n var data = new Uint8Array(staticSize + dynamicSize);\n parts.forEach(function (part) {\n if (part.dynamic) {\n //uint256Coder.encode(dynamicOffset).copy(data, offset);\n data.set(uint256Coder.encode(dynamicOffset), offset);\n offset += 32;\n //part.value.copy(data, dynamicOffset); @TODO\n data.set(part.value, dynamicOffset);\n dynamicOffset += alignSize(part.value.length);\n }\n else {\n //part.value.copy(data, offset); @TODO\n data.set(part.value, offset);\n offset += alignSize(part.value.length);\n }\n });\n return data;\n}\nfunction unpack(coders, data, offset) {\n var baseOffset = offset;\n var consumed = 0;\n var value = [];\n coders.forEach(function (coder) {\n if (coder.dynamic) {\n var dynamicOffset = uint256Coder.decode(data, offset);\n var result = coder.decode(data, baseOffset + dynamicOffset.value.toNumber());\n // The dynamic part is leap-frogged somewhere else; doesn't count towards size\n result.consumed = dynamicOffset.consumed;\n }\n else {\n var result = coder.decode(data, offset);\n }\n if (result.value != undefined) {\n value.push(result.value);\n }\n offset += result.consumed;\n consumed += result.consumed;\n });\n coders.forEach(function (coder, index) {\n var name = coder.localName;\n if (!name) {\n return;\n }\n if (name === 'length') {\n name = '_length';\n }\n if (value[name] != null) {\n return;\n }\n value[name] = value[index];\n });\n return {\n value: value,\n consumed: consumed\n };\n}\nvar CoderArray = /** @class */ (function (_super) {\n __extends(CoderArray, _super);\n function CoderArray(coerceFunc, coder, length, localName) {\n var _this = this;\n var type = (coder.type + '[' + (length >= 0 ? length : '') + ']');\n var dynamic = (length === -1 || coder.dynamic);\n _this = _super.call(this, coerceFunc, 'array', type, localName, dynamic) || this;\n _this.coder = coder;\n _this.length = length;\n return _this;\n }\n CoderArray.prototype.encode = function (value) {\n if (!Array.isArray(value)) {\n errors.throwError('expected array value', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'array',\n value: value\n });\n }\n var count = this.length;\n var result = new Uint8Array(0);\n if (count === -1) {\n count = value.length;\n result = uint256Coder.encode(count);\n }\n errors.checkArgumentCount(count, value.length, ' in coder array' + (this.localName ? (\" \" + this.localName) : \"\"));\n var coders = [];\n for (var i = 0; i < value.length; i++) {\n coders.push(this.coder);\n }\n return bytes_1.concat([result, pack(coders, value)]);\n };\n CoderArray.prototype.decode = function (data, offset) {\n // @TODO:\n //if (data.length < offset + length * 32) { throw new Error('invalid array'); }\n var consumed = 0;\n var count = this.length;\n if (count === -1) {\n try {\n var decodedLength = uint256Coder.decode(data, offset);\n }\n catch (error) {\n errors.throwError('insufficient data for dynamic array length', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'array',\n value: error.value\n });\n }\n try {\n count = decodedLength.value.toNumber();\n }\n catch (error) {\n errors.throwError('array count too large', errors.INVALID_ARGUMENT, {\n arg: this.localName,\n coderType: 'array',\n value: decodedLength.value.toString()\n });\n }\n consumed += decodedLength.consumed;\n offset += decodedLength.consumed;\n }\n var coders = [];\n for (var i = 0; i < count; i++) {\n coders.push(new CoderAnonymous(this.coder));\n }\n var result = unpack(coders, data, offset);\n result.consumed += consumed;\n result.value = this.coerceFunc(this.type, result.value);\n return result;\n };\n return CoderArray;\n}(Coder));\nvar CoderTuple = /** @class */ (function (_super) {\n __extends(CoderTuple, _super);\n function CoderTuple(coerceFunc, coders, localName) {\n var _this = this;\n var dynamic = false;\n var types = [];\n coders.forEach(function (coder) {\n if (coder.dynamic) {\n dynamic = true;\n }\n types.push(coder.type);\n });\n var type = ('tuple(' + types.join(',') + ')');\n _this = _super.call(this, coerceFunc, 'tuple', type, localName, dynamic) || this;\n _this.coders = coders;\n return _this;\n }\n CoderTuple.prototype.encode = function (value) {\n return pack(this.coders, value);\n };\n CoderTuple.prototype.decode = function (data, offset) {\n var result = unpack(this.coders, data, offset);\n result.value = this.coerceFunc(this.type, result.value);\n return result;\n };\n return CoderTuple;\n}(Coder));\n/*\nfunction getTypes(coders) {\n var type = coderTuple(coders).type;\n return type.substring(6, type.length - 1);\n}\n*/\nfunction splitNesting(value) {\n value = value.trim();\n var result = [];\n var accum = '';\n var depth = 0;\n for (var offset = 0; offset < value.length; offset++) {\n var c = value[offset];\n if (c === ',' && depth === 0) {\n result.push(accum);\n accum = '';\n }\n else {\n accum += c;\n if (c === '(') {\n depth++;\n }\n else if (c === ')') {\n depth--;\n if (depth === -1) {\n throw new Error('unbalanced parenthsis');\n }\n }\n }\n }\n if (accum) {\n result.push(accum);\n }\n return result;\n}\n// @TODO: Is there a way to return \"class\"?\nvar paramTypeSimple = {\n address: CoderAddress,\n bool: CoderBoolean,\n string: CoderString,\n bytes: CoderDynamicBytes,\n};\nfunction getTupleParamCoder(coerceFunc, components, localName) {\n if (!components) {\n components = [];\n }\n var coders = [];\n components.forEach(function (component) {\n coders.push(getParamCoder(coerceFunc, component));\n });\n return new CoderTuple(coerceFunc, coders, localName);\n}\nfunction getParamCoder(coerceFunc, param) {\n var coder = paramTypeSimple[param.type];\n if (coder) {\n return new coder(coerceFunc, param.name);\n }\n var match = param.type.match(paramTypeNumber);\n if (match) {\n var size = parseInt(match[2] || \"256\");\n if (size === 0 || size > 256 || (size % 8) !== 0) {\n errors.throwError('invalid ' + match[1] + ' bit length', errors.INVALID_ARGUMENT, {\n arg: 'param',\n value: param\n });\n }\n return new CoderNumber(coerceFunc, size / 8, (match[1] === 'int'), param.name);\n }\n var match = param.type.match(paramTypeBytes);\n if (match) {\n var size = parseInt(match[1]);\n if (size === 0 || size > 32) {\n errors.throwError('invalid bytes length', errors.INVALID_ARGUMENT, {\n arg: 'param',\n value: param\n });\n }\n return new CoderFixedBytes(coerceFunc, size, param.name);\n }\n var match = param.type.match(paramTypeArray);\n if (match) {\n var size = parseInt(match[2] || \"-1\");\n param = properties_1.shallowCopy(param);\n param.type = match[1];\n param = properties_1.deepCopy(param);\n return new CoderArray(coerceFunc, getParamCoder(coerceFunc, param), size, param.name);\n }\n if (param.type.substring(0, 5) === 'tuple') {\n return getTupleParamCoder(coerceFunc, param.components, param.name);\n }\n if (param.type === '') {\n return new CoderNull(coerceFunc, param.name);\n }\n errors.throwError('invalid type', errors.INVALID_ARGUMENT, {\n arg: 'type',\n value: param.type\n });\n return null;\n}\nvar AbiCoder = /** @class */ (function () {\n function AbiCoder(coerceFunc) {\n errors.checkNew(this, AbiCoder);\n if (!coerceFunc) {\n coerceFunc = exports.defaultCoerceFunc;\n }\n properties_1.defineReadOnly(this, 'coerceFunc', coerceFunc);\n }\n AbiCoder.prototype.encode = function (types, values) {\n if (types.length !== values.length) {\n errors.throwError('types/values length mismatch', errors.INVALID_ARGUMENT, {\n count: { types: types.length, values: values.length },\n value: { types: types, values: values }\n });\n }\n var coders = [];\n types.forEach(function (type) {\n // Convert types to type objects\n // - \"uint foo\" => { type: \"uint\", name: \"foo\" }\n // - \"tuple(uint, uint)\" => { type: \"tuple\", components: [ { type: \"uint\" }, { type: \"uint\" }, ] }\n var typeObject = null;\n if (typeof (type) === 'string') {\n typeObject = parseParam(type);\n }\n else {\n typeObject = type;\n }\n coders.push(getParamCoder(this.coerceFunc, typeObject));\n }, this);\n return bytes_1.hexlify(new CoderTuple(this.coerceFunc, coders, '_').encode(values));\n };\n AbiCoder.prototype.decode = function (types, data) {\n var coders = [];\n types.forEach(function (type) {\n // See encode for details\n var typeObject = null;\n if (typeof (type) === 'string') {\n typeObject = parseParam(type);\n }\n else {\n typeObject = properties_1.deepCopy(type);\n }\n coders.push(getParamCoder(this.coerceFunc, typeObject));\n }, this);\n return new CoderTuple(this.coerceFunc, coders, '_').decode(bytes_1.arrayify(data), 0).value;\n };\n return AbiCoder;\n}());\nexports.AbiCoder = AbiCoder;\nexports.defaultAbiCoder = new AbiCoder();\n","'use strict';\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n// We use this for base 36 maths\nvar bn_js_1 = __importDefault(require(\"bn.js\"));\nvar bytes_1 = require(\"./bytes\");\nvar keccak256_1 = require(\"./keccak256\");\nvar rlp_1 = require(\"./rlp\");\nvar errors = require(\"../errors\");\n///////////////////////////////\nfunction getChecksumAddress(address) {\n if (typeof (address) !== 'string' || !address.match(/^0x[0-9A-Fa-f]{40}$/)) {\n errors.throwError('invalid address', errors.INVALID_ARGUMENT, { arg: 'address', value: address });\n }\n address = address.toLowerCase();\n var chars = address.substring(2).split('');\n var hashed = new Uint8Array(40);\n for (var i_1 = 0; i_1 < 40; i_1++) {\n hashed[i_1] = chars[i_1].charCodeAt(0);\n }\n hashed = bytes_1.arrayify(keccak256_1.keccak256(hashed));\n for (var i = 0; i < 40; i += 2) {\n if ((hashed[i >> 1] >> 4) >= 8) {\n chars[i] = chars[i].toUpperCase();\n }\n if ((hashed[i >> 1] & 0x0f) >= 8) {\n chars[i + 1] = chars[i + 1].toUpperCase();\n }\n }\n return '0x' + chars.join('');\n}\n// Shims for environments that are missing some required constants and functions\nvar MAX_SAFE_INTEGER = 0x1fffffffffffff;\nfunction log10(x) {\n if (Math.log10) {\n return Math.log10(x);\n }\n return Math.log(x) / Math.LN10;\n}\n// See: https://en.wikipedia.org/wiki/International_Bank_Account_Number\n// Create lookup table\nvar ibanLookup = {};\nfor (var i = 0; i < 10; i++) {\n ibanLookup[String(i)] = String(i);\n}\nfor (var i = 0; i < 26; i++) {\n ibanLookup[String.fromCharCode(65 + i)] = String(10 + i);\n}\n// How many decimal digits can we process? (for 64-bit float, this is 15)\nvar safeDigits = Math.floor(log10(MAX_SAFE_INTEGER));\nfunction ibanChecksum(address) {\n address = address.toUpperCase();\n address = address.substring(4) + address.substring(0, 2) + '00';\n var expanded = '';\n address.split('').forEach(function (c) {\n expanded += ibanLookup[c];\n });\n // Javascript can handle integers safely up to 15 (decimal) digits\n while (expanded.length >= safeDigits) {\n var block = expanded.substring(0, safeDigits);\n expanded = parseInt(block, 10) % 97 + expanded.substring(block.length);\n }\n var checksum = String(98 - (parseInt(expanded, 10) % 97));\n while (checksum.length < 2) {\n checksum = '0' + checksum;\n }\n return checksum;\n}\n;\nfunction getAddress(address, checksum) {\n if (checksum === void 0) { checksum = true; }\n var result = null;\n if (typeof (address) !== 'string') {\n errors.throwError('invalid address', errors.INVALID_ARGUMENT, { arg: 'address', value: address });\n }\n if (address.match(/^(0x)?[0-9a-fA-F]{40}$/)) {\n // Missing the 0x prefix\n if (address.substring(0, 2) !== '0x') {\n address = '0x' + address;\n }\n if (checksum) {\n result = getChecksumAddress(address);\n // It is a checksummed address with a bad checksum\n if (address.match(/([A-F].*[a-f])|([a-f].*[A-F])/) && result !== address) {\n errors.throwError('bad address checksum', errors.INVALID_ARGUMENT, { arg: 'address', value: address });\n }\n }\n else {\n result = address;\n }\n // Maybe ICAP? (we only support direct mode)\n }\n else if (address.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) {\n // It is an ICAP address with a bad checksum\n if (address.substring(2, 4) !== ibanChecksum(address)) {\n errors.throwError('bad icap checksum', errors.INVALID_ARGUMENT, { arg: 'address', value: address });\n }\n result = (new bn_js_1.default.BN(address.substring(4), 36)).toString(16);\n while (result.length < 40) {\n result = '0' + result;\n }\n result = checksum ? getChecksumAddress('0x' + result) : '0x' + result;\n }\n else {\n errors.throwError('invalid address', errors.INVALID_ARGUMENT, { arg: 'address', value: address });\n }\n return result;\n}\nexports.getAddress = getAddress;\nfunction getIcapAddress(address) {\n var base36 = (new bn_js_1.default.BN(getAddress(address).substring(2), 16)).toString(36).toUpperCase();\n while (base36.length < 30) {\n base36 = '0' + base36;\n }\n return 'XE' + ibanChecksum('XE00' + base36) + base36;\n}\nexports.getIcapAddress = getIcapAddress;\n// http://ethereum.stackexchange.com/questions/760/how-is-the-address-of-an-ethereum-contract-computed\nfunction getContractAddress(transaction) {\n if (!transaction.from) {\n throw new Error('missing from address');\n }\n var nonce = transaction.nonce;\n return getAddress('0x' + keccak256_1.keccak256(rlp_1.encode([\n getAddress(transaction.from),\n bytes_1.stripZeros(bytes_1.hexlify(nonce))\n ])).substring(26));\n}\nexports.getContractAddress = getContractAddress;\n","'use strict';\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * BigNumber\n *\n * A wrapper around the BN.js object. We use the BN.js library\n * because it is used by elliptic, so it is required regardles.\n *\n */\nvar bn_js_1 = __importDefault(require(\"bn.js\"));\nvar bytes_1 = require(\"./bytes\");\nvar properties_1 = require(\"./properties\");\nvar errors = __importStar(require(\"../errors\"));\nvar BN_1 = new bn_js_1.default.BN(-1);\nfunction toHex(bn) {\n var value = bn.toString(16);\n if (value[0] === '-') {\n if ((value.length % 2) === 0) {\n return '-0x0' + value.substring(1);\n }\n return \"-0x\" + value.substring(1);\n }\n if ((value.length % 2) === 1) {\n return '0x0' + value;\n }\n return '0x' + value;\n}\nfunction toBN(value) {\n return _bnify(bigNumberify(value));\n}\nfunction toBigNumber(bn) {\n return new BigNumber(toHex(bn));\n}\nfunction _bnify(value) {\n var hex = value._hex;\n if (hex[0] === '-') {\n return (new bn_js_1.default.BN(hex.substring(3), 16)).mul(BN_1);\n }\n return new bn_js_1.default.BN(hex.substring(2), 16);\n}\nvar BigNumber = /** @class */ (function () {\n function BigNumber(value) {\n errors.checkNew(this, BigNumber);\n properties_1.setType(this, 'BigNumber');\n if (typeof (value) === 'string') {\n if (bytes_1.isHexString(value)) {\n if (value == '0x') {\n value = '0x0';\n }\n properties_1.defineReadOnly(this, '_hex', value);\n }\n else if (value[0] === '-' && bytes_1.isHexString(value.substring(1))) {\n properties_1.defineReadOnly(this, '_hex', value);\n }\n else if (value.match(/^-?[0-9]*$/)) {\n if (value == '') {\n value = '0';\n }\n properties_1.defineReadOnly(this, '_hex', toHex(new bn_js_1.default.BN(value)));\n }\n else {\n errors.throwError('invalid BigNumber string value', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n }\n else if (typeof (value) === 'number') {\n if (parseInt(String(value)) !== value) {\n errors.throwError('underflow', errors.NUMERIC_FAULT, { operation: 'setValue', fault: 'underflow', value: value, outputValue: parseInt(String(value)) });\n }\n try {\n properties_1.defineReadOnly(this, '_hex', toHex(new bn_js_1.default.BN(value)));\n }\n catch (error) {\n errors.throwError('overflow', errors.NUMERIC_FAULT, { operation: 'setValue', fault: 'overflow', details: error.message });\n }\n }\n else if (value instanceof BigNumber) {\n properties_1.defineReadOnly(this, '_hex', value._hex);\n }\n else if (value.toHexString) {\n properties_1.defineReadOnly(this, '_hex', toHex(toBN(value.toHexString())));\n }\n else if (value._hex && bytes_1.isHexString(value._hex)) {\n properties_1.defineReadOnly(this, '_hex', value._hex);\n }\n else if (bytes_1.isArrayish(value)) {\n properties_1.defineReadOnly(this, '_hex', toHex(new bn_js_1.default.BN(bytes_1.hexlify(value).substring(2), 16)));\n }\n else {\n errors.throwError('invalid BigNumber value', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n }\n BigNumber.prototype.fromTwos = function (value) {\n return toBigNumber(_bnify(this).fromTwos(value));\n };\n BigNumber.prototype.toTwos = function (value) {\n return toBigNumber(_bnify(this).toTwos(value));\n };\n BigNumber.prototype.abs = function () {\n if (this._hex[0] === '-') {\n return toBigNumber(_bnify(this).mul(BN_1));\n }\n return this;\n };\n BigNumber.prototype.add = function (other) {\n return toBigNumber(_bnify(this).add(toBN(other)));\n };\n BigNumber.prototype.sub = function (other) {\n return toBigNumber(_bnify(this).sub(toBN(other)));\n };\n BigNumber.prototype.div = function (other) {\n var o = bigNumberify(other);\n if (o.isZero()) {\n errors.throwError('division by zero', errors.NUMERIC_FAULT, { operation: 'divide', fault: 'division by zero' });\n }\n return toBigNumber(_bnify(this).div(toBN(other)));\n };\n BigNumber.prototype.mul = function (other) {\n return toBigNumber(_bnify(this).mul(toBN(other)));\n };\n BigNumber.prototype.mod = function (other) {\n return toBigNumber(_bnify(this).mod(toBN(other)));\n };\n BigNumber.prototype.pow = function (other) {\n return toBigNumber(_bnify(this).pow(toBN(other)));\n };\n BigNumber.prototype.maskn = function (value) {\n return toBigNumber(_bnify(this).maskn(value));\n };\n BigNumber.prototype.eq = function (other) {\n return _bnify(this).eq(toBN(other));\n };\n BigNumber.prototype.lt = function (other) {\n return _bnify(this).lt(toBN(other));\n };\n BigNumber.prototype.lte = function (other) {\n return _bnify(this).lte(toBN(other));\n };\n BigNumber.prototype.gt = function (other) {\n return _bnify(this).gt(toBN(other));\n };\n BigNumber.prototype.gte = function (other) {\n return _bnify(this).gte(toBN(other));\n };\n BigNumber.prototype.isZero = function () {\n return _bnify(this).isZero();\n };\n BigNumber.prototype.toNumber = function () {\n try {\n return _bnify(this).toNumber();\n }\n catch (error) {\n errors.throwError('overflow', errors.NUMERIC_FAULT, { operation: 'setValue', fault: 'overflow', details: error.message });\n }\n return null;\n };\n BigNumber.prototype.toString = function () {\n return _bnify(this).toString(10);\n };\n BigNumber.prototype.toHexString = function () {\n return this._hex;\n };\n BigNumber.isBigNumber = function (value) {\n return properties_1.isType(value, 'BigNumber');\n };\n return BigNumber;\n}());\nexports.BigNumber = BigNumber;\nfunction bigNumberify(value) {\n if (BigNumber.isBigNumber(value)) {\n return value;\n }\n return new BigNumber(value);\n}\nexports.bigNumberify = bigNumberify;\n","\"use strict\";\n/**\n * Conversion Utilities\n *\n */\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar errors = __importStar(require(\"../errors\"));\n///////////////////////////////\nfunction isHexable(value) {\n return !!(value.toHexString);\n}\nexports.isHexable = isHexable;\nfunction addSlice(array) {\n if (array.slice) {\n return array;\n }\n array.slice = function () {\n var args = Array.prototype.slice.call(arguments);\n return addSlice(new Uint8Array(Array.prototype.slice.apply(array, args)));\n };\n return array;\n}\nfunction isArrayish(value) {\n if (!value || parseInt(String(value.length)) != value.length || typeof (value) === 'string') {\n return false;\n }\n for (var i = 0; i < value.length; i++) {\n var v = value[i];\n if (v < 0 || v >= 256 || parseInt(String(v)) != v) {\n return false;\n }\n }\n return true;\n}\nexports.isArrayish = isArrayish;\nfunction arrayify(value) {\n if (value == null) {\n errors.throwError('cannot convert null value to array', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n if (isHexable(value)) {\n value = value.toHexString();\n }\n if (typeof (value) === 'string') {\n var match = value.match(/^(0x)?[0-9a-fA-F]*$/);\n if (!match) {\n errors.throwError('invalid hexidecimal string', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n if (match[1] !== '0x') {\n errors.throwError('hex string must have 0x prefix', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n value = value.substring(2);\n if (value.length % 2) {\n value = '0' + value;\n }\n var result = [];\n for (var i = 0; i < value.length; i += 2) {\n result.push(parseInt(value.substr(i, 2), 16));\n }\n return addSlice(new Uint8Array(result));\n }\n if (isArrayish(value)) {\n return addSlice(new Uint8Array(value));\n }\n errors.throwError('invalid arrayify value', null, { arg: 'value', value: value, type: typeof (value) });\n return null;\n}\nexports.arrayify = arrayify;\nfunction concat(objects) {\n var arrays = [];\n var length = 0;\n for (var i = 0; i < objects.length; i++) {\n var object = arrayify(objects[i]);\n arrays.push(object);\n length += object.length;\n }\n var result = new Uint8Array(length);\n var offset = 0;\n for (var i = 0; i < arrays.length; i++) {\n result.set(arrays[i], offset);\n offset += arrays[i].length;\n }\n return addSlice(result);\n}\nexports.concat = concat;\nfunction stripZeros(value) {\n var result = arrayify(value);\n if (result.length === 0) {\n return result;\n }\n // Find the first non-zero entry\n var start = 0;\n while (result[start] === 0) {\n start++;\n }\n // If we started with zeros, strip them\n if (start) {\n result = result.slice(start);\n }\n return result;\n}\nexports.stripZeros = stripZeros;\nfunction padZeros(value, length) {\n value = arrayify(value);\n if (length < value.length) {\n throw new Error('cannot pad');\n }\n var result = new Uint8Array(length);\n result.set(value, length - value.length);\n return addSlice(result);\n}\nexports.padZeros = padZeros;\nfunction isHexString(value, length) {\n if (typeof (value) !== 'string' || !value.match(/^0x[0-9A-Fa-f]*$/)) {\n return false;\n }\n if (length && value.length !== 2 + 2 * length) {\n return false;\n }\n return true;\n}\nexports.isHexString = isHexString;\nvar HexCharacters = '0123456789abcdef';\nfunction hexlify(value) {\n if (isHexable(value)) {\n return value.toHexString();\n }\n if (typeof (value) === 'number') {\n if (value < 0) {\n errors.throwError('cannot hexlify negative value', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n // @TODO: Roll this into the above error as a numeric fault (overflow); next version, not backward compatible\n // We can about (value == MAX_INT) to as well, since that may indicate we underflowed already\n if (value >= 9007199254740991) {\n errors.throwError(\"out-of-range\", errors.NUMERIC_FAULT, {\n operartion: \"hexlify\",\n fault: \"out-of-safe-range\"\n });\n }\n var hex = '';\n while (value) {\n hex = HexCharacters[value & 0x0f] + hex;\n value = Math.floor(value / 16);\n }\n if (hex.length) {\n if (hex.length % 2) {\n hex = '0' + hex;\n }\n return '0x' + hex;\n }\n return '0x00';\n }\n if (typeof (value) === 'string') {\n var match = value.match(/^(0x)?[0-9a-fA-F]*$/);\n if (!match) {\n errors.throwError('invalid hexidecimal string', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n if (match[1] !== '0x') {\n errors.throwError('hex string must have 0x prefix', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n if (value.length % 2) {\n value = '0x0' + value.substring(2);\n }\n return value;\n }\n if (isArrayish(value)) {\n var result = [];\n for (var i = 0; i < value.length; i++) {\n var v = value[i];\n result.push(HexCharacters[(v & 0xf0) >> 4] + HexCharacters[v & 0x0f]);\n }\n return '0x' + result.join('');\n }\n errors.throwError('invalid hexlify value', null, { arg: 'value', value: value });\n return 'never';\n}\nexports.hexlify = hexlify;\nfunction hexDataLength(data) {\n if (!isHexString(data) || (data.length % 2) !== 0) {\n return null;\n }\n return (data.length - 2) / 2;\n}\nexports.hexDataLength = hexDataLength;\nfunction hexDataSlice(data, offset, endOffset) {\n if (!isHexString(data)) {\n errors.throwError('invalid hex data', errors.INVALID_ARGUMENT, { arg: 'value', value: data });\n }\n if ((data.length % 2) !== 0) {\n errors.throwError('hex data length must be even', errors.INVALID_ARGUMENT, { arg: 'value', value: data });\n }\n offset = 2 + 2 * offset;\n if (endOffset != null) {\n return '0x' + data.substring(offset, 2 + 2 * endOffset);\n }\n return '0x' + data.substring(offset);\n}\nexports.hexDataSlice = hexDataSlice;\nfunction hexStripZeros(value) {\n if (!isHexString(value)) {\n errors.throwError('invalid hex string', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n while (value.length > 3 && value.substring(0, 3) === '0x0') {\n value = '0x' + value.substring(3);\n }\n return value;\n}\nexports.hexStripZeros = hexStripZeros;\nfunction hexZeroPad(value, length) {\n if (!isHexString(value)) {\n errors.throwError('invalid hex string', errors.INVALID_ARGUMENT, { arg: 'value', value: value });\n }\n while (value.length < 2 * length + 2) {\n value = '0x0' + value.substring(2);\n }\n return value;\n}\nexports.hexZeroPad = hexZeroPad;\nfunction isSignature(value) {\n return (value && value.r != null && value.s != null);\n}\nfunction splitSignature(signature) {\n var v = 0;\n var r = '0x', s = '0x';\n if (isSignature(signature)) {\n if (signature.v == null && signature.recoveryParam == null) {\n errors.throwError('at least on of recoveryParam or v must be specified', errors.INVALID_ARGUMENT, { argument: 'signature', value: signature });\n }\n r = hexZeroPad(signature.r, 32);\n s = hexZeroPad(signature.s, 32);\n v = signature.v;\n if (typeof (v) === 'string') {\n v = parseInt(v, 16);\n }\n var recoveryParam = signature.recoveryParam;\n if (recoveryParam == null && signature.v != null) {\n recoveryParam = 1 - (v % 2);\n }\n v = 27 + recoveryParam;\n }\n else {\n var bytes = arrayify(signature);\n if (bytes.length !== 65) {\n throw new Error('invalid signature');\n }\n r = hexlify(bytes.slice(0, 32));\n s = hexlify(bytes.slice(32, 64));\n v = bytes[64];\n if (v !== 27 && v !== 28) {\n v = 27 + (v % 2);\n }\n }\n return {\n r: r,\n s: s,\n recoveryParam: (v - 27),\n v: v\n };\n}\nexports.splitSignature = splitSignature;\nfunction joinSignature(signature) {\n signature = splitSignature(signature);\n return hexlify(concat([\n signature.r,\n signature.s,\n (signature.recoveryParam ? '0x1c' : '0x1b')\n ]));\n}\nexports.joinSignature = joinSignature;\n","'use strict';\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar sha3 = require(\"js-sha3\");\nvar bytes_1 = require(\"./bytes\");\nfunction keccak256(data) {\n return '0x' + sha3.keccak_256(bytes_1.arrayify(data));\n}\nexports.keccak256 = keccak256;\n","'use strict';\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];\n result[\"default\"] = mod;\n return result;\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar errors = __importStar(require(\"../errors\"));\nfunction defineReadOnly(object, name, value) {\n Object.defineProperty(object, name, {\n enumerable: true,\n value: value,\n writable: false,\n });\n}\nexports.defineReadOnly = defineReadOnly;\n// There are some issues with instanceof with npm link, so we use this\n// to ensure types are what we expect.\nfunction setType(object, type) {\n Object.defineProperty(object, '_ethersType', { configurable: false, value: type, writable: false });\n}\nexports.setType = setType;\nfunction isType(object, type) {\n return (object && object._ethersType === type);\n}\nexports.isType = isType;\nfunction resolveProperties(object) {\n var result = {};\n var promises = [];\n Object.keys(object).forEach(function (key) {\n var value = object[key];\n if (value instanceof Promise) {\n promises.push(value.then(function (value) {\n result[key] = value;\n return null;\n }));\n }\n else {\n result[key] = value;\n }\n });\n return Promise.all(promises).then(function () {\n return result;\n });\n}\nexports.resolveProperties = resolveProperties;\nfunction checkProperties(object, properties) {\n if (!object || typeof (object) !== 'object') {\n errors.throwError('invalid object', errors.INVALID_ARGUMENT, {\n argument: 'object',\n value: object\n });\n }\n Object.keys(object).forEach(function (key) {\n if (!properties[key]) {\n errors.throwError('invalid object key - ' + key, errors.INVALID_ARGUMENT, {\n argument: 'transaction',\n value: object,\n key: key\n });\n }\n });\n}\nexports.checkProperties = checkProperties;\nfunction shallowCopy(object) {\n var result = {};\n for (var key in object) {\n result[key] = object[key];\n }\n return result;\n}\nexports.shallowCopy = shallowCopy;\nvar opaque = { boolean: true, number: true, string: true };\nfunction deepCopy(object, frozen) {\n // Opaque objects are not mutable, so safe to copy by assignment\n if (object === undefined || object === null || opaque[typeof (object)]) {\n return object;\n }\n // Arrays are mutable, so we need to create a copy\n if (Array.isArray(object)) {\n var result = object.map(function (item) { return deepCopy(item, frozen); });\n if (frozen) {\n Object.freeze(result);\n }\n return result;\n }\n if (typeof (object) === 'object') {\n // Some internal objects, which are already immutable\n if (isType(object, 'BigNumber')) {\n return object;\n }\n if (isType(object, 'Description')) {\n return object;\n }\n if (isType(object, 'Indexed')) {\n return object;\n }\n var result = {};\n for (var key in object) {\n var value = object[key];\n if (value === undefined) {\n continue;\n }\n defineReadOnly(result, key, deepCopy(value, frozen));\n }\n if (frozen) {\n Object.freeze(result);\n }\n return result;\n }\n // The function type is also immutable, so safe to copy by assignment\n if (typeof (object) === 'function') {\n return object;\n }\n throw new Error('Cannot deepCopy ' + typeof (object));\n}\nexports.deepCopy = deepCopy;\n// See: https://github.com/isaacs/inherits/blob/master/inherits_browser.js\nfunction inherits(ctor, superCtor) {\n ctor.super_ = superCtor;\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n}\nfunction inheritable(parent) {\n return function (child) {\n inherits(child, parent);\n defineReadOnly(child, 'inherits', inheritable(child));\n };\n}\nexports.inheritable = inheritable;\n","\"use strict\";\n//See: https://github.com/ethereum/wiki/wiki/RLP\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar bytes_1 = require(\"./bytes\");\nfunction arrayifyInteger(value) {\n var result = [];\n while (value) {\n result.unshift(value & 0xff);\n value >>= 8;\n }\n return result;\n}\nfunction unarrayifyInteger(data, offset, length) {\n var result = 0;\n for (var i = 0; i < length; i++) {\n result = (result * 256) + data[offset + i];\n }\n return result;\n}\nfunction _encode(object) {\n if (Array.isArray(object)) {\n var payload = [];\n object.forEach(function (child) {\n payload = payload.concat(_encode(child));\n });\n if (payload.length <= 55) {\n payload.unshift(0xc0 + payload.length);\n return payload;\n }\n var length = arrayifyInteger(payload.length);\n length.unshift(0xf7 + length.length);\n return length.concat(payload);\n }\n var data = Array.prototype.slice.call(bytes_1.arrayify(object));\n if (data.length === 1 && data[0] <= 0x7f) {\n return data;\n }\n else if (data.length <= 55) {\n data.unshift(0x80 + data.length);\n return data;\n }\n var length = arrayifyInteger(data.length);\n length.unshift(0xb7 + length.length);\n return length.concat(data);\n}\nfunction encode(object) {\n return bytes_1.hexlify(_encode(object));\n}\nexports.encode = encode;\nfunction _decodeChildren(data, offset, childOffset, length) {\n var result = [];\n while (childOffset < offset + 1 + length) {\n var decoded = _decode(data, childOffset);\n result.push(decoded.result);\n childOffset += decoded.consumed;\n if (childOffset > offset + 1 + length) {\n throw new Error('invalid rlp');\n }\n }\n return { consumed: (1 + length), result: result };\n}\n// returns { consumed: number, result: Object }\nfunction _decode(data, offset) {\n if (data.length === 0) {\n throw new Error('invalid rlp data');\n }\n // Array with extra length prefix\n if (data[offset] >= 0xf8) {\n var lengthLength = data[offset] - 0xf7;\n if (offset + 1 + lengthLength > data.length) {\n throw new Error('too short');\n }\n var length = unarrayifyInteger(data, offset + 1, lengthLength);\n if (offset + 1 + lengthLength + length > data.length) {\n throw new Error('to short');\n }\n return _decodeChildren(data, offset, offset + 1 + lengthLength, lengthLength + length);\n }\n else if (data[offset] >= 0xc0) {\n var length = data[offset] - 0xc0;\n if (offset + 1 + length > data.length) {\n throw new Error('invalid rlp data');\n }\n return _decodeChildren(data, offset, offset + 1, length);\n }\n else if (data[offset] >= 0xb8) {\n var lengthLength = data[offset] - 0xb7;\n if (offset + 1 + lengthLength > data.length) {\n throw new Error('invalid rlp data');\n }\n var length = unarrayifyInteger(data, offset + 1, lengthLength);\n if (offset + 1 + lengthLength + length > data.length) {\n throw new Error('invalid rlp data');\n }\n var result = bytes_1.hexlify(data.slice(offset + 1 + lengthLength, offset + 1 + lengthLength + length));\n return { consumed: (1 + lengthLength + length), result: result };\n }\n else if (data[offset] >= 0x80) {\n var length = data[offset] - 0x80;\n if (offset + 1 + length > data.length) {\n throw new Error('invlaid rlp data');\n }\n var result = bytes_1.hexlify(data.slice(offset + 1, offset + 1 + length));\n return { consumed: (1 + length), result: result };\n }\n return { consumed: 1, result: bytes_1.hexlify(data[offset]) };\n}\nfunction decode(data) {\n var bytes = bytes_1.arrayify(data);\n var decoded = _decode(bytes, 0);\n if (decoded.consumed !== bytes.length) {\n throw new Error('invalid rlp data');\n }\n return decoded.result;\n}\nexports.decode = decode;\n","'use strict';\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar constants_1 = require(\"../constants\");\nvar errors_1 = require(\"../errors\");\nvar bytes_1 = require(\"./bytes\");\n///////////////////////////////\nvar UnicodeNormalizationForm;\n(function (UnicodeNormalizationForm) {\n UnicodeNormalizationForm[\"current\"] = \"\";\n UnicodeNormalizationForm[\"NFC\"] = \"NFC\";\n UnicodeNormalizationForm[\"NFD\"] = \"NFD\";\n UnicodeNormalizationForm[\"NFKC\"] = \"NFKC\";\n UnicodeNormalizationForm[\"NFKD\"] = \"NFKD\";\n})(UnicodeNormalizationForm = exports.UnicodeNormalizationForm || (exports.UnicodeNormalizationForm = {}));\n;\n// http://stackoverflow.com/questions/18729405/how-to-convert-utf8-string-to-byte-array\nfunction toUtf8Bytes(str, form) {\n if (form === void 0) { form = UnicodeNormalizationForm.current; }\n if (form != UnicodeNormalizationForm.current) {\n errors_1.checkNormalize();\n str = str.normalize(form);\n }\n var result = [];\n for (var i = 0; i < str.length; i++) {\n var c = str.charCodeAt(i);\n if (c < 0x80) {\n result.push(c);\n }\n else if (c < 0x800) {\n result.push((c >> 6) | 0xc0);\n result.push((c & 0x3f) | 0x80);\n }\n else if ((c & 0xfc00) == 0xd800) {\n i++;\n var c2 = str.charCodeAt(i);\n if (i >= str.length || (c2 & 0xfc00) !== 0xdc00) {\n throw new Error('invalid utf-8 string');\n }\n // Surrogate Pair\n c = 0x10000 + ((c & 0x03ff) << 10) + (c2 & 0x03ff);\n result.push((c >> 18) | 0xf0);\n result.push(((c >> 12) & 0x3f) | 0x80);\n result.push(((c >> 6) & 0x3f) | 0x80);\n result.push((c & 0x3f) | 0x80);\n }\n else {\n result.push((c >> 12) | 0xe0);\n result.push(((c >> 6) & 0x3f) | 0x80);\n result.push((c & 0x3f) | 0x80);\n }\n }\n return bytes_1.arrayify(result);\n}\nexports.toUtf8Bytes = toUtf8Bytes;\n;\n// http://stackoverflow.com/questions/13356493/decode-utf-8-with-javascript#13691499\nfunction toUtf8String(bytes, ignoreErrors) {\n bytes = bytes_1.arrayify(bytes);\n var result = '';\n var i = 0;\n // Invalid bytes are ignored\n while (i < bytes.length) {\n var c = bytes[i++];\n // 0xxx xxxx\n if (c >> 7 === 0) {\n result += String.fromCharCode(c);\n continue;\n }\n // Multibyte; how many bytes left for this character?\n var extraLength = null;\n var overlongMask = null;\n // 110x xxxx 10xx xxxx\n if ((c & 0xe0) === 0xc0) {\n extraLength = 1;\n overlongMask = 0x7f;\n // 1110 xxxx 10xx xxxx 10xx xxxx\n }\n else if ((c & 0xf0) === 0xe0) {\n extraLength = 2;\n overlongMask = 0x7ff;\n // 1111 0xxx 10xx xxxx 10xx xxxx 10xx xxxx\n }\n else if ((c & 0xf8) === 0xf0) {\n extraLength = 3;\n overlongMask = 0xffff;\n }\n else {\n if (!ignoreErrors) {\n if ((c & 0xc0) === 0x80) {\n throw new Error('invalid utf8 byte sequence; unexpected continuation byte');\n }\n throw new Error('invalid utf8 byte sequence; invalid prefix');\n }\n continue;\n }\n // Do we have enough bytes in our data?\n if (i + extraLength > bytes.length) {\n if (!ignoreErrors) {\n throw new Error('invalid utf8 byte sequence; too short');\n }\n // If there is an invalid unprocessed byte, skip continuation bytes\n for (; i < bytes.length; i++) {\n if (bytes[i] >> 6 !== 0x02) {\n break;\n }\n }\n continue;\n }\n // Remove the length prefix from the char\n var res = c & ((1 << (8 - extraLength - 1)) - 1);\n for (var j = 0; j < extraLength; j++) {\n var nextChar = bytes[i];\n // Invalid continuation byte\n if ((nextChar & 0xc0) != 0x80) {\n res = null;\n break;\n }\n ;\n res = (res << 6) | (nextChar & 0x3f);\n i++;\n }\n if (res === null) {\n if (!ignoreErrors) {\n throw new Error('invalid utf8 byte sequence; invalid continuation byte');\n }\n continue;\n }\n // Check for overlong seuences (more bytes than needed)\n if (res <= overlongMask) {\n if (!ignoreErrors) {\n throw new Error('invalid utf8 byte sequence; overlong');\n }\n continue;\n }\n // Maximum code point\n if (res > 0x10ffff) {\n if (!ignoreErrors) {\n throw new Error('invalid utf8 byte sequence; out-of-range');\n }\n continue;\n }\n // Reserved for UTF-16 surrogate halves\n if (res >= 0xd800 && res <= 0xdfff) {\n if (!ignoreErrors) {\n throw new Error('invalid utf8 byte sequence; utf-16 surrogate');\n }\n continue;\n }\n if (res <= 0xffff) {\n result += String.fromCharCode(res);\n continue;\n }\n res -= 0x10000;\n result += String.fromCharCode(((res >> 10) & 0x3ff) + 0xd800, (res & 0x3ff) + 0xdc00);\n }\n return result;\n}\nexports.toUtf8String = toUtf8String;\nfunction formatBytes32String(text) {\n // Get the bytes\n var bytes = toUtf8Bytes(text);\n // Check we have room for null-termination\n if (bytes.length > 31) {\n throw new Error('bytes32 string must be less than 32 bytes');\n }\n // Zero-pad (implicitly null-terminates)\n return bytes_1.hexlify(bytes_1.concat([bytes, constants_1.HashZero]).slice(0, 32));\n}\nexports.formatBytes32String = formatBytes32String;\nfunction parseBytes32String(bytes) {\n var data = bytes_1.arrayify(bytes);\n // Must be 32 bytes with a null-termination\n if (data.length !== 32) {\n throw new Error('invalid bytes32 - not 32 bytes long');\n }\n if (data[31] !== 0) {\n throw new Error('invalid bytes32 sdtring - no null terminator');\n }\n // Find the null termination\n var length = 31;\n while (data[length - 1] === 0) {\n length--;\n }\n // Determine the string value\n return toUtf8String(data.slice(0, length));\n}\nexports.parseBytes32String = parseBytes32String;\n","// see https://github.com/danfinlay/jazzicon\nconst MersenneTwister = require('mersenne-twister');\nconst defaultColors = [\n 'rgb(244, 67, 54)',\n 'rgb(233, 30, 99)',\n 'rgb(156, 39, 176)',\n 'rgb(103, 58, 183)',\n 'rgb(63, 81, 181)',\n 'rgb(33, 150, 243)',\n 'rgb(3, 169, 244)',\n 'rgb(0, 188, 212)',\n 'rgb(0, 150, 136)',\n 'rgb(76, 175, 80)',\n 'rgb(139, 195, 74)',\n 'rgb(205, 220, 57)',\n 'rgb(255, 193, 7)',\n 'rgb(255, 152, 0)',\n 'rgb(255, 87, 34)'\n];\nconst hash = function (str) {\n if (str.length === 0) {\n return 0;\n }\n let h = 0;\n for (let i = 0; i < str.length; i++) {\n h = h * 31 + str.charCodeAt(i);\n h = h % (Math.pow(2, 32));\n }\n return h;\n};\nexport function picasso(content, colors) {\n colors = colors || defaultColors;\n const seed = hash(content);\n const rand = new MersenneTwister(seed);\n colors = colors.slice();\n const genColor = () => {\n const idx = Math.floor(colors.length * rand.random());\n return colors.splice(idx, 1)[0];\n };\n const bgStr = ``;\n const style = ``;\n let shapesStr = '';\n const layers = 3;\n const rs = [35, 40, 45, 50, 55, 60];\n const cxs = [0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100];\n const cys = [30, 40, 50, 60, 70];\n for (let i = 0; i < layers; i++) {\n const r = rs.splice(Math.floor(rs.length * rand.random()), 1)[0];\n const cx = cxs.splice(Math.floor(cxs.length * rand.random()), 1)[0];\n const cy = cys.splice(Math.floor(cys.length * rand.random()), 1)[0];\n const fill = genColor();\n shapesStr += ``;\n }\n return `${style}${bgStr}${shapesStr}`;\n}\nexport default picasso;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsNENBQTRDO0FBRTVDLE1BQU0sZUFBZSxHQUFHLE9BQU8sQ0FBQyxrQkFBa0IsQ0FBQyxDQUFBO0FBRW5ELE1BQU0sYUFBYSxHQUFHO0lBQ2xCLGtCQUFrQjtJQUNsQixrQkFBa0I7SUFDbEIsbUJBQW1CO0lBQ25CLG1CQUFtQjtJQUNuQixrQkFBa0I7SUFDbEIsbUJBQW1CO0lBQ25CLGtCQUFrQjtJQUNsQixrQkFBa0I7SUFDbEIsa0JBQWtCO0lBQ2xCLGtCQUFrQjtJQUNsQixtQkFBbUI7SUFDbkIsbUJBQW1CO0lBQ25CLGtCQUFrQjtJQUNsQixrQkFBa0I7SUFDbEIsa0JBQWtCO0NBQUMsQ0FBQTtBQUV2QixNQUFNLElBQUksR0FBRyxVQUFVLEdBQVc7SUFDOUIsSUFBSSxHQUFHLENBQUMsTU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QyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUE7UUFDbkUsTUFBTSxFQUFFLEdBQUcsR0FBRyxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLEdBQUcsQ0FBQyxNQUFNLEdBQUcsSUFBSSxDQUFDLE1BQU0sRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUE7UUFDbkUsTUFBTSxJQUFJLEdBQUcsUUFBUSxFQUFFLENBQUE7UUFFdkIsU0FBUyxJQUFJLGNBQWMsQ0FBQyxTQUFTLEVBQUUsU0FBUyxFQUFFLFdBQVcsSUFBSSxLQUFLLENBQUE7S0FDekU7SUFDRCxPQUFPLHdIQUF3SCxLQUFLLEdBQUcsS0FBSyxHQUFHLFNBQVMsUUFBUSxDQUFBO0FBQ3BLLENBQUM7QUFFRCxlQUFlLE9BQU8sQ0FBQSJ9","/* globals __VUE_SSR_CONTEXT__ */\n\n// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).\n// This module is a runtime utility for cleaner component module output and will\n// be included in the final webpack user bundle.\n\nexport default function normalizeComponent(\n scriptExports,\n render,\n staticRenderFns,\n functionalTemplate,\n injectStyles,\n scopeId,\n moduleIdentifier /* server only */,\n shadowMode /* vue-cli only */\n) {\n // Vue.extend constructor export interop\n var options =\n typeof scriptExports === 'function' ? scriptExports.options : scriptExports\n\n // render functions\n if (render) {\n options.render = render\n options.staticRenderFns = staticRenderFns\n options._compiled = true\n }\n\n // functional template\n if (functionalTemplate) {\n options.functional = true\n }\n\n // scopedId\n if (scopeId) {\n options._scopeId = 'data-v-' + scopeId\n }\n\n var hook\n if (moduleIdentifier) {\n // server build\n hook = function (context) {\n // 2.3 injection\n context =\n context || // cached call\n (this.$vnode && this.$vnode.ssrContext) || // stateful\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional\n // 2.2 with runInNewContext: true\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__\n }\n // inject component styles\n if (injectStyles) {\n injectStyles.call(this, context)\n }\n // register component module identifier for async chunk inferrence\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier)\n }\n }\n // used by ssr in case component is cached and beforeCreate\n // never gets called\n options._ssrRegister = hook\n } else if (injectStyles) {\n hook = shadowMode\n ? function () {\n injectStyles.call(\n this,\n (options.functional ? this.parent : this).$root.$options.shadowRoot\n )\n }\n : injectStyles\n }\n\n if (hook) {\n if (options.functional) {\n // for template-only hot-reload because in that case the render fn doesn't\n // go through the normalizer\n options._injectStyles = hook\n // register for functional component in vue file\n var originalRender = options.render\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context)\n return originalRender(h, context)\n }\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook]\n }\n }\n\n return {\n exports: scriptExports,\n options: options\n }\n}\n","// Currently in sync with Node.js lib/assert.js\n// https://github.com/nodejs/node/commit/2a51ae424a513ec9a6aa3466baa0cc1d55dd4f3b\n\n// Originally from narwhal.js (http://narwhaljs.org)\n// Copyright (c) 2009 Thomas Robinson <280north.com>\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy\n// of this software and associated documentation files (the 'Software'), to\n// deal in the Software without restriction, including without limitation the\n// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or\n// sell copies of the Software, and to permit persons to whom the Software is\n// furnished to do so, subject to the following conditions:\n//\n// The above copyright notice and this permission notice shall be included in\n// all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n// AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN\n// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION\n// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nvar _require = require('./internal/errors'),\n _require$codes = _require.codes,\n ERR_AMBIGUOUS_ARGUMENT = _require$codes.ERR_AMBIGUOUS_ARGUMENT,\n ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,\n ERR_INVALID_ARG_VALUE = _require$codes.ERR_INVALID_ARG_VALUE,\n ERR_INVALID_RETURN_VALUE = _require$codes.ERR_INVALID_RETURN_VALUE,\n ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS;\nvar AssertionError = require('./internal/assert/assertion_error');\nvar _require2 = require('util/'),\n inspect = _require2.inspect;\nvar _require$types = require('util/').types,\n isPromise = _require$types.isPromise,\n isRegExp = _require$types.isRegExp;\nvar objectAssign = require('object.assign/polyfill')();\nvar objectIs = require('object-is/polyfill')();\nvar RegExpPrototypeTest = require('call-bind/callBound')('RegExp.prototype.test');\nvar errorCache = new Map();\nvar isDeepEqual;\nvar isDeepStrictEqual;\nvar parseExpressionAt;\nvar findNodeAround;\nvar decoder;\nfunction lazyLoadComparison() {\n var comparison = require('./internal/util/comparisons');\n isDeepEqual = comparison.isDeepEqual;\n isDeepStrictEqual = comparison.isDeepStrictEqual;\n}\n\n// Escape control characters but not \\n and \\t to keep the line breaks and\n// indentation intact.\n// eslint-disable-next-line no-control-regex\nvar escapeSequencesRegExp = /[\\x00-\\x08\\x0b\\x0c\\x0e-\\x1f]/g;\nvar meta = [\"\\\\u0000\", \"\\\\u0001\", \"\\\\u0002\", \"\\\\u0003\", \"\\\\u0004\", \"\\\\u0005\", \"\\\\u0006\", \"\\\\u0007\", '\\\\b', '', '', \"\\\\u000b\", '\\\\f', '', \"\\\\u000e\", \"\\\\u000f\", \"\\\\u0010\", \"\\\\u0011\", \"\\\\u0012\", \"\\\\u0013\", \"\\\\u0014\", \"\\\\u0015\", \"\\\\u0016\", \"\\\\u0017\", \"\\\\u0018\", \"\\\\u0019\", \"\\\\u001a\", \"\\\\u001b\", \"\\\\u001c\", \"\\\\u001d\", \"\\\\u001e\", \"\\\\u001f\"];\nvar escapeFn = function escapeFn(str) {\n return meta[str.charCodeAt(0)];\n};\nvar warned = false;\n\n// The assert module provides functions that throw\n// AssertionError's when particular conditions are not met. The\n// assert module must conform to the following interface.\n\nvar assert = module.exports = ok;\nvar NO_EXCEPTION_SENTINEL = {};\n\n// All of the following functions must throw an AssertionError\n// when a corresponding condition is not met, with a message that\n// may be undefined if not provided. All assertion methods provide\n// both the actual and expected values to the assertion error for\n// display purposes.\n\nfunction innerFail(obj) {\n if (obj.message instanceof Error) throw obj.message;\n throw new AssertionError(obj);\n}\nfunction fail(actual, expected, message, operator, stackStartFn) {\n var argsLen = arguments.length;\n var internalMessage;\n if (argsLen === 0) {\n internalMessage = 'Failed';\n } else if (argsLen === 1) {\n message = actual;\n actual = undefined;\n } else {\n if (warned === false) {\n warned = true;\n var warn = process.emitWarning ? process.emitWarning : console.warn.bind(console);\n warn('assert.fail() with more than one argument is deprecated. ' + 'Please use assert.strictEqual() instead or only pass a message.', 'DeprecationWarning', 'DEP0094');\n }\n if (argsLen === 2) operator = '!=';\n }\n if (message instanceof Error) throw message;\n var errArgs = {\n actual: actual,\n expected: expected,\n operator: operator === undefined ? 'fail' : operator,\n stackStartFn: stackStartFn || fail\n };\n if (message !== undefined) {\n errArgs.message = message;\n }\n var err = new AssertionError(errArgs);\n if (internalMessage) {\n err.message = internalMessage;\n err.generatedMessage = true;\n }\n throw err;\n}\nassert.fail = fail;\n\n// The AssertionError is defined in internal/error.\nassert.AssertionError = AssertionError;\nfunction innerOk(fn, argLen, value, message) {\n if (!value) {\n var generatedMessage = false;\n if (argLen === 0) {\n generatedMessage = true;\n message = 'No value argument passed to `assert.ok()`';\n } else if (message instanceof Error) {\n throw message;\n }\n var err = new AssertionError({\n actual: value,\n expected: true,\n message: message,\n operator: '==',\n stackStartFn: fn\n });\n err.generatedMessage = generatedMessage;\n throw err;\n }\n}\n\n// Pure assertion tests whether a value is truthy, as determined\n// by !!value.\nfunction ok() {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n innerOk.apply(void 0, [ok, args.length].concat(args));\n}\nassert.ok = ok;\n\n// The equality assertion tests shallow, coercive equality with ==.\n/* eslint-disable no-restricted-properties */\nassert.equal = function equal(actual, expected, message) {\n if (arguments.length < 2) {\n throw new ERR_MISSING_ARGS('actual', 'expected');\n }\n // eslint-disable-next-line eqeqeq\n if (actual != expected) {\n innerFail({\n actual: actual,\n expected: expected,\n message: message,\n operator: '==',\n stackStartFn: equal\n });\n }\n};\n\n// The non-equality assertion tests for whether two objects are not\n// equal with !=.\nassert.notEqual = function notEqual(actual, expected, message) {\n if (arguments.length < 2) {\n throw new ERR_MISSING_ARGS('actual', 'expected');\n }\n // eslint-disable-next-line eqeqeq\n if (actual == expected) {\n innerFail({\n actual: actual,\n expected: expected,\n message: message,\n operator: '!=',\n stackStartFn: notEqual\n });\n }\n};\n\n// The equivalence assertion tests a deep equality relation.\nassert.deepEqual = function deepEqual(actual, expected, message) {\n if (arguments.length < 2) {\n throw new ERR_MISSING_ARGS('actual', 'expected');\n }\n if (isDeepEqual === undefined) lazyLoadComparison();\n if (!isDeepEqual(actual, expected)) {\n innerFail({\n actual: actual,\n expected: expected,\n message: message,\n operator: 'deepEqual',\n stackStartFn: deepEqual\n });\n }\n};\n\n// The non-equivalence assertion tests for any deep inequality.\nassert.notDeepEqual = function notDeepEqual(actual, expected, message) {\n if (arguments.length < 2) {\n throw new ERR_MISSING_ARGS('actual', 'expected');\n }\n if (isDeepEqual === undefined) lazyLoadComparison();\n if (isDeepEqual(actual, expected)) {\n innerFail({\n actual: actual,\n expected: expected,\n message: message,\n operator: 'notDeepEqual',\n stackStartFn: notDeepEqual\n });\n }\n};\n/* eslint-enable */\n\nassert.deepStrictEqual = function deepStrictEqual(actual, expected, message) {\n if (arguments.length < 2) {\n throw new ERR_MISSING_ARGS('actual', 'expected');\n }\n if (isDeepEqual === undefined) lazyLoadComparison();\n if (!isDeepStrictEqual(actual, expected)) {\n innerFail({\n actual: actual,\n expected: expected,\n message: message,\n operator: 'deepStrictEqual',\n stackStartFn: deepStrictEqual\n });\n }\n};\nassert.notDeepStrictEqual = notDeepStrictEqual;\nfunction notDeepStrictEqual(actual, expected, message) {\n if (arguments.length < 2) {\n throw new ERR_MISSING_ARGS('actual', 'expected');\n }\n if (isDeepEqual === undefined) lazyLoadComparison();\n if (isDeepStrictEqual(actual, expected)) {\n innerFail({\n actual: actual,\n expected: expected,\n message: message,\n operator: 'notDeepStrictEqual',\n stackStartFn: notDeepStrictEqual\n });\n }\n}\nassert.strictEqual = function strictEqual(actual, expected, message) {\n if (arguments.length < 2) {\n throw new ERR_MISSING_ARGS('actual', 'expected');\n }\n if (!objectIs(actual, expected)) {\n innerFail({\n actual: actual,\n expected: expected,\n message: message,\n operator: 'strictEqual',\n stackStartFn: strictEqual\n });\n }\n};\nassert.notStrictEqual = function notStrictEqual(actual, expected, message) {\n if (arguments.length < 2) {\n throw new ERR_MISSING_ARGS('actual', 'expected');\n }\n if (objectIs(actual, expected)) {\n innerFail({\n actual: actual,\n expected: expected,\n message: message,\n operator: 'notStrictEqual',\n stackStartFn: notStrictEqual\n });\n }\n};\nvar Comparison = /*#__PURE__*/_createClass(function Comparison(obj, keys, actual) {\n var _this = this;\n _classCallCheck(this, Comparison);\n keys.forEach(function (key) {\n if (key in obj) {\n if (actual !== undefined && typeof actual[key] === 'string' && isRegExp(obj[key]) && RegExpPrototypeTest(obj[key], actual[key])) {\n _this[key] = actual[key];\n } else {\n _this[key] = obj[key];\n }\n }\n });\n});\nfunction compareExceptionKey(actual, expected, key, message, keys, fn) {\n if (!(key in actual) || !isDeepStrictEqual(actual[key], expected[key])) {\n if (!message) {\n // Create placeholder objects to create a nice output.\n var a = new Comparison(actual, keys);\n var b = new Comparison(expected, keys, actual);\n var err = new AssertionError({\n actual: a,\n expected: b,\n operator: 'deepStrictEqual',\n stackStartFn: fn\n });\n err.actual = actual;\n err.expected = expected;\n err.operator = fn.name;\n throw err;\n }\n innerFail({\n actual: actual,\n expected: expected,\n message: message,\n operator: fn.name,\n stackStartFn: fn\n });\n }\n}\nfunction expectedException(actual, expected, msg, fn) {\n if (typeof expected !== 'function') {\n if (isRegExp(expected)) return RegExpPrototypeTest(expected, actual);\n // assert.doesNotThrow does not accept objects.\n if (arguments.length === 2) {\n throw new ERR_INVALID_ARG_TYPE('expected', ['Function', 'RegExp'], expected);\n }\n\n // Handle primitives properly.\n if (_typeof(actual) !== 'object' || actual === null) {\n var err = new AssertionError({\n actual: actual,\n expected: expected,\n message: msg,\n operator: 'deepStrictEqual',\n stackStartFn: fn\n });\n err.operator = fn.name;\n throw err;\n }\n var keys = Object.keys(expected);\n // Special handle errors to make sure the name and the message are compared\n // as well.\n if (expected instanceof Error) {\n keys.push('name', 'message');\n } else if (keys.length === 0) {\n throw new ERR_INVALID_ARG_VALUE('error', expected, 'may not be an empty object');\n }\n if (isDeepEqual === undefined) lazyLoadComparison();\n keys.forEach(function (key) {\n if (typeof actual[key] === 'string' && isRegExp(expected[key]) && RegExpPrototypeTest(expected[key], actual[key])) {\n return;\n }\n compareExceptionKey(actual, expected, key, msg, keys, fn);\n });\n return true;\n }\n // Guard instanceof against arrow functions as they don't have a prototype.\n if (expected.prototype !== undefined && actual instanceof expected) {\n return true;\n }\n if (Error.isPrototypeOf(expected)) {\n return false;\n }\n return expected.call({}, actual) === true;\n}\nfunction getActual(fn) {\n if (typeof fn !== 'function') {\n throw new ERR_INVALID_ARG_TYPE('fn', 'Function', fn);\n }\n try {\n fn();\n } catch (e) {\n return e;\n }\n return NO_EXCEPTION_SENTINEL;\n}\nfunction checkIsPromise(obj) {\n // Accept native ES6 promises and promises that are implemented in a similar\n // way. Do not accept thenables that use a function as `obj` and that have no\n // `catch` handler.\n\n // TODO: thenables are checked up until they have the correct methods,\n // but according to documentation, the `then` method should receive\n // the `fulfill` and `reject` arguments as well or it may be never resolved.\n\n return isPromise(obj) || obj !== null && _typeof(obj) === 'object' && typeof obj.then === 'function' && typeof obj.catch === 'function';\n}\nfunction waitForActual(promiseFn) {\n return Promise.resolve().then(function () {\n var resultPromise;\n if (typeof promiseFn === 'function') {\n // Return a rejected promise if `promiseFn` throws synchronously.\n resultPromise = promiseFn();\n // Fail in case no promise is returned.\n if (!checkIsPromise(resultPromise)) {\n throw new ERR_INVALID_RETURN_VALUE('instance of Promise', 'promiseFn', resultPromise);\n }\n } else if (checkIsPromise(promiseFn)) {\n resultPromise = promiseFn;\n } else {\n throw new ERR_INVALID_ARG_TYPE('promiseFn', ['Function', 'Promise'], promiseFn);\n }\n return Promise.resolve().then(function () {\n return resultPromise;\n }).then(function () {\n return NO_EXCEPTION_SENTINEL;\n }).catch(function (e) {\n return e;\n });\n });\n}\nfunction expectsError(stackStartFn, actual, error, message) {\n if (typeof error === 'string') {\n if (arguments.length === 4) {\n throw new ERR_INVALID_ARG_TYPE('error', ['Object', 'Error', 'Function', 'RegExp'], error);\n }\n if (_typeof(actual) === 'object' && actual !== null) {\n if (actual.message === error) {\n throw new ERR_AMBIGUOUS_ARGUMENT('error/message', \"The error message \\\"\".concat(actual.message, \"\\\" is identical to the message.\"));\n }\n } else if (actual === error) {\n throw new ERR_AMBIGUOUS_ARGUMENT('error/message', \"The error \\\"\".concat(actual, \"\\\" is identical to the message.\"));\n }\n message = error;\n error = undefined;\n } else if (error != null && _typeof(error) !== 'object' && typeof error !== 'function') {\n throw new ERR_INVALID_ARG_TYPE('error', ['Object', 'Error', 'Function', 'RegExp'], error);\n }\n if (actual === NO_EXCEPTION_SENTINEL) {\n var details = '';\n if (error && error.name) {\n details += \" (\".concat(error.name, \")\");\n }\n details += message ? \": \".concat(message) : '.';\n var fnType = stackStartFn.name === 'rejects' ? 'rejection' : 'exception';\n innerFail({\n actual: undefined,\n expected: error,\n operator: stackStartFn.name,\n message: \"Missing expected \".concat(fnType).concat(details),\n stackStartFn: stackStartFn\n });\n }\n if (error && !expectedException(actual, error, message, stackStartFn)) {\n throw actual;\n }\n}\nfunction expectsNoError(stackStartFn, actual, error, message) {\n if (actual === NO_EXCEPTION_SENTINEL) return;\n if (typeof error === 'string') {\n message = error;\n error = undefined;\n }\n if (!error || expectedException(actual, error)) {\n var details = message ? \": \".concat(message) : '.';\n var fnType = stackStartFn.name === 'doesNotReject' ? 'rejection' : 'exception';\n innerFail({\n actual: actual,\n expected: error,\n operator: stackStartFn.name,\n message: \"Got unwanted \".concat(fnType).concat(details, \"\\n\") + \"Actual message: \\\"\".concat(actual && actual.message, \"\\\"\"),\n stackStartFn: stackStartFn\n });\n }\n throw actual;\n}\nassert.throws = function throws(promiseFn) {\n for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {\n args[_key2 - 1] = arguments[_key2];\n }\n expectsError.apply(void 0, [throws, getActual(promiseFn)].concat(args));\n};\nassert.rejects = function rejects(promiseFn) {\n for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {\n args[_key3 - 1] = arguments[_key3];\n }\n return waitForActual(promiseFn).then(function (result) {\n return expectsError.apply(void 0, [rejects, result].concat(args));\n });\n};\nassert.doesNotThrow = function doesNotThrow(fn) {\n for (var _len4 = arguments.length, args = new Array(_len4 > 1 ? _len4 - 1 : 0), _key4 = 1; _key4 < _len4; _key4++) {\n args[_key4 - 1] = arguments[_key4];\n }\n expectsNoError.apply(void 0, [doesNotThrow, getActual(fn)].concat(args));\n};\nassert.doesNotReject = function doesNotReject(fn) {\n for (var _len5 = arguments.length, args = new Array(_len5 > 1 ? _len5 - 1 : 0), _key5 = 1; _key5 < _len5; _key5++) {\n args[_key5 - 1] = arguments[_key5];\n }\n return waitForActual(fn).then(function (result) {\n return expectsNoError.apply(void 0, [doesNotReject, result].concat(args));\n });\n};\nassert.ifError = function ifError(err) {\n if (err !== null && err !== undefined) {\n var message = 'ifError got unwanted exception: ';\n if (_typeof(err) === 'object' && typeof err.message === 'string') {\n if (err.message.length === 0 && err.constructor) {\n message += err.constructor.name;\n } else {\n message += err.message;\n }\n } else {\n message += inspect(err);\n }\n var newErr = new AssertionError({\n actual: err,\n expected: null,\n operator: 'ifError',\n message: message,\n stackStartFn: ifError\n });\n\n // Make sure we actually have a stack trace!\n var origStack = err.stack;\n if (typeof origStack === 'string') {\n // This will remove any duplicated frames from the error frames taken\n // from within `ifError` and add the original error frames to the newly\n // created ones.\n var tmp2 = origStack.split('\\n');\n tmp2.shift();\n // Filter all frames existing in err.stack.\n var tmp1 = newErr.stack.split('\\n');\n for (var i = 0; i < tmp2.length; i++) {\n // Find the first occurrence of the frame.\n var pos = tmp1.indexOf(tmp2[i]);\n if (pos !== -1) {\n // Only keep new frames.\n tmp1 = tmp1.slice(0, pos);\n break;\n }\n }\n newErr.stack = \"\".concat(tmp1.join('\\n'), \"\\n\").concat(tmp2.join('\\n'));\n }\n throw newErr;\n }\n};\n\n// Currently in sync with Node.js lib/assert.js\n// https://github.com/nodejs/node/commit/2a871df3dfb8ea663ef5e1f8f62701ec51384ecb\nfunction internalMatch(string, regexp, message, fn, fnName) {\n if (!isRegExp(regexp)) {\n throw new ERR_INVALID_ARG_TYPE('regexp', 'RegExp', regexp);\n }\n var match = fnName === 'match';\n if (typeof string !== 'string' || RegExpPrototypeTest(regexp, string) !== match) {\n if (message instanceof Error) {\n throw message;\n }\n var generatedMessage = !message;\n\n // 'The input was expected to not match the regular expression ' +\n message = message || (typeof string !== 'string' ? 'The \"string\" argument must be of type string. Received type ' + \"\".concat(_typeof(string), \" (\").concat(inspect(string), \")\") : (match ? 'The input did not match the regular expression ' : 'The input was expected to not match the regular expression ') + \"\".concat(inspect(regexp), \". Input:\\n\\n\").concat(inspect(string), \"\\n\"));\n var err = new AssertionError({\n actual: string,\n expected: regexp,\n message: message,\n operator: fnName,\n stackStartFn: fn\n });\n err.generatedMessage = generatedMessage;\n throw err;\n }\n}\nassert.match = function match(string, regexp, message) {\n internalMatch(string, regexp, message, match, 'match');\n};\nassert.doesNotMatch = function doesNotMatch(string, regexp, message) {\n internalMatch(string, regexp, message, doesNotMatch, 'doesNotMatch');\n};\n\n// Expose a strict only variant of assert\nfunction strict() {\n for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {\n args[_key6] = arguments[_key6];\n }\n innerOk.apply(void 0, [strict, args.length].concat(args));\n}\nassert.strict = objectAssign(strict, assert, {\n equal: assert.strictEqual,\n deepEqual: assert.deepStrictEqual,\n notEqual: assert.notStrictEqual,\n notDeepEqual: assert.notDeepStrictEqual\n});\nassert.strict.strict = assert.strict;","// Currently in sync with Node.js lib/internal/assert/assertion_error.js\n// https://github.com/nodejs/node/commit/0817840f775032169ddd70c85ac059f18ffcc81c\n\n'use strict';\n\nfunction ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }\nfunction _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _wrapNativeSuper(Class) { var _cache = typeof Map === \"function\" ? new Map() : undefined; _wrapNativeSuper = function _wrapNativeSuper(Class) { if (Class === null || !_isNativeFunction(Class)) return Class; if (typeof Class !== \"function\") { throw new TypeError(\"Super expression must either be null or a function\"); } if (typeof _cache !== \"undefined\") { if (_cache.has(Class)) return _cache.get(Class); _cache.set(Class, Wrapper); } function Wrapper() { return _construct(Class, arguments, _getPrototypeOf(this).constructor); } Wrapper.prototype = Object.create(Class.prototype, { constructor: { value: Wrapper, enumerable: false, writable: true, configurable: true } }); return _setPrototypeOf(Wrapper, Class); }; return _wrapNativeSuper(Class); }\nfunction _construct(Parent, args, Class) { if (_isNativeReflectConstruct()) { _construct = Reflect.construct.bind(); } else { _construct = function _construct(Parent, args, Class) { var a = [null]; a.push.apply(a, args); var Constructor = Function.bind.apply(Parent, a); var instance = new Constructor(); if (Class) _setPrototypeOf(instance, Class.prototype); return instance; }; } return _construct.apply(null, arguments); }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nfunction _isNativeFunction(fn) { return Function.toString.call(fn).indexOf(\"[native code]\") !== -1; }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nvar _require = require('util/'),\n inspect = _require.inspect;\nvar _require2 = require('../errors'),\n ERR_INVALID_ARG_TYPE = _require2.codes.ERR_INVALID_ARG_TYPE;\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith\nfunction endsWith(str, search, this_len) {\n if (this_len === undefined || this_len > str.length) {\n this_len = str.length;\n }\n return str.substring(this_len - search.length, this_len) === search;\n}\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat\nfunction repeat(str, count) {\n count = Math.floor(count);\n if (str.length == 0 || count == 0) return '';\n var maxCount = str.length * count;\n count = Math.floor(Math.log(count) / Math.log(2));\n while (count) {\n str += str;\n count--;\n }\n str += str.substring(0, maxCount - str.length);\n return str;\n}\nvar blue = '';\nvar green = '';\nvar red = '';\nvar white = '';\nvar kReadableOperator = {\n deepStrictEqual: 'Expected values to be strictly deep-equal:',\n strictEqual: 'Expected values to be strictly equal:',\n strictEqualObject: 'Expected \"actual\" to be reference-equal to \"expected\":',\n deepEqual: 'Expected values to be loosely deep-equal:',\n equal: 'Expected values to be loosely equal:',\n notDeepStrictEqual: 'Expected \"actual\" not to be strictly deep-equal to:',\n notStrictEqual: 'Expected \"actual\" to be strictly unequal to:',\n notStrictEqualObject: 'Expected \"actual\" not to be reference-equal to \"expected\":',\n notDeepEqual: 'Expected \"actual\" not to be loosely deep-equal to:',\n notEqual: 'Expected \"actual\" to be loosely unequal to:',\n notIdentical: 'Values identical but not reference-equal:'\n};\n\n// Comparing short primitives should just show === / !== instead of using the\n// diff.\nvar kMaxShortLength = 10;\nfunction copyError(source) {\n var keys = Object.keys(source);\n var target = Object.create(Object.getPrototypeOf(source));\n keys.forEach(function (key) {\n target[key] = source[key];\n });\n Object.defineProperty(target, 'message', {\n value: source.message\n });\n return target;\n}\nfunction inspectValue(val) {\n // The util.inspect default values could be changed. This makes sure the\n // error messages contain the necessary information nevertheless.\n return inspect(val, {\n compact: false,\n customInspect: false,\n depth: 1000,\n maxArrayLength: Infinity,\n // Assert compares only enumerable properties (with a few exceptions).\n showHidden: false,\n // Having a long line as error is better than wrapping the line for\n // comparison for now.\n // TODO(BridgeAR): `breakLength` should be limited as soon as soon as we\n // have meta information about the inspected properties (i.e., know where\n // in what line the property starts and ends).\n breakLength: Infinity,\n // Assert does not detect proxies currently.\n showProxy: false,\n sorted: true,\n // Inspect getters as we also check them when comparing entries.\n getters: true\n });\n}\nfunction createErrDiff(actual, expected, operator) {\n var other = '';\n var res = '';\n var lastPos = 0;\n var end = '';\n var skipped = false;\n var actualInspected = inspectValue(actual);\n var actualLines = actualInspected.split('\\n');\n var expectedLines = inspectValue(expected).split('\\n');\n var i = 0;\n var indicator = '';\n\n // In case both values are objects explicitly mark them as not reference equal\n // for the `strictEqual` operator.\n if (operator === 'strictEqual' && _typeof(actual) === 'object' && _typeof(expected) === 'object' && actual !== null && expected !== null) {\n operator = 'strictEqualObject';\n }\n\n // If \"actual\" and \"expected\" fit on a single line and they are not strictly\n // equal, check further special handling.\n if (actualLines.length === 1 && expectedLines.length === 1 && actualLines[0] !== expectedLines[0]) {\n var inputLength = actualLines[0].length + expectedLines[0].length;\n // If the character length of \"actual\" and \"expected\" together is less than\n // kMaxShortLength and if neither is an object and at least one of them is\n // not `zero`, use the strict equal comparison to visualize the output.\n if (inputLength <= kMaxShortLength) {\n if ((_typeof(actual) !== 'object' || actual === null) && (_typeof(expected) !== 'object' || expected === null) && (actual !== 0 || expected !== 0)) {\n // -0 === +0\n return \"\".concat(kReadableOperator[operator], \"\\n\\n\") + \"\".concat(actualLines[0], \" !== \").concat(expectedLines[0], \"\\n\");\n }\n } else if (operator !== 'strictEqualObject') {\n // If the stderr is a tty and the input length is lower than the current\n // columns per line, add a mismatch indicator below the output. If it is\n // not a tty, use a default value of 80 characters.\n var maxLength = process.stderr && process.stderr.isTTY ? process.stderr.columns : 80;\n if (inputLength < maxLength) {\n while (actualLines[0][i] === expectedLines[0][i]) {\n i++;\n }\n // Ignore the first characters.\n if (i > 2) {\n // Add position indicator for the first mismatch in case it is a\n // single line and the input length is less than the column length.\n indicator = \"\\n \".concat(repeat(' ', i), \"^\");\n i = 0;\n }\n }\n }\n }\n\n // Remove all ending lines that match (this optimizes the output for\n // readability by reducing the number of total changed lines).\n var a = actualLines[actualLines.length - 1];\n var b = expectedLines[expectedLines.length - 1];\n while (a === b) {\n if (i++ < 2) {\n end = \"\\n \".concat(a).concat(end);\n } else {\n other = a;\n }\n actualLines.pop();\n expectedLines.pop();\n if (actualLines.length === 0 || expectedLines.length === 0) break;\n a = actualLines[actualLines.length - 1];\n b = expectedLines[expectedLines.length - 1];\n }\n var maxLines = Math.max(actualLines.length, expectedLines.length);\n // Strict equal with identical objects that are not identical by reference.\n // E.g., assert.deepStrictEqual({ a: Symbol() }, { a: Symbol() })\n if (maxLines === 0) {\n // We have to get the result again. The lines were all removed before.\n var _actualLines = actualInspected.split('\\n');\n\n // Only remove lines in case it makes sense to collapse those.\n // TODO: Accept env to always show the full error.\n if (_actualLines.length > 30) {\n _actualLines[26] = \"\".concat(blue, \"...\").concat(white);\n while (_actualLines.length > 27) {\n _actualLines.pop();\n }\n }\n return \"\".concat(kReadableOperator.notIdentical, \"\\n\\n\").concat(_actualLines.join('\\n'), \"\\n\");\n }\n if (i > 3) {\n end = \"\\n\".concat(blue, \"...\").concat(white).concat(end);\n skipped = true;\n }\n if (other !== '') {\n end = \"\\n \".concat(other).concat(end);\n other = '';\n }\n var printedLines = 0;\n var msg = kReadableOperator[operator] + \"\\n\".concat(green, \"+ actual\").concat(white, \" \").concat(red, \"- expected\").concat(white);\n var skippedMsg = \" \".concat(blue, \"...\").concat(white, \" Lines skipped\");\n for (i = 0; i < maxLines; i++) {\n // Only extra expected lines exist\n var cur = i - lastPos;\n if (actualLines.length < i + 1) {\n // If the last diverging line is more than one line above and the\n // current line is at least line three, add some of the former lines and\n // also add dots to indicate skipped entries.\n if (cur > 1 && i > 2) {\n if (cur > 4) {\n res += \"\\n\".concat(blue, \"...\").concat(white);\n skipped = true;\n } else if (cur > 3) {\n res += \"\\n \".concat(expectedLines[i - 2]);\n printedLines++;\n }\n res += \"\\n \".concat(expectedLines[i - 1]);\n printedLines++;\n }\n // Mark the current line as the last diverging one.\n lastPos = i;\n // Add the expected line to the cache.\n other += \"\\n\".concat(red, \"-\").concat(white, \" \").concat(expectedLines[i]);\n printedLines++;\n // Only extra actual lines exist\n } else if (expectedLines.length < i + 1) {\n // If the last diverging line is more than one line above and the\n // current line is at least line three, add some of the former lines and\n // also add dots to indicate skipped entries.\n if (cur > 1 && i > 2) {\n if (cur > 4) {\n res += \"\\n\".concat(blue, \"...\").concat(white);\n skipped = true;\n } else if (cur > 3) {\n res += \"\\n \".concat(actualLines[i - 2]);\n printedLines++;\n }\n res += \"\\n \".concat(actualLines[i - 1]);\n printedLines++;\n }\n // Mark the current line as the last diverging one.\n lastPos = i;\n // Add the actual line to the result.\n res += \"\\n\".concat(green, \"+\").concat(white, \" \").concat(actualLines[i]);\n printedLines++;\n // Lines diverge\n } else {\n var expectedLine = expectedLines[i];\n var actualLine = actualLines[i];\n // If the lines diverge, specifically check for lines that only diverge by\n // a trailing comma. In that case it is actually identical and we should\n // mark it as such.\n var divergingLines = actualLine !== expectedLine && (!endsWith(actualLine, ',') || actualLine.slice(0, -1) !== expectedLine);\n // If the expected line has a trailing comma but is otherwise identical,\n // add a comma at the end of the actual line. Otherwise the output could\n // look weird as in:\n //\n // [\n // 1 // No comma at the end!\n // + 2\n // ]\n //\n if (divergingLines && endsWith(expectedLine, ',') && expectedLine.slice(0, -1) === actualLine) {\n divergingLines = false;\n actualLine += ',';\n }\n if (divergingLines) {\n // If the last diverging line is more than one line above and the\n // current line is at least line three, add some of the former lines and\n // also add dots to indicate skipped entries.\n if (cur > 1 && i > 2) {\n if (cur > 4) {\n res += \"\\n\".concat(blue, \"...\").concat(white);\n skipped = true;\n } else if (cur > 3) {\n res += \"\\n \".concat(actualLines[i - 2]);\n printedLines++;\n }\n res += \"\\n \".concat(actualLines[i - 1]);\n printedLines++;\n }\n // Mark the current line as the last diverging one.\n lastPos = i;\n // Add the actual line to the result and cache the expected diverging\n // line so consecutive diverging lines show up as +++--- and not +-+-+-.\n res += \"\\n\".concat(green, \"+\").concat(white, \" \").concat(actualLine);\n other += \"\\n\".concat(red, \"-\").concat(white, \" \").concat(expectedLine);\n printedLines += 2;\n // Lines are identical\n } else {\n // Add all cached information to the result before adding other things\n // and reset the cache.\n res += other;\n other = '';\n // If the last diverging line is exactly one line above or if it is the\n // very first line, add the line to the result.\n if (cur === 1 || i === 0) {\n res += \"\\n \".concat(actualLine);\n printedLines++;\n }\n }\n }\n // Inspected object to big (Show ~20 rows max)\n if (printedLines > 20 && i < maxLines - 2) {\n return \"\".concat(msg).concat(skippedMsg, \"\\n\").concat(res, \"\\n\").concat(blue, \"...\").concat(white).concat(other, \"\\n\") + \"\".concat(blue, \"...\").concat(white);\n }\n }\n return \"\".concat(msg).concat(skipped ? skippedMsg : '', \"\\n\").concat(res).concat(other).concat(end).concat(indicator);\n}\nvar AssertionError = /*#__PURE__*/function (_Error, _inspect$custom) {\n _inherits(AssertionError, _Error);\n var _super = _createSuper(AssertionError);\n function AssertionError(options) {\n var _this;\n _classCallCheck(this, AssertionError);\n if (_typeof(options) !== 'object' || options === null) {\n throw new ERR_INVALID_ARG_TYPE('options', 'Object', options);\n }\n var message = options.message,\n operator = options.operator,\n stackStartFn = options.stackStartFn;\n var actual = options.actual,\n expected = options.expected;\n var limit = Error.stackTraceLimit;\n Error.stackTraceLimit = 0;\n if (message != null) {\n _this = _super.call(this, String(message));\n } else {\n if (process.stderr && process.stderr.isTTY) {\n // Reset on each call to make sure we handle dynamically set environment\n // variables correct.\n if (process.stderr && process.stderr.getColorDepth && process.stderr.getColorDepth() !== 1) {\n blue = \"\\x1B[34m\";\n green = \"\\x1B[32m\";\n white = \"\\x1B[39m\";\n red = \"\\x1B[31m\";\n } else {\n blue = '';\n green = '';\n white = '';\n red = '';\n }\n }\n // Prevent the error stack from being visible by duplicating the error\n // in a very close way to the original in case both sides are actually\n // instances of Error.\n if (_typeof(actual) === 'object' && actual !== null && _typeof(expected) === 'object' && expected !== null && 'stack' in actual && actual instanceof Error && 'stack' in expected && expected instanceof Error) {\n actual = copyError(actual);\n expected = copyError(expected);\n }\n if (operator === 'deepStrictEqual' || operator === 'strictEqual') {\n _this = _super.call(this, createErrDiff(actual, expected, operator));\n } else if (operator === 'notDeepStrictEqual' || operator === 'notStrictEqual') {\n // In case the objects are equal but the operator requires unequal, show\n // the first object and say A equals B\n var base = kReadableOperator[operator];\n var res = inspectValue(actual).split('\\n');\n\n // In case \"actual\" is an object, it should not be reference equal.\n if (operator === 'notStrictEqual' && _typeof(actual) === 'object' && actual !== null) {\n base = kReadableOperator.notStrictEqualObject;\n }\n\n // Only remove lines in case it makes sense to collapse those.\n // TODO: Accept env to always show the full error.\n if (res.length > 30) {\n res[26] = \"\".concat(blue, \"...\").concat(white);\n while (res.length > 27) {\n res.pop();\n }\n }\n\n // Only print a single input.\n if (res.length === 1) {\n _this = _super.call(this, \"\".concat(base, \" \").concat(res[0]));\n } else {\n _this = _super.call(this, \"\".concat(base, \"\\n\\n\").concat(res.join('\\n'), \"\\n\"));\n }\n } else {\n var _res = inspectValue(actual);\n var other = '';\n var knownOperators = kReadableOperator[operator];\n if (operator === 'notDeepEqual' || operator === 'notEqual') {\n _res = \"\".concat(kReadableOperator[operator], \"\\n\\n\").concat(_res);\n if (_res.length > 1024) {\n _res = \"\".concat(_res.slice(0, 1021), \"...\");\n }\n } else {\n other = \"\".concat(inspectValue(expected));\n if (_res.length > 512) {\n _res = \"\".concat(_res.slice(0, 509), \"...\");\n }\n if (other.length > 512) {\n other = \"\".concat(other.slice(0, 509), \"...\");\n }\n if (operator === 'deepEqual' || operator === 'equal') {\n _res = \"\".concat(knownOperators, \"\\n\\n\").concat(_res, \"\\n\\nshould equal\\n\\n\");\n } else {\n other = \" \".concat(operator, \" \").concat(other);\n }\n }\n _this = _super.call(this, \"\".concat(_res).concat(other));\n }\n }\n Error.stackTraceLimit = limit;\n _this.generatedMessage = !message;\n Object.defineProperty(_assertThisInitialized(_this), 'name', {\n value: 'AssertionError [ERR_ASSERTION]',\n enumerable: false,\n writable: true,\n configurable: true\n });\n _this.code = 'ERR_ASSERTION';\n _this.actual = actual;\n _this.expected = expected;\n _this.operator = operator;\n if (Error.captureStackTrace) {\n // eslint-disable-next-line no-restricted-syntax\n Error.captureStackTrace(_assertThisInitialized(_this), stackStartFn);\n }\n // Create error message including the error code in the name.\n _this.stack;\n // Reset the name.\n _this.name = 'AssertionError';\n return _possibleConstructorReturn(_this);\n }\n _createClass(AssertionError, [{\n key: \"toString\",\n value: function toString() {\n return \"\".concat(this.name, \" [\").concat(this.code, \"]: \").concat(this.message);\n }\n }, {\n key: _inspect$custom,\n value: function value(recurseTimes, ctx) {\n // This limits the `actual` and `expected` property default inspection to\n // the minimum depth. Otherwise those values would be too verbose compared\n // to the actual error message which contains a combined view of these two\n // input values.\n return inspect(this, _objectSpread(_objectSpread({}, ctx), {}, {\n customInspect: false,\n depth: 0\n }));\n }\n }]);\n return AssertionError;\n}( /*#__PURE__*/_wrapNativeSuper(Error), inspect.custom);\nmodule.exports = AssertionError;","// Currently in sync with Node.js lib/internal/errors.js\n// https://github.com/nodejs/node/commit/3b044962c48fe313905877a96b5d0894a5404f6f\n\n/* eslint node-core/documented-errors: \"error\" */\n/* eslint node-core/alphabetize-errors: \"error\" */\n/* eslint node-core/prefer-util-format-errors: \"error\" */\n\n'use strict';\n\n// The whole point behind this internal module is to allow Node.js to no\n// longer be forced to treat every error message change as a semver-major\n// change. The NodeError classes here all expose a `code` property whose\n// value statically and permanently identifies the error. While the error\n// message may change, the code should not.\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return _typeof(key) === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (_typeof(input) !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (_typeof(res) !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nvar codes = {};\n\n// Lazy loaded\nvar assert;\nvar util;\nfunction createErrorType(code, message, Base) {\n if (!Base) {\n Base = Error;\n }\n function getMessage(arg1, arg2, arg3) {\n if (typeof message === 'string') {\n return message;\n } else {\n return message(arg1, arg2, arg3);\n }\n }\n var NodeError = /*#__PURE__*/function (_Base) {\n _inherits(NodeError, _Base);\n var _super = _createSuper(NodeError);\n function NodeError(arg1, arg2, arg3) {\n var _this;\n _classCallCheck(this, NodeError);\n _this = _super.call(this, getMessage(arg1, arg2, arg3));\n _this.code = code;\n return _this;\n }\n return _createClass(NodeError);\n }(Base);\n codes[code] = NodeError;\n}\n\n// https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js\nfunction oneOf(expected, thing) {\n if (Array.isArray(expected)) {\n var len = expected.length;\n expected = expected.map(function (i) {\n return String(i);\n });\n if (len > 2) {\n return \"one of \".concat(thing, \" \").concat(expected.slice(0, len - 1).join(', '), \", or \") + expected[len - 1];\n } else if (len === 2) {\n return \"one of \".concat(thing, \" \").concat(expected[0], \" or \").concat(expected[1]);\n } else {\n return \"of \".concat(thing, \" \").concat(expected[0]);\n }\n } else {\n return \"of \".concat(thing, \" \").concat(String(expected));\n }\n}\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith\nfunction startsWith(str, search, pos) {\n return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;\n}\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith\nfunction endsWith(str, search, this_len) {\n if (this_len === undefined || this_len > str.length) {\n this_len = str.length;\n }\n return str.substring(this_len - search.length, this_len) === search;\n}\n\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes\nfunction includes(str, search, start) {\n if (typeof start !== 'number') {\n start = 0;\n }\n if (start + search.length > str.length) {\n return false;\n } else {\n return str.indexOf(search, start) !== -1;\n }\n}\ncreateErrorType('ERR_AMBIGUOUS_ARGUMENT', 'The \"%s\" argument is ambiguous. %s', TypeError);\ncreateErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) {\n if (assert === undefined) assert = require('../assert');\n assert(typeof name === 'string', \"'name' must be a string\");\n\n // determiner: 'must be' or 'must not be'\n var determiner;\n if (typeof expected === 'string' && startsWith(expected, 'not ')) {\n determiner = 'must not be';\n expected = expected.replace(/^not /, '');\n } else {\n determiner = 'must be';\n }\n var msg;\n if (endsWith(name, ' argument')) {\n // For cases like 'first argument'\n msg = \"The \".concat(name, \" \").concat(determiner, \" \").concat(oneOf(expected, 'type'));\n } else {\n var type = includes(name, '.') ? 'property' : 'argument';\n msg = \"The \\\"\".concat(name, \"\\\" \").concat(type, \" \").concat(determiner, \" \").concat(oneOf(expected, 'type'));\n }\n\n // TODO(BridgeAR): Improve the output by showing `null` and similar.\n msg += \". Received type \".concat(_typeof(actual));\n return msg;\n}, TypeError);\ncreateErrorType('ERR_INVALID_ARG_VALUE', function (name, value) {\n var reason = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'is invalid';\n if (util === undefined) util = require('util/');\n var inspected = util.inspect(value);\n if (inspected.length > 128) {\n inspected = \"\".concat(inspected.slice(0, 128), \"...\");\n }\n return \"The argument '\".concat(name, \"' \").concat(reason, \". Received \").concat(inspected);\n}, TypeError, RangeError);\ncreateErrorType('ERR_INVALID_RETURN_VALUE', function (input, name, value) {\n var type;\n if (value && value.constructor && value.constructor.name) {\n type = \"instance of \".concat(value.constructor.name);\n } else {\n type = \"type \".concat(_typeof(value));\n }\n return \"Expected \".concat(input, \" to be returned from the \\\"\").concat(name, \"\\\"\") + \" function but got \".concat(type, \".\");\n}, TypeError);\ncreateErrorType('ERR_MISSING_ARGS', function () {\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n if (assert === undefined) assert = require('../assert');\n assert(args.length > 0, 'At least one arg needs to be specified');\n var msg = 'The ';\n var len = args.length;\n args = args.map(function (a) {\n return \"\\\"\".concat(a, \"\\\"\");\n });\n switch (len) {\n case 1:\n msg += \"\".concat(args[0], \" argument\");\n break;\n case 2:\n msg += \"\".concat(args[0], \" and \").concat(args[1], \" arguments\");\n break;\n default:\n msg += args.slice(0, len - 1).join(', ');\n msg += \", and \".concat(args[len - 1], \" arguments\");\n break;\n }\n return \"\".concat(msg, \" must be specified\");\n}, TypeError);\nmodule.exports.codes = codes;","// Currently in sync with Node.js lib/internal/util/comparisons.js\n// https://github.com/nodejs/node/commit/112cc7c27551254aa2b17098fb774867f05ed0d9\n\n'use strict';\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nvar regexFlagsSupported = /a/g.flags !== undefined;\nvar arrayFromSet = function arrayFromSet(set) {\n var array = [];\n set.forEach(function (value) {\n return array.push(value);\n });\n return array;\n};\nvar arrayFromMap = function arrayFromMap(map) {\n var array = [];\n map.forEach(function (value, key) {\n return array.push([key, value]);\n });\n return array;\n};\nvar objectIs = Object.is ? Object.is : require('object-is');\nvar objectGetOwnPropertySymbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols : function () {\n return [];\n};\nvar numberIsNaN = Number.isNaN ? Number.isNaN : require('is-nan');\nfunction uncurryThis(f) {\n return f.call.bind(f);\n}\nvar hasOwnProperty = uncurryThis(Object.prototype.hasOwnProperty);\nvar propertyIsEnumerable = uncurryThis(Object.prototype.propertyIsEnumerable);\nvar objectToString = uncurryThis(Object.prototype.toString);\nvar _require$types = require('util/').types,\n isAnyArrayBuffer = _require$types.isAnyArrayBuffer,\n isArrayBufferView = _require$types.isArrayBufferView,\n isDate = _require$types.isDate,\n isMap = _require$types.isMap,\n isRegExp = _require$types.isRegExp,\n isSet = _require$types.isSet,\n isNativeError = _require$types.isNativeError,\n isBoxedPrimitive = _require$types.isBoxedPrimitive,\n isNumberObject = _require$types.isNumberObject,\n isStringObject = _require$types.isStringObject,\n isBooleanObject = _require$types.isBooleanObject,\n isBigIntObject = _require$types.isBigIntObject,\n isSymbolObject = _require$types.isSymbolObject,\n isFloat32Array = _require$types.isFloat32Array,\n isFloat64Array = _require$types.isFloat64Array;\nfunction isNonIndex(key) {\n if (key.length === 0 || key.length > 10) return true;\n for (var i = 0; i < key.length; i++) {\n var code = key.charCodeAt(i);\n if (code < 48 || code > 57) return true;\n }\n // The maximum size for an array is 2 ** 32 -1.\n return key.length === 10 && key >= Math.pow(2, 32);\n}\nfunction getOwnNonIndexProperties(value) {\n return Object.keys(value).filter(isNonIndex).concat(objectGetOwnPropertySymbols(value).filter(Object.prototype.propertyIsEnumerable.bind(value)));\n}\n\n// Taken from https://github.com/feross/buffer/blob/680e9e5e488f22aac27599a57dc844a6315928dd/index.js\n// original notice:\n/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\nfunction compare(a, b) {\n if (a === b) {\n return 0;\n }\n var x = a.length;\n var y = b.length;\n for (var i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i];\n y = b[i];\n break;\n }\n }\n if (x < y) {\n return -1;\n }\n if (y < x) {\n return 1;\n }\n return 0;\n}\nvar ONLY_ENUMERABLE = undefined;\nvar kStrict = true;\nvar kLoose = false;\nvar kNoIterator = 0;\nvar kIsArray = 1;\nvar kIsSet = 2;\nvar kIsMap = 3;\n\n// Check if they have the same source and flags\nfunction areSimilarRegExps(a, b) {\n return regexFlagsSupported ? a.source === b.source && a.flags === b.flags : RegExp.prototype.toString.call(a) === RegExp.prototype.toString.call(b);\n}\nfunction areSimilarFloatArrays(a, b) {\n if (a.byteLength !== b.byteLength) {\n return false;\n }\n for (var offset = 0; offset < a.byteLength; offset++) {\n if (a[offset] !== b[offset]) {\n return false;\n }\n }\n return true;\n}\nfunction areSimilarTypedArrays(a, b) {\n if (a.byteLength !== b.byteLength) {\n return false;\n }\n return compare(new Uint8Array(a.buffer, a.byteOffset, a.byteLength), new Uint8Array(b.buffer, b.byteOffset, b.byteLength)) === 0;\n}\nfunction areEqualArrayBuffers(buf1, buf2) {\n return buf1.byteLength === buf2.byteLength && compare(new Uint8Array(buf1), new Uint8Array(buf2)) === 0;\n}\nfunction isEqualBoxedPrimitive(val1, val2) {\n if (isNumberObject(val1)) {\n return isNumberObject(val2) && objectIs(Number.prototype.valueOf.call(val1), Number.prototype.valueOf.call(val2));\n }\n if (isStringObject(val1)) {\n return isStringObject(val2) && String.prototype.valueOf.call(val1) === String.prototype.valueOf.call(val2);\n }\n if (isBooleanObject(val1)) {\n return isBooleanObject(val2) && Boolean.prototype.valueOf.call(val1) === Boolean.prototype.valueOf.call(val2);\n }\n if (isBigIntObject(val1)) {\n return isBigIntObject(val2) && BigInt.prototype.valueOf.call(val1) === BigInt.prototype.valueOf.call(val2);\n }\n return isSymbolObject(val2) && Symbol.prototype.valueOf.call(val1) === Symbol.prototype.valueOf.call(val2);\n}\n\n// Notes: Type tags are historical [[Class]] properties that can be set by\n// FunctionTemplate::SetClassName() in C++ or Symbol.toStringTag in JS\n// and retrieved using Object.prototype.toString.call(obj) in JS\n// See https://tc39.github.io/ecma262/#sec-object.prototype.tostring\n// for a list of tags pre-defined in the spec.\n// There are some unspecified tags in the wild too (e.g. typed array tags).\n// Since tags can be altered, they only serve fast failures\n//\n// Typed arrays and buffers are checked by comparing the content in their\n// underlying ArrayBuffer. This optimization requires that it's\n// reasonable to interpret their underlying memory in the same way,\n// which is checked by comparing their type tags.\n// (e.g. a Uint8Array and a Uint16Array with the same memory content\n// could still be different because they will be interpreted differently).\n//\n// For strict comparison, objects should have\n// a) The same built-in type tags\n// b) The same prototypes.\n\nfunction innerDeepEqual(val1, val2, strict, memos) {\n // All identical values are equivalent, as determined by ===.\n if (val1 === val2) {\n if (val1 !== 0) return true;\n return strict ? objectIs(val1, val2) : true;\n }\n\n // Check more closely if val1 and val2 are equal.\n if (strict) {\n if (_typeof(val1) !== 'object') {\n return typeof val1 === 'number' && numberIsNaN(val1) && numberIsNaN(val2);\n }\n if (_typeof(val2) !== 'object' || val1 === null || val2 === null) {\n return false;\n }\n if (Object.getPrototypeOf(val1) !== Object.getPrototypeOf(val2)) {\n return false;\n }\n } else {\n if (val1 === null || _typeof(val1) !== 'object') {\n if (val2 === null || _typeof(val2) !== 'object') {\n // eslint-disable-next-line eqeqeq\n return val1 == val2;\n }\n return false;\n }\n if (val2 === null || _typeof(val2) !== 'object') {\n return false;\n }\n }\n var val1Tag = objectToString(val1);\n var val2Tag = objectToString(val2);\n if (val1Tag !== val2Tag) {\n return false;\n }\n if (Array.isArray(val1)) {\n // Check for sparse arrays and general fast path\n if (val1.length !== val2.length) {\n return false;\n }\n var keys1 = getOwnNonIndexProperties(val1, ONLY_ENUMERABLE);\n var keys2 = getOwnNonIndexProperties(val2, ONLY_ENUMERABLE);\n if (keys1.length !== keys2.length) {\n return false;\n }\n return keyCheck(val1, val2, strict, memos, kIsArray, keys1);\n }\n // [browserify] This triggers on certain types in IE (Map/Set) so we don't\n // wan't to early return out of the rest of the checks. However we can check\n // if the second value is one of these values and the first isn't.\n if (val1Tag === '[object Object]') {\n // return keyCheck(val1, val2, strict, memos, kNoIterator);\n if (!isMap(val1) && isMap(val2) || !isSet(val1) && isSet(val2)) {\n return false;\n }\n }\n if (isDate(val1)) {\n if (!isDate(val2) || Date.prototype.getTime.call(val1) !== Date.prototype.getTime.call(val2)) {\n return false;\n }\n } else if (isRegExp(val1)) {\n if (!isRegExp(val2) || !areSimilarRegExps(val1, val2)) {\n return false;\n }\n } else if (isNativeError(val1) || val1 instanceof Error) {\n // Do not compare the stack as it might differ even though the error itself\n // is otherwise identical.\n if (val1.message !== val2.message || val1.name !== val2.name) {\n return false;\n }\n } else if (isArrayBufferView(val1)) {\n if (!strict && (isFloat32Array(val1) || isFloat64Array(val1))) {\n if (!areSimilarFloatArrays(val1, val2)) {\n return false;\n }\n } else if (!areSimilarTypedArrays(val1, val2)) {\n return false;\n }\n // Buffer.compare returns true, so val1.length === val2.length. If they both\n // only contain numeric keys, we don't need to exam further than checking\n // the symbols.\n var _keys = getOwnNonIndexProperties(val1, ONLY_ENUMERABLE);\n var _keys2 = getOwnNonIndexProperties(val2, ONLY_ENUMERABLE);\n if (_keys.length !== _keys2.length) {\n return false;\n }\n return keyCheck(val1, val2, strict, memos, kNoIterator, _keys);\n } else if (isSet(val1)) {\n if (!isSet(val2) || val1.size !== val2.size) {\n return false;\n }\n return keyCheck(val1, val2, strict, memos, kIsSet);\n } else if (isMap(val1)) {\n if (!isMap(val2) || val1.size !== val2.size) {\n return false;\n }\n return keyCheck(val1, val2, strict, memos, kIsMap);\n } else if (isAnyArrayBuffer(val1)) {\n if (!areEqualArrayBuffers(val1, val2)) {\n return false;\n }\n } else if (isBoxedPrimitive(val1) && !isEqualBoxedPrimitive(val1, val2)) {\n return false;\n }\n return keyCheck(val1, val2, strict, memos, kNoIterator);\n}\nfunction getEnumerables(val, keys) {\n return keys.filter(function (k) {\n return propertyIsEnumerable(val, k);\n });\n}\nfunction keyCheck(val1, val2, strict, memos, iterationType, aKeys) {\n // For all remaining Object pairs, including Array, objects and Maps,\n // equivalence is determined by having:\n // a) The same number of owned enumerable properties\n // b) The same set of keys/indexes (although not necessarily the same order)\n // c) Equivalent values for every corresponding key/index\n // d) For Sets and Maps, equal contents\n // Note: this accounts for both named and indexed properties on Arrays.\n if (arguments.length === 5) {\n aKeys = Object.keys(val1);\n var bKeys = Object.keys(val2);\n\n // The pair must have the same number of owned properties.\n if (aKeys.length !== bKeys.length) {\n return false;\n }\n }\n\n // Cheap key test\n var i = 0;\n for (; i < aKeys.length; i++) {\n if (!hasOwnProperty(val2, aKeys[i])) {\n return false;\n }\n }\n if (strict && arguments.length === 5) {\n var symbolKeysA = objectGetOwnPropertySymbols(val1);\n if (symbolKeysA.length !== 0) {\n var count = 0;\n for (i = 0; i < symbolKeysA.length; i++) {\n var key = symbolKeysA[i];\n if (propertyIsEnumerable(val1, key)) {\n if (!propertyIsEnumerable(val2, key)) {\n return false;\n }\n aKeys.push(key);\n count++;\n } else if (propertyIsEnumerable(val2, key)) {\n return false;\n }\n }\n var symbolKeysB = objectGetOwnPropertySymbols(val2);\n if (symbolKeysA.length !== symbolKeysB.length && getEnumerables(val2, symbolKeysB).length !== count) {\n return false;\n }\n } else {\n var _symbolKeysB = objectGetOwnPropertySymbols(val2);\n if (_symbolKeysB.length !== 0 && getEnumerables(val2, _symbolKeysB).length !== 0) {\n return false;\n }\n }\n }\n if (aKeys.length === 0 && (iterationType === kNoIterator || iterationType === kIsArray && val1.length === 0 || val1.size === 0)) {\n return true;\n }\n\n // Use memos to handle cycles.\n if (memos === undefined) {\n memos = {\n val1: new Map(),\n val2: new Map(),\n position: 0\n };\n } else {\n // We prevent up to two map.has(x) calls by directly retrieving the value\n // and checking for undefined. The map can only contain numbers, so it is\n // safe to check for undefined only.\n var val2MemoA = memos.val1.get(val1);\n if (val2MemoA !== undefined) {\n var val2MemoB = memos.val2.get(val2);\n if (val2MemoB !== undefined) {\n return val2MemoA === val2MemoB;\n }\n }\n memos.position++;\n }\n memos.val1.set(val1, memos.position);\n memos.val2.set(val2, memos.position);\n var areEq = objEquiv(val1, val2, strict, aKeys, memos, iterationType);\n memos.val1.delete(val1);\n memos.val2.delete(val2);\n return areEq;\n}\nfunction setHasEqualElement(set, val1, strict, memo) {\n // Go looking.\n var setValues = arrayFromSet(set);\n for (var i = 0; i < setValues.length; i++) {\n var val2 = setValues[i];\n if (innerDeepEqual(val1, val2, strict, memo)) {\n // Remove the matching element to make sure we do not check that again.\n set.delete(val2);\n return true;\n }\n }\n return false;\n}\n\n// See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Equality_comparisons_and_sameness#Loose_equality_using\n// Sadly it is not possible to detect corresponding values properly in case the\n// type is a string, number, bigint or boolean. The reason is that those values\n// can match lots of different string values (e.g., 1n == '+00001').\nfunction findLooseMatchingPrimitives(prim) {\n switch (_typeof(prim)) {\n case 'undefined':\n return null;\n case 'object':\n // Only pass in null as object!\n return undefined;\n case 'symbol':\n return false;\n case 'string':\n prim = +prim;\n // Loose equal entries exist only if the string is possible to convert to\n // a regular number and not NaN.\n // Fall through\n case 'number':\n if (numberIsNaN(prim)) {\n return false;\n }\n }\n return true;\n}\nfunction setMightHaveLoosePrim(a, b, prim) {\n var altValue = findLooseMatchingPrimitives(prim);\n if (altValue != null) return altValue;\n return b.has(altValue) && !a.has(altValue);\n}\nfunction mapMightHaveLoosePrim(a, b, prim, item, memo) {\n var altValue = findLooseMatchingPrimitives(prim);\n if (altValue != null) {\n return altValue;\n }\n var curB = b.get(altValue);\n if (curB === undefined && !b.has(altValue) || !innerDeepEqual(item, curB, false, memo)) {\n return false;\n }\n return !a.has(altValue) && innerDeepEqual(item, curB, false, memo);\n}\nfunction setEquiv(a, b, strict, memo) {\n // This is a lazily initiated Set of entries which have to be compared\n // pairwise.\n var set = null;\n var aValues = arrayFromSet(a);\n for (var i = 0; i < aValues.length; i++) {\n var val = aValues[i];\n // Note: Checking for the objects first improves the performance for object\n // heavy sets but it is a minor slow down for primitives. As they are fast\n // to check this improves the worst case scenario instead.\n if (_typeof(val) === 'object' && val !== null) {\n if (set === null) {\n set = new Set();\n }\n // If the specified value doesn't exist in the second set its an not null\n // object (or non strict only: a not matching primitive) we'll need to go\n // hunting for something thats deep-(strict-)equal to it. To make this\n // O(n log n) complexity we have to copy these values in a new set first.\n set.add(val);\n } else if (!b.has(val)) {\n if (strict) return false;\n\n // Fast path to detect missing string, symbol, undefined and null values.\n if (!setMightHaveLoosePrim(a, b, val)) {\n return false;\n }\n if (set === null) {\n set = new Set();\n }\n set.add(val);\n }\n }\n if (set !== null) {\n var bValues = arrayFromSet(b);\n for (var _i = 0; _i < bValues.length; _i++) {\n var _val = bValues[_i];\n // We have to check if a primitive value is already\n // matching and only if it's not, go hunting for it.\n if (_typeof(_val) === 'object' && _val !== null) {\n if (!setHasEqualElement(set, _val, strict, memo)) return false;\n } else if (!strict && !a.has(_val) && !setHasEqualElement(set, _val, strict, memo)) {\n return false;\n }\n }\n return set.size === 0;\n }\n return true;\n}\nfunction mapHasEqualEntry(set, map, key1, item1, strict, memo) {\n // To be able to handle cases like:\n // Map([[{}, 'a'], [{}, 'b']]) vs Map([[{}, 'b'], [{}, 'a']])\n // ... we need to consider *all* matching keys, not just the first we find.\n var setValues = arrayFromSet(set);\n for (var i = 0; i < setValues.length; i++) {\n var key2 = setValues[i];\n if (innerDeepEqual(key1, key2, strict, memo) && innerDeepEqual(item1, map.get(key2), strict, memo)) {\n set.delete(key2);\n return true;\n }\n }\n return false;\n}\nfunction mapEquiv(a, b, strict, memo) {\n var set = null;\n var aEntries = arrayFromMap(a);\n for (var i = 0; i < aEntries.length; i++) {\n var _aEntries$i = _slicedToArray(aEntries[i], 2),\n key = _aEntries$i[0],\n item1 = _aEntries$i[1];\n if (_typeof(key) === 'object' && key !== null) {\n if (set === null) {\n set = new Set();\n }\n set.add(key);\n } else {\n // By directly retrieving the value we prevent another b.has(key) check in\n // almost all possible cases.\n var item2 = b.get(key);\n if (item2 === undefined && !b.has(key) || !innerDeepEqual(item1, item2, strict, memo)) {\n if (strict) return false;\n // Fast path to detect missing string, symbol, undefined and null\n // keys.\n if (!mapMightHaveLoosePrim(a, b, key, item1, memo)) return false;\n if (set === null) {\n set = new Set();\n }\n set.add(key);\n }\n }\n }\n if (set !== null) {\n var bEntries = arrayFromMap(b);\n for (var _i2 = 0; _i2 < bEntries.length; _i2++) {\n var _bEntries$_i = _slicedToArray(bEntries[_i2], 2),\n _key = _bEntries$_i[0],\n item = _bEntries$_i[1];\n if (_typeof(_key) === 'object' && _key !== null) {\n if (!mapHasEqualEntry(set, a, _key, item, strict, memo)) return false;\n } else if (!strict && (!a.has(_key) || !innerDeepEqual(a.get(_key), item, false, memo)) && !mapHasEqualEntry(set, a, _key, item, false, memo)) {\n return false;\n }\n }\n return set.size === 0;\n }\n return true;\n}\nfunction objEquiv(a, b, strict, keys, memos, iterationType) {\n // Sets and maps don't have their entries accessible via normal object\n // properties.\n var i = 0;\n if (iterationType === kIsSet) {\n if (!setEquiv(a, b, strict, memos)) {\n return false;\n }\n } else if (iterationType === kIsMap) {\n if (!mapEquiv(a, b, strict, memos)) {\n return false;\n }\n } else if (iterationType === kIsArray) {\n for (; i < a.length; i++) {\n if (hasOwnProperty(a, i)) {\n if (!hasOwnProperty(b, i) || !innerDeepEqual(a[i], b[i], strict, memos)) {\n return false;\n }\n } else if (hasOwnProperty(b, i)) {\n return false;\n } else {\n // Array is sparse.\n var keysA = Object.keys(a);\n for (; i < keysA.length; i++) {\n var key = keysA[i];\n if (!hasOwnProperty(b, key) || !innerDeepEqual(a[key], b[key], strict, memos)) {\n return false;\n }\n }\n if (keysA.length !== Object.keys(b).length) {\n return false;\n }\n return true;\n }\n }\n }\n\n // The pair must have equivalent values for every corresponding key.\n // Possibly expensive deep test:\n for (i = 0; i < keys.length; i++) {\n var _key2 = keys[i];\n if (!innerDeepEqual(a[_key2], b[_key2], strict, memos)) {\n return false;\n }\n }\n return true;\n}\nfunction isDeepEqual(val1, val2) {\n return innerDeepEqual(val1, val2, kLoose);\n}\nfunction isDeepStrictEqual(val1, val2) {\n return innerDeepEqual(val1, val2, kStrict);\n}\nmodule.exports = {\n isDeepEqual: isDeepEqual,\n isDeepStrictEqual: isDeepStrictEqual\n};","module.exports = require('./lib/axios');","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar cookies = require('./../helpers/cookies');\nvar buildURL = require('./../helpers/buildURL');\nvar buildFullPath = require('../core/buildFullPath');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n return new Promise(function dispatchXhrRequest(resolve, reject) {\n var requestData = config.data;\n var requestHeaders = config.headers;\n var responseType = config.responseType;\n\n if (utils.isFormData(requestData)) {\n delete requestHeaders['Content-Type']; // Let the browser set it\n }\n\n var request = new XMLHttpRequest();\n\n // HTTP basic authentication\n if (config.auth) {\n var username = config.auth.username || '';\n var password = config.auth.password ? unescape(encodeURIComponent(config.auth.password)) : '';\n requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n }\n\n var fullPath = buildFullPath(config.baseURL, config.url);\n request.open(config.method.toUpperCase(), buildURL(fullPath, config.params, config.paramsSerializer), true);\n\n // Set the request timeout in MS\n request.timeout = config.timeout;\n\n function onloadend() {\n if (!request) {\n return;\n }\n // Prepare the response\n var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n var responseData = !responseType || responseType === 'text' || responseType === 'json' ?\n request.responseText : request.response;\n var response = {\n data: responseData,\n status: request.status,\n statusText: request.statusText,\n headers: responseHeaders,\n config: config,\n request: request\n };\n\n settle(resolve, reject, response);\n\n // Clean up request\n request = null;\n }\n\n if ('onloadend' in request) {\n // Use onloadend if available\n request.onloadend = onloadend;\n } else {\n // Listen for ready state to emulate onloadend\n request.onreadystatechange = function handleLoad() {\n if (!request || request.readyState !== 4) {\n return;\n }\n\n // The request errored out and we didn't get a response, this will be\n // handled by onerror instead\n // With one exception: request that using file: protocol, most browsers\n // will return status as 0 even though it's a successful request\n if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n return;\n }\n // readystate handler is calling before onerror or ontimeout handlers,\n // so we should call onloadend on the next 'tick'\n setTimeout(onloadend);\n };\n }\n\n // Handle browser request cancellation (as opposed to a manual cancellation)\n request.onabort = function handleAbort() {\n if (!request) {\n return;\n }\n\n reject(createError('Request aborted', config, 'ECONNABORTED', request));\n\n // Clean up request\n request = null;\n };\n\n // Handle low level network errors\n request.onerror = function handleError() {\n // Real errors are hidden from us by the browser\n // onerror should only fire if it's a network error\n reject(createError('Network Error', config, null, request));\n\n // Clean up request\n request = null;\n };\n\n // Handle timeout\n request.ontimeout = function handleTimeout() {\n var timeoutErrorMessage = 'timeout of ' + config.timeout + 'ms exceeded';\n if (config.timeoutErrorMessage) {\n timeoutErrorMessage = config.timeoutErrorMessage;\n }\n reject(createError(\n timeoutErrorMessage,\n config,\n config.transitional && config.transitional.clarifyTimeoutError ? 'ETIMEDOUT' : 'ECONNABORTED',\n request));\n\n // Clean up request\n request = null;\n };\n\n // Add xsrf header\n // This is only done if running in a standard browser environment.\n // Specifically not if we're in a web worker, or react-native.\n if (utils.isStandardBrowserEnv()) {\n // Add xsrf header\n var xsrfValue = (config.withCredentials || isURLSameOrigin(fullPath)) && config.xsrfCookieName ?\n cookies.read(config.xsrfCookieName) :\n undefined;\n\n if (xsrfValue) {\n requestHeaders[config.xsrfHeaderName] = xsrfValue;\n }\n }\n\n // Add headers to the request\n if ('setRequestHeader' in request) {\n utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n // Remove Content-Type if data is undefined\n delete requestHeaders[key];\n } else {\n // Otherwise add header to the request\n request.setRequestHeader(key, val);\n }\n });\n }\n\n // Add withCredentials to request if needed\n if (!utils.isUndefined(config.withCredentials)) {\n request.withCredentials = !!config.withCredentials;\n }\n\n // Add responseType to request if needed\n if (responseType && responseType !== 'json') {\n request.responseType = config.responseType;\n }\n\n // Handle progress if needed\n if (typeof config.onDownloadProgress === 'function') {\n request.addEventListener('progress', config.onDownloadProgress);\n }\n\n // Not all browsers support upload events\n if (typeof config.onUploadProgress === 'function' && request.upload) {\n request.upload.addEventListener('progress', config.onUploadProgress);\n }\n\n if (config.cancelToken) {\n // Handle cancellation\n config.cancelToken.promise.then(function onCanceled(cancel) {\n if (!request) {\n return;\n }\n\n request.abort();\n reject(cancel);\n // Clean up request\n request = null;\n });\n }\n\n if (!requestData) {\n requestData = null;\n }\n\n // Send the request\n request.send(requestData);\n });\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar mergeConfig = require('./core/mergeConfig');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n var context = new Axios(defaultConfig);\n var instance = bind(Axios.prototype.request, context);\n\n // Copy axios.prototype to instance\n utils.extend(instance, Axios.prototype, context);\n\n // Copy context to instance\n utils.extend(instance, context);\n\n return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n return createInstance(mergeConfig(axios.defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\n// Expose isAxiosError\naxios.isAxiosError = require('./helpers/isAxiosError');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n","'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n","'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n if (typeof executor !== 'function') {\n throw new TypeError('executor must be a function.');\n }\n\n var resolvePromise;\n this.promise = new Promise(function promiseExecutor(resolve) {\n resolvePromise = resolve;\n });\n\n var token = this;\n executor(function cancel(message) {\n if (token.reason) {\n // Cancellation has already been requested\n return;\n }\n\n token.reason = new Cancel(message);\n resolvePromise(token.reason);\n });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n if (this.reason) {\n throw this.reason;\n }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n var cancel;\n var token = new CancelToken(function executor(c) {\n cancel = c;\n });\n return {\n token: token,\n cancel: cancel\n };\n};\n\nmodule.exports = CancelToken;\n","'use strict';\n\nmodule.exports = function isCancel(value) {\n return !!(value && value.__CANCEL__);\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar buildURL = require('../helpers/buildURL');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\nvar mergeConfig = require('./mergeConfig');\nvar validator = require('../helpers/validator');\n\nvar validators = validator.validators;\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n this.defaults = instanceConfig;\n this.interceptors = {\n request: new InterceptorManager(),\n response: new InterceptorManager()\n };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n /*eslint no-param-reassign:0*/\n // Allow for axios('example/url'[, config]) a la fetch API\n if (typeof config === 'string') {\n config = arguments[1] || {};\n config.url = arguments[0];\n } else {\n config = config || {};\n }\n\n config = mergeConfig(this.defaults, config);\n\n // Set config.method\n if (config.method) {\n config.method = config.method.toLowerCase();\n } else if (this.defaults.method) {\n config.method = this.defaults.method.toLowerCase();\n } else {\n config.method = 'get';\n }\n\n var transitional = config.transitional;\n\n if (transitional !== undefined) {\n validator.assertOptions(transitional, {\n silentJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n forcedJSONParsing: validators.transitional(validators.boolean, '1.0.0'),\n clarifyTimeoutError: validators.transitional(validators.boolean, '1.0.0')\n }, false);\n }\n\n // filter out skipped interceptors\n var requestInterceptorChain = [];\n var synchronousRequestInterceptors = true;\n this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n if (typeof interceptor.runWhen === 'function' && interceptor.runWhen(config) === false) {\n return;\n }\n\n synchronousRequestInterceptors = synchronousRequestInterceptors && interceptor.synchronous;\n\n requestInterceptorChain.unshift(interceptor.fulfilled, interceptor.rejected);\n });\n\n var responseInterceptorChain = [];\n this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n responseInterceptorChain.push(interceptor.fulfilled, interceptor.rejected);\n });\n\n var promise;\n\n if (!synchronousRequestInterceptors) {\n var chain = [dispatchRequest, undefined];\n\n Array.prototype.unshift.apply(chain, requestInterceptorChain);\n chain = chain.concat(responseInterceptorChain);\n\n promise = Promise.resolve(config);\n while (chain.length) {\n promise = promise.then(chain.shift(), chain.shift());\n }\n\n return promise;\n }\n\n\n var newConfig = config;\n while (requestInterceptorChain.length) {\n var onFulfilled = requestInterceptorChain.shift();\n var onRejected = requestInterceptorChain.shift();\n try {\n newConfig = onFulfilled(newConfig);\n } catch (error) {\n onRejected(error);\n break;\n }\n }\n\n try {\n promise = dispatchRequest(newConfig);\n } catch (error) {\n return Promise.reject(error);\n }\n\n while (responseInterceptorChain.length) {\n promise = promise.then(responseInterceptorChain.shift(), responseInterceptorChain.shift());\n }\n\n return promise;\n};\n\nAxios.prototype.getUri = function getUri(config) {\n config = mergeConfig(this.defaults, config);\n return buildURL(config.url, config.params, config.paramsSerializer).replace(/^\\?/, '');\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: (config || {}).data\n }));\n };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n /*eslint func-names:0*/\n Axios.prototype[method] = function(url, data, config) {\n return this.request(mergeConfig(config || {}, {\n method: method,\n url: url,\n data: data\n }));\n };\n});\n\nmodule.exports = Axios;\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected, options) {\n this.handlers.push({\n fulfilled: fulfilled,\n rejected: rejected,\n synchronous: options ? options.synchronous : false,\n runWhen: options ? options.runWhen : null\n });\n return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n if (this.handlers[id]) {\n this.handlers[id] = null;\n }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n utils.forEach(this.handlers, function forEachHandler(h) {\n if (h !== null) {\n fn(h);\n }\n });\n};\n\nmodule.exports = InterceptorManager;\n","'use strict';\n\nvar isAbsoluteURL = require('../helpers/isAbsoluteURL');\nvar combineURLs = require('../helpers/combineURLs');\n\n/**\n * Creates a new URL by combining the baseURL with the requestedURL,\n * only when the requestedURL is not already an absolute URL.\n * If the requestURL is absolute, this function returns the requestedURL untouched.\n *\n * @param {string} baseURL The base URL\n * @param {string} requestedURL Absolute or relative URL to combine\n * @returns {string} The combined full path\n */\nmodule.exports = function buildFullPath(baseURL, requestedURL) {\n if (baseURL && !isAbsoluteURL(requestedURL)) {\n return combineURLs(baseURL, requestedURL);\n }\n return requestedURL;\n};\n","'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n var error = new Error(message);\n return enhanceError(error, config, code, request, response);\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n if (config.cancelToken) {\n config.cancelToken.throwIfRequested();\n }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n throwIfCancellationRequested(config);\n\n // Ensure headers exist\n config.headers = config.headers || {};\n\n // Transform request data\n config.data = transformData.call(\n config,\n config.data,\n config.headers,\n config.transformRequest\n );\n\n // Flatten headers\n config.headers = utils.merge(\n config.headers.common || {},\n config.headers[config.method] || {},\n config.headers\n );\n\n utils.forEach(\n ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n function cleanHeaderConfig(method) {\n delete config.headers[method];\n }\n );\n\n var adapter = config.adapter || defaults.adapter;\n\n return adapter(config).then(function onAdapterResolution(response) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n response.data = transformData.call(\n config,\n response.data,\n response.headers,\n config.transformResponse\n );\n\n return response;\n }, function onAdapterRejection(reason) {\n if (!isCancel(reason)) {\n throwIfCancellationRequested(config);\n\n // Transform response data\n if (reason && reason.response) {\n reason.response.data = transformData.call(\n config,\n reason.response.data,\n reason.response.headers,\n config.transformResponse\n );\n }\n }\n\n return Promise.reject(reason);\n });\n};\n","'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n error.config = config;\n if (code) {\n error.code = code;\n }\n\n error.request = request;\n error.response = response;\n error.isAxiosError = true;\n\n error.toJSON = function toJSON() {\n return {\n // Standard\n message: this.message,\n name: this.name,\n // Microsoft\n description: this.description,\n number: this.number,\n // Mozilla\n fileName: this.fileName,\n lineNumber: this.lineNumber,\n columnNumber: this.columnNumber,\n stack: this.stack,\n // Axios\n config: this.config,\n code: this.code\n };\n };\n return error;\n};\n","'use strict';\n\nvar utils = require('../utils');\n\n/**\n * Config-specific merge-function which creates a new config-object\n * by merging two configuration objects together.\n *\n * @param {Object} config1\n * @param {Object} config2\n * @returns {Object} New object resulting from merging config2 to config1\n */\nmodule.exports = function mergeConfig(config1, config2) {\n // eslint-disable-next-line no-param-reassign\n config2 = config2 || {};\n var config = {};\n\n var valueFromConfig2Keys = ['url', 'method', 'data'];\n var mergeDeepPropertiesKeys = ['headers', 'auth', 'proxy', 'params'];\n var defaultToConfig2Keys = [\n 'baseURL', 'transformRequest', 'transformResponse', 'paramsSerializer',\n 'timeout', 'timeoutMessage', 'withCredentials', 'adapter', 'responseType', 'xsrfCookieName',\n 'xsrfHeaderName', 'onUploadProgress', 'onDownloadProgress', 'decompress',\n 'maxContentLength', 'maxBodyLength', 'maxRedirects', 'transport', 'httpAgent',\n 'httpsAgent', 'cancelToken', 'socketPath', 'responseEncoding'\n ];\n var directMergeKeys = ['validateStatus'];\n\n function getMergedValue(target, source) {\n if (utils.isPlainObject(target) && utils.isPlainObject(source)) {\n return utils.merge(target, source);\n } else if (utils.isPlainObject(source)) {\n return utils.merge({}, source);\n } else if (utils.isArray(source)) {\n return source.slice();\n }\n return source;\n }\n\n function mergeDeepProperties(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n }\n\n utils.forEach(valueFromConfig2Keys, function valueFromConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n }\n });\n\n utils.forEach(mergeDeepPropertiesKeys, mergeDeepProperties);\n\n utils.forEach(defaultToConfig2Keys, function defaultToConfig2(prop) {\n if (!utils.isUndefined(config2[prop])) {\n config[prop] = getMergedValue(undefined, config2[prop]);\n } else if (!utils.isUndefined(config1[prop])) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n utils.forEach(directMergeKeys, function merge(prop) {\n if (prop in config2) {\n config[prop] = getMergedValue(config1[prop], config2[prop]);\n } else if (prop in config1) {\n config[prop] = getMergedValue(undefined, config1[prop]);\n }\n });\n\n var axiosKeys = valueFromConfig2Keys\n .concat(mergeDeepPropertiesKeys)\n .concat(defaultToConfig2Keys)\n .concat(directMergeKeys);\n\n var otherKeys = Object\n .keys(config1)\n .concat(Object.keys(config2))\n .filter(function filterAxiosKeys(key) {\n return axiosKeys.indexOf(key) === -1;\n });\n\n utils.forEach(otherKeys, mergeDeepProperties);\n\n return config;\n};\n","'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n var validateStatus = response.config.validateStatus;\n if (!response.status || !validateStatus || validateStatus(response.status)) {\n resolve(response);\n } else {\n reject(createError(\n 'Request failed with status code ' + response.status,\n response.config,\n null,\n response.request,\n response\n ));\n }\n};\n","'use strict';\n\nvar utils = require('./../utils');\nvar defaults = require('./../defaults');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n var context = this || defaults;\n /*eslint no-param-reassign:0*/\n utils.forEach(fns, function transform(fn) {\n data = fn.call(context, data, headers);\n });\n\n return data;\n};\n","'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\nvar enhanceError = require('./core/enhanceError');\n\nvar DEFAULT_CONTENT_TYPE = {\n 'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n headers['Content-Type'] = value;\n }\n}\n\nfunction getDefaultAdapter() {\n var adapter;\n if (typeof XMLHttpRequest !== 'undefined') {\n // For browsers use XHR adapter\n adapter = require('./adapters/xhr');\n } else if (typeof process !== 'undefined' && Object.prototype.toString.call(process) === '[object process]') {\n // For node use HTTP adapter\n adapter = require('./adapters/http');\n }\n return adapter;\n}\n\nfunction stringifySafely(rawValue, parser, encoder) {\n if (utils.isString(rawValue)) {\n try {\n (parser || JSON.parse)(rawValue);\n return utils.trim(rawValue);\n } catch (e) {\n if (e.name !== 'SyntaxError') {\n throw e;\n }\n }\n }\n\n return (encoder || JSON.stringify)(rawValue);\n}\n\nvar defaults = {\n\n transitional: {\n silentJSONParsing: true,\n forcedJSONParsing: true,\n clarifyTimeoutError: false\n },\n\n adapter: getDefaultAdapter(),\n\n transformRequest: [function transformRequest(data, headers) {\n normalizeHeaderName(headers, 'Accept');\n normalizeHeaderName(headers, 'Content-Type');\n\n if (utils.isFormData(data) ||\n utils.isArrayBuffer(data) ||\n utils.isBuffer(data) ||\n utils.isStream(data) ||\n utils.isFile(data) ||\n utils.isBlob(data)\n ) {\n return data;\n }\n if (utils.isArrayBufferView(data)) {\n return data.buffer;\n }\n if (utils.isURLSearchParams(data)) {\n setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n return data.toString();\n }\n if (utils.isObject(data) || (headers && headers['Content-Type'] === 'application/json')) {\n setContentTypeIfUnset(headers, 'application/json');\n return stringifySafely(data);\n }\n return data;\n }],\n\n transformResponse: [function transformResponse(data) {\n var transitional = this.transitional;\n var silentJSONParsing = transitional && transitional.silentJSONParsing;\n var forcedJSONParsing = transitional && transitional.forcedJSONParsing;\n var strictJSONParsing = !silentJSONParsing && this.responseType === 'json';\n\n if (strictJSONParsing || (forcedJSONParsing && utils.isString(data) && data.length)) {\n try {\n return JSON.parse(data);\n } catch (e) {\n if (strictJSONParsing) {\n if (e.name === 'SyntaxError') {\n throw enhanceError(e, this, 'E_JSON_PARSE');\n }\n throw e;\n }\n }\n }\n\n return data;\n }],\n\n /**\n * A timeout in milliseconds to abort a request. If set to 0 (default) a\n * timeout is not created.\n */\n timeout: 0,\n\n xsrfCookieName: 'XSRF-TOKEN',\n xsrfHeaderName: 'X-XSRF-TOKEN',\n\n maxContentLength: -1,\n maxBodyLength: -1,\n\n validateStatus: function validateStatus(status) {\n return status >= 200 && status < 300;\n }\n};\n\ndefaults.headers = {\n common: {\n 'Accept': 'application/json, text/plain, */*'\n }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n return function wrap() {\n var args = new Array(arguments.length);\n for (var i = 0; i < args.length; i++) {\n args[i] = arguments[i];\n }\n return fn.apply(thisArg, args);\n };\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n return encodeURIComponent(val).\n replace(/%3A/gi, ':').\n replace(/%24/g, '$').\n replace(/%2C/gi, ',').\n replace(/%20/g, '+').\n replace(/%5B/gi, '[').\n replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n /*eslint no-param-reassign:0*/\n if (!params) {\n return url;\n }\n\n var serializedParams;\n if (paramsSerializer) {\n serializedParams = paramsSerializer(params);\n } else if (utils.isURLSearchParams(params)) {\n serializedParams = params.toString();\n } else {\n var parts = [];\n\n utils.forEach(params, function serialize(val, key) {\n if (val === null || typeof val === 'undefined') {\n return;\n }\n\n if (utils.isArray(val)) {\n key = key + '[]';\n } else {\n val = [val];\n }\n\n utils.forEach(val, function parseValue(v) {\n if (utils.isDate(v)) {\n v = v.toISOString();\n } else if (utils.isObject(v)) {\n v = JSON.stringify(v);\n }\n parts.push(encode(key) + '=' + encode(v));\n });\n });\n\n serializedParams = parts.join('&');\n }\n\n if (serializedParams) {\n var hashmarkIndex = url.indexOf('#');\n if (hashmarkIndex !== -1) {\n url = url.slice(0, hashmarkIndex);\n }\n\n url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n }\n\n return url;\n};\n","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n return relativeURL\n ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n : baseURL;\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs support document.cookie\n (function standardBrowserEnv() {\n return {\n write: function write(name, value, expires, path, domain, secure) {\n var cookie = [];\n cookie.push(name + '=' + encodeURIComponent(value));\n\n if (utils.isNumber(expires)) {\n cookie.push('expires=' + new Date(expires).toGMTString());\n }\n\n if (utils.isString(path)) {\n cookie.push('path=' + path);\n }\n\n if (utils.isString(domain)) {\n cookie.push('domain=' + domain);\n }\n\n if (secure === true) {\n cookie.push('secure');\n }\n\n document.cookie = cookie.join('; ');\n },\n\n read: function read(name) {\n var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n return (match ? decodeURIComponent(match[3]) : null);\n },\n\n remove: function remove(name) {\n this.write(name, '', Date.now() - 86400000);\n }\n };\n })() :\n\n // Non standard browser env (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return {\n write: function write() {},\n read: function read() { return null; },\n remove: function remove() {}\n };\n })()\n);\n","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n // A URL is considered absolute if it begins with \"://\" or \"//\" (protocol-relative URL).\n // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n // by any combination of letters, digits, plus, period, or hyphen.\n return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n","'use strict';\n\n/**\n * Determines whether the payload is an error thrown by Axios\n *\n * @param {*} payload The value to test\n * @returns {boolean} True if the payload is an error thrown by Axios, otherwise false\n */\nmodule.exports = function isAxiosError(payload) {\n return (typeof payload === 'object') && (payload.isAxiosError === true);\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n utils.isStandardBrowserEnv() ?\n\n // Standard browser envs have full support of the APIs needed to test\n // whether the request URL is of the same origin as current location.\n (function standardBrowserEnv() {\n var msie = /(msie|trident)/i.test(navigator.userAgent);\n var urlParsingNode = document.createElement('a');\n var originURL;\n\n /**\n * Parse a URL to discover it's components\n *\n * @param {String} url The URL to be parsed\n * @returns {Object}\n */\n function resolveURL(url) {\n var href = url;\n\n if (msie) {\n // IE needs attribute set twice to normalize properties\n urlParsingNode.setAttribute('href', href);\n href = urlParsingNode.href;\n }\n\n urlParsingNode.setAttribute('href', href);\n\n // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n return {\n href: urlParsingNode.href,\n protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n host: urlParsingNode.host,\n search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n hostname: urlParsingNode.hostname,\n port: urlParsingNode.port,\n pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n urlParsingNode.pathname :\n '/' + urlParsingNode.pathname\n };\n }\n\n originURL = resolveURL(window.location.href);\n\n /**\n * Determine if a URL shares the same origin as the current location\n *\n * @param {String} requestURL The URL to test\n * @returns {boolean} True if URL shares the same origin, otherwise false\n */\n return function isURLSameOrigin(requestURL) {\n var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n return (parsed.protocol === originURL.protocol &&\n parsed.host === originURL.host);\n };\n })() :\n\n // Non standard browser envs (web workers, react-native) lack needed support.\n (function nonStandardBrowserEnv() {\n return function isURLSameOrigin() {\n return true;\n };\n })()\n);\n","'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n utils.forEach(headers, function processHeader(value, name) {\n if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n headers[normalizedName] = value;\n delete headers[name];\n }\n });\n};\n","'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n 'age', 'authorization', 'content-length', 'content-type', 'etag',\n 'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n 'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n 'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n var parsed = {};\n var key;\n var val;\n var i;\n\n if (!headers) { return parsed; }\n\n utils.forEach(headers.split('\\n'), function parser(line) {\n i = line.indexOf(':');\n key = utils.trim(line.substr(0, i)).toLowerCase();\n val = utils.trim(line.substr(i + 1));\n\n if (key) {\n if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n return;\n }\n if (key === 'set-cookie') {\n parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n } else {\n parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n }\n }\n });\n\n return parsed;\n};\n","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n * ```js\n * function f(x, y, z) {}\n * var args = [1, 2, 3];\n * f.apply(null, args);\n * ```\n *\n * With `spread` this example can be re-written.\n *\n * ```js\n * spread(function(x, y, z) {})([1, 2, 3]);\n * ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n return function wrap(arr) {\n return callback.apply(null, arr);\n };\n};\n","'use strict';\n\nvar pkg = require('./../../package.json');\n\nvar validators = {};\n\n// eslint-disable-next-line func-names\n['object', 'boolean', 'number', 'function', 'string', 'symbol'].forEach(function(type, i) {\n validators[type] = function validator(thing) {\n return typeof thing === type || 'a' + (i < 1 ? 'n ' : ' ') + type;\n };\n});\n\nvar deprecatedWarnings = {};\nvar currentVerArr = pkg.version.split('.');\n\n/**\n * Compare package versions\n * @param {string} version\n * @param {string?} thanVersion\n * @returns {boolean}\n */\nfunction isOlderVersion(version, thanVersion) {\n var pkgVersionArr = thanVersion ? thanVersion.split('.') : currentVerArr;\n var destVer = version.split('.');\n for (var i = 0; i < 3; i++) {\n if (pkgVersionArr[i] > destVer[i]) {\n return true;\n } else if (pkgVersionArr[i] < destVer[i]) {\n return false;\n }\n }\n return false;\n}\n\n/**\n * Transitional option validator\n * @param {function|boolean?} validator\n * @param {string?} version\n * @param {string} message\n * @returns {function}\n */\nvalidators.transitional = function transitional(validator, version, message) {\n var isDeprecated = version && isOlderVersion(version);\n\n function formatMessage(opt, desc) {\n return '[Axios v' + pkg.version + '] Transitional option \\'' + opt + '\\'' + desc + (message ? '. ' + message : '');\n }\n\n // eslint-disable-next-line func-names\n return function(value, opt, opts) {\n if (validator === false) {\n throw new Error(formatMessage(opt, ' has been removed in ' + version));\n }\n\n if (isDeprecated && !deprecatedWarnings[opt]) {\n deprecatedWarnings[opt] = true;\n // eslint-disable-next-line no-console\n console.warn(\n formatMessage(\n opt,\n ' has been deprecated since v' + version + ' and will be removed in the near future'\n )\n );\n }\n\n return validator ? validator(value, opt, opts) : true;\n };\n};\n\n/**\n * Assert object's properties type\n * @param {object} options\n * @param {object} schema\n * @param {boolean?} allowUnknown\n */\n\nfunction assertOptions(options, schema, allowUnknown) {\n if (typeof options !== 'object') {\n throw new TypeError('options must be an object');\n }\n var keys = Object.keys(options);\n var i = keys.length;\n while (i-- > 0) {\n var opt = keys[i];\n var validator = schema[opt];\n if (validator) {\n var value = options[opt];\n var result = value === undefined || validator(value, opt, options);\n if (result !== true) {\n throw new TypeError('option ' + opt + ' must be ' + result);\n }\n continue;\n }\n if (allowUnknown !== true) {\n throw Error('Unknown option ' + opt);\n }\n }\n}\n\nmodule.exports = {\n isOlderVersion: isOlderVersion,\n assertOptions: assertOptions,\n validators: validators\n};\n","'use strict';\n\nvar bind = require('./helpers/bind');\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is a Buffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Buffer, otherwise false\n */\nfunction isBuffer(val) {\n return val !== null && !isUndefined(val) && val.constructor !== null && !isUndefined(val.constructor)\n && typeof val.constructor.isBuffer === 'function' && val.constructor.isBuffer(val);\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n var result;\n if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n result = ArrayBuffer.isView(val);\n } else {\n result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n }\n return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n return typeof val === 'number';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a plain Object\n *\n * @param {Object} val The value to test\n * @return {boolean} True if value is a plain Object, otherwise false\n */\nfunction isPlainObject(val) {\n if (toString.call(val) !== '[object Object]') {\n return false;\n }\n\n var prototype = Object.getPrototypeOf(val);\n return prototype === null || prototype === Object.prototype;\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n return str.trim ? str.trim() : str.replace(/^\\s+|\\s+$/g, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n * typeof window -> undefined\n * typeof document -> undefined\n *\n * react-native:\n * navigator.product -> 'ReactNative'\n * nativescript\n * navigator.product -> 'NativeScript' or 'NS'\n */\nfunction isStandardBrowserEnv() {\n if (typeof navigator !== 'undefined' && (navigator.product === 'ReactNative' ||\n navigator.product === 'NativeScript' ||\n navigator.product === 'NS')) {\n return false;\n }\n return (\n typeof window !== 'undefined' &&\n typeof document !== 'undefined'\n );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n // Don't bother if no value provided\n if (obj === null || typeof obj === 'undefined') {\n return;\n }\n\n // Force an array if not already something iterable\n if (typeof obj !== 'object') {\n /*eslint no-param-reassign:0*/\n obj = [obj];\n }\n\n if (isArray(obj)) {\n // Iterate over array values\n for (var i = 0, l = obj.length; i < l; i++) {\n fn.call(null, obj[i], i, obj);\n }\n } else {\n // Iterate over object keys\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) {\n fn.call(null, obj[key], key, obj);\n }\n }\n }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n var result = {};\n function assignValue(val, key) {\n if (isPlainObject(result[key]) && isPlainObject(val)) {\n result[key] = merge(result[key], val);\n } else if (isPlainObject(val)) {\n result[key] = merge({}, val);\n } else if (isArray(val)) {\n result[key] = val.slice();\n } else {\n result[key] = val;\n }\n }\n\n for (var i = 0, l = arguments.length; i < l; i++) {\n forEach(arguments[i], assignValue);\n }\n return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n forEach(b, function assignValue(val, key) {\n if (thisArg && typeof val === 'function') {\n a[key] = bind(val, thisArg);\n } else {\n a[key] = val;\n }\n });\n return a;\n}\n\n/**\n * Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)\n *\n * @param {string} content with BOM\n * @return {string} content value without BOM\n */\nfunction stripBOM(content) {\n if (content.charCodeAt(0) === 0xFEFF) {\n content = content.slice(1);\n }\n return content;\n}\n\nmodule.exports = {\n isArray: isArray,\n isArrayBuffer: isArrayBuffer,\n isBuffer: isBuffer,\n isFormData: isFormData,\n isArrayBufferView: isArrayBufferView,\n isString: isString,\n isNumber: isNumber,\n isObject: isObject,\n isPlainObject: isPlainObject,\n isUndefined: isUndefined,\n isDate: isDate,\n isFile: isFile,\n isBlob: isBlob,\n isFunction: isFunction,\n isStream: isStream,\n isURLSearchParams: isURLSearchParams,\n isStandardBrowserEnv: isStandardBrowserEnv,\n forEach: forEach,\n merge: merge,\n extend: extend,\n trim: trim,\n stripBOM: stripBOM\n};\n","'use strict'\n\nexports.byteLength = byteLength\nexports.toByteArray = toByteArray\nexports.fromByteArray = fromByteArray\n\nvar lookup = []\nvar revLookup = []\nvar Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array\n\nvar code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'\nfor (var i = 0, len = code.length; i < len; ++i) {\n lookup[i] = code[i]\n revLookup[code.charCodeAt(i)] = i\n}\n\n// Support decoding URL-safe base64 strings, as Node.js does.\n// See: https://en.wikipedia.org/wiki/Base64#URL_applications\nrevLookup['-'.charCodeAt(0)] = 62\nrevLookup['_'.charCodeAt(0)] = 63\n\nfunction getLens (b64) {\n var len = b64.length\n\n if (len % 4 > 0) {\n throw new Error('Invalid string. Length must be a multiple of 4')\n }\n\n // Trim off extra bytes after placeholder bytes are found\n // See: https://github.com/beatgammit/base64-js/issues/42\n var validLen = b64.indexOf('=')\n if (validLen === -1) validLen = len\n\n var placeHoldersLen = validLen === len\n ? 0\n : 4 - (validLen % 4)\n\n return [validLen, placeHoldersLen]\n}\n\n// base64 is 4/3 + up to two characters of the original data\nfunction byteLength (b64) {\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction _byteLength (b64, validLen, placeHoldersLen) {\n return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen\n}\n\nfunction toByteArray (b64) {\n var tmp\n var lens = getLens(b64)\n var validLen = lens[0]\n var placeHoldersLen = lens[1]\n\n var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen))\n\n var curByte = 0\n\n // if there are placeholders, only get up to the last complete 4 chars\n var len = placeHoldersLen > 0\n ? validLen - 4\n : validLen\n\n var i\n for (i = 0; i < len; i += 4) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 18) |\n (revLookup[b64.charCodeAt(i + 1)] << 12) |\n (revLookup[b64.charCodeAt(i + 2)] << 6) |\n revLookup[b64.charCodeAt(i + 3)]\n arr[curByte++] = (tmp >> 16) & 0xFF\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 2) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 2) |\n (revLookup[b64.charCodeAt(i + 1)] >> 4)\n arr[curByte++] = tmp & 0xFF\n }\n\n if (placeHoldersLen === 1) {\n tmp =\n (revLookup[b64.charCodeAt(i)] << 10) |\n (revLookup[b64.charCodeAt(i + 1)] << 4) |\n (revLookup[b64.charCodeAt(i + 2)] >> 2)\n arr[curByte++] = (tmp >> 8) & 0xFF\n arr[curByte++] = tmp & 0xFF\n }\n\n return arr\n}\n\nfunction tripletToBase64 (num) {\n return lookup[num >> 18 & 0x3F] +\n lookup[num >> 12 & 0x3F] +\n lookup[num >> 6 & 0x3F] +\n lookup[num & 0x3F]\n}\n\nfunction encodeChunk (uint8, start, end) {\n var tmp\n var output = []\n for (var i = start; i < end; i += 3) {\n tmp =\n ((uint8[i] << 16) & 0xFF0000) +\n ((uint8[i + 1] << 8) & 0xFF00) +\n (uint8[i + 2] & 0xFF)\n output.push(tripletToBase64(tmp))\n }\n return output.join('')\n}\n\nfunction fromByteArray (uint8) {\n var tmp\n var len = uint8.length\n var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes\n var parts = []\n var maxChunkLength = 16383 // must be multiple of 3\n\n // go through the array every three bytes, we'll deal with trailing stuff later\n for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) {\n parts.push(encodeChunk(uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength)))\n }\n\n // pad the end with zeros, but make sure to not forget the extra bytes\n if (extraBytes === 1) {\n tmp = uint8[len - 1]\n parts.push(\n lookup[tmp >> 2] +\n lookup[(tmp << 4) & 0x3F] +\n '=='\n )\n } else if (extraBytes === 2) {\n tmp = (uint8[len - 2] << 8) + uint8[len - 1]\n parts.push(\n lookup[tmp >> 10] +\n lookup[(tmp >> 4) & 0x3F] +\n lookup[(tmp << 2) & 0x3F] +\n '='\n )\n }\n\n return parts.join('')\n}\n",";(function (globalObject) {\r\n 'use strict';\r\n\r\n/*\r\n * bignumber.js v8.0.2\r\n * A JavaScript library for arbitrary-precision arithmetic.\r\n * https://github.com/MikeMcl/bignumber.js\r\n * Copyright (c) 2019 Michael Mclaughlin \r\n * MIT Licensed.\r\n *\r\n * BigNumber.prototype methods | BigNumber methods\r\n * |\r\n * absoluteValue abs | clone\r\n * comparedTo | config set\r\n * decimalPlaces dp | DECIMAL_PLACES\r\n * dividedBy div | ROUNDING_MODE\r\n * dividedToIntegerBy idiv | EXPONENTIAL_AT\r\n * exponentiatedBy pow | RANGE\r\n * integerValue | CRYPTO\r\n * isEqualTo eq | MODULO_MODE\r\n * isFinite | POW_PRECISION\r\n * isGreaterThan gt | FORMAT\r\n * isGreaterThanOrEqualTo gte | ALPHABET\r\n * isInteger | isBigNumber\r\n * isLessThan lt | maximum max\r\n * isLessThanOrEqualTo lte | minimum min\r\n * isNaN | random\r\n * isNegative | sum\r\n * isPositive |\r\n * isZero |\r\n * minus |\r\n * modulo mod |\r\n * multipliedBy times |\r\n * negated |\r\n * plus |\r\n * precision sd |\r\n * shiftedBy |\r\n * squareRoot sqrt |\r\n * toExponential |\r\n * toFixed |\r\n * toFormat |\r\n * toFraction |\r\n * toJSON |\r\n * toNumber |\r\n * toPrecision |\r\n * toString |\r\n * valueOf |\r\n *\r\n */\r\n\r\n\r\n var BigNumber,\r\n isNumeric = /^-?(?:\\d+(?:\\.\\d*)?|\\.\\d+)(?:e[+-]?\\d+)?$/i,\r\n\r\n mathceil = Math.ceil,\r\n mathfloor = Math.floor,\r\n\r\n bignumberError = '[BigNumber Error] ',\r\n tooManyDigits = bignumberError + 'Number primitive has more than 15 significant digits: ',\r\n\r\n BASE = 1e14,\r\n LOG_BASE = 14,\r\n MAX_SAFE_INTEGER = 0x1fffffffffffff, // 2^53 - 1\r\n // MAX_INT32 = 0x7fffffff, // 2^31 - 1\r\n POWS_TEN = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13],\r\n SQRT_BASE = 1e7,\r\n\r\n // EDITABLE\r\n // The limit on the value of DECIMAL_PLACES, TO_EXP_NEG, TO_EXP_POS, MIN_EXP, MAX_EXP, and\r\n // the arguments to toExponential, toFixed, toFormat, and toPrecision.\r\n MAX = 1E9; // 0 to MAX_INT32\r\n\r\n\r\n /*\r\n * Create and return a BigNumber constructor.\r\n */\r\n function clone(configObject) {\r\n var div, convertBase, parseNumeric,\r\n P = BigNumber.prototype = { constructor: BigNumber, toString: null, valueOf: null },\r\n ONE = new BigNumber(1),\r\n\r\n\r\n //----------------------------- EDITABLE CONFIG DEFAULTS -------------------------------\r\n\r\n\r\n // The default values below must be integers within the inclusive ranges stated.\r\n // The values can also be changed at run-time using BigNumber.set.\r\n\r\n // The maximum number of decimal places for operations involving division.\r\n DECIMAL_PLACES = 20, // 0 to MAX\r\n\r\n // The rounding mode used when rounding to the above decimal places, and when using\r\n // toExponential, toFixed, toFormat and toPrecision, and round (default value).\r\n // UP 0 Away from zero.\r\n // DOWN 1 Towards zero.\r\n // CEIL 2 Towards +Infinity.\r\n // FLOOR 3 Towards -Infinity.\r\n // HALF_UP 4 Towards nearest neighbour. If equidistant, up.\r\n // HALF_DOWN 5 Towards nearest neighbour. If equidistant, down.\r\n // HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour.\r\n // HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity.\r\n // HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity.\r\n ROUNDING_MODE = 4, // 0 to 8\r\n\r\n // EXPONENTIAL_AT : [TO_EXP_NEG , TO_EXP_POS]\r\n\r\n // The exponent value at and beneath which toString returns exponential notation.\r\n // Number type: -7\r\n TO_EXP_NEG = -7, // 0 to -MAX\r\n\r\n // The exponent value at and above which toString returns exponential notation.\r\n // Number type: 21\r\n TO_EXP_POS = 21, // 0 to MAX\r\n\r\n // RANGE : [MIN_EXP, MAX_EXP]\r\n\r\n // The minimum exponent value, beneath which underflow to zero occurs.\r\n // Number type: -324 (5e-324)\r\n MIN_EXP = -1e7, // -1 to -MAX\r\n\r\n // The maximum exponent value, above which overflow to Infinity occurs.\r\n // Number type: 308 (1.7976931348623157e+308)\r\n // For MAX_EXP > 1e7, e.g. new BigNumber('1e100000000').plus(1) may be slow.\r\n MAX_EXP = 1e7, // 1 to MAX\r\n\r\n // Whether to use cryptographically-secure random number generation, if available.\r\n CRYPTO = false, // true or false\r\n\r\n // The modulo mode used when calculating the modulus: a mod n.\r\n // The quotient (q = a / n) is calculated according to the corresponding rounding mode.\r\n // The remainder (r) is calculated as: r = a - n * q.\r\n //\r\n // UP 0 The remainder is positive if the dividend is negative, else is negative.\r\n // DOWN 1 The remainder has the same sign as the dividend.\r\n // This modulo mode is commonly known as 'truncated division' and is\r\n // equivalent to (a % n) in JavaScript.\r\n // FLOOR 3 The remainder has the same sign as the divisor (Python %).\r\n // HALF_EVEN 6 This modulo mode implements the IEEE 754 remainder function.\r\n // EUCLID 9 Euclidian division. q = sign(n) * floor(a / abs(n)).\r\n // The remainder is always positive.\r\n //\r\n // The truncated division, floored division, Euclidian division and IEEE 754 remainder\r\n // modes are commonly used for the modulus operation.\r\n // Although the other rounding modes can also be used, they may not give useful results.\r\n MODULO_MODE = 1, // 0 to 9\r\n\r\n // The maximum number of significant digits of the result of the exponentiatedBy operation.\r\n // If POW_PRECISION is 0, there will be unlimited significant digits.\r\n POW_PRECISION = 0, // 0 to MAX\r\n\r\n // The format specification used by the BigNumber.prototype.toFormat method.\r\n FORMAT = {\r\n prefix: '',\r\n groupSize: 3,\r\n secondaryGroupSize: 0,\r\n groupSeparator: ',',\r\n decimalSeparator: '.',\r\n fractionGroupSize: 0,\r\n fractionGroupSeparator: '\\xA0', // non-breaking space\r\n suffix: ''\r\n },\r\n\r\n // The alphabet used for base conversion. It must be at least 2 characters long, with no '+',\r\n // '-', '.', whitespace, or repeated character.\r\n // '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_'\r\n ALPHABET = '0123456789abcdefghijklmnopqrstuvwxyz';\r\n\r\n\r\n //------------------------------------------------------------------------------------------\r\n\r\n\r\n // CONSTRUCTOR\r\n\r\n\r\n /*\r\n * The BigNumber constructor and exported function.\r\n * Create and return a new instance of a BigNumber object.\r\n *\r\n * n {number|string|BigNumber} A numeric value.\r\n * [b] {number} The base of n. Integer, 2 to ALPHABET.length inclusive.\r\n */\r\n function BigNumber(n, b) {\r\n var alphabet, c, caseChanged, e, i, isNum, len, str,\r\n x = this;\r\n\r\n // Enable constructor usage without new.\r\n if (!(x instanceof BigNumber)) {\r\n\r\n // Don't throw on constructor call without new (#81).\r\n // '[BigNumber Error] Constructor call without new: {n}'\r\n //throw Error(bignumberError + ' Constructor call without new: ' + n);\r\n return new BigNumber(n, b);\r\n }\r\n\r\n if (b == null) {\r\n\r\n // Duplicate.\r\n if (n instanceof BigNumber) {\r\n x.s = n.s;\r\n x.e = n.e;\r\n x.c = (n = n.c) ? n.slice() : n;\r\n return;\r\n }\r\n\r\n isNum = typeof n == 'number';\r\n\r\n if (isNum && n * 0 == 0) {\r\n\r\n // Use `1 / n` to handle minus zero also.\r\n x.s = 1 / n < 0 ? (n = -n, -1) : 1;\r\n\r\n // Faster path for integers.\r\n if (n === ~~n) {\r\n for (e = 0, i = n; i >= 10; i /= 10, e++);\r\n x.e = e;\r\n x.c = [n];\r\n return;\r\n }\r\n\r\n str = String(n);\r\n } else {\r\n str = String(n);\r\n if (!isNumeric.test(str)) return parseNumeric(x, str, isNum);\r\n x.s = str.charCodeAt(0) == 45 ? (str = str.slice(1), -1) : 1;\r\n }\r\n\r\n // Decimal point?\r\n if ((e = str.indexOf('.')) > -1) str = str.replace('.', '');\r\n\r\n // Exponential form?\r\n if ((i = str.search(/e/i)) > 0) {\r\n\r\n // Determine exponent.\r\n if (e < 0) e = i;\r\n e += +str.slice(i + 1);\r\n str = str.substring(0, i);\r\n } else if (e < 0) {\r\n\r\n // Integer.\r\n e = str.length;\r\n }\r\n\r\n } else {\r\n\r\n // '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}'\r\n intCheck(b, 2, ALPHABET.length, 'Base');\r\n str = String(n);\r\n\r\n // Allow exponential notation to be used with base 10 argument, while\r\n // also rounding to DECIMAL_PLACES as with other bases.\r\n if (b == 10) {\r\n x = new BigNumber(n instanceof BigNumber ? n : str);\r\n return round(x, DECIMAL_PLACES + x.e + 1, ROUNDING_MODE);\r\n }\r\n\r\n isNum = typeof n == 'number';\r\n\r\n if (isNum) {\r\n\r\n // Avoid potential interpretation of Infinity and NaN as base 44+ values.\r\n if (n * 0 != 0) return parseNumeric(x, str, isNum, b);\r\n\r\n x.s = 1 / n < 0 ? (str = str.slice(1), -1) : 1;\r\n\r\n // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}'\r\n if (BigNumber.DEBUG && str.replace(/^0\\.0*|\\./, '').length > 15) {\r\n throw Error\r\n (tooManyDigits + n);\r\n }\r\n\r\n // Prevent later check for length on converted number.\r\n isNum = false;\r\n } else {\r\n x.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1;\r\n }\r\n\r\n alphabet = ALPHABET.slice(0, b);\r\n e = i = 0;\r\n\r\n // Check that str is a valid base b number.\r\n // Don't use RegExp so alphabet can contain special characters.\r\n for (len = str.length; i < len; i++) {\r\n if (alphabet.indexOf(c = str.charAt(i)) < 0) {\r\n if (c == '.') {\r\n\r\n // If '.' is not the first character and it has not be found before.\r\n if (i > e) {\r\n e = len;\r\n continue;\r\n }\r\n } else if (!caseChanged) {\r\n\r\n // Allow e.g. hexadecimal 'FF' as well as 'ff'.\r\n if (str == str.toUpperCase() && (str = str.toLowerCase()) ||\r\n str == str.toLowerCase() && (str = str.toUpperCase())) {\r\n caseChanged = true;\r\n i = -1;\r\n e = 0;\r\n continue;\r\n }\r\n }\r\n\r\n return parseNumeric(x, String(n), isNum, b);\r\n }\r\n }\r\n\r\n str = convertBase(str, b, 10, x.s);\r\n\r\n // Decimal point?\r\n if ((e = str.indexOf('.')) > -1) str = str.replace('.', '');\r\n else e = str.length;\r\n }\r\n\r\n // Determine leading zeros.\r\n for (i = 0; str.charCodeAt(i) === 48; i++);\r\n\r\n // Determine trailing zeros.\r\n for (len = str.length; str.charCodeAt(--len) === 48;);\r\n\r\n str = str.slice(i, ++len);\r\n\r\n if (str) {\r\n len -= i;\r\n\r\n // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}'\r\n if (isNum && BigNumber.DEBUG &&\r\n len > 15 && (n > MAX_SAFE_INTEGER || n !== mathfloor(n))) {\r\n throw Error\r\n (tooManyDigits + (x.s * n));\r\n }\r\n\r\n e = e - i - 1;\r\n\r\n // Overflow?\r\n if (e > MAX_EXP) {\r\n\r\n // Infinity.\r\n x.c = x.e = null;\r\n\r\n // Underflow?\r\n } else if (e < MIN_EXP) {\r\n\r\n // Zero.\r\n x.c = [x.e = 0];\r\n } else {\r\n x.e = e;\r\n x.c = [];\r\n\r\n // Transform base\r\n\r\n // e is the base 10 exponent.\r\n // i is where to slice str to get the first element of the coefficient array.\r\n i = (e + 1) % LOG_BASE;\r\n if (e < 0) i += LOG_BASE;\r\n\r\n if (i < len) {\r\n if (i) x.c.push(+str.slice(0, i));\r\n\r\n for (len -= LOG_BASE; i < len;) {\r\n x.c.push(+str.slice(i, i += LOG_BASE));\r\n }\r\n\r\n str = str.slice(i);\r\n i = LOG_BASE - str.length;\r\n } else {\r\n i -= len;\r\n }\r\n\r\n for (; i--; str += '0');\r\n x.c.push(+str);\r\n }\r\n } else {\r\n\r\n // Zero.\r\n x.c = [x.e = 0];\r\n }\r\n }\r\n\r\n\r\n // CONSTRUCTOR PROPERTIES\r\n\r\n\r\n BigNumber.clone = clone;\r\n\r\n BigNumber.ROUND_UP = 0;\r\n BigNumber.ROUND_DOWN = 1;\r\n BigNumber.ROUND_CEIL = 2;\r\n BigNumber.ROUND_FLOOR = 3;\r\n BigNumber.ROUND_HALF_UP = 4;\r\n BigNumber.ROUND_HALF_DOWN = 5;\r\n BigNumber.ROUND_HALF_EVEN = 6;\r\n BigNumber.ROUND_HALF_CEIL = 7;\r\n BigNumber.ROUND_HALF_FLOOR = 8;\r\n BigNumber.EUCLID = 9;\r\n\r\n\r\n /*\r\n * Configure infrequently-changing library-wide settings.\r\n *\r\n * Accept an object with the following optional properties (if the value of a property is\r\n * a number, it must be an integer within the inclusive range stated):\r\n *\r\n * DECIMAL_PLACES {number} 0 to MAX\r\n * ROUNDING_MODE {number} 0 to 8\r\n * EXPONENTIAL_AT {number|number[]} -MAX to MAX or [-MAX to 0, 0 to MAX]\r\n * RANGE {number|number[]} -MAX to MAX (not zero) or [-MAX to -1, 1 to MAX]\r\n * CRYPTO {boolean} true or false\r\n * MODULO_MODE {number} 0 to 9\r\n * POW_PRECISION {number} 0 to MAX\r\n * ALPHABET {string} A string of two or more unique characters which does\r\n * not contain '.'.\r\n * FORMAT {object} An object with some of the following properties:\r\n * prefix {string}\r\n * groupSize {number}\r\n * secondaryGroupSize {number}\r\n * groupSeparator {string}\r\n * decimalSeparator {string}\r\n * fractionGroupSize {number}\r\n * fractionGroupSeparator {string}\r\n * suffix {string}\r\n *\r\n * (The values assigned to the above FORMAT object properties are not checked for validity.)\r\n *\r\n * E.g.\r\n * BigNumber.config({ DECIMAL_PLACES : 20, ROUNDING_MODE : 4 })\r\n *\r\n * Ignore properties/parameters set to null or undefined, except for ALPHABET.\r\n *\r\n * Return an object with the properties current values.\r\n */\r\n BigNumber.config = BigNumber.set = function (obj) {\r\n var p, v;\r\n\r\n if (obj != null) {\r\n\r\n if (typeof obj == 'object') {\r\n\r\n // DECIMAL_PLACES {number} Integer, 0 to MAX inclusive.\r\n // '[BigNumber Error] DECIMAL_PLACES {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'DECIMAL_PLACES')) {\r\n v = obj[p];\r\n intCheck(v, 0, MAX, p);\r\n DECIMAL_PLACES = v;\r\n }\r\n\r\n // ROUNDING_MODE {number} Integer, 0 to 8 inclusive.\r\n // '[BigNumber Error] ROUNDING_MODE {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'ROUNDING_MODE')) {\r\n v = obj[p];\r\n intCheck(v, 0, 8, p);\r\n ROUNDING_MODE = v;\r\n }\r\n\r\n // EXPONENTIAL_AT {number|number[]}\r\n // Integer, -MAX to MAX inclusive or\r\n // [integer -MAX to 0 inclusive, 0 to MAX inclusive].\r\n // '[BigNumber Error] EXPONENTIAL_AT {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'EXPONENTIAL_AT')) {\r\n v = obj[p];\r\n if (v && v.pop) {\r\n intCheck(v[0], -MAX, 0, p);\r\n intCheck(v[1], 0, MAX, p);\r\n TO_EXP_NEG = v[0];\r\n TO_EXP_POS = v[1];\r\n } else {\r\n intCheck(v, -MAX, MAX, p);\r\n TO_EXP_NEG = -(TO_EXP_POS = v < 0 ? -v : v);\r\n }\r\n }\r\n\r\n // RANGE {number|number[]} Non-zero integer, -MAX to MAX inclusive or\r\n // [integer -MAX to -1 inclusive, integer 1 to MAX inclusive].\r\n // '[BigNumber Error] RANGE {not a primitive number|not an integer|out of range|cannot be zero}: {v}'\r\n if (obj.hasOwnProperty(p = 'RANGE')) {\r\n v = obj[p];\r\n if (v && v.pop) {\r\n intCheck(v[0], -MAX, -1, p);\r\n intCheck(v[1], 1, MAX, p);\r\n MIN_EXP = v[0];\r\n MAX_EXP = v[1];\r\n } else {\r\n intCheck(v, -MAX, MAX, p);\r\n if (v) {\r\n MIN_EXP = -(MAX_EXP = v < 0 ? -v : v);\r\n } else {\r\n throw Error\r\n (bignumberError + p + ' cannot be zero: ' + v);\r\n }\r\n }\r\n }\r\n\r\n // CRYPTO {boolean} true or false.\r\n // '[BigNumber Error] CRYPTO not true or false: {v}'\r\n // '[BigNumber Error] crypto unavailable'\r\n if (obj.hasOwnProperty(p = 'CRYPTO')) {\r\n v = obj[p];\r\n if (v === !!v) {\r\n if (v) {\r\n if (typeof crypto != 'undefined' && crypto &&\r\n (crypto.getRandomValues || crypto.randomBytes)) {\r\n CRYPTO = v;\r\n } else {\r\n CRYPTO = !v;\r\n throw Error\r\n (bignumberError + 'crypto unavailable');\r\n }\r\n } else {\r\n CRYPTO = v;\r\n }\r\n } else {\r\n throw Error\r\n (bignumberError + p + ' not true or false: ' + v);\r\n }\r\n }\r\n\r\n // MODULO_MODE {number} Integer, 0 to 9 inclusive.\r\n // '[BigNumber Error] MODULO_MODE {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'MODULO_MODE')) {\r\n v = obj[p];\r\n intCheck(v, 0, 9, p);\r\n MODULO_MODE = v;\r\n }\r\n\r\n // POW_PRECISION {number} Integer, 0 to MAX inclusive.\r\n // '[BigNumber Error] POW_PRECISION {not a primitive number|not an integer|out of range}: {v}'\r\n if (obj.hasOwnProperty(p = 'POW_PRECISION')) {\r\n v = obj[p];\r\n intCheck(v, 0, MAX, p);\r\n POW_PRECISION = v;\r\n }\r\n\r\n // FORMAT {object}\r\n // '[BigNumber Error] FORMAT not an object: {v}'\r\n if (obj.hasOwnProperty(p = 'FORMAT')) {\r\n v = obj[p];\r\n if (typeof v == 'object') FORMAT = v;\r\n else throw Error\r\n (bignumberError + p + ' not an object: ' + v);\r\n }\r\n\r\n // ALPHABET {string}\r\n // '[BigNumber Error] ALPHABET invalid: {v}'\r\n if (obj.hasOwnProperty(p = 'ALPHABET')) {\r\n v = obj[p];\r\n\r\n // Disallow if only one character,\r\n // or if it contains '+', '-', '.', whitespace, or a repeated character.\r\n if (typeof v == 'string' && !/^.$|[+-.\\s]|(.).*\\1/.test(v)) {\r\n ALPHABET = v;\r\n } else {\r\n throw Error\r\n (bignumberError + p + ' invalid: ' + v);\r\n }\r\n }\r\n\r\n } else {\r\n\r\n // '[BigNumber Error] Object expected: {v}'\r\n throw Error\r\n (bignumberError + 'Object expected: ' + obj);\r\n }\r\n }\r\n\r\n return {\r\n DECIMAL_PLACES: DECIMAL_PLACES,\r\n ROUNDING_MODE: ROUNDING_MODE,\r\n EXPONENTIAL_AT: [TO_EXP_NEG, TO_EXP_POS],\r\n RANGE: [MIN_EXP, MAX_EXP],\r\n CRYPTO: CRYPTO,\r\n MODULO_MODE: MODULO_MODE,\r\n POW_PRECISION: POW_PRECISION,\r\n FORMAT: FORMAT,\r\n ALPHABET: ALPHABET\r\n };\r\n };\r\n\r\n\r\n /*\r\n * Return true if v is a BigNumber instance, otherwise return false.\r\n *\r\n * v {any}\r\n */\r\n BigNumber.isBigNumber = function (v) {\r\n return v instanceof BigNumber || v && v._isBigNumber === true || false;\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the maximum of the arguments.\r\n *\r\n * arguments {number|string|BigNumber}\r\n */\r\n BigNumber.maximum = BigNumber.max = function () {\r\n return maxOrMin(arguments, P.lt);\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the minimum of the arguments.\r\n *\r\n * arguments {number|string|BigNumber}\r\n */\r\n BigNumber.minimum = BigNumber.min = function () {\r\n return maxOrMin(arguments, P.gt);\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber with a random value equal to or greater than 0 and less than 1,\r\n * and with dp, or DECIMAL_PLACES if dp is omitted, decimal places (or less if trailing\r\n * zeros are produced).\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp}'\r\n * '[BigNumber Error] crypto unavailable'\r\n */\r\n BigNumber.random = (function () {\r\n var pow2_53 = 0x20000000000000;\r\n\r\n // Return a 53 bit integer n, where 0 <= n < 9007199254740992.\r\n // Check if Math.random() produces more than 32 bits of randomness.\r\n // If it does, assume at least 53 bits are produced, otherwise assume at least 30 bits.\r\n // 0x40000000 is 2^30, 0x800000 is 2^23, 0x1fffff is 2^21 - 1.\r\n var random53bitInt = (Math.random() * pow2_53) & 0x1fffff\r\n ? function () { return mathfloor(Math.random() * pow2_53); }\r\n : function () { return ((Math.random() * 0x40000000 | 0) * 0x800000) +\r\n (Math.random() * 0x800000 | 0); };\r\n\r\n return function (dp) {\r\n var a, b, e, k, v,\r\n i = 0,\r\n c = [],\r\n rand = new BigNumber(ONE);\r\n\r\n if (dp == null) dp = DECIMAL_PLACES;\r\n else intCheck(dp, 0, MAX);\r\n\r\n k = mathceil(dp / LOG_BASE);\r\n\r\n if (CRYPTO) {\r\n\r\n // Browsers supporting crypto.getRandomValues.\r\n if (crypto.getRandomValues) {\r\n\r\n a = crypto.getRandomValues(new Uint32Array(k *= 2));\r\n\r\n for (; i < k;) {\r\n\r\n // 53 bits:\r\n // ((Math.pow(2, 32) - 1) * Math.pow(2, 21)).toString(2)\r\n // 11111 11111111 11111111 11111111 11100000 00000000 00000000\r\n // ((Math.pow(2, 32) - 1) >>> 11).toString(2)\r\n // 11111 11111111 11111111\r\n // 0x20000 is 2^21.\r\n v = a[i] * 0x20000 + (a[i + 1] >>> 11);\r\n\r\n // Rejection sampling:\r\n // 0 <= v < 9007199254740992\r\n // Probability that v >= 9e15, is\r\n // 7199254740992 / 9007199254740992 ~= 0.0008, i.e. 1 in 1251\r\n if (v >= 9e15) {\r\n b = crypto.getRandomValues(new Uint32Array(2));\r\n a[i] = b[0];\r\n a[i + 1] = b[1];\r\n } else {\r\n\r\n // 0 <= v <= 8999999999999999\r\n // 0 <= (v % 1e14) <= 99999999999999\r\n c.push(v % 1e14);\r\n i += 2;\r\n }\r\n }\r\n i = k / 2;\r\n\r\n // Node.js supporting crypto.randomBytes.\r\n } else if (crypto.randomBytes) {\r\n\r\n // buffer\r\n a = crypto.randomBytes(k *= 7);\r\n\r\n for (; i < k;) {\r\n\r\n // 0x1000000000000 is 2^48, 0x10000000000 is 2^40\r\n // 0x100000000 is 2^32, 0x1000000 is 2^24\r\n // 11111 11111111 11111111 11111111 11111111 11111111 11111111\r\n // 0 <= v < 9007199254740992\r\n v = ((a[i] & 31) * 0x1000000000000) + (a[i + 1] * 0x10000000000) +\r\n (a[i + 2] * 0x100000000) + (a[i + 3] * 0x1000000) +\r\n (a[i + 4] << 16) + (a[i + 5] << 8) + a[i + 6];\r\n\r\n if (v >= 9e15) {\r\n crypto.randomBytes(7).copy(a, i);\r\n } else {\r\n\r\n // 0 <= (v % 1e14) <= 99999999999999\r\n c.push(v % 1e14);\r\n i += 7;\r\n }\r\n }\r\n i = k / 7;\r\n } else {\r\n CRYPTO = false;\r\n throw Error\r\n (bignumberError + 'crypto unavailable');\r\n }\r\n }\r\n\r\n // Use Math.random.\r\n if (!CRYPTO) {\r\n\r\n for (; i < k;) {\r\n v = random53bitInt();\r\n if (v < 9e15) c[i++] = v % 1e14;\r\n }\r\n }\r\n\r\n k = c[--i];\r\n dp %= LOG_BASE;\r\n\r\n // Convert trailing digits to zeros according to dp.\r\n if (k && dp) {\r\n v = POWS_TEN[LOG_BASE - dp];\r\n c[i] = mathfloor(k / v) * v;\r\n }\r\n\r\n // Remove trailing elements which are zero.\r\n for (; c[i] === 0; c.pop(), i--);\r\n\r\n // Zero?\r\n if (i < 0) {\r\n c = [e = 0];\r\n } else {\r\n\r\n // Remove leading elements which are zero and adjust exponent accordingly.\r\n for (e = -1 ; c[0] === 0; c.splice(0, 1), e -= LOG_BASE);\r\n\r\n // Count the digits of the first element of c to determine leading zeros, and...\r\n for (i = 1, v = c[0]; v >= 10; v /= 10, i++);\r\n\r\n // adjust the exponent accordingly.\r\n if (i < LOG_BASE) e -= LOG_BASE - i;\r\n }\r\n\r\n rand.e = e;\r\n rand.c = c;\r\n return rand;\r\n };\r\n })();\r\n\r\n\r\n /*\r\n * Return a BigNumber whose value is the sum of the arguments.\r\n *\r\n * arguments {number|string|BigNumber}\r\n */\r\n BigNumber.sum = function () {\r\n var i = 1,\r\n args = arguments,\r\n sum = new BigNumber(args[0]);\r\n for (; i < args.length;) sum = sum.plus(args[i++]);\r\n return sum;\r\n };\r\n\r\n\r\n // PRIVATE FUNCTIONS\r\n\r\n\r\n // Called by BigNumber and BigNumber.prototype.toString.\r\n convertBase = (function () {\r\n var decimal = '0123456789';\r\n\r\n /*\r\n * Convert string of baseIn to an array of numbers of baseOut.\r\n * Eg. toBaseOut('255', 10, 16) returns [15, 15].\r\n * Eg. toBaseOut('ff', 16, 10) returns [2, 5, 5].\r\n */\r\n function toBaseOut(str, baseIn, baseOut, alphabet) {\r\n var j,\r\n arr = [0],\r\n arrL,\r\n i = 0,\r\n len = str.length;\r\n\r\n for (; i < len;) {\r\n for (arrL = arr.length; arrL--; arr[arrL] *= baseIn);\r\n\r\n arr[0] += alphabet.indexOf(str.charAt(i++));\r\n\r\n for (j = 0; j < arr.length; j++) {\r\n\r\n if (arr[j] > baseOut - 1) {\r\n if (arr[j + 1] == null) arr[j + 1] = 0;\r\n arr[j + 1] += arr[j] / baseOut | 0;\r\n arr[j] %= baseOut;\r\n }\r\n }\r\n }\r\n\r\n return arr.reverse();\r\n }\r\n\r\n // Convert a numeric string of baseIn to a numeric string of baseOut.\r\n // If the caller is toString, we are converting from base 10 to baseOut.\r\n // If the caller is BigNumber, we are converting from baseIn to base 10.\r\n return function (str, baseIn, baseOut, sign, callerIsToString) {\r\n var alphabet, d, e, k, r, x, xc, y,\r\n i = str.indexOf('.'),\r\n dp = DECIMAL_PLACES,\r\n rm = ROUNDING_MODE;\r\n\r\n // Non-integer.\r\n if (i >= 0) {\r\n k = POW_PRECISION;\r\n\r\n // Unlimited precision.\r\n POW_PRECISION = 0;\r\n str = str.replace('.', '');\r\n y = new BigNumber(baseIn);\r\n x = y.pow(str.length - i);\r\n POW_PRECISION = k;\r\n\r\n // Convert str as if an integer, then restore the fraction part by dividing the\r\n // result by its base raised to a power.\r\n\r\n y.c = toBaseOut(toFixedPoint(coeffToString(x.c), x.e, '0'),\r\n 10, baseOut, decimal);\r\n y.e = y.c.length;\r\n }\r\n\r\n // Convert the number as integer.\r\n\r\n xc = toBaseOut(str, baseIn, baseOut, callerIsToString\r\n ? (alphabet = ALPHABET, decimal)\r\n : (alphabet = decimal, ALPHABET));\r\n\r\n // xc now represents str as an integer and converted to baseOut. e is the exponent.\r\n e = k = xc.length;\r\n\r\n // Remove trailing zeros.\r\n for (; xc[--k] == 0; xc.pop());\r\n\r\n // Zero?\r\n if (!xc[0]) return alphabet.charAt(0);\r\n\r\n // Does str represent an integer? If so, no need for the division.\r\n if (i < 0) {\r\n --e;\r\n } else {\r\n x.c = xc;\r\n x.e = e;\r\n\r\n // The sign is needed for correct rounding.\r\n x.s = sign;\r\n x = div(x, y, dp, rm, baseOut);\r\n xc = x.c;\r\n r = x.r;\r\n e = x.e;\r\n }\r\n\r\n // xc now represents str converted to baseOut.\r\n\r\n // THe index of the rounding digit.\r\n d = e + dp + 1;\r\n\r\n // The rounding digit: the digit to the right of the digit that may be rounded up.\r\n i = xc[d];\r\n\r\n // Look at the rounding digits and mode to determine whether to round up.\r\n\r\n k = baseOut / 2;\r\n r = r || d < 0 || xc[d + 1] != null;\r\n\r\n r = rm < 4 ? (i != null || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2))\r\n : i > k || i == k &&(rm == 4 || r || rm == 6 && xc[d - 1] & 1 ||\r\n rm == (x.s < 0 ? 8 : 7));\r\n\r\n // If the index of the rounding digit is not greater than zero, or xc represents\r\n // zero, then the result of the base conversion is zero or, if rounding up, a value\r\n // such as 0.00001.\r\n if (d < 1 || !xc[0]) {\r\n\r\n // 1^-dp or 0\r\n str = r ? toFixedPoint(alphabet.charAt(1), -dp, alphabet.charAt(0)) : alphabet.charAt(0);\r\n } else {\r\n\r\n // Truncate xc to the required number of decimal places.\r\n xc.length = d;\r\n\r\n // Round up?\r\n if (r) {\r\n\r\n // Rounding up may mean the previous digit has to be rounded up and so on.\r\n for (--baseOut; ++xc[--d] > baseOut;) {\r\n xc[d] = 0;\r\n\r\n if (!d) {\r\n ++e;\r\n xc = [1].concat(xc);\r\n }\r\n }\r\n }\r\n\r\n // Determine trailing zeros.\r\n for (k = xc.length; !xc[--k];);\r\n\r\n // E.g. [4, 11, 15] becomes 4bf.\r\n for (i = 0, str = ''; i <= k; str += alphabet.charAt(xc[i++]));\r\n\r\n // Add leading zeros, decimal point and trailing zeros as required.\r\n str = toFixedPoint(str, e, alphabet.charAt(0));\r\n }\r\n\r\n // The caller will add the sign.\r\n return str;\r\n };\r\n })();\r\n\r\n\r\n // Perform division in the specified base. Called by div and convertBase.\r\n div = (function () {\r\n\r\n // Assume non-zero x and k.\r\n function multiply(x, k, base) {\r\n var m, temp, xlo, xhi,\r\n carry = 0,\r\n i = x.length,\r\n klo = k % SQRT_BASE,\r\n khi = k / SQRT_BASE | 0;\r\n\r\n for (x = x.slice(); i--;) {\r\n xlo = x[i] % SQRT_BASE;\r\n xhi = x[i] / SQRT_BASE | 0;\r\n m = khi * xlo + xhi * klo;\r\n temp = klo * xlo + ((m % SQRT_BASE) * SQRT_BASE) + carry;\r\n carry = (temp / base | 0) + (m / SQRT_BASE | 0) + khi * xhi;\r\n x[i] = temp % base;\r\n }\r\n\r\n if (carry) x = [carry].concat(x);\r\n\r\n return x;\r\n }\r\n\r\n function compare(a, b, aL, bL) {\r\n var i, cmp;\r\n\r\n if (aL != bL) {\r\n cmp = aL > bL ? 1 : -1;\r\n } else {\r\n\r\n for (i = cmp = 0; i < aL; i++) {\r\n\r\n if (a[i] != b[i]) {\r\n cmp = a[i] > b[i] ? 1 : -1;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n return cmp;\r\n }\r\n\r\n function subtract(a, b, aL, base) {\r\n var i = 0;\r\n\r\n // Subtract b from a.\r\n for (; aL--;) {\r\n a[aL] -= i;\r\n i = a[aL] < b[aL] ? 1 : 0;\r\n a[aL] = i * base + a[aL] - b[aL];\r\n }\r\n\r\n // Remove leading zeros.\r\n for (; !a[0] && a.length > 1; a.splice(0, 1));\r\n }\r\n\r\n // x: dividend, y: divisor.\r\n return function (x, y, dp, rm, base) {\r\n var cmp, e, i, more, n, prod, prodL, q, qc, rem, remL, rem0, xi, xL, yc0,\r\n yL, yz,\r\n s = x.s == y.s ? 1 : -1,\r\n xc = x.c,\r\n yc = y.c;\r\n\r\n // Either NaN, Infinity or 0?\r\n if (!xc || !xc[0] || !yc || !yc[0]) {\r\n\r\n return new BigNumber(\r\n\r\n // Return NaN if either NaN, or both Infinity or 0.\r\n !x.s || !y.s || (xc ? yc && xc[0] == yc[0] : !yc) ? NaN :\r\n\r\n // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0.\r\n xc && xc[0] == 0 || !yc ? s * 0 : s / 0\r\n );\r\n }\r\n\r\n q = new BigNumber(s);\r\n qc = q.c = [];\r\n e = x.e - y.e;\r\n s = dp + e + 1;\r\n\r\n if (!base) {\r\n base = BASE;\r\n e = bitFloor(x.e / LOG_BASE) - bitFloor(y.e / LOG_BASE);\r\n s = s / LOG_BASE | 0;\r\n }\r\n\r\n // Result exponent may be one less then the current value of e.\r\n // The coefficients of the BigNumbers from convertBase may have trailing zeros.\r\n for (i = 0; yc[i] == (xc[i] || 0); i++);\r\n\r\n if (yc[i] > (xc[i] || 0)) e--;\r\n\r\n if (s < 0) {\r\n qc.push(1);\r\n more = true;\r\n } else {\r\n xL = xc.length;\r\n yL = yc.length;\r\n i = 0;\r\n s += 2;\r\n\r\n // Normalise xc and yc so highest order digit of yc is >= base / 2.\r\n\r\n n = mathfloor(base / (yc[0] + 1));\r\n\r\n // Not necessary, but to handle odd bases where yc[0] == (base / 2) - 1.\r\n // if (n > 1 || n++ == 1 && yc[0] < base / 2) {\r\n if (n > 1) {\r\n yc = multiply(yc, n, base);\r\n xc = multiply(xc, n, base);\r\n yL = yc.length;\r\n xL = xc.length;\r\n }\r\n\r\n xi = yL;\r\n rem = xc.slice(0, yL);\r\n remL = rem.length;\r\n\r\n // Add zeros to make remainder as long as divisor.\r\n for (; remL < yL; rem[remL++] = 0);\r\n yz = yc.slice();\r\n yz = [0].concat(yz);\r\n yc0 = yc[0];\r\n if (yc[1] >= base / 2) yc0++;\r\n // Not necessary, but to prevent trial digit n > base, when using base 3.\r\n // else if (base == 3 && yc0 == 1) yc0 = 1 + 1e-15;\r\n\r\n do {\r\n n = 0;\r\n\r\n // Compare divisor and remainder.\r\n cmp = compare(yc, rem, yL, remL);\r\n\r\n // If divisor < remainder.\r\n if (cmp < 0) {\r\n\r\n // Calculate trial digit, n.\r\n\r\n rem0 = rem[0];\r\n if (yL != remL) rem0 = rem0 * base + (rem[1] || 0);\r\n\r\n // n is how many times the divisor goes into the current remainder.\r\n n = mathfloor(rem0 / yc0);\r\n\r\n // Algorithm:\r\n // product = divisor multiplied by trial digit (n).\r\n // Compare product and remainder.\r\n // If product is greater than remainder:\r\n // Subtract divisor from product, decrement trial digit.\r\n // Subtract product from remainder.\r\n // If product was less than remainder at the last compare:\r\n // Compare new remainder and divisor.\r\n // If remainder is greater than divisor:\r\n // Subtract divisor from remainder, increment trial digit.\r\n\r\n if (n > 1) {\r\n\r\n // n may be > base only when base is 3.\r\n if (n >= base) n = base - 1;\r\n\r\n // product = divisor * trial digit.\r\n prod = multiply(yc, n, base);\r\n prodL = prod.length;\r\n remL = rem.length;\r\n\r\n // Compare product and remainder.\r\n // If product > remainder then trial digit n too high.\r\n // n is 1 too high about 5% of the time, and is not known to have\r\n // ever been more than 1 too high.\r\n while (compare(prod, rem, prodL, remL) == 1) {\r\n n--;\r\n\r\n // Subtract divisor from product.\r\n subtract(prod, yL < prodL ? yz : yc, prodL, base);\r\n prodL = prod.length;\r\n cmp = 1;\r\n }\r\n } else {\r\n\r\n // n is 0 or 1, cmp is -1.\r\n // If n is 0, there is no need to compare yc and rem again below,\r\n // so change cmp to 1 to avoid it.\r\n // If n is 1, leave cmp as -1, so yc and rem are compared again.\r\n if (n == 0) {\r\n\r\n // divisor < remainder, so n must be at least 1.\r\n cmp = n = 1;\r\n }\r\n\r\n // product = divisor\r\n prod = yc.slice();\r\n prodL = prod.length;\r\n }\r\n\r\n if (prodL < remL) prod = [0].concat(prod);\r\n\r\n // Subtract product from remainder.\r\n subtract(rem, prod, remL, base);\r\n remL = rem.length;\r\n\r\n // If product was < remainder.\r\n if (cmp == -1) {\r\n\r\n // Compare divisor and new remainder.\r\n // If divisor < new remainder, subtract divisor from remainder.\r\n // Trial digit n too low.\r\n // n is 1 too low about 5% of the time, and very rarely 2 too low.\r\n while (compare(yc, rem, yL, remL) < 1) {\r\n n++;\r\n\r\n // Subtract divisor from remainder.\r\n subtract(rem, yL < remL ? yz : yc, remL, base);\r\n remL = rem.length;\r\n }\r\n }\r\n } else if (cmp === 0) {\r\n n++;\r\n rem = [0];\r\n } // else cmp === 1 and n will be 0\r\n\r\n // Add the next digit, n, to the result array.\r\n qc[i++] = n;\r\n\r\n // Update the remainder.\r\n if (rem[0]) {\r\n rem[remL++] = xc[xi] || 0;\r\n } else {\r\n rem = [xc[xi]];\r\n remL = 1;\r\n }\r\n } while ((xi++ < xL || rem[0] != null) && s--);\r\n\r\n more = rem[0] != null;\r\n\r\n // Leading zero?\r\n if (!qc[0]) qc.splice(0, 1);\r\n }\r\n\r\n if (base == BASE) {\r\n\r\n // To calculate q.e, first get the number of digits of qc[0].\r\n for (i = 1, s = qc[0]; s >= 10; s /= 10, i++);\r\n\r\n round(q, dp + (q.e = i + e * LOG_BASE - 1) + 1, rm, more);\r\n\r\n // Caller is convertBase.\r\n } else {\r\n q.e = e;\r\n q.r = +more;\r\n }\r\n\r\n return q;\r\n };\r\n })();\r\n\r\n\r\n /*\r\n * Return a string representing the value of BigNumber n in fixed-point or exponential\r\n * notation rounded to the specified decimal places or significant digits.\r\n *\r\n * n: a BigNumber.\r\n * i: the index of the last digit required (i.e. the digit that may be rounded up).\r\n * rm: the rounding mode.\r\n * id: 1 (toExponential) or 2 (toPrecision).\r\n */\r\n function format(n, i, rm, id) {\r\n var c0, e, ne, len, str;\r\n\r\n if (rm == null) rm = ROUNDING_MODE;\r\n else intCheck(rm, 0, 8);\r\n\r\n if (!n.c) return n.toString();\r\n\r\n c0 = n.c[0];\r\n ne = n.e;\r\n\r\n if (i == null) {\r\n str = coeffToString(n.c);\r\n str = id == 1 || id == 2 && (ne <= TO_EXP_NEG || ne >= TO_EXP_POS)\r\n ? toExponential(str, ne)\r\n : toFixedPoint(str, ne, '0');\r\n } else {\r\n n = round(new BigNumber(n), i, rm);\r\n\r\n // n.e may have changed if the value was rounded up.\r\n e = n.e;\r\n\r\n str = coeffToString(n.c);\r\n len = str.length;\r\n\r\n // toPrecision returns exponential notation if the number of significant digits\r\n // specified is less than the number of digits necessary to represent the integer\r\n // part of the value in fixed-point notation.\r\n\r\n // Exponential notation.\r\n if (id == 1 || id == 2 && (i <= e || e <= TO_EXP_NEG)) {\r\n\r\n // Append zeros?\r\n for (; len < i; str += '0', len++);\r\n str = toExponential(str, e);\r\n\r\n // Fixed-point notation.\r\n } else {\r\n i -= ne;\r\n str = toFixedPoint(str, e, '0');\r\n\r\n // Append zeros?\r\n if (e + 1 > len) {\r\n if (--i > 0) for (str += '.'; i--; str += '0');\r\n } else {\r\n i += e - len;\r\n if (i > 0) {\r\n if (e + 1 == len) str += '.';\r\n for (; i--; str += '0');\r\n }\r\n }\r\n }\r\n }\r\n\r\n return n.s < 0 && c0 ? '-' + str : str;\r\n }\r\n\r\n\r\n // Handle BigNumber.max and BigNumber.min.\r\n function maxOrMin(args, method) {\r\n var n,\r\n i = 1,\r\n m = new BigNumber(args[0]);\r\n\r\n for (; i < args.length; i++) {\r\n n = new BigNumber(args[i]);\r\n\r\n // If any number is NaN, return NaN.\r\n if (!n.s) {\r\n m = n;\r\n break;\r\n } else if (method.call(m, n)) {\r\n m = n;\r\n }\r\n }\r\n\r\n return m;\r\n }\r\n\r\n\r\n /*\r\n * Strip trailing zeros, calculate base 10 exponent and check against MIN_EXP and MAX_EXP.\r\n * Called by minus, plus and times.\r\n */\r\n function normalise(n, c, e) {\r\n var i = 1,\r\n j = c.length;\r\n\r\n // Remove trailing zeros.\r\n for (; !c[--j]; c.pop());\r\n\r\n // Calculate the base 10 exponent. First get the number of digits of c[0].\r\n for (j = c[0]; j >= 10; j /= 10, i++);\r\n\r\n // Overflow?\r\n if ((e = i + e * LOG_BASE - 1) > MAX_EXP) {\r\n\r\n // Infinity.\r\n n.c = n.e = null;\r\n\r\n // Underflow?\r\n } else if (e < MIN_EXP) {\r\n\r\n // Zero.\r\n n.c = [n.e = 0];\r\n } else {\r\n n.e = e;\r\n n.c = c;\r\n }\r\n\r\n return n;\r\n }\r\n\r\n\r\n // Handle values that fail the validity test in BigNumber.\r\n parseNumeric = (function () {\r\n var basePrefix = /^(-?)0([xbo])(?=\\w[\\w.]*$)/i,\r\n dotAfter = /^([^.]+)\\.$/,\r\n dotBefore = /^\\.([^.]+)$/,\r\n isInfinityOrNaN = /^-?(Infinity|NaN)$/,\r\n whitespaceOrPlus = /^\\s*\\+(?=[\\w.])|^\\s+|\\s+$/g;\r\n\r\n return function (x, str, isNum, b) {\r\n var base,\r\n s = isNum ? str : str.replace(whitespaceOrPlus, '');\r\n\r\n // No exception on ±Infinity or NaN.\r\n if (isInfinityOrNaN.test(s)) {\r\n x.s = isNaN(s) ? null : s < 0 ? -1 : 1;\r\n x.c = x.e = null;\r\n } else {\r\n if (!isNum) {\r\n\r\n // basePrefix = /^(-?)0([xbo])(?=\\w[\\w.]*$)/i\r\n s = s.replace(basePrefix, function (m, p1, p2) {\r\n base = (p2 = p2.toLowerCase()) == 'x' ? 16 : p2 == 'b' ? 2 : 8;\r\n return !b || b == base ? p1 : m;\r\n });\r\n\r\n if (b) {\r\n base = b;\r\n\r\n // E.g. '1.' to '1', '.1' to '0.1'\r\n s = s.replace(dotAfter, '$1').replace(dotBefore, '0.$1');\r\n }\r\n\r\n if (str != s) return new BigNumber(s, base);\r\n }\r\n\r\n // '[BigNumber Error] Not a number: {n}'\r\n // '[BigNumber Error] Not a base {b} number: {n}'\r\n if (BigNumber.DEBUG) {\r\n throw Error\r\n (bignumberError + 'Not a' + (b ? ' base ' + b : '') + ' number: ' + str);\r\n }\r\n\r\n // NaN\r\n x.c = x.e = x.s = null;\r\n }\r\n }\r\n })();\r\n\r\n\r\n /*\r\n * Round x to sd significant digits using rounding mode rm. Check for over/under-flow.\r\n * If r is truthy, it is known that there are more digits after the rounding digit.\r\n */\r\n function round(x, sd, rm, r) {\r\n var d, i, j, k, n, ni, rd,\r\n xc = x.c,\r\n pows10 = POWS_TEN;\r\n\r\n // if x is not Infinity or NaN...\r\n if (xc) {\r\n\r\n // rd is the rounding digit, i.e. the digit after the digit that may be rounded up.\r\n // n is a base 1e14 number, the value of the element of array x.c containing rd.\r\n // ni is the index of n within x.c.\r\n // d is the number of digits of n.\r\n // i is the index of rd within n including leading zeros.\r\n // j is the actual index of rd within n (if < 0, rd is a leading zero).\r\n out: {\r\n\r\n // Get the number of digits of the first element of xc.\r\n for (d = 1, k = xc[0]; k >= 10; k /= 10, d++);\r\n i = sd - d;\r\n\r\n // If the rounding digit is in the first element of xc...\r\n if (i < 0) {\r\n i += LOG_BASE;\r\n j = sd;\r\n n = xc[ni = 0];\r\n\r\n // Get the rounding digit at index j of n.\r\n rd = n / pows10[d - j - 1] % 10 | 0;\r\n } else {\r\n ni = mathceil((i + 1) / LOG_BASE);\r\n\r\n if (ni >= xc.length) {\r\n\r\n if (r) {\r\n\r\n // Needed by sqrt.\r\n for (; xc.length <= ni; xc.push(0));\r\n n = rd = 0;\r\n d = 1;\r\n i %= LOG_BASE;\r\n j = i - LOG_BASE + 1;\r\n } else {\r\n break out;\r\n }\r\n } else {\r\n n = k = xc[ni];\r\n\r\n // Get the number of digits of n.\r\n for (d = 1; k >= 10; k /= 10, d++);\r\n\r\n // Get the index of rd within n.\r\n i %= LOG_BASE;\r\n\r\n // Get the index of rd within n, adjusted for leading zeros.\r\n // The number of leading zeros of n is given by LOG_BASE - d.\r\n j = i - LOG_BASE + d;\r\n\r\n // Get the rounding digit at index j of n.\r\n rd = j < 0 ? 0 : n / pows10[d - j - 1] % 10 | 0;\r\n }\r\n }\r\n\r\n r = r || sd < 0 ||\r\n\r\n // Are there any non-zero digits after the rounding digit?\r\n // The expression n % pows10[d - j - 1] returns all digits of n to the right\r\n // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714.\r\n xc[ni + 1] != null || (j < 0 ? n : n % pows10[d - j - 1]);\r\n\r\n r = rm < 4\r\n ? (rd || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2))\r\n : rd > 5 || rd == 5 && (rm == 4 || r || rm == 6 &&\r\n\r\n // Check whether the digit to the left of the rounding digit is odd.\r\n ((i > 0 ? j > 0 ? n / pows10[d - j] : 0 : xc[ni - 1]) % 10) & 1 ||\r\n rm == (x.s < 0 ? 8 : 7));\r\n\r\n if (sd < 1 || !xc[0]) {\r\n xc.length = 0;\r\n\r\n if (r) {\r\n\r\n // Convert sd to decimal places.\r\n sd -= x.e + 1;\r\n\r\n // 1, 0.1, 0.01, 0.001, 0.0001 etc.\r\n xc[0] = pows10[(LOG_BASE - sd % LOG_BASE) % LOG_BASE];\r\n x.e = -sd || 0;\r\n } else {\r\n\r\n // Zero.\r\n xc[0] = x.e = 0;\r\n }\r\n\r\n return x;\r\n }\r\n\r\n // Remove excess digits.\r\n if (i == 0) {\r\n xc.length = ni;\r\n k = 1;\r\n ni--;\r\n } else {\r\n xc.length = ni + 1;\r\n k = pows10[LOG_BASE - i];\r\n\r\n // E.g. 56700 becomes 56000 if 7 is the rounding digit.\r\n // j > 0 means i > number of leading zeros of n.\r\n xc[ni] = j > 0 ? mathfloor(n / pows10[d - j] % pows10[j]) * k : 0;\r\n }\r\n\r\n // Round up?\r\n if (r) {\r\n\r\n for (; ;) {\r\n\r\n // If the digit to be rounded up is in the first element of xc...\r\n if (ni == 0) {\r\n\r\n // i will be the length of xc[0] before k is added.\r\n for (i = 1, j = xc[0]; j >= 10; j /= 10, i++);\r\n j = xc[0] += k;\r\n for (k = 1; j >= 10; j /= 10, k++);\r\n\r\n // if i != k the length has increased.\r\n if (i != k) {\r\n x.e++;\r\n if (xc[0] == BASE) xc[0] = 1;\r\n }\r\n\r\n break;\r\n } else {\r\n xc[ni] += k;\r\n if (xc[ni] != BASE) break;\r\n xc[ni--] = 0;\r\n k = 1;\r\n }\r\n }\r\n }\r\n\r\n // Remove trailing zeros.\r\n for (i = xc.length; xc[--i] === 0; xc.pop());\r\n }\r\n\r\n // Overflow? Infinity.\r\n if (x.e > MAX_EXP) {\r\n x.c = x.e = null;\r\n\r\n // Underflow? Zero.\r\n } else if (x.e < MIN_EXP) {\r\n x.c = [x.e = 0];\r\n }\r\n }\r\n\r\n return x;\r\n }\r\n\r\n\r\n function valueOf(n) {\r\n var str,\r\n e = n.e;\r\n\r\n if (e === null) return n.toString();\r\n\r\n str = coeffToString(n.c);\r\n\r\n str = e <= TO_EXP_NEG || e >= TO_EXP_POS\r\n ? toExponential(str, e)\r\n : toFixedPoint(str, e, '0');\r\n\r\n return n.s < 0 ? '-' + str : str;\r\n }\r\n\r\n\r\n // PROTOTYPE/INSTANCE METHODS\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the absolute value of this BigNumber.\r\n */\r\n P.absoluteValue = P.abs = function () {\r\n var x = new BigNumber(this);\r\n if (x.s < 0) x.s = 1;\r\n return x;\r\n };\r\n\r\n\r\n /*\r\n * Return\r\n * 1 if the value of this BigNumber is greater than the value of BigNumber(y, b),\r\n * -1 if the value of this BigNumber is less than the value of BigNumber(y, b),\r\n * 0 if they have the same value,\r\n * or null if the value of either is NaN.\r\n */\r\n P.comparedTo = function (y, b) {\r\n return compare(this, new BigNumber(y, b));\r\n };\r\n\r\n\r\n /*\r\n * If dp is undefined or null or true or false, return the number of decimal places of the\r\n * value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN.\r\n *\r\n * Otherwise, if dp is a number, return a new BigNumber whose value is the value of this\r\n * BigNumber rounded to a maximum of dp decimal places using rounding mode rm, or\r\n * ROUNDING_MODE if rm is omitted.\r\n *\r\n * [dp] {number} Decimal places: integer, 0 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}'\r\n */\r\n P.decimalPlaces = P.dp = function (dp, rm) {\r\n var c, n, v,\r\n x = this;\r\n\r\n if (dp != null) {\r\n intCheck(dp, 0, MAX);\r\n if (rm == null) rm = ROUNDING_MODE;\r\n else intCheck(rm, 0, 8);\r\n\r\n return round(new BigNumber(x), dp + x.e + 1, rm);\r\n }\r\n\r\n if (!(c = x.c)) return null;\r\n n = ((v = c.length - 1) - bitFloor(this.e / LOG_BASE)) * LOG_BASE;\r\n\r\n // Subtract the number of trailing zeros of the last number.\r\n if (v = c[v]) for (; v % 10 == 0; v /= 10, n--);\r\n if (n < 0) n = 0;\r\n\r\n return n;\r\n };\r\n\r\n\r\n /*\r\n * n / 0 = I\r\n * n / N = N\r\n * n / I = 0\r\n * 0 / n = 0\r\n * 0 / 0 = N\r\n * 0 / N = N\r\n * 0 / I = 0\r\n * N / n = N\r\n * N / 0 = N\r\n * N / N = N\r\n * N / I = N\r\n * I / n = I\r\n * I / 0 = I\r\n * I / N = N\r\n * I / I = N\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber divided by the value of\r\n * BigNumber(y, b), rounded according to DECIMAL_PLACES and ROUNDING_MODE.\r\n */\r\n P.dividedBy = P.div = function (y, b) {\r\n return div(this, new BigNumber(y, b), DECIMAL_PLACES, ROUNDING_MODE);\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the integer part of dividing the value of this\r\n * BigNumber by the value of BigNumber(y, b).\r\n */\r\n P.dividedToIntegerBy = P.idiv = function (y, b) {\r\n return div(this, new BigNumber(y, b), 0, 1);\r\n };\r\n\r\n\r\n /*\r\n * Return a BigNumber whose value is the value of this BigNumber exponentiated by n.\r\n *\r\n * If m is present, return the result modulo m.\r\n * If n is negative round according to DECIMAL_PLACES and ROUNDING_MODE.\r\n * If POW_PRECISION is non-zero and m is not present, round to POW_PRECISION using ROUNDING_MODE.\r\n *\r\n * The modular power operation works efficiently when x, n, and m are integers, otherwise it\r\n * is equivalent to calculating x.exponentiatedBy(n).modulo(m) with a POW_PRECISION of 0.\r\n *\r\n * n {number|string|BigNumber} The exponent. An integer.\r\n * [m] {number|string|BigNumber} The modulus.\r\n *\r\n * '[BigNumber Error] Exponent not an integer: {n}'\r\n */\r\n P.exponentiatedBy = P.pow = function (n, m) {\r\n var half, isModExp, i, k, more, nIsBig, nIsNeg, nIsOdd, y,\r\n x = this;\r\n\r\n n = new BigNumber(n);\r\n\r\n // Allow NaN and ±Infinity, but not other non-integers.\r\n if (n.c && !n.isInteger()) {\r\n throw Error\r\n (bignumberError + 'Exponent not an integer: ' + valueOf(n));\r\n }\r\n\r\n if (m != null) m = new BigNumber(m);\r\n\r\n // Exponent of MAX_SAFE_INTEGER is 15.\r\n nIsBig = n.e > 14;\r\n\r\n // If x is NaN, ±Infinity, ±0 or ±1, or n is ±Infinity, NaN or ±0.\r\n if (!x.c || !x.c[0] || x.c[0] == 1 && !x.e && x.c.length == 1 || !n.c || !n.c[0]) {\r\n\r\n // The sign of the result of pow when x is negative depends on the evenness of n.\r\n // If +n overflows to ±Infinity, the evenness of n would be not be known.\r\n y = new BigNumber(Math.pow(+valueOf(x), nIsBig ? 2 - isOdd(n) : +valueOf(n)));\r\n return m ? y.mod(m) : y;\r\n }\r\n\r\n nIsNeg = n.s < 0;\r\n\r\n if (m) {\r\n\r\n // x % m returns NaN if abs(m) is zero, or m is NaN.\r\n if (m.c ? !m.c[0] : !m.s) return new BigNumber(NaN);\r\n\r\n isModExp = !nIsNeg && x.isInteger() && m.isInteger();\r\n\r\n if (isModExp) x = x.mod(m);\r\n\r\n // Overflow to ±Infinity: >=2**1e10 or >=1.0000024**1e15.\r\n // Underflow to ±0: <=0.79**1e10 or <=0.9999975**1e15.\r\n } else if (n.e > 9 && (x.e > 0 || x.e < -1 || (x.e == 0\r\n // [1, 240000000]\r\n ? x.c[0] > 1 || nIsBig && x.c[1] >= 24e7\r\n // [80000000000000] [99999750000000]\r\n : x.c[0] < 8e13 || nIsBig && x.c[0] <= 9999975e7))) {\r\n\r\n // If x is negative and n is odd, k = -0, else k = 0.\r\n k = x.s < 0 && isOdd(n) ? -0 : 0;\r\n\r\n // If x >= 1, k = ±Infinity.\r\n if (x.e > -1) k = 1 / k;\r\n\r\n // If n is negative return ±0, else return ±Infinity.\r\n return new BigNumber(nIsNeg ? 1 / k : k);\r\n\r\n } else if (POW_PRECISION) {\r\n\r\n // Truncating each coefficient array to a length of k after each multiplication\r\n // equates to truncating significant digits to POW_PRECISION + [28, 41],\r\n // i.e. there will be a minimum of 28 guard digits retained.\r\n k = mathceil(POW_PRECISION / LOG_BASE + 2);\r\n }\r\n\r\n if (nIsBig) {\r\n half = new BigNumber(0.5);\r\n if (nIsNeg) n.s = 1;\r\n nIsOdd = isOdd(n);\r\n } else {\r\n i = Math.abs(+valueOf(n));\r\n nIsOdd = i % 2;\r\n }\r\n\r\n y = new BigNumber(ONE);\r\n\r\n // Performs 54 loop iterations for n of 9007199254740991.\r\n for (; ;) {\r\n\r\n if (nIsOdd) {\r\n y = y.times(x);\r\n if (!y.c) break;\r\n\r\n if (k) {\r\n if (y.c.length > k) y.c.length = k;\r\n } else if (isModExp) {\r\n y = y.mod(m); //y = y.minus(div(y, m, 0, MODULO_MODE).times(m));\r\n }\r\n }\r\n\r\n if (i) {\r\n i = mathfloor(i / 2);\r\n if (i === 0) break;\r\n nIsOdd = i % 2;\r\n } else {\r\n n = n.times(half);\r\n round(n, n.e + 1, 1);\r\n\r\n if (n.e > 14) {\r\n nIsOdd = isOdd(n);\r\n } else {\r\n i = +valueOf(n);\r\n if (i === 0) break;\r\n nIsOdd = i % 2;\r\n }\r\n }\r\n\r\n x = x.times(x);\r\n\r\n if (k) {\r\n if (x.c && x.c.length > k) x.c.length = k;\r\n } else if (isModExp) {\r\n x = x.mod(m); //x = x.minus(div(x, m, 0, MODULO_MODE).times(m));\r\n }\r\n }\r\n\r\n if (isModExp) return y;\r\n if (nIsNeg) y = ONE.div(y);\r\n\r\n return m ? y.mod(m) : k ? round(y, POW_PRECISION, ROUNDING_MODE, more) : y;\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the value of this BigNumber rounded to an integer\r\n * using rounding mode rm, or ROUNDING_MODE if rm is omitted.\r\n *\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {rm}'\r\n */\r\n P.integerValue = function (rm) {\r\n var n = new BigNumber(this);\r\n if (rm == null) rm = ROUNDING_MODE;\r\n else intCheck(rm, 0, 8);\r\n return round(n, n.e + 1, rm);\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is equal to the value of BigNumber(y, b),\r\n * otherwise return false.\r\n */\r\n P.isEqualTo = P.eq = function (y, b) {\r\n return compare(this, new BigNumber(y, b)) === 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is a finite number, otherwise return false.\r\n */\r\n P.isFinite = function () {\r\n return !!this.c;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is greater than the value of BigNumber(y, b),\r\n * otherwise return false.\r\n */\r\n P.isGreaterThan = P.gt = function (y, b) {\r\n return compare(this, new BigNumber(y, b)) > 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is greater than or equal to the value of\r\n * BigNumber(y, b), otherwise return false.\r\n */\r\n P.isGreaterThanOrEqualTo = P.gte = function (y, b) {\r\n return (b = compare(this, new BigNumber(y, b))) === 1 || b === 0;\r\n\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is an integer, otherwise return false.\r\n */\r\n P.isInteger = function () {\r\n return !!this.c && bitFloor(this.e / LOG_BASE) > this.c.length - 2;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is less than the value of BigNumber(y, b),\r\n * otherwise return false.\r\n */\r\n P.isLessThan = P.lt = function (y, b) {\r\n return compare(this, new BigNumber(y, b)) < 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is less than or equal to the value of\r\n * BigNumber(y, b), otherwise return false.\r\n */\r\n P.isLessThanOrEqualTo = P.lte = function (y, b) {\r\n return (b = compare(this, new BigNumber(y, b))) === -1 || b === 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is NaN, otherwise return false.\r\n */\r\n P.isNaN = function () {\r\n return !this.s;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is negative, otherwise return false.\r\n */\r\n P.isNegative = function () {\r\n return this.s < 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is positive, otherwise return false.\r\n */\r\n P.isPositive = function () {\r\n return this.s > 0;\r\n };\r\n\r\n\r\n /*\r\n * Return true if the value of this BigNumber is 0 or -0, otherwise return false.\r\n */\r\n P.isZero = function () {\r\n return !!this.c && this.c[0] == 0;\r\n };\r\n\r\n\r\n /*\r\n * n - 0 = n\r\n * n - N = N\r\n * n - I = -I\r\n * 0 - n = -n\r\n * 0 - 0 = 0\r\n * 0 - N = N\r\n * 0 - I = -I\r\n * N - n = N\r\n * N - 0 = N\r\n * N - N = N\r\n * N - I = N\r\n * I - n = I\r\n * I - 0 = I\r\n * I - N = N\r\n * I - I = N\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber minus the value of\r\n * BigNumber(y, b).\r\n */\r\n P.minus = function (y, b) {\r\n var i, j, t, xLTy,\r\n x = this,\r\n a = x.s;\r\n\r\n y = new BigNumber(y, b);\r\n b = y.s;\r\n\r\n // Either NaN?\r\n if (!a || !b) return new BigNumber(NaN);\r\n\r\n // Signs differ?\r\n if (a != b) {\r\n y.s = -b;\r\n return x.plus(y);\r\n }\r\n\r\n var xe = x.e / LOG_BASE,\r\n ye = y.e / LOG_BASE,\r\n xc = x.c,\r\n yc = y.c;\r\n\r\n if (!xe || !ye) {\r\n\r\n // Either Infinity?\r\n if (!xc || !yc) return xc ? (y.s = -b, y) : new BigNumber(yc ? x : NaN);\r\n\r\n // Either zero?\r\n if (!xc[0] || !yc[0]) {\r\n\r\n // Return y if y is non-zero, x if x is non-zero, or zero if both are zero.\r\n return yc[0] ? (y.s = -b, y) : new BigNumber(xc[0] ? x :\r\n\r\n // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity\r\n ROUNDING_MODE == 3 ? -0 : 0);\r\n }\r\n }\r\n\r\n xe = bitFloor(xe);\r\n ye = bitFloor(ye);\r\n xc = xc.slice();\r\n\r\n // Determine which is the bigger number.\r\n if (a = xe - ye) {\r\n\r\n if (xLTy = a < 0) {\r\n a = -a;\r\n t = xc;\r\n } else {\r\n ye = xe;\r\n t = yc;\r\n }\r\n\r\n t.reverse();\r\n\r\n // Prepend zeros to equalise exponents.\r\n for (b = a; b--; t.push(0));\r\n t.reverse();\r\n } else {\r\n\r\n // Exponents equal. Check digit by digit.\r\n j = (xLTy = (a = xc.length) < (b = yc.length)) ? a : b;\r\n\r\n for (a = b = 0; b < j; b++) {\r\n\r\n if (xc[b] != yc[b]) {\r\n xLTy = xc[b] < yc[b];\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // x < y? Point xc to the array of the bigger number.\r\n if (xLTy) t = xc, xc = yc, yc = t, y.s = -y.s;\r\n\r\n b = (j = yc.length) - (i = xc.length);\r\n\r\n // Append zeros to xc if shorter.\r\n // No need to add zeros to yc if shorter as subtract only needs to start at yc.length.\r\n if (b > 0) for (; b--; xc[i++] = 0);\r\n b = BASE - 1;\r\n\r\n // Subtract yc from xc.\r\n for (; j > a;) {\r\n\r\n if (xc[--j] < yc[j]) {\r\n for (i = j; i && !xc[--i]; xc[i] = b);\r\n --xc[i];\r\n xc[j] += BASE;\r\n }\r\n\r\n xc[j] -= yc[j];\r\n }\r\n\r\n // Remove leading zeros and adjust exponent accordingly.\r\n for (; xc[0] == 0; xc.splice(0, 1), --ye);\r\n\r\n // Zero?\r\n if (!xc[0]) {\r\n\r\n // Following IEEE 754 (2008) 6.3,\r\n // n - n = +0 but n - n = -0 when rounding towards -Infinity.\r\n y.s = ROUNDING_MODE == 3 ? -1 : 1;\r\n y.c = [y.e = 0];\r\n return y;\r\n }\r\n\r\n // No need to check for Infinity as +x - +y != Infinity && -x - -y != Infinity\r\n // for finite x and y.\r\n return normalise(y, xc, ye);\r\n };\r\n\r\n\r\n /*\r\n * n % 0 = N\r\n * n % N = N\r\n * n % I = n\r\n * 0 % n = 0\r\n * -0 % n = -0\r\n * 0 % 0 = N\r\n * 0 % N = N\r\n * 0 % I = 0\r\n * N % n = N\r\n * N % 0 = N\r\n * N % N = N\r\n * N % I = N\r\n * I % n = N\r\n * I % 0 = N\r\n * I % N = N\r\n * I % I = N\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber modulo the value of\r\n * BigNumber(y, b). The result depends on the value of MODULO_MODE.\r\n */\r\n P.modulo = P.mod = function (y, b) {\r\n var q, s,\r\n x = this;\r\n\r\n y = new BigNumber(y, b);\r\n\r\n // Return NaN if x is Infinity or NaN, or y is NaN or zero.\r\n if (!x.c || !y.s || y.c && !y.c[0]) {\r\n return new BigNumber(NaN);\r\n\r\n // Return x if y is Infinity or x is zero.\r\n } else if (!y.c || x.c && !x.c[0]) {\r\n return new BigNumber(x);\r\n }\r\n\r\n if (MODULO_MODE == 9) {\r\n\r\n // Euclidian division: q = sign(y) * floor(x / abs(y))\r\n // r = x - qy where 0 <= r < abs(y)\r\n s = y.s;\r\n y.s = 1;\r\n q = div(x, y, 0, 3);\r\n y.s = s;\r\n q.s *= s;\r\n } else {\r\n q = div(x, y, 0, MODULO_MODE);\r\n }\r\n\r\n y = x.minus(q.times(y));\r\n\r\n // To match JavaScript %, ensure sign of zero is sign of dividend.\r\n if (!y.c[0] && MODULO_MODE == 1) y.s = x.s;\r\n\r\n return y;\r\n };\r\n\r\n\r\n /*\r\n * n * 0 = 0\r\n * n * N = N\r\n * n * I = I\r\n * 0 * n = 0\r\n * 0 * 0 = 0\r\n * 0 * N = N\r\n * 0 * I = N\r\n * N * n = N\r\n * N * 0 = N\r\n * N * N = N\r\n * N * I = N\r\n * I * n = I\r\n * I * 0 = N\r\n * I * N = N\r\n * I * I = I\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber multiplied by the value\r\n * of BigNumber(y, b).\r\n */\r\n P.multipliedBy = P.times = function (y, b) {\r\n var c, e, i, j, k, m, xcL, xlo, xhi, ycL, ylo, yhi, zc,\r\n base, sqrtBase,\r\n x = this,\r\n xc = x.c,\r\n yc = (y = new BigNumber(y, b)).c;\r\n\r\n // Either NaN, ±Infinity or ±0?\r\n if (!xc || !yc || !xc[0] || !yc[0]) {\r\n\r\n // Return NaN if either is NaN, or one is 0 and the other is Infinity.\r\n if (!x.s || !y.s || xc && !xc[0] && !yc || yc && !yc[0] && !xc) {\r\n y.c = y.e = y.s = null;\r\n } else {\r\n y.s *= x.s;\r\n\r\n // Return ±Infinity if either is ±Infinity.\r\n if (!xc || !yc) {\r\n y.c = y.e = null;\r\n\r\n // Return ±0 if either is ±0.\r\n } else {\r\n y.c = [0];\r\n y.e = 0;\r\n }\r\n }\r\n\r\n return y;\r\n }\r\n\r\n e = bitFloor(x.e / LOG_BASE) + bitFloor(y.e / LOG_BASE);\r\n y.s *= x.s;\r\n xcL = xc.length;\r\n ycL = yc.length;\r\n\r\n // Ensure xc points to longer array and xcL to its length.\r\n if (xcL < ycL) zc = xc, xc = yc, yc = zc, i = xcL, xcL = ycL, ycL = i;\r\n\r\n // Initialise the result array with zeros.\r\n for (i = xcL + ycL, zc = []; i--; zc.push(0));\r\n\r\n base = BASE;\r\n sqrtBase = SQRT_BASE;\r\n\r\n for (i = ycL; --i >= 0;) {\r\n c = 0;\r\n ylo = yc[i] % sqrtBase;\r\n yhi = yc[i] / sqrtBase | 0;\r\n\r\n for (k = xcL, j = i + k; j > i;) {\r\n xlo = xc[--k] % sqrtBase;\r\n xhi = xc[k] / sqrtBase | 0;\r\n m = yhi * xlo + xhi * ylo;\r\n xlo = ylo * xlo + ((m % sqrtBase) * sqrtBase) + zc[j] + c;\r\n c = (xlo / base | 0) + (m / sqrtBase | 0) + yhi * xhi;\r\n zc[j--] = xlo % base;\r\n }\r\n\r\n zc[j] = c;\r\n }\r\n\r\n if (c) {\r\n ++e;\r\n } else {\r\n zc.splice(0, 1);\r\n }\r\n\r\n return normalise(y, zc, e);\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the value of this BigNumber negated,\r\n * i.e. multiplied by -1.\r\n */\r\n P.negated = function () {\r\n var x = new BigNumber(this);\r\n x.s = -x.s || null;\r\n return x;\r\n };\r\n\r\n\r\n /*\r\n * n + 0 = n\r\n * n + N = N\r\n * n + I = I\r\n * 0 + n = n\r\n * 0 + 0 = 0\r\n * 0 + N = N\r\n * 0 + I = I\r\n * N + n = N\r\n * N + 0 = N\r\n * N + N = N\r\n * N + I = N\r\n * I + n = I\r\n * I + 0 = I\r\n * I + N = N\r\n * I + I = I\r\n *\r\n * Return a new BigNumber whose value is the value of this BigNumber plus the value of\r\n * BigNumber(y, b).\r\n */\r\n P.plus = function (y, b) {\r\n var t,\r\n x = this,\r\n a = x.s;\r\n\r\n y = new BigNumber(y, b);\r\n b = y.s;\r\n\r\n // Either NaN?\r\n if (!a || !b) return new BigNumber(NaN);\r\n\r\n // Signs differ?\r\n if (a != b) {\r\n y.s = -b;\r\n return x.minus(y);\r\n }\r\n\r\n var xe = x.e / LOG_BASE,\r\n ye = y.e / LOG_BASE,\r\n xc = x.c,\r\n yc = y.c;\r\n\r\n if (!xe || !ye) {\r\n\r\n // Return ±Infinity if either ±Infinity.\r\n if (!xc || !yc) return new BigNumber(a / 0);\r\n\r\n // Either zero?\r\n // Return y if y is non-zero, x if x is non-zero, or zero if both are zero.\r\n if (!xc[0] || !yc[0]) return yc[0] ? y : new BigNumber(xc[0] ? x : a * 0);\r\n }\r\n\r\n xe = bitFloor(xe);\r\n ye = bitFloor(ye);\r\n xc = xc.slice();\r\n\r\n // Prepend zeros to equalise exponents. Faster to use reverse then do unshifts.\r\n if (a = xe - ye) {\r\n if (a > 0) {\r\n ye = xe;\r\n t = yc;\r\n } else {\r\n a = -a;\r\n t = xc;\r\n }\r\n\r\n t.reverse();\r\n for (; a--; t.push(0));\r\n t.reverse();\r\n }\r\n\r\n a = xc.length;\r\n b = yc.length;\r\n\r\n // Point xc to the longer array, and b to the shorter length.\r\n if (a - b < 0) t = yc, yc = xc, xc = t, b = a;\r\n\r\n // Only start adding at yc.length - 1 as the further digits of xc can be ignored.\r\n for (a = 0; b;) {\r\n a = (xc[--b] = xc[b] + yc[b] + a) / BASE | 0;\r\n xc[b] = BASE === xc[b] ? 0 : xc[b] % BASE;\r\n }\r\n\r\n if (a) {\r\n xc = [a].concat(xc);\r\n ++ye;\r\n }\r\n\r\n // No need to check for zero, as +x + +y != 0 && -x + -y != 0\r\n // ye = MAX_EXP + 1 possible\r\n return normalise(y, xc, ye);\r\n };\r\n\r\n\r\n /*\r\n * If sd is undefined or null or true or false, return the number of significant digits of\r\n * the value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN.\r\n * If sd is true include integer-part trailing zeros in the count.\r\n *\r\n * Otherwise, if sd is a number, return a new BigNumber whose value is the value of this\r\n * BigNumber rounded to a maximum of sd significant digits using rounding mode rm, or\r\n * ROUNDING_MODE if rm is omitted.\r\n *\r\n * sd {number|boolean} number: significant digits: integer, 1 to MAX inclusive.\r\n * boolean: whether to count integer-part trailing zeros: true or false.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}'\r\n */\r\n P.precision = P.sd = function (sd, rm) {\r\n var c, n, v,\r\n x = this;\r\n\r\n if (sd != null && sd !== !!sd) {\r\n intCheck(sd, 1, MAX);\r\n if (rm == null) rm = ROUNDING_MODE;\r\n else intCheck(rm, 0, 8);\r\n\r\n return round(new BigNumber(x), sd, rm);\r\n }\r\n\r\n if (!(c = x.c)) return null;\r\n v = c.length - 1;\r\n n = v * LOG_BASE + 1;\r\n\r\n if (v = c[v]) {\r\n\r\n // Subtract the number of trailing zeros of the last element.\r\n for (; v % 10 == 0; v /= 10, n--);\r\n\r\n // Add the number of digits of the first element.\r\n for (v = c[0]; v >= 10; v /= 10, n++);\r\n }\r\n\r\n if (sd && x.e + 1 > n) n = x.e + 1;\r\n\r\n return n;\r\n };\r\n\r\n\r\n /*\r\n * Return a new BigNumber whose value is the value of this BigNumber shifted by k places\r\n * (powers of 10). Shift to the right if n > 0, and to the left if n < 0.\r\n *\r\n * k {number} Integer, -MAX_SAFE_INTEGER to MAX_SAFE_INTEGER inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {k}'\r\n */\r\n P.shiftedBy = function (k) {\r\n intCheck(k, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER);\r\n return this.times('1e' + k);\r\n };\r\n\r\n\r\n /*\r\n * sqrt(-n) = N\r\n * sqrt(N) = N\r\n * sqrt(-I) = N\r\n * sqrt(I) = I\r\n * sqrt(0) = 0\r\n * sqrt(-0) = -0\r\n *\r\n * Return a new BigNumber whose value is the square root of the value of this BigNumber,\r\n * rounded according to DECIMAL_PLACES and ROUNDING_MODE.\r\n */\r\n P.squareRoot = P.sqrt = function () {\r\n var m, n, r, rep, t,\r\n x = this,\r\n c = x.c,\r\n s = x.s,\r\n e = x.e,\r\n dp = DECIMAL_PLACES + 4,\r\n half = new BigNumber('0.5');\r\n\r\n // Negative/NaN/Infinity/zero?\r\n if (s !== 1 || !c || !c[0]) {\r\n return new BigNumber(!s || s < 0 && (!c || c[0]) ? NaN : c ? x : 1 / 0);\r\n }\r\n\r\n // Initial estimate.\r\n s = Math.sqrt(+valueOf(x));\r\n\r\n // Math.sqrt underflow/overflow?\r\n // Pass x to Math.sqrt as integer, then adjust the exponent of the result.\r\n if (s == 0 || s == 1 / 0) {\r\n n = coeffToString(c);\r\n if ((n.length + e) % 2 == 0) n += '0';\r\n s = Math.sqrt(+n);\r\n e = bitFloor((e + 1) / 2) - (e < 0 || e % 2);\r\n\r\n if (s == 1 / 0) {\r\n n = '1e' + e;\r\n } else {\r\n n = s.toExponential();\r\n n = n.slice(0, n.indexOf('e') + 1) + e;\r\n }\r\n\r\n r = new BigNumber(n);\r\n } else {\r\n r = new BigNumber(s + '');\r\n }\r\n\r\n // Check for zero.\r\n // r could be zero if MIN_EXP is changed after the this value was created.\r\n // This would cause a division by zero (x/t) and hence Infinity below, which would cause\r\n // coeffToString to throw.\r\n if (r.c[0]) {\r\n e = r.e;\r\n s = e + dp;\r\n if (s < 3) s = 0;\r\n\r\n // Newton-Raphson iteration.\r\n for (; ;) {\r\n t = r;\r\n r = half.times(t.plus(div(x, t, dp, 1)));\r\n\r\n if (coeffToString(t.c).slice(0, s) === (n = coeffToString(r.c)).slice(0, s)) {\r\n\r\n // The exponent of r may here be one less than the final result exponent,\r\n // e.g 0.0009999 (e-4) --> 0.001 (e-3), so adjust s so the rounding digits\r\n // are indexed correctly.\r\n if (r.e < e) --s;\r\n n = n.slice(s - 3, s + 1);\r\n\r\n // The 4th rounding digit may be in error by -1 so if the 4 rounding digits\r\n // are 9999 or 4999 (i.e. approaching a rounding boundary) continue the\r\n // iteration.\r\n if (n == '9999' || !rep && n == '4999') {\r\n\r\n // On the first iteration only, check to see if rounding up gives the\r\n // exact result as the nines may infinitely repeat.\r\n if (!rep) {\r\n round(t, t.e + DECIMAL_PLACES + 2, 0);\r\n\r\n if (t.times(t).eq(x)) {\r\n r = t;\r\n break;\r\n }\r\n }\r\n\r\n dp += 4;\r\n s += 4;\r\n rep = 1;\r\n } else {\r\n\r\n // If rounding digits are null, 0{0,4} or 50{0,3}, check for exact\r\n // result. If not, then there are further digits and m will be truthy.\r\n if (!+n || !+n.slice(1) && n.charAt(0) == '5') {\r\n\r\n // Truncate to the first rounding digit.\r\n round(r, r.e + DECIMAL_PLACES + 2, 1);\r\n m = !r.times(r).eq(x);\r\n }\r\n\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return round(r, r.e + DECIMAL_PLACES + 1, ROUNDING_MODE, m);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber in exponential notation and\r\n * rounded using ROUNDING_MODE to dp fixed decimal places.\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}'\r\n */\r\n P.toExponential = function (dp, rm) {\r\n if (dp != null) {\r\n intCheck(dp, 0, MAX);\r\n dp++;\r\n }\r\n return format(this, dp, rm, 1);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber in fixed-point notation rounding\r\n * to dp fixed decimal places using rounding mode rm, or ROUNDING_MODE if rm is omitted.\r\n *\r\n * Note: as with JavaScript's number type, (-0).toFixed(0) is '0',\r\n * but e.g. (-0.00001).toFixed(0) is '-0'.\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}'\r\n */\r\n P.toFixed = function (dp, rm) {\r\n if (dp != null) {\r\n intCheck(dp, 0, MAX);\r\n dp = dp + this.e + 1;\r\n }\r\n return format(this, dp, rm);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber in fixed-point notation rounded\r\n * using rm or ROUNDING_MODE to dp decimal places, and formatted according to the properties\r\n * of the format or FORMAT object (see BigNumber.set).\r\n *\r\n * The formatting object may contain some or all of the properties shown below.\r\n *\r\n * FORMAT = {\r\n * prefix: '',\r\n * groupSize: 3,\r\n * secondaryGroupSize: 0,\r\n * groupSeparator: ',',\r\n * decimalSeparator: '.',\r\n * fractionGroupSize: 0,\r\n * fractionGroupSeparator: '\\xA0', // non-breaking space\r\n * suffix: ''\r\n * };\r\n *\r\n * [dp] {number} Decimal places. Integer, 0 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n * [format] {object} Formatting options. See FORMAT pbject above.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}'\r\n * '[BigNumber Error] Argument not an object: {format}'\r\n */\r\n P.toFormat = function (dp, rm, format) {\r\n var str,\r\n x = this;\r\n\r\n if (format == null) {\r\n if (dp != null && rm && typeof rm == 'object') {\r\n format = rm;\r\n rm = null;\r\n } else if (dp && typeof dp == 'object') {\r\n format = dp;\r\n dp = rm = null;\r\n } else {\r\n format = FORMAT;\r\n }\r\n } else if (typeof format != 'object') {\r\n throw Error\r\n (bignumberError + 'Argument not an object: ' + format);\r\n }\r\n\r\n str = x.toFixed(dp, rm);\r\n\r\n if (x.c) {\r\n var i,\r\n arr = str.split('.'),\r\n g1 = +format.groupSize,\r\n g2 = +format.secondaryGroupSize,\r\n groupSeparator = format.groupSeparator || '',\r\n intPart = arr[0],\r\n fractionPart = arr[1],\r\n isNeg = x.s < 0,\r\n intDigits = isNeg ? intPart.slice(1) : intPart,\r\n len = intDigits.length;\r\n\r\n if (g2) i = g1, g1 = g2, g2 = i, len -= i;\r\n\r\n if (g1 > 0 && len > 0) {\r\n i = len % g1 || g1;\r\n intPart = intDigits.substr(0, i);\r\n for (; i < len; i += g1) intPart += groupSeparator + intDigits.substr(i, g1);\r\n if (g2 > 0) intPart += groupSeparator + intDigits.slice(i);\r\n if (isNeg) intPart = '-' + intPart;\r\n }\r\n\r\n str = fractionPart\r\n ? intPart + (format.decimalSeparator || '') + ((g2 = +format.fractionGroupSize)\r\n ? fractionPart.replace(new RegExp('\\\\d{' + g2 + '}\\\\B', 'g'),\r\n '$&' + (format.fractionGroupSeparator || ''))\r\n : fractionPart)\r\n : intPart;\r\n }\r\n\r\n return (format.prefix || '') + str + (format.suffix || '');\r\n };\r\n\r\n\r\n /*\r\n * Return an array of two BigNumbers representing the value of this BigNumber as a simple\r\n * fraction with an integer numerator and an integer denominator.\r\n * The denominator will be a positive non-zero value less than or equal to the specified\r\n * maximum denominator. If a maximum denominator is not specified, the denominator will be\r\n * the lowest value necessary to represent the number exactly.\r\n *\r\n * [md] {number|string|BigNumber} Integer >= 1, or Infinity. The maximum denominator.\r\n *\r\n * '[BigNumber Error] Argument {not an integer|out of range} : {md}'\r\n */\r\n P.toFraction = function (md) {\r\n var d, d0, d1, d2, e, exp, n, n0, n1, q, r, s,\r\n x = this,\r\n xc = x.c;\r\n\r\n if (md != null) {\r\n n = new BigNumber(md);\r\n\r\n // Throw if md is less than one or is not an integer, unless it is Infinity.\r\n if (!n.isInteger() && (n.c || n.s !== 1) || n.lt(ONE)) {\r\n throw Error\r\n (bignumberError + 'Argument ' +\r\n (n.isInteger() ? 'out of range: ' : 'not an integer: ') + valueOf(n));\r\n }\r\n }\r\n\r\n if (!xc) return new BigNumber(x);\r\n\r\n d = new BigNumber(ONE);\r\n n1 = d0 = new BigNumber(ONE);\r\n d1 = n0 = new BigNumber(ONE);\r\n s = coeffToString(xc);\r\n\r\n // Determine initial denominator.\r\n // d is a power of 10 and the minimum max denominator that specifies the value exactly.\r\n e = d.e = s.length - x.e - 1;\r\n d.c[0] = POWS_TEN[(exp = e % LOG_BASE) < 0 ? LOG_BASE + exp : exp];\r\n md = !md || n.comparedTo(d) > 0 ? (e > 0 ? d : n1) : n;\r\n\r\n exp = MAX_EXP;\r\n MAX_EXP = 1 / 0;\r\n n = new BigNumber(s);\r\n\r\n // n0 = d1 = 0\r\n n0.c[0] = 0;\r\n\r\n for (; ;) {\r\n q = div(n, d, 0, 1);\r\n d2 = d0.plus(q.times(d1));\r\n if (d2.comparedTo(md) == 1) break;\r\n d0 = d1;\r\n d1 = d2;\r\n n1 = n0.plus(q.times(d2 = n1));\r\n n0 = d2;\r\n d = n.minus(q.times(d2 = d));\r\n n = d2;\r\n }\r\n\r\n d2 = div(md.minus(d0), d1, 0, 1);\r\n n0 = n0.plus(d2.times(n1));\r\n d0 = d0.plus(d2.times(d1));\r\n n0.s = n1.s = x.s;\r\n e = e * 2;\r\n\r\n // Determine which fraction is closer to x, n0/d0 or n1/d1\r\n r = div(n1, d1, e, ROUNDING_MODE).minus(x).abs().comparedTo(\r\n div(n0, d0, e, ROUNDING_MODE).minus(x).abs()) < 1 ? [n1, d1] : [n0, d0];\r\n\r\n MAX_EXP = exp;\r\n\r\n return r;\r\n };\r\n\r\n\r\n /*\r\n * Return the value of this BigNumber converted to a number primitive.\r\n */\r\n P.toNumber = function () {\r\n return +valueOf(this);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber rounded to sd significant digits\r\n * using rounding mode rm or ROUNDING_MODE. If sd is less than the number of digits\r\n * necessary to represent the integer part of the value in fixed-point notation, then use\r\n * exponential notation.\r\n *\r\n * [sd] {number} Significant digits. Integer, 1 to MAX inclusive.\r\n * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive.\r\n *\r\n * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}'\r\n */\r\n P.toPrecision = function (sd, rm) {\r\n if (sd != null) intCheck(sd, 1, MAX);\r\n return format(this, sd, rm, 2);\r\n };\r\n\r\n\r\n /*\r\n * Return a string representing the value of this BigNumber in base b, or base 10 if b is\r\n * omitted. If a base is specified, including base 10, round according to DECIMAL_PLACES and\r\n * ROUNDING_MODE. If a base is not specified, and this BigNumber has a positive exponent\r\n * that is equal to or greater than TO_EXP_POS, or a negative exponent equal to or less than\r\n * TO_EXP_NEG, return exponential notation.\r\n *\r\n * [b] {number} Integer, 2 to ALPHABET.length inclusive.\r\n *\r\n * '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}'\r\n */\r\n P.toString = function (b) {\r\n var str,\r\n n = this,\r\n s = n.s,\r\n e = n.e;\r\n\r\n // Infinity or NaN?\r\n if (e === null) {\r\n if (s) {\r\n str = 'Infinity';\r\n if (s < 0) str = '-' + str;\r\n } else {\r\n str = 'NaN';\r\n }\r\n } else {\r\n if (b == null) {\r\n str = e <= TO_EXP_NEG || e >= TO_EXP_POS\r\n ? toExponential(coeffToString(n.c), e)\r\n : toFixedPoint(coeffToString(n.c), e, '0');\r\n } else if (b === 10) {\r\n n = round(new BigNumber(n), DECIMAL_PLACES + e + 1, ROUNDING_MODE);\r\n str = toFixedPoint(coeffToString(n.c), n.e, '0');\r\n } else {\r\n intCheck(b, 2, ALPHABET.length, 'Base');\r\n str = convertBase(toFixedPoint(coeffToString(n.c), e, '0'), 10, b, s, true);\r\n }\r\n\r\n if (s < 0 && n.c[0]) str = '-' + str;\r\n }\r\n\r\n return str;\r\n };\r\n\r\n\r\n /*\r\n * Return as toString, but do not accept a base argument, and include the minus sign for\r\n * negative zero.\r\n */\r\n P.valueOf = P.toJSON = function () {\r\n return valueOf(this);\r\n };\r\n\r\n\r\n P._isBigNumber = true;\r\n\r\n if (typeof Symbol == 'function' && typeof Symbol.iterator == 'symbol') {\r\n P[Symbol.toStringTag] = 'BigNumber';\r\n // Node.js v10.12.0+\r\n P[Symbol.for('nodejs.util.inspect.custom')] = P.valueOf;\r\n }\r\n\r\n if (configObject != null) BigNumber.set(configObject);\r\n\r\n return BigNumber;\r\n }\r\n\r\n\r\n // PRIVATE HELPER FUNCTIONS\r\n\r\n\r\n function bitFloor(n) {\r\n var i = n | 0;\r\n return n > 0 || n === i ? i : i - 1;\r\n }\r\n\r\n\r\n // Return a coefficient array as a string of base 10 digits.\r\n function coeffToString(a) {\r\n var s, z,\r\n i = 1,\r\n j = a.length,\r\n r = a[0] + '';\r\n\r\n for (; i < j;) {\r\n s = a[i++] + '';\r\n z = LOG_BASE - s.length;\r\n for (; z--; s = '0' + s);\r\n r += s;\r\n }\r\n\r\n // Determine trailing zeros.\r\n for (j = r.length; r.charCodeAt(--j) === 48;);\r\n\r\n return r.slice(0, j + 1 || 1);\r\n }\r\n\r\n\r\n // Compare the value of BigNumbers x and y.\r\n function compare(x, y) {\r\n var a, b,\r\n xc = x.c,\r\n yc = y.c,\r\n i = x.s,\r\n j = y.s,\r\n k = x.e,\r\n l = y.e;\r\n\r\n // Either NaN?\r\n if (!i || !j) return null;\r\n\r\n a = xc && !xc[0];\r\n b = yc && !yc[0];\r\n\r\n // Either zero?\r\n if (a || b) return a ? b ? 0 : -j : i;\r\n\r\n // Signs differ?\r\n if (i != j) return i;\r\n\r\n a = i < 0;\r\n b = k == l;\r\n\r\n // Either Infinity?\r\n if (!xc || !yc) return b ? 0 : !xc ^ a ? 1 : -1;\r\n\r\n // Compare exponents.\r\n if (!b) return k > l ^ a ? 1 : -1;\r\n\r\n j = (k = xc.length) < (l = yc.length) ? k : l;\r\n\r\n // Compare digit by digit.\r\n for (i = 0; i < j; i++) if (xc[i] != yc[i]) return xc[i] > yc[i] ^ a ? 1 : -1;\r\n\r\n // Compare lengths.\r\n return k == l ? 0 : k > l ^ a ? 1 : -1;\r\n }\r\n\r\n\r\n /*\r\n * Check that n is a primitive number, an integer, and in range, otherwise throw.\r\n */\r\n function intCheck(n, min, max, name) {\r\n if (n < min || n > max || n !== (n < 0 ? mathceil(n) : mathfloor(n))) {\r\n throw Error\r\n (bignumberError + (name || 'Argument') + (typeof n == 'number'\r\n ? n < min || n > max ? ' out of range: ' : ' not an integer: '\r\n : ' not a primitive number: ') + String(n));\r\n }\r\n }\r\n\r\n\r\n // Assumes finite n.\r\n function isOdd(n) {\r\n var k = n.c.length - 1;\r\n return bitFloor(n.e / LOG_BASE) == k && n.c[k] % 2 != 0;\r\n }\r\n\r\n\r\n function toExponential(str, e) {\r\n return (str.length > 1 ? str.charAt(0) + '.' + str.slice(1) : str) +\r\n (e < 0 ? 'e' : 'e+') + e;\r\n }\r\n\r\n\r\n function toFixedPoint(str, e, z) {\r\n var len, zs;\r\n\r\n // Negative exponent?\r\n if (e < 0) {\r\n\r\n // Prepend zeros.\r\n for (zs = z + '.'; ++e; zs += z);\r\n str = zs + str;\r\n\r\n // Positive exponent\r\n } else {\r\n len = str.length;\r\n\r\n // Append zeros.\r\n if (++e > len) {\r\n for (zs = z, e -= len; --e; zs += z);\r\n str += zs;\r\n } else if (e < len) {\r\n str = str.slice(0, e) + '.' + str.slice(e);\r\n }\r\n }\r\n\r\n return str;\r\n }\r\n\r\n\r\n // EXPORT\r\n\r\n\r\n BigNumber = clone();\r\n BigNumber['default'] = BigNumber.BigNumber = BigNumber;\r\n\r\n // AMD.\r\n if (typeof define == 'function' && define.amd) {\r\n define(function () { return BigNumber; });\r\n\r\n // Node.js and other environments that support module.exports.\r\n } else if (typeof module != 'undefined' && module.exports) {\r\n module.exports = BigNumber;\r\n\r\n // Browser.\r\n } else {\r\n if (!globalObject) {\r\n globalObject = typeof self != 'undefined' && self ? self : window;\r\n }\r\n\r\n globalObject.BigNumber = BigNumber;\r\n }\r\n})(this);\r\n","// Blake2B in pure Javascript\n// Adapted from the reference implementation in RFC7693\n// Ported to Javascript by DC - https://github.com/dcposch\n\nconst util = require('./util')\n\n// 64-bit unsigned addition\n// Sets v[a,a+1] += v[b,b+1]\n// v should be a Uint32Array\nfunction ADD64AA (v, a, b) {\n const o0 = v[a] + v[b]\n let o1 = v[a + 1] + v[b + 1]\n if (o0 >= 0x100000000) {\n o1++\n }\n v[a] = o0\n v[a + 1] = o1\n}\n\n// 64-bit unsigned addition\n// Sets v[a,a+1] += b\n// b0 is the low 32 bits of b, b1 represents the high 32 bits\nfunction ADD64AC (v, a, b0, b1) {\n let o0 = v[a] + b0\n if (b0 < 0) {\n o0 += 0x100000000\n }\n let o1 = v[a + 1] + b1\n if (o0 >= 0x100000000) {\n o1++\n }\n v[a] = o0\n v[a + 1] = o1\n}\n\n// Little-endian byte access\nfunction B2B_GET32 (arr, i) {\n return arr[i] ^ (arr[i + 1] << 8) ^ (arr[i + 2] << 16) ^ (arr[i + 3] << 24)\n}\n\n// G Mixing function\n// The ROTRs are inlined for speed\nfunction B2B_G (a, b, c, d, ix, iy) {\n const x0 = m[ix]\n const x1 = m[ix + 1]\n const y0 = m[iy]\n const y1 = m[iy + 1]\n\n ADD64AA(v, a, b) // v[a,a+1] += v[b,b+1] ... in JS we must store a uint64 as two uint32s\n ADD64AC(v, a, x0, x1) // v[a, a+1] += x ... x0 is the low 32 bits of x, x1 is the high 32 bits\n\n // v[d,d+1] = (v[d,d+1] xor v[a,a+1]) rotated to the right by 32 bits\n let xor0 = v[d] ^ v[a]\n let xor1 = v[d + 1] ^ v[a + 1]\n v[d] = xor1\n v[d + 1] = xor0\n\n ADD64AA(v, c, d)\n\n // v[b,b+1] = (v[b,b+1] xor v[c,c+1]) rotated right by 24 bits\n xor0 = v[b] ^ v[c]\n xor1 = v[b + 1] ^ v[c + 1]\n v[b] = (xor0 >>> 24) ^ (xor1 << 8)\n v[b + 1] = (xor1 >>> 24) ^ (xor0 << 8)\n\n ADD64AA(v, a, b)\n ADD64AC(v, a, y0, y1)\n\n // v[d,d+1] = (v[d,d+1] xor v[a,a+1]) rotated right by 16 bits\n xor0 = v[d] ^ v[a]\n xor1 = v[d + 1] ^ v[a + 1]\n v[d] = (xor0 >>> 16) ^ (xor1 << 16)\n v[d + 1] = (xor1 >>> 16) ^ (xor0 << 16)\n\n ADD64AA(v, c, d)\n\n // v[b,b+1] = (v[b,b+1] xor v[c,c+1]) rotated right by 63 bits\n xor0 = v[b] ^ v[c]\n xor1 = v[b + 1] ^ v[c + 1]\n v[b] = (xor1 >>> 31) ^ (xor0 << 1)\n v[b + 1] = (xor0 >>> 31) ^ (xor1 << 1)\n}\n\n// Initialization Vector\nconst BLAKE2B_IV32 = new Uint32Array([\n 0xf3bcc908, 0x6a09e667, 0x84caa73b, 0xbb67ae85, 0xfe94f82b, 0x3c6ef372,\n 0x5f1d36f1, 0xa54ff53a, 0xade682d1, 0x510e527f, 0x2b3e6c1f, 0x9b05688c,\n 0xfb41bd6b, 0x1f83d9ab, 0x137e2179, 0x5be0cd19\n])\n\nconst SIGMA8 = [\n 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 14, 10, 4, 8, 9, 15, 13,\n 6, 1, 12, 0, 2, 11, 7, 5, 3, 11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1,\n 9, 4, 7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8, 9, 0, 5, 7, 2, 4,\n 10, 15, 14, 1, 11, 12, 6, 8, 3, 13, 2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5,\n 15, 14, 1, 9, 12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11, 13, 11, 7,\n 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10, 6, 15, 14, 9, 11, 3, 0, 8, 12, 2,\n 13, 7, 1, 4, 10, 5, 10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0, 0,\n 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 14, 10, 4, 8, 9, 15, 13, 6,\n 1, 12, 0, 2, 11, 7, 5, 3\n]\n\n// These are offsets into a uint64 buffer.\n// Multiply them all by 2 to make them offsets into a uint32 buffer,\n// because this is Javascript and we don't have uint64s\nconst SIGMA82 = new Uint8Array(\n SIGMA8.map(function (x) {\n return x * 2\n })\n)\n\n// Compression function. 'last' flag indicates last block.\n// Note we're representing 16 uint64s as 32 uint32s\nconst v = new Uint32Array(32)\nconst m = new Uint32Array(32)\nfunction blake2bCompress (ctx, last) {\n let i = 0\n\n // init work variables\n for (i = 0; i < 16; i++) {\n v[i] = ctx.h[i]\n v[i + 16] = BLAKE2B_IV32[i]\n }\n\n // low 64 bits of offset\n v[24] = v[24] ^ ctx.t\n v[25] = v[25] ^ (ctx.t / 0x100000000)\n // high 64 bits not supported, offset may not be higher than 2**53-1\n\n // last block flag set ?\n if (last) {\n v[28] = ~v[28]\n v[29] = ~v[29]\n }\n\n // get little-endian words\n for (i = 0; i < 32; i++) {\n m[i] = B2B_GET32(ctx.b, 4 * i)\n }\n\n // twelve rounds of mixing\n // uncomment the DebugPrint calls to log the computation\n // and match the RFC sample documentation\n // util.debugPrint(' m[16]', m, 64)\n for (i = 0; i < 12; i++) {\n // util.debugPrint(' (i=' + (i < 10 ? ' ' : '') + i + ') v[16]', v, 64)\n B2B_G(0, 8, 16, 24, SIGMA82[i * 16 + 0], SIGMA82[i * 16 + 1])\n B2B_G(2, 10, 18, 26, SIGMA82[i * 16 + 2], SIGMA82[i * 16 + 3])\n B2B_G(4, 12, 20, 28, SIGMA82[i * 16 + 4], SIGMA82[i * 16 + 5])\n B2B_G(6, 14, 22, 30, SIGMA82[i * 16 + 6], SIGMA82[i * 16 + 7])\n B2B_G(0, 10, 20, 30, SIGMA82[i * 16 + 8], SIGMA82[i * 16 + 9])\n B2B_G(2, 12, 22, 24, SIGMA82[i * 16 + 10], SIGMA82[i * 16 + 11])\n B2B_G(4, 14, 16, 26, SIGMA82[i * 16 + 12], SIGMA82[i * 16 + 13])\n B2B_G(6, 8, 18, 28, SIGMA82[i * 16 + 14], SIGMA82[i * 16 + 15])\n }\n // util.debugPrint(' (i=12) v[16]', v, 64)\n\n for (i = 0; i < 16; i++) {\n ctx.h[i] = ctx.h[i] ^ v[i] ^ v[i + 16]\n }\n // util.debugPrint('h[8]', ctx.h, 64)\n}\n\n// reusable parameterBlock\nconst parameterBlock = new Uint8Array([\n 0,\n 0,\n 0,\n 0, // 0: outlen, keylen, fanout, depth\n 0,\n 0,\n 0,\n 0, // 4: leaf length, sequential mode\n 0,\n 0,\n 0,\n 0, // 8: node offset\n 0,\n 0,\n 0,\n 0, // 12: node offset\n 0,\n 0,\n 0,\n 0, // 16: node depth, inner length, rfu\n 0,\n 0,\n 0,\n 0, // 20: rfu\n 0,\n 0,\n 0,\n 0, // 24: rfu\n 0,\n 0,\n 0,\n 0, // 28: rfu\n 0,\n 0,\n 0,\n 0, // 32: salt\n 0,\n 0,\n 0,\n 0, // 36: salt\n 0,\n 0,\n 0,\n 0, // 40: salt\n 0,\n 0,\n 0,\n 0, // 44: salt\n 0,\n 0,\n 0,\n 0, // 48: personal\n 0,\n 0,\n 0,\n 0, // 52: personal\n 0,\n 0,\n 0,\n 0, // 56: personal\n 0,\n 0,\n 0,\n 0 // 60: personal\n])\n\n// Creates a BLAKE2b hashing context\n// Requires an output length between 1 and 64 bytes\n// Takes an optional Uint8Array key\n// Takes an optinal Uint8Array salt\n// Takes an optinal Uint8Array personal\nfunction blake2bInit (outlen, key, salt, personal) {\n if (outlen === 0 || outlen > 64) {\n throw new Error('Illegal output length, expected 0 < length <= 64')\n }\n if (key && key.length > 64) {\n throw new Error('Illegal key, expected Uint8Array with 0 < length <= 64')\n }\n if (salt && salt.length !== 16) {\n throw new Error('Illegal salt, expected Uint8Array with length is 16')\n }\n if (personal && personal.length !== 16) {\n throw new Error('Illegal personal, expected Uint8Array with length is 16')\n }\n\n // state, 'param block'\n const ctx = {\n b: new Uint8Array(128),\n h: new Uint32Array(16),\n t: 0, // input count\n c: 0, // pointer within buffer\n outlen: outlen // output length in bytes\n }\n\n // initialize parameterBlock before usage\n parameterBlock.fill(0)\n parameterBlock[0] = outlen\n if (key) parameterBlock[1] = key.length\n parameterBlock[2] = 1 // fanout\n parameterBlock[3] = 1 // depth\n if (salt) parameterBlock.set(salt, 32)\n if (personal) parameterBlock.set(personal, 48)\n\n // initialize hash state\n for (let i = 0; i < 16; i++) {\n ctx.h[i] = BLAKE2B_IV32[i] ^ B2B_GET32(parameterBlock, i * 4)\n }\n\n // key the hash, if applicable\n if (key) {\n blake2bUpdate(ctx, key)\n // at the end\n ctx.c = 128\n }\n\n return ctx\n}\n\n// Updates a BLAKE2b streaming hash\n// Requires hash context and Uint8Array (byte array)\nfunction blake2bUpdate (ctx, input) {\n for (let i = 0; i < input.length; i++) {\n if (ctx.c === 128) {\n // buffer full ?\n ctx.t += ctx.c // add counters\n blake2bCompress(ctx, false) // compress (not last)\n ctx.c = 0 // counter to zero\n }\n ctx.b[ctx.c++] = input[i]\n }\n}\n\n// Completes a BLAKE2b streaming hash\n// Returns a Uint8Array containing the message digest\nfunction blake2bFinal (ctx) {\n ctx.t += ctx.c // mark last block offset\n\n while (ctx.c < 128) {\n // fill up with zeros\n ctx.b[ctx.c++] = 0\n }\n blake2bCompress(ctx, true) // final block flag = 1\n\n // little endian convert and store\n const out = new Uint8Array(ctx.outlen)\n for (let i = 0; i < ctx.outlen; i++) {\n out[i] = ctx.h[i >> 2] >> (8 * (i & 3))\n }\n return out\n}\n\n// Computes the BLAKE2B hash of a string or byte array, and returns a Uint8Array\n//\n// Returns a n-byte Uint8Array\n//\n// Parameters:\n// - input - the input bytes, as a string, Buffer or Uint8Array\n// - key - optional key Uint8Array, up to 64 bytes\n// - outlen - optional output length in bytes, default 64\n// - salt - optional salt bytes, string, Buffer or Uint8Array\n// - personal - optional personal bytes, string, Buffer or Uint8Array\nfunction blake2b (input, key, outlen, salt, personal) {\n // preprocess inputs\n outlen = outlen || 64\n input = util.normalizeInput(input)\n if (salt) {\n salt = util.normalizeInput(salt)\n }\n if (personal) {\n personal = util.normalizeInput(personal)\n }\n\n // do the math\n const ctx = blake2bInit(outlen, key, salt, personal)\n blake2bUpdate(ctx, input)\n return blake2bFinal(ctx)\n}\n\n// Computes the BLAKE2B hash of a string or byte array\n//\n// Returns an n-byte hash in hex, all lowercase\n//\n// Parameters:\n// - input - the input bytes, as a string, Buffer, or Uint8Array\n// - key - optional key Uint8Array, up to 64 bytes\n// - outlen - optional output length in bytes, default 64\n// - salt - optional salt bytes, string, Buffer or Uint8Array\n// - personal - optional personal bytes, string, Buffer or Uint8Array\nfunction blake2bHex (input, key, outlen, salt, personal) {\n const output = blake2b(input, key, outlen, salt, personal)\n return util.toHex(output)\n}\n\nmodule.exports = {\n blake2b: blake2b,\n blake2bHex: blake2bHex,\n blake2bInit: blake2bInit,\n blake2bUpdate: blake2bUpdate,\n blake2bFinal: blake2bFinal\n}\n","// BLAKE2s hash function in pure Javascript\n// Adapted from the reference implementation in RFC7693\n// Ported to Javascript by DC - https://github.com/dcposch\n\nconst util = require('./util')\n\n// Little-endian byte access.\n// Expects a Uint8Array and an index\n// Returns the little-endian uint32 at v[i..i+3]\nfunction B2S_GET32 (v, i) {\n return v[i] ^ (v[i + 1] << 8) ^ (v[i + 2] << 16) ^ (v[i + 3] << 24)\n}\n\n// Mixing function G.\nfunction B2S_G (a, b, c, d, x, y) {\n v[a] = v[a] + v[b] + x\n v[d] = ROTR32(v[d] ^ v[a], 16)\n v[c] = v[c] + v[d]\n v[b] = ROTR32(v[b] ^ v[c], 12)\n v[a] = v[a] + v[b] + y\n v[d] = ROTR32(v[d] ^ v[a], 8)\n v[c] = v[c] + v[d]\n v[b] = ROTR32(v[b] ^ v[c], 7)\n}\n\n// 32-bit right rotation\n// x should be a uint32\n// y must be between 1 and 31, inclusive\nfunction ROTR32 (x, y) {\n return (x >>> y) ^ (x << (32 - y))\n}\n\n// Initialization Vector.\nconst BLAKE2S_IV = new Uint32Array([\n 0x6a09e667,\n 0xbb67ae85,\n 0x3c6ef372,\n 0xa54ff53a,\n 0x510e527f,\n 0x9b05688c,\n 0x1f83d9ab,\n 0x5be0cd19\n])\n\nconst SIGMA = new Uint8Array([\n 0,\n 1,\n 2,\n 3,\n 4,\n 5,\n 6,\n 7,\n 8,\n 9,\n 10,\n 11,\n 12,\n 13,\n 14,\n 15,\n 14,\n 10,\n 4,\n 8,\n 9,\n 15,\n 13,\n 6,\n 1,\n 12,\n 0,\n 2,\n 11,\n 7,\n 5,\n 3,\n 11,\n 8,\n 12,\n 0,\n 5,\n 2,\n 15,\n 13,\n 10,\n 14,\n 3,\n 6,\n 7,\n 1,\n 9,\n 4,\n 7,\n 9,\n 3,\n 1,\n 13,\n 12,\n 11,\n 14,\n 2,\n 6,\n 5,\n 10,\n 4,\n 0,\n 15,\n 8,\n 9,\n 0,\n 5,\n 7,\n 2,\n 4,\n 10,\n 15,\n 14,\n 1,\n 11,\n 12,\n 6,\n 8,\n 3,\n 13,\n 2,\n 12,\n 6,\n 10,\n 0,\n 11,\n 8,\n 3,\n 4,\n 13,\n 7,\n 5,\n 15,\n 14,\n 1,\n 9,\n 12,\n 5,\n 1,\n 15,\n 14,\n 13,\n 4,\n 10,\n 0,\n 7,\n 6,\n 3,\n 9,\n 2,\n 8,\n 11,\n 13,\n 11,\n 7,\n 14,\n 12,\n 1,\n 3,\n 9,\n 5,\n 0,\n 15,\n 4,\n 8,\n 6,\n 2,\n 10,\n 6,\n 15,\n 14,\n 9,\n 11,\n 3,\n 0,\n 8,\n 12,\n 2,\n 13,\n 7,\n 1,\n 4,\n 10,\n 5,\n 10,\n 2,\n 8,\n 4,\n 7,\n 6,\n 1,\n 5,\n 15,\n 11,\n 9,\n 14,\n 3,\n 12,\n 13,\n 0\n])\n\n// Compression function. \"last\" flag indicates last block\nconst v = new Uint32Array(16)\nconst m = new Uint32Array(16)\nfunction blake2sCompress (ctx, last) {\n let i = 0\n for (i = 0; i < 8; i++) {\n // init work variables\n v[i] = ctx.h[i]\n v[i + 8] = BLAKE2S_IV[i]\n }\n\n v[12] ^= ctx.t // low 32 bits of offset\n v[13] ^= ctx.t / 0x100000000 // high 32 bits\n if (last) {\n // last block flag set ?\n v[14] = ~v[14]\n }\n\n for (i = 0; i < 16; i++) {\n // get little-endian words\n m[i] = B2S_GET32(ctx.b, 4 * i)\n }\n\n // ten rounds of mixing\n // uncomment the DebugPrint calls to log the computation\n // and match the RFC sample documentation\n // util.debugPrint(' m[16]', m, 32)\n for (i = 0; i < 10; i++) {\n // util.debugPrint(' (i=' + i + ') v[16]', v, 32)\n B2S_G(0, 4, 8, 12, m[SIGMA[i * 16 + 0]], m[SIGMA[i * 16 + 1]])\n B2S_G(1, 5, 9, 13, m[SIGMA[i * 16 + 2]], m[SIGMA[i * 16 + 3]])\n B2S_G(2, 6, 10, 14, m[SIGMA[i * 16 + 4]], m[SIGMA[i * 16 + 5]])\n B2S_G(3, 7, 11, 15, m[SIGMA[i * 16 + 6]], m[SIGMA[i * 16 + 7]])\n B2S_G(0, 5, 10, 15, m[SIGMA[i * 16 + 8]], m[SIGMA[i * 16 + 9]])\n B2S_G(1, 6, 11, 12, m[SIGMA[i * 16 + 10]], m[SIGMA[i * 16 + 11]])\n B2S_G(2, 7, 8, 13, m[SIGMA[i * 16 + 12]], m[SIGMA[i * 16 + 13]])\n B2S_G(3, 4, 9, 14, m[SIGMA[i * 16 + 14]], m[SIGMA[i * 16 + 15]])\n }\n // util.debugPrint(' (i=10) v[16]', v, 32)\n\n for (i = 0; i < 8; i++) {\n ctx.h[i] ^= v[i] ^ v[i + 8]\n }\n // util.debugPrint('h[8]', ctx.h, 32)\n}\n\n// Creates a BLAKE2s hashing context\n// Requires an output length between 1 and 32 bytes\n// Takes an optional Uint8Array key\nfunction blake2sInit (outlen, key) {\n if (!(outlen > 0 && outlen <= 32)) {\n throw new Error('Incorrect output length, should be in [1, 32]')\n }\n const keylen = key ? key.length : 0\n if (key && !(keylen > 0 && keylen <= 32)) {\n throw new Error('Incorrect key length, should be in [1, 32]')\n }\n\n const ctx = {\n h: new Uint32Array(BLAKE2S_IV), // hash state\n b: new Uint8Array(64), // input block\n c: 0, // pointer within block\n t: 0, // input count\n outlen: outlen // output length in bytes\n }\n ctx.h[0] ^= 0x01010000 ^ (keylen << 8) ^ outlen\n\n if (keylen > 0) {\n blake2sUpdate(ctx, key)\n ctx.c = 64 // at the end\n }\n\n return ctx\n}\n\n// Updates a BLAKE2s streaming hash\n// Requires hash context and Uint8Array (byte array)\nfunction blake2sUpdate (ctx, input) {\n for (let i = 0; i < input.length; i++) {\n if (ctx.c === 64) {\n // buffer full ?\n ctx.t += ctx.c // add counters\n blake2sCompress(ctx, false) // compress (not last)\n ctx.c = 0 // counter to zero\n }\n ctx.b[ctx.c++] = input[i]\n }\n}\n\n// Completes a BLAKE2s streaming hash\n// Returns a Uint8Array containing the message digest\nfunction blake2sFinal (ctx) {\n ctx.t += ctx.c // mark last block offset\n while (ctx.c < 64) {\n // fill up with zeros\n ctx.b[ctx.c++] = 0\n }\n blake2sCompress(ctx, true) // final block flag = 1\n\n // little endian convert and store\n const out = new Uint8Array(ctx.outlen)\n for (let i = 0; i < ctx.outlen; i++) {\n out[i] = (ctx.h[i >> 2] >> (8 * (i & 3))) & 0xff\n }\n return out\n}\n\n// Computes the BLAKE2S hash of a string or byte array, and returns a Uint8Array\n//\n// Returns a n-byte Uint8Array\n//\n// Parameters:\n// - input - the input bytes, as a string, Buffer, or Uint8Array\n// - key - optional key Uint8Array, up to 32 bytes\n// - outlen - optional output length in bytes, default 64\nfunction blake2s (input, key, outlen) {\n // preprocess inputs\n outlen = outlen || 32\n input = util.normalizeInput(input)\n\n // do the math\n const ctx = blake2sInit(outlen, key)\n blake2sUpdate(ctx, input)\n return blake2sFinal(ctx)\n}\n\n// Computes the BLAKE2S hash of a string or byte array\n//\n// Returns an n-byte hash in hex, all lowercase\n//\n// Parameters:\n// - input - the input bytes, as a string, Buffer, or Uint8Array\n// - key - optional key Uint8Array, up to 32 bytes\n// - outlen - optional output length in bytes, default 64\nfunction blake2sHex (input, key, outlen) {\n const output = blake2s(input, key, outlen)\n return util.toHex(output)\n}\n\nmodule.exports = {\n blake2s: blake2s,\n blake2sHex: blake2sHex,\n blake2sInit: blake2sInit,\n blake2sUpdate: blake2sUpdate,\n blake2sFinal: blake2sFinal\n}\n","const b2b = require('./blake2b')\nconst b2s = require('./blake2s')\n\nmodule.exports = {\n blake2b: b2b.blake2b,\n blake2bHex: b2b.blake2bHex,\n blake2bInit: b2b.blake2bInit,\n blake2bUpdate: b2b.blake2bUpdate,\n blake2bFinal: b2b.blake2bFinal,\n blake2s: b2s.blake2s,\n blake2sHex: b2s.blake2sHex,\n blake2sInit: b2s.blake2sInit,\n blake2sUpdate: b2s.blake2sUpdate,\n blake2sFinal: b2s.blake2sFinal\n}\n","const ERROR_MSG_INPUT = 'Input must be an string, Buffer or Uint8Array'\n\n// For convenience, let people hash a string, not just a Uint8Array\nfunction normalizeInput (input) {\n let ret\n if (input instanceof Uint8Array) {\n ret = input\n } else if (typeof input === 'string') {\n const encoder = new TextEncoder()\n ret = encoder.encode(input)\n } else {\n throw new Error(ERROR_MSG_INPUT)\n }\n return ret\n}\n\n// Converts a Uint8Array to a hexadecimal string\n// For example, toHex([255, 0, 255]) returns \"ff00ff\"\nfunction toHex (bytes) {\n return Array.prototype.map\n .call(bytes, function (n) {\n return (n < 16 ? '0' : '') + n.toString(16)\n })\n .join('')\n}\n\n// Converts any value in [0...2^32-1] to an 8-character hex string\nfunction uint32ToHex (val) {\n return (0x100000000 + val).toString(16).substring(1)\n}\n\n// For debugging: prints out hash state in the same format as the RFC\n// sample computation exactly, so that you can diff\nfunction debugPrint (label, arr, size) {\n let msg = '\\n' + label + ' = '\n for (let i = 0; i < arr.length; i += 2) {\n if (size === 32) {\n msg += uint32ToHex(arr[i]).toUpperCase()\n msg += ' '\n msg += uint32ToHex(arr[i + 1]).toUpperCase()\n } else if (size === 64) {\n msg += uint32ToHex(arr[i + 1]).toUpperCase()\n msg += uint32ToHex(arr[i]).toUpperCase()\n } else throw new Error('Invalid size ' + size)\n if (i % 6 === 4) {\n msg += '\\n' + new Array(label.length + 4).join(' ')\n } else if (i < arr.length - 2) {\n msg += ' '\n }\n }\n console.log(msg)\n}\n\n// For performance testing: generates N bytes of input, hashes M times\n// Measures and prints MB/second hash performance each time\nfunction testSpeed (hashFn, N, M) {\n let startMs = new Date().getTime()\n\n const input = new Uint8Array(N)\n for (let i = 0; i < N; i++) {\n input[i] = i % 256\n }\n const genMs = new Date().getTime()\n console.log('Generated random input in ' + (genMs - startMs) + 'ms')\n startMs = genMs\n\n for (let i = 0; i < M; i++) {\n const hashHex = hashFn(input)\n const hashMs = new Date().getTime()\n const ms = hashMs - startMs\n startMs = hashMs\n console.log('Hashed in ' + ms + 'ms: ' + hashHex.substring(0, 20) + '...')\n console.log(\n Math.round((N / (1 << 20) / (ms / 1000)) * 100) / 100 + ' MB PER SECOND'\n )\n }\n}\n\nmodule.exports = {\n normalizeInput: normalizeInput,\n toHex: toHex,\n debugPrint: debugPrint,\n testSpeed: testSpeed\n}\n","(function (module, exports) {\n 'use strict';\n\n // Utils\n function assert (val, msg) {\n if (!val) throw new Error(msg || 'Assertion failed');\n }\n\n // Could use `inherits` module, but don't want to move from single file\n // architecture yet.\n function inherits (ctor, superCtor) {\n ctor.super_ = superCtor;\n var TempCtor = function () {};\n TempCtor.prototype = superCtor.prototype;\n ctor.prototype = new TempCtor();\n ctor.prototype.constructor = ctor;\n }\n\n // BN\n\n function BN (number, base, endian) {\n if (BN.isBN(number)) {\n return number;\n }\n\n this.negative = 0;\n this.words = null;\n this.length = 0;\n\n // Reduction context\n this.red = null;\n\n if (number !== null) {\n if (base === 'le' || base === 'be') {\n endian = base;\n base = 10;\n }\n\n this._init(number || 0, base || 10, endian || 'be');\n }\n }\n if (typeof module === 'object') {\n module.exports = BN;\n } else {\n exports.BN = BN;\n }\n\n BN.BN = BN;\n BN.wordSize = 26;\n\n var Buffer;\n try {\n if (typeof window !== 'undefined' && typeof window.Buffer !== 'undefined') {\n Buffer = window.Buffer;\n } else {\n Buffer = require('buffer').Buffer;\n }\n } catch (e) {\n }\n\n BN.isBN = function isBN (num) {\n if (num instanceof BN) {\n return true;\n }\n\n return num !== null && typeof num === 'object' &&\n num.constructor.wordSize === BN.wordSize && Array.isArray(num.words);\n };\n\n BN.max = function max (left, right) {\n if (left.cmp(right) > 0) return left;\n return right;\n };\n\n BN.min = function min (left, right) {\n if (left.cmp(right) < 0) return left;\n return right;\n };\n\n BN.prototype._init = function init (number, base, endian) {\n if (typeof number === 'number') {\n return this._initNumber(number, base, endian);\n }\n\n if (typeof number === 'object') {\n return this._initArray(number, base, endian);\n }\n\n if (base === 'hex') {\n base = 16;\n }\n assert(base === (base | 0) && base >= 2 && base <= 36);\n\n number = number.toString().replace(/\\s+/g, '');\n var start = 0;\n if (number[0] === '-') {\n start++;\n this.negative = 1;\n }\n\n if (start < number.length) {\n if (base === 16) {\n this._parseHex(number, start, endian);\n } else {\n this._parseBase(number, base, start);\n if (endian === 'le') {\n this._initArray(this.toArray(), base, endian);\n }\n }\n }\n };\n\n BN.prototype._initNumber = function _initNumber (number, base, endian) {\n if (number < 0) {\n this.negative = 1;\n number = -number;\n }\n if (number < 0x4000000) {\n this.words = [ number & 0x3ffffff ];\n this.length = 1;\n } else if (number < 0x10000000000000) {\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff\n ];\n this.length = 2;\n } else {\n assert(number < 0x20000000000000); // 2 ^ 53 (unsafe)\n this.words = [\n number & 0x3ffffff,\n (number / 0x4000000) & 0x3ffffff,\n 1\n ];\n this.length = 3;\n }\n\n if (endian !== 'le') return;\n\n // Reverse the bytes\n this._initArray(this.toArray(), base, endian);\n };\n\n BN.prototype._initArray = function _initArray (number, base, endian) {\n // Perhaps a Uint8Array\n assert(typeof number.length === 'number');\n if (number.length <= 0) {\n this.words = [ 0 ];\n this.length = 1;\n return this;\n }\n\n this.length = Math.ceil(number.length / 3);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n var j, w;\n var off = 0;\n if (endian === 'be') {\n for (i = number.length - 1, j = 0; i >= 0; i -= 3) {\n w = number[i] | (number[i - 1] << 8) | (number[i - 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n } else if (endian === 'le') {\n for (i = 0, j = 0; i < number.length; i += 3) {\n w = number[i] | (number[i + 1] << 8) | (number[i + 2] << 16);\n this.words[j] |= (w << off) & 0x3ffffff;\n this.words[j + 1] = (w >>> (26 - off)) & 0x3ffffff;\n off += 24;\n if (off >= 26) {\n off -= 26;\n j++;\n }\n }\n }\n return this.strip();\n };\n\n function parseHex4Bits (string, index) {\n var c = string.charCodeAt(index);\n // 'A' - 'F'\n if (c >= 65 && c <= 70) {\n return c - 55;\n // 'a' - 'f'\n } else if (c >= 97 && c <= 102) {\n return c - 87;\n // '0' - '9'\n } else {\n return (c - 48) & 0xf;\n }\n }\n\n function parseHexByte (string, lowerBound, index) {\n var r = parseHex4Bits(string, index);\n if (index - 1 >= lowerBound) {\n r |= parseHex4Bits(string, index - 1) << 4;\n }\n return r;\n }\n\n BN.prototype._parseHex = function _parseHex (number, start, endian) {\n // Create possibly bigger array to ensure that it fits the number\n this.length = Math.ceil((number.length - start) / 6);\n this.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n this.words[i] = 0;\n }\n\n // 24-bits chunks\n var off = 0;\n var j = 0;\n\n var w;\n if (endian === 'be') {\n for (i = number.length - 1; i >= start; i -= 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n } else {\n var parseLength = number.length - start;\n for (i = parseLength % 2 === 0 ? start + 1 : start; i < number.length; i += 2) {\n w = parseHexByte(number, start, i) << off;\n this.words[j] |= w & 0x3ffffff;\n if (off >= 18) {\n off -= 18;\n j += 1;\n this.words[j] |= w >>> 26;\n } else {\n off += 8;\n }\n }\n }\n\n this.strip();\n };\n\n function parseBase (str, start, end, mul) {\n var r = 0;\n var len = Math.min(str.length, end);\n for (var i = start; i < len; i++) {\n var c = str.charCodeAt(i) - 48;\n\n r *= mul;\n\n // 'a'\n if (c >= 49) {\n r += c - 49 + 0xa;\n\n // 'A'\n } else if (c >= 17) {\n r += c - 17 + 0xa;\n\n // '0' - '9'\n } else {\n r += c;\n }\n }\n return r;\n }\n\n BN.prototype._parseBase = function _parseBase (number, base, start) {\n // Initialize as zero\n this.words = [ 0 ];\n this.length = 1;\n\n // Find length of limb in base\n for (var limbLen = 0, limbPow = 1; limbPow <= 0x3ffffff; limbPow *= base) {\n limbLen++;\n }\n limbLen--;\n limbPow = (limbPow / base) | 0;\n\n var total = number.length - start;\n var mod = total % limbLen;\n var end = Math.min(total, total - mod) + start;\n\n var word = 0;\n for (var i = start; i < end; i += limbLen) {\n word = parseBase(number, i, i + limbLen, base);\n\n this.imuln(limbPow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n if (mod !== 0) {\n var pow = 1;\n word = parseBase(number, i, number.length, base);\n\n for (i = 0; i < mod; i++) {\n pow *= base;\n }\n\n this.imuln(pow);\n if (this.words[0] + word < 0x4000000) {\n this.words[0] += word;\n } else {\n this._iaddn(word);\n }\n }\n\n this.strip();\n };\n\n BN.prototype.copy = function copy (dest) {\n dest.words = new Array(this.length);\n for (var i = 0; i < this.length; i++) {\n dest.words[i] = this.words[i];\n }\n dest.length = this.length;\n dest.negative = this.negative;\n dest.red = this.red;\n };\n\n BN.prototype.clone = function clone () {\n var r = new BN(null);\n this.copy(r);\n return r;\n };\n\n BN.prototype._expand = function _expand (size) {\n while (this.length < size) {\n this.words[this.length++] = 0;\n }\n return this;\n };\n\n // Remove leading `0` from `this`\n BN.prototype.strip = function strip () {\n while (this.length > 1 && this.words[this.length - 1] === 0) {\n this.length--;\n }\n return this._normSign();\n };\n\n BN.prototype._normSign = function _normSign () {\n // -0 = 0\n if (this.length === 1 && this.words[0] === 0) {\n this.negative = 0;\n }\n return this;\n };\n\n BN.prototype.inspect = function inspect () {\n return (this.red ? '';\n };\n\n /*\n\n var zeros = [];\n var groupSizes = [];\n var groupBases = [];\n\n var s = '';\n var i = -1;\n while (++i < BN.wordSize) {\n zeros[i] = s;\n s += '0';\n }\n groupSizes[0] = 0;\n groupSizes[1] = 0;\n groupBases[0] = 0;\n groupBases[1] = 0;\n var base = 2 - 1;\n while (++base < 36 + 1) {\n var groupSize = 0;\n var groupBase = 1;\n while (groupBase < (1 << BN.wordSize) / base) {\n groupBase *= base;\n groupSize += 1;\n }\n groupSizes[base] = groupSize;\n groupBases[base] = groupBase;\n }\n\n */\n\n var zeros = [\n '',\n '0',\n '00',\n '000',\n '0000',\n '00000',\n '000000',\n '0000000',\n '00000000',\n '000000000',\n '0000000000',\n '00000000000',\n '000000000000',\n '0000000000000',\n '00000000000000',\n '000000000000000',\n '0000000000000000',\n '00000000000000000',\n '000000000000000000',\n '0000000000000000000',\n '00000000000000000000',\n '000000000000000000000',\n '0000000000000000000000',\n '00000000000000000000000',\n '000000000000000000000000',\n '0000000000000000000000000'\n ];\n\n var groupSizes = [\n 0, 0,\n 25, 16, 12, 11, 10, 9, 8,\n 8, 7, 7, 7, 7, 6, 6,\n 6, 6, 6, 6, 6, 5, 5,\n 5, 5, 5, 5, 5, 5, 5,\n 5, 5, 5, 5, 5, 5, 5\n ];\n\n var groupBases = [\n 0, 0,\n 33554432, 43046721, 16777216, 48828125, 60466176, 40353607, 16777216,\n 43046721, 10000000, 19487171, 35831808, 62748517, 7529536, 11390625,\n 16777216, 24137569, 34012224, 47045881, 64000000, 4084101, 5153632,\n 6436343, 7962624, 9765625, 11881376, 14348907, 17210368, 20511149,\n 24300000, 28629151, 33554432, 39135393, 45435424, 52521875, 60466176\n ];\n\n BN.prototype.toString = function toString (base, padding) {\n base = base || 10;\n padding = padding | 0 || 1;\n\n var out;\n if (base === 16 || base === 'hex') {\n out = '';\n var off = 0;\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = this.words[i];\n var word = (((w << off) | carry) & 0xffffff).toString(16);\n carry = (w >>> (24 - off)) & 0xffffff;\n if (carry !== 0 || i !== this.length - 1) {\n out = zeros[6 - word.length] + word + out;\n } else {\n out = word + out;\n }\n off += 2;\n if (off >= 26) {\n off -= 26;\n i--;\n }\n }\n if (carry !== 0) {\n out = carry.toString(16) + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n if (base === (base | 0) && base >= 2 && base <= 36) {\n // var groupSize = Math.floor(BN.wordSize * Math.LN2 / Math.log(base));\n var groupSize = groupSizes[base];\n // var groupBase = Math.pow(base, groupSize);\n var groupBase = groupBases[base];\n out = '';\n var c = this.clone();\n c.negative = 0;\n while (!c.isZero()) {\n var r = c.modn(groupBase).toString(base);\n c = c.idivn(groupBase);\n\n if (!c.isZero()) {\n out = zeros[groupSize - r.length] + r + out;\n } else {\n out = r + out;\n }\n }\n if (this.isZero()) {\n out = '0' + out;\n }\n while (out.length % padding !== 0) {\n out = '0' + out;\n }\n if (this.negative !== 0) {\n out = '-' + out;\n }\n return out;\n }\n\n assert(false, 'Base should be between 2 and 36');\n };\n\n BN.prototype.toNumber = function toNumber () {\n var ret = this.words[0];\n if (this.length === 2) {\n ret += this.words[1] * 0x4000000;\n } else if (this.length === 3 && this.words[2] === 0x01) {\n // NOTE: at this stage it is known that the top bit is set\n ret += 0x10000000000000 + (this.words[1] * 0x4000000);\n } else if (this.length > 2) {\n assert(false, 'Number can only safely store up to 53 bits');\n }\n return (this.negative !== 0) ? -ret : ret;\n };\n\n BN.prototype.toJSON = function toJSON () {\n return this.toString(16);\n };\n\n BN.prototype.toBuffer = function toBuffer (endian, length) {\n assert(typeof Buffer !== 'undefined');\n return this.toArrayLike(Buffer, endian, length);\n };\n\n BN.prototype.toArray = function toArray (endian, length) {\n return this.toArrayLike(Array, endian, length);\n };\n\n BN.prototype.toArrayLike = function toArrayLike (ArrayType, endian, length) {\n var byteLength = this.byteLength();\n var reqLength = length || Math.max(1, byteLength);\n assert(byteLength <= reqLength, 'byte array longer than desired length');\n assert(reqLength > 0, 'Requested array length <= 0');\n\n this.strip();\n var littleEndian = endian === 'le';\n var res = new ArrayType(reqLength);\n\n var b, i;\n var q = this.clone();\n if (!littleEndian) {\n // Assume big-endian\n for (i = 0; i < reqLength - byteLength; i++) {\n res[i] = 0;\n }\n\n for (i = 0; !q.isZero(); i++) {\n b = q.andln(0xff);\n q.iushrn(8);\n\n res[reqLength - i - 1] = b;\n }\n } else {\n for (i = 0; !q.isZero(); i++) {\n b = q.andln(0xff);\n q.iushrn(8);\n\n res[i] = b;\n }\n\n for (; i < reqLength; i++) {\n res[i] = 0;\n }\n }\n\n return res;\n };\n\n if (Math.clz32) {\n BN.prototype._countBits = function _countBits (w) {\n return 32 - Math.clz32(w);\n };\n } else {\n BN.prototype._countBits = function _countBits (w) {\n var t = w;\n var r = 0;\n if (t >= 0x1000) {\n r += 13;\n t >>>= 13;\n }\n if (t >= 0x40) {\n r += 7;\n t >>>= 7;\n }\n if (t >= 0x8) {\n r += 4;\n t >>>= 4;\n }\n if (t >= 0x02) {\n r += 2;\n t >>>= 2;\n }\n return r + t;\n };\n }\n\n BN.prototype._zeroBits = function _zeroBits (w) {\n // Short-cut\n if (w === 0) return 26;\n\n var t = w;\n var r = 0;\n if ((t & 0x1fff) === 0) {\n r += 13;\n t >>>= 13;\n }\n if ((t & 0x7f) === 0) {\n r += 7;\n t >>>= 7;\n }\n if ((t & 0xf) === 0) {\n r += 4;\n t >>>= 4;\n }\n if ((t & 0x3) === 0) {\n r += 2;\n t >>>= 2;\n }\n if ((t & 0x1) === 0) {\n r++;\n }\n return r;\n };\n\n // Return number of used bits in a BN\n BN.prototype.bitLength = function bitLength () {\n var w = this.words[this.length - 1];\n var hi = this._countBits(w);\n return (this.length - 1) * 26 + hi;\n };\n\n function toBitArray (num) {\n var w = new Array(num.bitLength());\n\n for (var bit = 0; bit < w.length; bit++) {\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n w[bit] = (num.words[off] & (1 << wbit)) >>> wbit;\n }\n\n return w;\n }\n\n // Number of trailing zero bits\n BN.prototype.zeroBits = function zeroBits () {\n if (this.isZero()) return 0;\n\n var r = 0;\n for (var i = 0; i < this.length; i++) {\n var b = this._zeroBits(this.words[i]);\n r += b;\n if (b !== 26) break;\n }\n return r;\n };\n\n BN.prototype.byteLength = function byteLength () {\n return Math.ceil(this.bitLength() / 8);\n };\n\n BN.prototype.toTwos = function toTwos (width) {\n if (this.negative !== 0) {\n return this.abs().inotn(width).iaddn(1);\n }\n return this.clone();\n };\n\n BN.prototype.fromTwos = function fromTwos (width) {\n if (this.testn(width - 1)) {\n return this.notn(width).iaddn(1).ineg();\n }\n return this.clone();\n };\n\n BN.prototype.isNeg = function isNeg () {\n return this.negative !== 0;\n };\n\n // Return negative clone of `this`\n BN.prototype.neg = function neg () {\n return this.clone().ineg();\n };\n\n BN.prototype.ineg = function ineg () {\n if (!this.isZero()) {\n this.negative ^= 1;\n }\n\n return this;\n };\n\n // Or `num` with `this` in-place\n BN.prototype.iuor = function iuor (num) {\n while (this.length < num.length) {\n this.words[this.length++] = 0;\n }\n\n for (var i = 0; i < num.length; i++) {\n this.words[i] = this.words[i] | num.words[i];\n }\n\n return this.strip();\n };\n\n BN.prototype.ior = function ior (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuor(num);\n };\n\n // Or `num` with `this`\n BN.prototype.or = function or (num) {\n if (this.length > num.length) return this.clone().ior(num);\n return num.clone().ior(this);\n };\n\n BN.prototype.uor = function uor (num) {\n if (this.length > num.length) return this.clone().iuor(num);\n return num.clone().iuor(this);\n };\n\n // And `num` with `this` in-place\n BN.prototype.iuand = function iuand (num) {\n // b = min-length(num, this)\n var b;\n if (this.length > num.length) {\n b = num;\n } else {\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = this.words[i] & num.words[i];\n }\n\n this.length = b.length;\n\n return this.strip();\n };\n\n BN.prototype.iand = function iand (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuand(num);\n };\n\n // And `num` with `this`\n BN.prototype.and = function and (num) {\n if (this.length > num.length) return this.clone().iand(num);\n return num.clone().iand(this);\n };\n\n BN.prototype.uand = function uand (num) {\n if (this.length > num.length) return this.clone().iuand(num);\n return num.clone().iuand(this);\n };\n\n // Xor `num` with `this` in-place\n BN.prototype.iuxor = function iuxor (num) {\n // a.length > b.length\n var a;\n var b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n for (var i = 0; i < b.length; i++) {\n this.words[i] = a.words[i] ^ b.words[i];\n }\n\n if (this !== a) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = a.length;\n\n return this.strip();\n };\n\n BN.prototype.ixor = function ixor (num) {\n assert((this.negative | num.negative) === 0);\n return this.iuxor(num);\n };\n\n // Xor `num` with `this`\n BN.prototype.xor = function xor (num) {\n if (this.length > num.length) return this.clone().ixor(num);\n return num.clone().ixor(this);\n };\n\n BN.prototype.uxor = function uxor (num) {\n if (this.length > num.length) return this.clone().iuxor(num);\n return num.clone().iuxor(this);\n };\n\n // Not ``this`` with ``width`` bitwidth\n BN.prototype.inotn = function inotn (width) {\n assert(typeof width === 'number' && width >= 0);\n\n var bytesNeeded = Math.ceil(width / 26) | 0;\n var bitsLeft = width % 26;\n\n // Extend the buffer with leading zeroes\n this._expand(bytesNeeded);\n\n if (bitsLeft > 0) {\n bytesNeeded--;\n }\n\n // Handle complete words\n for (var i = 0; i < bytesNeeded; i++) {\n this.words[i] = ~this.words[i] & 0x3ffffff;\n }\n\n // Handle the residue\n if (bitsLeft > 0) {\n this.words[i] = ~this.words[i] & (0x3ffffff >> (26 - bitsLeft));\n }\n\n // And remove leading zeroes\n return this.strip();\n };\n\n BN.prototype.notn = function notn (width) {\n return this.clone().inotn(width);\n };\n\n // Set `bit` of `this`\n BN.prototype.setn = function setn (bit, val) {\n assert(typeof bit === 'number' && bit >= 0);\n\n var off = (bit / 26) | 0;\n var wbit = bit % 26;\n\n this._expand(off + 1);\n\n if (val) {\n this.words[off] = this.words[off] | (1 << wbit);\n } else {\n this.words[off] = this.words[off] & ~(1 << wbit);\n }\n\n return this.strip();\n };\n\n // Add `num` to `this` in-place\n BN.prototype.iadd = function iadd (num) {\n var r;\n\n // negative + positive\n if (this.negative !== 0 && num.negative === 0) {\n this.negative = 0;\n r = this.isub(num);\n this.negative ^= 1;\n return this._normSign();\n\n // positive + negative\n } else if (this.negative === 0 && num.negative !== 0) {\n num.negative = 0;\n r = this.isub(num);\n num.negative = 1;\n return r._normSign();\n }\n\n // a.length > b.length\n var a, b;\n if (this.length > num.length) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) + (b.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n this.words[i] = r & 0x3ffffff;\n carry = r >>> 26;\n }\n\n this.length = a.length;\n if (carry !== 0) {\n this.words[this.length] = carry;\n this.length++;\n // Copy the rest of the words\n } else if (a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n return this;\n };\n\n // Add `num` to `this`\n BN.prototype.add = function add (num) {\n var res;\n if (num.negative !== 0 && this.negative === 0) {\n num.negative = 0;\n res = this.sub(num);\n num.negative ^= 1;\n return res;\n } else if (num.negative === 0 && this.negative !== 0) {\n this.negative = 0;\n res = num.sub(this);\n this.negative = 1;\n return res;\n }\n\n if (this.length > num.length) return this.clone().iadd(num);\n\n return num.clone().iadd(this);\n };\n\n // Subtract `num` from `this` in-place\n BN.prototype.isub = function isub (num) {\n // this - (-num) = this + num\n if (num.negative !== 0) {\n num.negative = 0;\n var r = this.iadd(num);\n num.negative = 1;\n return r._normSign();\n\n // -this - num = -(this + num)\n } else if (this.negative !== 0) {\n this.negative = 0;\n this.iadd(num);\n this.negative = 1;\n return this._normSign();\n }\n\n // At this point both numbers are positive\n var cmp = this.cmp(num);\n\n // Optimization - zeroify\n if (cmp === 0) {\n this.negative = 0;\n this.length = 1;\n this.words[0] = 0;\n return this;\n }\n\n // a > b\n var a, b;\n if (cmp > 0) {\n a = this;\n b = num;\n } else {\n a = num;\n b = this;\n }\n\n var carry = 0;\n for (var i = 0; i < b.length; i++) {\n r = (a.words[i] | 0) - (b.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n for (; carry !== 0 && i < a.length; i++) {\n r = (a.words[i] | 0) + carry;\n carry = r >> 26;\n this.words[i] = r & 0x3ffffff;\n }\n\n // Copy rest of the words\n if (carry === 0 && i < a.length && a !== this) {\n for (; i < a.length; i++) {\n this.words[i] = a.words[i];\n }\n }\n\n this.length = Math.max(this.length, i);\n\n if (a !== this) {\n this.negative = 1;\n }\n\n return this.strip();\n };\n\n // Subtract `num` from `this`\n BN.prototype.sub = function sub (num) {\n return this.clone().isub(num);\n };\n\n function smallMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n var len = (self.length + num.length) | 0;\n out.length = len;\n len = (len - 1) | 0;\n\n // Peel one iteration (compiler can't do it, because of code complexity)\n var a = self.words[0] | 0;\n var b = num.words[0] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n var carry = (r / 0x4000000) | 0;\n out.words[0] = lo;\n\n for (var k = 1; k < len; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = carry >>> 26;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = (k - j) | 0;\n a = self.words[i] | 0;\n b = num.words[j] | 0;\n r = a * b + rword;\n ncarry += (r / 0x4000000) | 0;\n rword = r & 0x3ffffff;\n }\n out.words[k] = rword | 0;\n carry = ncarry | 0;\n }\n if (carry !== 0) {\n out.words[k] = carry | 0;\n } else {\n out.length--;\n }\n\n return out.strip();\n }\n\n // TODO(indutny): it may be reasonable to omit it for users who don't need\n // to work with 256-bit numbers, otherwise it gives 20% improvement for 256-bit\n // multiplication (like elliptic secp256k1).\n var comb10MulTo = function comb10MulTo (self, num, out) {\n var a = self.words;\n var b = num.words;\n var o = out.words;\n var c = 0;\n var lo;\n var mid;\n var hi;\n var a0 = a[0] | 0;\n var al0 = a0 & 0x1fff;\n var ah0 = a0 >>> 13;\n var a1 = a[1] | 0;\n var al1 = a1 & 0x1fff;\n var ah1 = a1 >>> 13;\n var a2 = a[2] | 0;\n var al2 = a2 & 0x1fff;\n var ah2 = a2 >>> 13;\n var a3 = a[3] | 0;\n var al3 = a3 & 0x1fff;\n var ah3 = a3 >>> 13;\n var a4 = a[4] | 0;\n var al4 = a4 & 0x1fff;\n var ah4 = a4 >>> 13;\n var a5 = a[5] | 0;\n var al5 = a5 & 0x1fff;\n var ah5 = a5 >>> 13;\n var a6 = a[6] | 0;\n var al6 = a6 & 0x1fff;\n var ah6 = a6 >>> 13;\n var a7 = a[7] | 0;\n var al7 = a7 & 0x1fff;\n var ah7 = a7 >>> 13;\n var a8 = a[8] | 0;\n var al8 = a8 & 0x1fff;\n var ah8 = a8 >>> 13;\n var a9 = a[9] | 0;\n var al9 = a9 & 0x1fff;\n var ah9 = a9 >>> 13;\n var b0 = b[0] | 0;\n var bl0 = b0 & 0x1fff;\n var bh0 = b0 >>> 13;\n var b1 = b[1] | 0;\n var bl1 = b1 & 0x1fff;\n var bh1 = b1 >>> 13;\n var b2 = b[2] | 0;\n var bl2 = b2 & 0x1fff;\n var bh2 = b2 >>> 13;\n var b3 = b[3] | 0;\n var bl3 = b3 & 0x1fff;\n var bh3 = b3 >>> 13;\n var b4 = b[4] | 0;\n var bl4 = b4 & 0x1fff;\n var bh4 = b4 >>> 13;\n var b5 = b[5] | 0;\n var bl5 = b5 & 0x1fff;\n var bh5 = b5 >>> 13;\n var b6 = b[6] | 0;\n var bl6 = b6 & 0x1fff;\n var bh6 = b6 >>> 13;\n var b7 = b[7] | 0;\n var bl7 = b7 & 0x1fff;\n var bh7 = b7 >>> 13;\n var b8 = b[8] | 0;\n var bl8 = b8 & 0x1fff;\n var bh8 = b8 >>> 13;\n var b9 = b[9] | 0;\n var bl9 = b9 & 0x1fff;\n var bh9 = b9 >>> 13;\n\n out.negative = self.negative ^ num.negative;\n out.length = 19;\n /* k = 0 */\n lo = Math.imul(al0, bl0);\n mid = Math.imul(al0, bh0);\n mid = (mid + Math.imul(ah0, bl0)) | 0;\n hi = Math.imul(ah0, bh0);\n var w0 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w0 >>> 26)) | 0;\n w0 &= 0x3ffffff;\n /* k = 1 */\n lo = Math.imul(al1, bl0);\n mid = Math.imul(al1, bh0);\n mid = (mid + Math.imul(ah1, bl0)) | 0;\n hi = Math.imul(ah1, bh0);\n lo = (lo + Math.imul(al0, bl1)) | 0;\n mid = (mid + Math.imul(al0, bh1)) | 0;\n mid = (mid + Math.imul(ah0, bl1)) | 0;\n hi = (hi + Math.imul(ah0, bh1)) | 0;\n var w1 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w1 >>> 26)) | 0;\n w1 &= 0x3ffffff;\n /* k = 2 */\n lo = Math.imul(al2, bl0);\n mid = Math.imul(al2, bh0);\n mid = (mid + Math.imul(ah2, bl0)) | 0;\n hi = Math.imul(ah2, bh0);\n lo = (lo + Math.imul(al1, bl1)) | 0;\n mid = (mid + Math.imul(al1, bh1)) | 0;\n mid = (mid + Math.imul(ah1, bl1)) | 0;\n hi = (hi + Math.imul(ah1, bh1)) | 0;\n lo = (lo + Math.imul(al0, bl2)) | 0;\n mid = (mid + Math.imul(al0, bh2)) | 0;\n mid = (mid + Math.imul(ah0, bl2)) | 0;\n hi = (hi + Math.imul(ah0, bh2)) | 0;\n var w2 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w2 >>> 26)) | 0;\n w2 &= 0x3ffffff;\n /* k = 3 */\n lo = Math.imul(al3, bl0);\n mid = Math.imul(al3, bh0);\n mid = (mid + Math.imul(ah3, bl0)) | 0;\n hi = Math.imul(ah3, bh0);\n lo = (lo + Math.imul(al2, bl1)) | 0;\n mid = (mid + Math.imul(al2, bh1)) | 0;\n mid = (mid + Math.imul(ah2, bl1)) | 0;\n hi = (hi + Math.imul(ah2, bh1)) | 0;\n lo = (lo + Math.imul(al1, bl2)) | 0;\n mid = (mid + Math.imul(al1, bh2)) | 0;\n mid = (mid + Math.imul(ah1, bl2)) | 0;\n hi = (hi + Math.imul(ah1, bh2)) | 0;\n lo = (lo + Math.imul(al0, bl3)) | 0;\n mid = (mid + Math.imul(al0, bh3)) | 0;\n mid = (mid + Math.imul(ah0, bl3)) | 0;\n hi = (hi + Math.imul(ah0, bh3)) | 0;\n var w3 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w3 >>> 26)) | 0;\n w3 &= 0x3ffffff;\n /* k = 4 */\n lo = Math.imul(al4, bl0);\n mid = Math.imul(al4, bh0);\n mid = (mid + Math.imul(ah4, bl0)) | 0;\n hi = Math.imul(ah4, bh0);\n lo = (lo + Math.imul(al3, bl1)) | 0;\n mid = (mid + Math.imul(al3, bh1)) | 0;\n mid = (mid + Math.imul(ah3, bl1)) | 0;\n hi = (hi + Math.imul(ah3, bh1)) | 0;\n lo = (lo + Math.imul(al2, bl2)) | 0;\n mid = (mid + Math.imul(al2, bh2)) | 0;\n mid = (mid + Math.imul(ah2, bl2)) | 0;\n hi = (hi + Math.imul(ah2, bh2)) | 0;\n lo = (lo + Math.imul(al1, bl3)) | 0;\n mid = (mid + Math.imul(al1, bh3)) | 0;\n mid = (mid + Math.imul(ah1, bl3)) | 0;\n hi = (hi + Math.imul(ah1, bh3)) | 0;\n lo = (lo + Math.imul(al0, bl4)) | 0;\n mid = (mid + Math.imul(al0, bh4)) | 0;\n mid = (mid + Math.imul(ah0, bl4)) | 0;\n hi = (hi + Math.imul(ah0, bh4)) | 0;\n var w4 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w4 >>> 26)) | 0;\n w4 &= 0x3ffffff;\n /* k = 5 */\n lo = Math.imul(al5, bl0);\n mid = Math.imul(al5, bh0);\n mid = (mid + Math.imul(ah5, bl0)) | 0;\n hi = Math.imul(ah5, bh0);\n lo = (lo + Math.imul(al4, bl1)) | 0;\n mid = (mid + Math.imul(al4, bh1)) | 0;\n mid = (mid + Math.imul(ah4, bl1)) | 0;\n hi = (hi + Math.imul(ah4, bh1)) | 0;\n lo = (lo + Math.imul(al3, bl2)) | 0;\n mid = (mid + Math.imul(al3, bh2)) | 0;\n mid = (mid + Math.imul(ah3, bl2)) | 0;\n hi = (hi + Math.imul(ah3, bh2)) | 0;\n lo = (lo + Math.imul(al2, bl3)) | 0;\n mid = (mid + Math.imul(al2, bh3)) | 0;\n mid = (mid + Math.imul(ah2, bl3)) | 0;\n hi = (hi + Math.imul(ah2, bh3)) | 0;\n lo = (lo + Math.imul(al1, bl4)) | 0;\n mid = (mid + Math.imul(al1, bh4)) | 0;\n mid = (mid + Math.imul(ah1, bl4)) | 0;\n hi = (hi + Math.imul(ah1, bh4)) | 0;\n lo = (lo + Math.imul(al0, bl5)) | 0;\n mid = (mid + Math.imul(al0, bh5)) | 0;\n mid = (mid + Math.imul(ah0, bl5)) | 0;\n hi = (hi + Math.imul(ah0, bh5)) | 0;\n var w5 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w5 >>> 26)) | 0;\n w5 &= 0x3ffffff;\n /* k = 6 */\n lo = Math.imul(al6, bl0);\n mid = Math.imul(al6, bh0);\n mid = (mid + Math.imul(ah6, bl0)) | 0;\n hi = Math.imul(ah6, bh0);\n lo = (lo + Math.imul(al5, bl1)) | 0;\n mid = (mid + Math.imul(al5, bh1)) | 0;\n mid = (mid + Math.imul(ah5, bl1)) | 0;\n hi = (hi + Math.imul(ah5, bh1)) | 0;\n lo = (lo + Math.imul(al4, bl2)) | 0;\n mid = (mid + Math.imul(al4, bh2)) | 0;\n mid = (mid + Math.imul(ah4, bl2)) | 0;\n hi = (hi + Math.imul(ah4, bh2)) | 0;\n lo = (lo + Math.imul(al3, bl3)) | 0;\n mid = (mid + Math.imul(al3, bh3)) | 0;\n mid = (mid + Math.imul(ah3, bl3)) | 0;\n hi = (hi + Math.imul(ah3, bh3)) | 0;\n lo = (lo + Math.imul(al2, bl4)) | 0;\n mid = (mid + Math.imul(al2, bh4)) | 0;\n mid = (mid + Math.imul(ah2, bl4)) | 0;\n hi = (hi + Math.imul(ah2, bh4)) | 0;\n lo = (lo + Math.imul(al1, bl5)) | 0;\n mid = (mid + Math.imul(al1, bh5)) | 0;\n mid = (mid + Math.imul(ah1, bl5)) | 0;\n hi = (hi + Math.imul(ah1, bh5)) | 0;\n lo = (lo + Math.imul(al0, bl6)) | 0;\n mid = (mid + Math.imul(al0, bh6)) | 0;\n mid = (mid + Math.imul(ah0, bl6)) | 0;\n hi = (hi + Math.imul(ah0, bh6)) | 0;\n var w6 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w6 >>> 26)) | 0;\n w6 &= 0x3ffffff;\n /* k = 7 */\n lo = Math.imul(al7, bl0);\n mid = Math.imul(al7, bh0);\n mid = (mid + Math.imul(ah7, bl0)) | 0;\n hi = Math.imul(ah7, bh0);\n lo = (lo + Math.imul(al6, bl1)) | 0;\n mid = (mid + Math.imul(al6, bh1)) | 0;\n mid = (mid + Math.imul(ah6, bl1)) | 0;\n hi = (hi + Math.imul(ah6, bh1)) | 0;\n lo = (lo + Math.imul(al5, bl2)) | 0;\n mid = (mid + Math.imul(al5, bh2)) | 0;\n mid = (mid + Math.imul(ah5, bl2)) | 0;\n hi = (hi + Math.imul(ah5, bh2)) | 0;\n lo = (lo + Math.imul(al4, bl3)) | 0;\n mid = (mid + Math.imul(al4, bh3)) | 0;\n mid = (mid + Math.imul(ah4, bl3)) | 0;\n hi = (hi + Math.imul(ah4, bh3)) | 0;\n lo = (lo + Math.imul(al3, bl4)) | 0;\n mid = (mid + Math.imul(al3, bh4)) | 0;\n mid = (mid + Math.imul(ah3, bl4)) | 0;\n hi = (hi + Math.imul(ah3, bh4)) | 0;\n lo = (lo + Math.imul(al2, bl5)) | 0;\n mid = (mid + Math.imul(al2, bh5)) | 0;\n mid = (mid + Math.imul(ah2, bl5)) | 0;\n hi = (hi + Math.imul(ah2, bh5)) | 0;\n lo = (lo + Math.imul(al1, bl6)) | 0;\n mid = (mid + Math.imul(al1, bh6)) | 0;\n mid = (mid + Math.imul(ah1, bl6)) | 0;\n hi = (hi + Math.imul(ah1, bh6)) | 0;\n lo = (lo + Math.imul(al0, bl7)) | 0;\n mid = (mid + Math.imul(al0, bh7)) | 0;\n mid = (mid + Math.imul(ah0, bl7)) | 0;\n hi = (hi + Math.imul(ah0, bh7)) | 0;\n var w7 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w7 >>> 26)) | 0;\n w7 &= 0x3ffffff;\n /* k = 8 */\n lo = Math.imul(al8, bl0);\n mid = Math.imul(al8, bh0);\n mid = (mid + Math.imul(ah8, bl0)) | 0;\n hi = Math.imul(ah8, bh0);\n lo = (lo + Math.imul(al7, bl1)) | 0;\n mid = (mid + Math.imul(al7, bh1)) | 0;\n mid = (mid + Math.imul(ah7, bl1)) | 0;\n hi = (hi + Math.imul(ah7, bh1)) | 0;\n lo = (lo + Math.imul(al6, bl2)) | 0;\n mid = (mid + Math.imul(al6, bh2)) | 0;\n mid = (mid + Math.imul(ah6, bl2)) | 0;\n hi = (hi + Math.imul(ah6, bh2)) | 0;\n lo = (lo + Math.imul(al5, bl3)) | 0;\n mid = (mid + Math.imul(al5, bh3)) | 0;\n mid = (mid + Math.imul(ah5, bl3)) | 0;\n hi = (hi + Math.imul(ah5, bh3)) | 0;\n lo = (lo + Math.imul(al4, bl4)) | 0;\n mid = (mid + Math.imul(al4, bh4)) | 0;\n mid = (mid + Math.imul(ah4, bl4)) | 0;\n hi = (hi + Math.imul(ah4, bh4)) | 0;\n lo = (lo + Math.imul(al3, bl5)) | 0;\n mid = (mid + Math.imul(al3, bh5)) | 0;\n mid = (mid + Math.imul(ah3, bl5)) | 0;\n hi = (hi + Math.imul(ah3, bh5)) | 0;\n lo = (lo + Math.imul(al2, bl6)) | 0;\n mid = (mid + Math.imul(al2, bh6)) | 0;\n mid = (mid + Math.imul(ah2, bl6)) | 0;\n hi = (hi + Math.imul(ah2, bh6)) | 0;\n lo = (lo + Math.imul(al1, bl7)) | 0;\n mid = (mid + Math.imul(al1, bh7)) | 0;\n mid = (mid + Math.imul(ah1, bl7)) | 0;\n hi = (hi + Math.imul(ah1, bh7)) | 0;\n lo = (lo + Math.imul(al0, bl8)) | 0;\n mid = (mid + Math.imul(al0, bh8)) | 0;\n mid = (mid + Math.imul(ah0, bl8)) | 0;\n hi = (hi + Math.imul(ah0, bh8)) | 0;\n var w8 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w8 >>> 26)) | 0;\n w8 &= 0x3ffffff;\n /* k = 9 */\n lo = Math.imul(al9, bl0);\n mid = Math.imul(al9, bh0);\n mid = (mid + Math.imul(ah9, bl0)) | 0;\n hi = Math.imul(ah9, bh0);\n lo = (lo + Math.imul(al8, bl1)) | 0;\n mid = (mid + Math.imul(al8, bh1)) | 0;\n mid = (mid + Math.imul(ah8, bl1)) | 0;\n hi = (hi + Math.imul(ah8, bh1)) | 0;\n lo = (lo + Math.imul(al7, bl2)) | 0;\n mid = (mid + Math.imul(al7, bh2)) | 0;\n mid = (mid + Math.imul(ah7, bl2)) | 0;\n hi = (hi + Math.imul(ah7, bh2)) | 0;\n lo = (lo + Math.imul(al6, bl3)) | 0;\n mid = (mid + Math.imul(al6, bh3)) | 0;\n mid = (mid + Math.imul(ah6, bl3)) | 0;\n hi = (hi + Math.imul(ah6, bh3)) | 0;\n lo = (lo + Math.imul(al5, bl4)) | 0;\n mid = (mid + Math.imul(al5, bh4)) | 0;\n mid = (mid + Math.imul(ah5, bl4)) | 0;\n hi = (hi + Math.imul(ah5, bh4)) | 0;\n lo = (lo + Math.imul(al4, bl5)) | 0;\n mid = (mid + Math.imul(al4, bh5)) | 0;\n mid = (mid + Math.imul(ah4, bl5)) | 0;\n hi = (hi + Math.imul(ah4, bh5)) | 0;\n lo = (lo + Math.imul(al3, bl6)) | 0;\n mid = (mid + Math.imul(al3, bh6)) | 0;\n mid = (mid + Math.imul(ah3, bl6)) | 0;\n hi = (hi + Math.imul(ah3, bh6)) | 0;\n lo = (lo + Math.imul(al2, bl7)) | 0;\n mid = (mid + Math.imul(al2, bh7)) | 0;\n mid = (mid + Math.imul(ah2, bl7)) | 0;\n hi = (hi + Math.imul(ah2, bh7)) | 0;\n lo = (lo + Math.imul(al1, bl8)) | 0;\n mid = (mid + Math.imul(al1, bh8)) | 0;\n mid = (mid + Math.imul(ah1, bl8)) | 0;\n hi = (hi + Math.imul(ah1, bh8)) | 0;\n lo = (lo + Math.imul(al0, bl9)) | 0;\n mid = (mid + Math.imul(al0, bh9)) | 0;\n mid = (mid + Math.imul(ah0, bl9)) | 0;\n hi = (hi + Math.imul(ah0, bh9)) | 0;\n var w9 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w9 >>> 26)) | 0;\n w9 &= 0x3ffffff;\n /* k = 10 */\n lo = Math.imul(al9, bl1);\n mid = Math.imul(al9, bh1);\n mid = (mid + Math.imul(ah9, bl1)) | 0;\n hi = Math.imul(ah9, bh1);\n lo = (lo + Math.imul(al8, bl2)) | 0;\n mid = (mid + Math.imul(al8, bh2)) | 0;\n mid = (mid + Math.imul(ah8, bl2)) | 0;\n hi = (hi + Math.imul(ah8, bh2)) | 0;\n lo = (lo + Math.imul(al7, bl3)) | 0;\n mid = (mid + Math.imul(al7, bh3)) | 0;\n mid = (mid + Math.imul(ah7, bl3)) | 0;\n hi = (hi + Math.imul(ah7, bh3)) | 0;\n lo = (lo + Math.imul(al6, bl4)) | 0;\n mid = (mid + Math.imul(al6, bh4)) | 0;\n mid = (mid + Math.imul(ah6, bl4)) | 0;\n hi = (hi + Math.imul(ah6, bh4)) | 0;\n lo = (lo + Math.imul(al5, bl5)) | 0;\n mid = (mid + Math.imul(al5, bh5)) | 0;\n mid = (mid + Math.imul(ah5, bl5)) | 0;\n hi = (hi + Math.imul(ah5, bh5)) | 0;\n lo = (lo + Math.imul(al4, bl6)) | 0;\n mid = (mid + Math.imul(al4, bh6)) | 0;\n mid = (mid + Math.imul(ah4, bl6)) | 0;\n hi = (hi + Math.imul(ah4, bh6)) | 0;\n lo = (lo + Math.imul(al3, bl7)) | 0;\n mid = (mid + Math.imul(al3, bh7)) | 0;\n mid = (mid + Math.imul(ah3, bl7)) | 0;\n hi = (hi + Math.imul(ah3, bh7)) | 0;\n lo = (lo + Math.imul(al2, bl8)) | 0;\n mid = (mid + Math.imul(al2, bh8)) | 0;\n mid = (mid + Math.imul(ah2, bl8)) | 0;\n hi = (hi + Math.imul(ah2, bh8)) | 0;\n lo = (lo + Math.imul(al1, bl9)) | 0;\n mid = (mid + Math.imul(al1, bh9)) | 0;\n mid = (mid + Math.imul(ah1, bl9)) | 0;\n hi = (hi + Math.imul(ah1, bh9)) | 0;\n var w10 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w10 >>> 26)) | 0;\n w10 &= 0x3ffffff;\n /* k = 11 */\n lo = Math.imul(al9, bl2);\n mid = Math.imul(al9, bh2);\n mid = (mid + Math.imul(ah9, bl2)) | 0;\n hi = Math.imul(ah9, bh2);\n lo = (lo + Math.imul(al8, bl3)) | 0;\n mid = (mid + Math.imul(al8, bh3)) | 0;\n mid = (mid + Math.imul(ah8, bl3)) | 0;\n hi = (hi + Math.imul(ah8, bh3)) | 0;\n lo = (lo + Math.imul(al7, bl4)) | 0;\n mid = (mid + Math.imul(al7, bh4)) | 0;\n mid = (mid + Math.imul(ah7, bl4)) | 0;\n hi = (hi + Math.imul(ah7, bh4)) | 0;\n lo = (lo + Math.imul(al6, bl5)) | 0;\n mid = (mid + Math.imul(al6, bh5)) | 0;\n mid = (mid + Math.imul(ah6, bl5)) | 0;\n hi = (hi + Math.imul(ah6, bh5)) | 0;\n lo = (lo + Math.imul(al5, bl6)) | 0;\n mid = (mid + Math.imul(al5, bh6)) | 0;\n mid = (mid + Math.imul(ah5, bl6)) | 0;\n hi = (hi + Math.imul(ah5, bh6)) | 0;\n lo = (lo + Math.imul(al4, bl7)) | 0;\n mid = (mid + Math.imul(al4, bh7)) | 0;\n mid = (mid + Math.imul(ah4, bl7)) | 0;\n hi = (hi + Math.imul(ah4, bh7)) | 0;\n lo = (lo + Math.imul(al3, bl8)) | 0;\n mid = (mid + Math.imul(al3, bh8)) | 0;\n mid = (mid + Math.imul(ah3, bl8)) | 0;\n hi = (hi + Math.imul(ah3, bh8)) | 0;\n lo = (lo + Math.imul(al2, bl9)) | 0;\n mid = (mid + Math.imul(al2, bh9)) | 0;\n mid = (mid + Math.imul(ah2, bl9)) | 0;\n hi = (hi + Math.imul(ah2, bh9)) | 0;\n var w11 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w11 >>> 26)) | 0;\n w11 &= 0x3ffffff;\n /* k = 12 */\n lo = Math.imul(al9, bl3);\n mid = Math.imul(al9, bh3);\n mid = (mid + Math.imul(ah9, bl3)) | 0;\n hi = Math.imul(ah9, bh3);\n lo = (lo + Math.imul(al8, bl4)) | 0;\n mid = (mid + Math.imul(al8, bh4)) | 0;\n mid = (mid + Math.imul(ah8, bl4)) | 0;\n hi = (hi + Math.imul(ah8, bh4)) | 0;\n lo = (lo + Math.imul(al7, bl5)) | 0;\n mid = (mid + Math.imul(al7, bh5)) | 0;\n mid = (mid + Math.imul(ah7, bl5)) | 0;\n hi = (hi + Math.imul(ah7, bh5)) | 0;\n lo = (lo + Math.imul(al6, bl6)) | 0;\n mid = (mid + Math.imul(al6, bh6)) | 0;\n mid = (mid + Math.imul(ah6, bl6)) | 0;\n hi = (hi + Math.imul(ah6, bh6)) | 0;\n lo = (lo + Math.imul(al5, bl7)) | 0;\n mid = (mid + Math.imul(al5, bh7)) | 0;\n mid = (mid + Math.imul(ah5, bl7)) | 0;\n hi = (hi + Math.imul(ah5, bh7)) | 0;\n lo = (lo + Math.imul(al4, bl8)) | 0;\n mid = (mid + Math.imul(al4, bh8)) | 0;\n mid = (mid + Math.imul(ah4, bl8)) | 0;\n hi = (hi + Math.imul(ah4, bh8)) | 0;\n lo = (lo + Math.imul(al3, bl9)) | 0;\n mid = (mid + Math.imul(al3, bh9)) | 0;\n mid = (mid + Math.imul(ah3, bl9)) | 0;\n hi = (hi + Math.imul(ah3, bh9)) | 0;\n var w12 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w12 >>> 26)) | 0;\n w12 &= 0x3ffffff;\n /* k = 13 */\n lo = Math.imul(al9, bl4);\n mid = Math.imul(al9, bh4);\n mid = (mid + Math.imul(ah9, bl4)) | 0;\n hi = Math.imul(ah9, bh4);\n lo = (lo + Math.imul(al8, bl5)) | 0;\n mid = (mid + Math.imul(al8, bh5)) | 0;\n mid = (mid + Math.imul(ah8, bl5)) | 0;\n hi = (hi + Math.imul(ah8, bh5)) | 0;\n lo = (lo + Math.imul(al7, bl6)) | 0;\n mid = (mid + Math.imul(al7, bh6)) | 0;\n mid = (mid + Math.imul(ah7, bl6)) | 0;\n hi = (hi + Math.imul(ah7, bh6)) | 0;\n lo = (lo + Math.imul(al6, bl7)) | 0;\n mid = (mid + Math.imul(al6, bh7)) | 0;\n mid = (mid + Math.imul(ah6, bl7)) | 0;\n hi = (hi + Math.imul(ah6, bh7)) | 0;\n lo = (lo + Math.imul(al5, bl8)) | 0;\n mid = (mid + Math.imul(al5, bh8)) | 0;\n mid = (mid + Math.imul(ah5, bl8)) | 0;\n hi = (hi + Math.imul(ah5, bh8)) | 0;\n lo = (lo + Math.imul(al4, bl9)) | 0;\n mid = (mid + Math.imul(al4, bh9)) | 0;\n mid = (mid + Math.imul(ah4, bl9)) | 0;\n hi = (hi + Math.imul(ah4, bh9)) | 0;\n var w13 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w13 >>> 26)) | 0;\n w13 &= 0x3ffffff;\n /* k = 14 */\n lo = Math.imul(al9, bl5);\n mid = Math.imul(al9, bh5);\n mid = (mid + Math.imul(ah9, bl5)) | 0;\n hi = Math.imul(ah9, bh5);\n lo = (lo + Math.imul(al8, bl6)) | 0;\n mid = (mid + Math.imul(al8, bh6)) | 0;\n mid = (mid + Math.imul(ah8, bl6)) | 0;\n hi = (hi + Math.imul(ah8, bh6)) | 0;\n lo = (lo + Math.imul(al7, bl7)) | 0;\n mid = (mid + Math.imul(al7, bh7)) | 0;\n mid = (mid + Math.imul(ah7, bl7)) | 0;\n hi = (hi + Math.imul(ah7, bh7)) | 0;\n lo = (lo + Math.imul(al6, bl8)) | 0;\n mid = (mid + Math.imul(al6, bh8)) | 0;\n mid = (mid + Math.imul(ah6, bl8)) | 0;\n hi = (hi + Math.imul(ah6, bh8)) | 0;\n lo = (lo + Math.imul(al5, bl9)) | 0;\n mid = (mid + Math.imul(al5, bh9)) | 0;\n mid = (mid + Math.imul(ah5, bl9)) | 0;\n hi = (hi + Math.imul(ah5, bh9)) | 0;\n var w14 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w14 >>> 26)) | 0;\n w14 &= 0x3ffffff;\n /* k = 15 */\n lo = Math.imul(al9, bl6);\n mid = Math.imul(al9, bh6);\n mid = (mid + Math.imul(ah9, bl6)) | 0;\n hi = Math.imul(ah9, bh6);\n lo = (lo + Math.imul(al8, bl7)) | 0;\n mid = (mid + Math.imul(al8, bh7)) | 0;\n mid = (mid + Math.imul(ah8, bl7)) | 0;\n hi = (hi + Math.imul(ah8, bh7)) | 0;\n lo = (lo + Math.imul(al7, bl8)) | 0;\n mid = (mid + Math.imul(al7, bh8)) | 0;\n mid = (mid + Math.imul(ah7, bl8)) | 0;\n hi = (hi + Math.imul(ah7, bh8)) | 0;\n lo = (lo + Math.imul(al6, bl9)) | 0;\n mid = (mid + Math.imul(al6, bh9)) | 0;\n mid = (mid + Math.imul(ah6, bl9)) | 0;\n hi = (hi + Math.imul(ah6, bh9)) | 0;\n var w15 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w15 >>> 26)) | 0;\n w15 &= 0x3ffffff;\n /* k = 16 */\n lo = Math.imul(al9, bl7);\n mid = Math.imul(al9, bh7);\n mid = (mid + Math.imul(ah9, bl7)) | 0;\n hi = Math.imul(ah9, bh7);\n lo = (lo + Math.imul(al8, bl8)) | 0;\n mid = (mid + Math.imul(al8, bh8)) | 0;\n mid = (mid + Math.imul(ah8, bl8)) | 0;\n hi = (hi + Math.imul(ah8, bh8)) | 0;\n lo = (lo + Math.imul(al7, bl9)) | 0;\n mid = (mid + Math.imul(al7, bh9)) | 0;\n mid = (mid + Math.imul(ah7, bl9)) | 0;\n hi = (hi + Math.imul(ah7, bh9)) | 0;\n var w16 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w16 >>> 26)) | 0;\n w16 &= 0x3ffffff;\n /* k = 17 */\n lo = Math.imul(al9, bl8);\n mid = Math.imul(al9, bh8);\n mid = (mid + Math.imul(ah9, bl8)) | 0;\n hi = Math.imul(ah9, bh8);\n lo = (lo + Math.imul(al8, bl9)) | 0;\n mid = (mid + Math.imul(al8, bh9)) | 0;\n mid = (mid + Math.imul(ah8, bl9)) | 0;\n hi = (hi + Math.imul(ah8, bh9)) | 0;\n var w17 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w17 >>> 26)) | 0;\n w17 &= 0x3ffffff;\n /* k = 18 */\n lo = Math.imul(al9, bl9);\n mid = Math.imul(al9, bh9);\n mid = (mid + Math.imul(ah9, bl9)) | 0;\n hi = Math.imul(ah9, bh9);\n var w18 = (((c + lo) | 0) + ((mid & 0x1fff) << 13)) | 0;\n c = (((hi + (mid >>> 13)) | 0) + (w18 >>> 26)) | 0;\n w18 &= 0x3ffffff;\n o[0] = w0;\n o[1] = w1;\n o[2] = w2;\n o[3] = w3;\n o[4] = w4;\n o[5] = w5;\n o[6] = w6;\n o[7] = w7;\n o[8] = w8;\n o[9] = w9;\n o[10] = w10;\n o[11] = w11;\n o[12] = w12;\n o[13] = w13;\n o[14] = w14;\n o[15] = w15;\n o[16] = w16;\n o[17] = w17;\n o[18] = w18;\n if (c !== 0) {\n o[19] = c;\n out.length++;\n }\n return out;\n };\n\n // Polyfill comb\n if (!Math.imul) {\n comb10MulTo = smallMulTo;\n }\n\n function bigMulTo (self, num, out) {\n out.negative = num.negative ^ self.negative;\n out.length = self.length + num.length;\n\n var carry = 0;\n var hncarry = 0;\n for (var k = 0; k < out.length - 1; k++) {\n // Sum all words with the same `i + j = k` and accumulate `ncarry`,\n // note that ncarry could be >= 0x3ffffff\n var ncarry = hncarry;\n hncarry = 0;\n var rword = carry & 0x3ffffff;\n var maxJ = Math.min(k, num.length - 1);\n for (var j = Math.max(0, k - self.length + 1); j <= maxJ; j++) {\n var i = k - j;\n var a = self.words[i] | 0;\n var b = num.words[j] | 0;\n var r = a * b;\n\n var lo = r & 0x3ffffff;\n ncarry = (ncarry + ((r / 0x4000000) | 0)) | 0;\n lo = (lo + rword) | 0;\n rword = lo & 0x3ffffff;\n ncarry = (ncarry + (lo >>> 26)) | 0;\n\n hncarry += ncarry >>> 26;\n ncarry &= 0x3ffffff;\n }\n out.words[k] = rword;\n carry = ncarry;\n ncarry = hncarry;\n }\n if (carry !== 0) {\n out.words[k] = carry;\n } else {\n out.length--;\n }\n\n return out.strip();\n }\n\n function jumboMulTo (self, num, out) {\n var fftm = new FFTM();\n return fftm.mulp(self, num, out);\n }\n\n BN.prototype.mulTo = function mulTo (num, out) {\n var res;\n var len = this.length + num.length;\n if (this.length === 10 && num.length === 10) {\n res = comb10MulTo(this, num, out);\n } else if (len < 63) {\n res = smallMulTo(this, num, out);\n } else if (len < 1024) {\n res = bigMulTo(this, num, out);\n } else {\n res = jumboMulTo(this, num, out);\n }\n\n return res;\n };\n\n // Cooley-Tukey algorithm for FFT\n // slightly revisited to rely on looping instead of recursion\n\n function FFTM (x, y) {\n this.x = x;\n this.y = y;\n }\n\n FFTM.prototype.makeRBT = function makeRBT (N) {\n var t = new Array(N);\n var l = BN.prototype._countBits(N) - 1;\n for (var i = 0; i < N; i++) {\n t[i] = this.revBin(i, l, N);\n }\n\n return t;\n };\n\n // Returns binary-reversed representation of `x`\n FFTM.prototype.revBin = function revBin (x, l, N) {\n if (x === 0 || x === N - 1) return x;\n\n var rb = 0;\n for (var i = 0; i < l; i++) {\n rb |= (x & 1) << (l - i - 1);\n x >>= 1;\n }\n\n return rb;\n };\n\n // Performs \"tweedling\" phase, therefore 'emulating'\n // behaviour of the recursive algorithm\n FFTM.prototype.permute = function permute (rbt, rws, iws, rtws, itws, N) {\n for (var i = 0; i < N; i++) {\n rtws[i] = rws[rbt[i]];\n itws[i] = iws[rbt[i]];\n }\n };\n\n FFTM.prototype.transform = function transform (rws, iws, rtws, itws, N, rbt) {\n this.permute(rbt, rws, iws, rtws, itws, N);\n\n for (var s = 1; s < N; s <<= 1) {\n var l = s << 1;\n\n var rtwdf = Math.cos(2 * Math.PI / l);\n var itwdf = Math.sin(2 * Math.PI / l);\n\n for (var p = 0; p < N; p += l) {\n var rtwdf_ = rtwdf;\n var itwdf_ = itwdf;\n\n for (var j = 0; j < s; j++) {\n var re = rtws[p + j];\n var ie = itws[p + j];\n\n var ro = rtws[p + j + s];\n var io = itws[p + j + s];\n\n var rx = rtwdf_ * ro - itwdf_ * io;\n\n io = rtwdf_ * io + itwdf_ * ro;\n ro = rx;\n\n rtws[p + j] = re + ro;\n itws[p + j] = ie + io;\n\n rtws[p + j + s] = re - ro;\n itws[p + j + s] = ie - io;\n\n /* jshint maxdepth : false */\n if (j !== l) {\n rx = rtwdf * rtwdf_ - itwdf * itwdf_;\n\n itwdf_ = rtwdf * itwdf_ + itwdf * rtwdf_;\n rtwdf_ = rx;\n }\n }\n }\n }\n };\n\n FFTM.prototype.guessLen13b = function guessLen13b (n, m) {\n var N = Math.max(m, n) | 1;\n var odd = N & 1;\n var i = 0;\n for (N = N / 2 | 0; N; N = N >>> 1) {\n i++;\n }\n\n return 1 << i + 1 + odd;\n };\n\n FFTM.prototype.conjugate = function conjugate (rws, iws, N) {\n if (N <= 1) return;\n\n for (var i = 0; i < N / 2; i++) {\n var t = rws[i];\n\n rws[i] = rws[N - i - 1];\n rws[N - i - 1] = t;\n\n t = iws[i];\n\n iws[i] = -iws[N - i - 1];\n iws[N - i - 1] = -t;\n }\n };\n\n FFTM.prototype.normalize13b = function normalize13b (ws, N) {\n var carry = 0;\n for (var i = 0; i < N / 2; i++) {\n var w = Math.round(ws[2 * i + 1] / N) * 0x2000 +\n Math.round(ws[2 * i] / N) +\n carry;\n\n ws[i] = w & 0x3ffffff;\n\n if (w < 0x4000000) {\n carry = 0;\n } else {\n carry = w / 0x4000000 | 0;\n }\n }\n\n return ws;\n };\n\n FFTM.prototype.convert13b = function convert13b (ws, len, rws, N) {\n var carry = 0;\n for (var i = 0; i < len; i++) {\n carry = carry + (ws[i] | 0);\n\n rws[2 * i] = carry & 0x1fff; carry = carry >>> 13;\n rws[2 * i + 1] = carry & 0x1fff; carry = carry >>> 13;\n }\n\n // Pad with zeroes\n for (i = 2 * len; i < N; ++i) {\n rws[i] = 0;\n }\n\n assert(carry === 0);\n assert((carry & ~0x1fff) === 0);\n };\n\n FFTM.prototype.stub = function stub (N) {\n var ph = new Array(N);\n for (var i = 0; i < N; i++) {\n ph[i] = 0;\n }\n\n return ph;\n };\n\n FFTM.prototype.mulp = function mulp (x, y, out) {\n var N = 2 * this.guessLen13b(x.length, y.length);\n\n var rbt = this.makeRBT(N);\n\n var _ = this.stub(N);\n\n var rws = new Array(N);\n var rwst = new Array(N);\n var iwst = new Array(N);\n\n var nrws = new Array(N);\n var nrwst = new Array(N);\n var niwst = new Array(N);\n\n var rmws = out.words;\n rmws.length = N;\n\n this.convert13b(x.words, x.length, rws, N);\n this.convert13b(y.words, y.length, nrws, N);\n\n this.transform(rws, _, rwst, iwst, N, rbt);\n this.transform(nrws, _, nrwst, niwst, N, rbt);\n\n for (var i = 0; i < N; i++) {\n var rx = rwst[i] * nrwst[i] - iwst[i] * niwst[i];\n iwst[i] = rwst[i] * niwst[i] + iwst[i] * nrwst[i];\n rwst[i] = rx;\n }\n\n this.conjugate(rwst, iwst, N);\n this.transform(rwst, iwst, rmws, _, N, rbt);\n this.conjugate(rmws, _, N);\n this.normalize13b(rmws, N);\n\n out.negative = x.negative ^ y.negative;\n out.length = x.length + y.length;\n return out.strip();\n };\n\n // Multiply `this` by `num`\n BN.prototype.mul = function mul (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return this.mulTo(num, out);\n };\n\n // Multiply employing FFT\n BN.prototype.mulf = function mulf (num) {\n var out = new BN(null);\n out.words = new Array(this.length + num.length);\n return jumboMulTo(this, num, out);\n };\n\n // In-place Multiplication\n BN.prototype.imul = function imul (num) {\n return this.clone().mulTo(num, this);\n };\n\n BN.prototype.imuln = function imuln (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n\n // Carry\n var carry = 0;\n for (var i = 0; i < this.length; i++) {\n var w = (this.words[i] | 0) * num;\n var lo = (w & 0x3ffffff) + (carry & 0x3ffffff);\n carry >>= 26;\n carry += (w / 0x4000000) | 0;\n // NOTE: lo is 27bit maximum\n carry += lo >>> 26;\n this.words[i] = lo & 0x3ffffff;\n }\n\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n\n return this;\n };\n\n BN.prototype.muln = function muln (num) {\n return this.clone().imuln(num);\n };\n\n // `this` * `this`\n BN.prototype.sqr = function sqr () {\n return this.mul(this);\n };\n\n // `this` * `this` in-place\n BN.prototype.isqr = function isqr () {\n return this.imul(this.clone());\n };\n\n // Math.pow(`this`, `num`)\n BN.prototype.pow = function pow (num) {\n var w = toBitArray(num);\n if (w.length === 0) return new BN(1);\n\n // Skip leading zeroes\n var res = this;\n for (var i = 0; i < w.length; i++, res = res.sqr()) {\n if (w[i] !== 0) break;\n }\n\n if (++i < w.length) {\n for (var q = res.sqr(); i < w.length; i++, q = q.sqr()) {\n if (w[i] === 0) continue;\n\n res = res.mul(q);\n }\n }\n\n return res;\n };\n\n // Shift-left in-place\n BN.prototype.iushln = function iushln (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n var carryMask = (0x3ffffff >>> (26 - r)) << (26 - r);\n var i;\n\n if (r !== 0) {\n var carry = 0;\n\n for (i = 0; i < this.length; i++) {\n var newCarry = this.words[i] & carryMask;\n var c = ((this.words[i] | 0) - newCarry) << r;\n this.words[i] = c | carry;\n carry = newCarry >>> (26 - r);\n }\n\n if (carry) {\n this.words[i] = carry;\n this.length++;\n }\n }\n\n if (s !== 0) {\n for (i = this.length - 1; i >= 0; i--) {\n this.words[i + s] = this.words[i];\n }\n\n for (i = 0; i < s; i++) {\n this.words[i] = 0;\n }\n\n this.length += s;\n }\n\n return this.strip();\n };\n\n BN.prototype.ishln = function ishln (bits) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushln(bits);\n };\n\n // Shift-right in-place\n // NOTE: `hint` is a lowest bit before trailing zeroes\n // NOTE: if `extended` is present - it will be filled with destroyed bits\n BN.prototype.iushrn = function iushrn (bits, hint, extended) {\n assert(typeof bits === 'number' && bits >= 0);\n var h;\n if (hint) {\n h = (hint - (hint % 26)) / 26;\n } else {\n h = 0;\n }\n\n var r = bits % 26;\n var s = Math.min((bits - r) / 26, this.length);\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n var maskedWords = extended;\n\n h -= s;\n h = Math.max(0, h);\n\n // Extended mode, copy masked part\n if (maskedWords) {\n for (var i = 0; i < s; i++) {\n maskedWords.words[i] = this.words[i];\n }\n maskedWords.length = s;\n }\n\n if (s === 0) {\n // No-op, we should not move anything at all\n } else if (this.length > s) {\n this.length -= s;\n for (i = 0; i < this.length; i++) {\n this.words[i] = this.words[i + s];\n }\n } else {\n this.words[0] = 0;\n this.length = 1;\n }\n\n var carry = 0;\n for (i = this.length - 1; i >= 0 && (carry !== 0 || i >= h); i--) {\n var word = this.words[i] | 0;\n this.words[i] = (carry << (26 - r)) | (word >>> r);\n carry = word & mask;\n }\n\n // Push carried bits as a mask\n if (maskedWords && carry !== 0) {\n maskedWords.words[maskedWords.length++] = carry;\n }\n\n if (this.length === 0) {\n this.words[0] = 0;\n this.length = 1;\n }\n\n return this.strip();\n };\n\n BN.prototype.ishrn = function ishrn (bits, hint, extended) {\n // TODO(indutny): implement me\n assert(this.negative === 0);\n return this.iushrn(bits, hint, extended);\n };\n\n // Shift-left\n BN.prototype.shln = function shln (bits) {\n return this.clone().ishln(bits);\n };\n\n BN.prototype.ushln = function ushln (bits) {\n return this.clone().iushln(bits);\n };\n\n // Shift-right\n BN.prototype.shrn = function shrn (bits) {\n return this.clone().ishrn(bits);\n };\n\n BN.prototype.ushrn = function ushrn (bits) {\n return this.clone().iushrn(bits);\n };\n\n // Test if n bit is set\n BN.prototype.testn = function testn (bit) {\n assert(typeof bit === 'number' && bit >= 0);\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) return false;\n\n // Check bit and return\n var w = this.words[s];\n\n return !!(w & q);\n };\n\n // Return only lowers bits of number (in-place)\n BN.prototype.imaskn = function imaskn (bits) {\n assert(typeof bits === 'number' && bits >= 0);\n var r = bits % 26;\n var s = (bits - r) / 26;\n\n assert(this.negative === 0, 'imaskn works only with positive numbers');\n\n if (this.length <= s) {\n return this;\n }\n\n if (r !== 0) {\n s++;\n }\n this.length = Math.min(s, this.length);\n\n if (r !== 0) {\n var mask = 0x3ffffff ^ ((0x3ffffff >>> r) << r);\n this.words[this.length - 1] &= mask;\n }\n\n return this.strip();\n };\n\n // Return only lowers bits of number\n BN.prototype.maskn = function maskn (bits) {\n return this.clone().imaskn(bits);\n };\n\n // Add plain number `num` to `this`\n BN.prototype.iaddn = function iaddn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.isubn(-num);\n\n // Possible sign change\n if (this.negative !== 0) {\n if (this.length === 1 && (this.words[0] | 0) < num) {\n this.words[0] = num - (this.words[0] | 0);\n this.negative = 0;\n return this;\n }\n\n this.negative = 0;\n this.isubn(num);\n this.negative = 1;\n return this;\n }\n\n // Add without checks\n return this._iaddn(num);\n };\n\n BN.prototype._iaddn = function _iaddn (num) {\n this.words[0] += num;\n\n // Carry\n for (var i = 0; i < this.length && this.words[i] >= 0x4000000; i++) {\n this.words[i] -= 0x4000000;\n if (i === this.length - 1) {\n this.words[i + 1] = 1;\n } else {\n this.words[i + 1]++;\n }\n }\n this.length = Math.max(this.length, i + 1);\n\n return this;\n };\n\n // Subtract plain number `num` from `this`\n BN.prototype.isubn = function isubn (num) {\n assert(typeof num === 'number');\n assert(num < 0x4000000);\n if (num < 0) return this.iaddn(-num);\n\n if (this.negative !== 0) {\n this.negative = 0;\n this.iaddn(num);\n this.negative = 1;\n return this;\n }\n\n this.words[0] -= num;\n\n if (this.length === 1 && this.words[0] < 0) {\n this.words[0] = -this.words[0];\n this.negative = 1;\n } else {\n // Carry\n for (var i = 0; i < this.length && this.words[i] < 0; i++) {\n this.words[i] += 0x4000000;\n this.words[i + 1] -= 1;\n }\n }\n\n return this.strip();\n };\n\n BN.prototype.addn = function addn (num) {\n return this.clone().iaddn(num);\n };\n\n BN.prototype.subn = function subn (num) {\n return this.clone().isubn(num);\n };\n\n BN.prototype.iabs = function iabs () {\n this.negative = 0;\n\n return this;\n };\n\n BN.prototype.abs = function abs () {\n return this.clone().iabs();\n };\n\n BN.prototype._ishlnsubmul = function _ishlnsubmul (num, mul, shift) {\n var len = num.length + shift;\n var i;\n\n this._expand(len);\n\n var w;\n var carry = 0;\n for (i = 0; i < num.length; i++) {\n w = (this.words[i + shift] | 0) + carry;\n var right = (num.words[i] | 0) * mul;\n w -= right & 0x3ffffff;\n carry = (w >> 26) - ((right / 0x4000000) | 0);\n this.words[i + shift] = w & 0x3ffffff;\n }\n for (; i < this.length - shift; i++) {\n w = (this.words[i + shift] | 0) + carry;\n carry = w >> 26;\n this.words[i + shift] = w & 0x3ffffff;\n }\n\n if (carry === 0) return this.strip();\n\n // Subtraction overflow\n assert(carry === -1);\n carry = 0;\n for (i = 0; i < this.length; i++) {\n w = -(this.words[i] | 0) + carry;\n carry = w >> 26;\n this.words[i] = w & 0x3ffffff;\n }\n this.negative = 1;\n\n return this.strip();\n };\n\n BN.prototype._wordDiv = function _wordDiv (num, mode) {\n var shift = this.length - num.length;\n\n var a = this.clone();\n var b = num;\n\n // Normalize\n var bhi = b.words[b.length - 1] | 0;\n var bhiBits = this._countBits(bhi);\n shift = 26 - bhiBits;\n if (shift !== 0) {\n b = b.ushln(shift);\n a.iushln(shift);\n bhi = b.words[b.length - 1] | 0;\n }\n\n // Initialize quotient\n var m = a.length - b.length;\n var q;\n\n if (mode !== 'mod') {\n q = new BN(null);\n q.length = m + 1;\n q.words = new Array(q.length);\n for (var i = 0; i < q.length; i++) {\n q.words[i] = 0;\n }\n }\n\n var diff = a.clone()._ishlnsubmul(b, 1, m);\n if (diff.negative === 0) {\n a = diff;\n if (q) {\n q.words[m] = 1;\n }\n }\n\n for (var j = m - 1; j >= 0; j--) {\n var qj = (a.words[b.length + j] | 0) * 0x4000000 +\n (a.words[b.length + j - 1] | 0);\n\n // NOTE: (qj / bhi) is (0x3ffffff * 0x4000000 + 0x3ffffff) / 0x2000000 max\n // (0x7ffffff)\n qj = Math.min((qj / bhi) | 0, 0x3ffffff);\n\n a._ishlnsubmul(b, qj, j);\n while (a.negative !== 0) {\n qj--;\n a.negative = 0;\n a._ishlnsubmul(b, 1, j);\n if (!a.isZero()) {\n a.negative ^= 1;\n }\n }\n if (q) {\n q.words[j] = qj;\n }\n }\n if (q) {\n q.strip();\n }\n a.strip();\n\n // Denormalize\n if (mode !== 'div' && shift !== 0) {\n a.iushrn(shift);\n }\n\n return {\n div: q || null,\n mod: a\n };\n };\n\n // NOTE: 1) `mode` can be set to `mod` to request mod only,\n // to `div` to request div only, or be absent to\n // request both div & mod\n // 2) `positive` is true if unsigned mod is requested\n BN.prototype.divmod = function divmod (num, mode, positive) {\n assert(!num.isZero());\n\n if (this.isZero()) {\n return {\n div: new BN(0),\n mod: new BN(0)\n };\n }\n\n var div, mod, res;\n if (this.negative !== 0 && num.negative === 0) {\n res = this.neg().divmod(num, mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.iadd(num);\n }\n }\n\n return {\n div: div,\n mod: mod\n };\n }\n\n if (this.negative === 0 && num.negative !== 0) {\n res = this.divmod(num.neg(), mode);\n\n if (mode !== 'mod') {\n div = res.div.neg();\n }\n\n return {\n div: div,\n mod: res.mod\n };\n }\n\n if ((this.negative & num.negative) !== 0) {\n res = this.neg().divmod(num.neg(), mode);\n\n if (mode !== 'div') {\n mod = res.mod.neg();\n if (positive && mod.negative !== 0) {\n mod.isub(num);\n }\n }\n\n return {\n div: res.div,\n mod: mod\n };\n }\n\n // Both numbers are positive at this point\n\n // Strip both numbers to approximate shift value\n if (num.length > this.length || this.cmp(num) < 0) {\n return {\n div: new BN(0),\n mod: this\n };\n }\n\n // Very short reduction\n if (num.length === 1) {\n if (mode === 'div') {\n return {\n div: this.divn(num.words[0]),\n mod: null\n };\n }\n\n if (mode === 'mod') {\n return {\n div: null,\n mod: new BN(this.modn(num.words[0]))\n };\n }\n\n return {\n div: this.divn(num.words[0]),\n mod: new BN(this.modn(num.words[0]))\n };\n }\n\n return this._wordDiv(num, mode);\n };\n\n // Find `this` / `num`\n BN.prototype.div = function div (num) {\n return this.divmod(num, 'div', false).div;\n };\n\n // Find `this` % `num`\n BN.prototype.mod = function mod (num) {\n return this.divmod(num, 'mod', false).mod;\n };\n\n BN.prototype.umod = function umod (num) {\n return this.divmod(num, 'mod', true).mod;\n };\n\n // Find Round(`this` / `num`)\n BN.prototype.divRound = function divRound (num) {\n var dm = this.divmod(num);\n\n // Fast case - exact division\n if (dm.mod.isZero()) return dm.div;\n\n var mod = dm.div.negative !== 0 ? dm.mod.isub(num) : dm.mod;\n\n var half = num.ushrn(1);\n var r2 = num.andln(1);\n var cmp = mod.cmp(half);\n\n // Round down\n if (cmp < 0 || r2 === 1 && cmp === 0) return dm.div;\n\n // Round up\n return dm.div.negative !== 0 ? dm.div.isubn(1) : dm.div.iaddn(1);\n };\n\n BN.prototype.modn = function modn (num) {\n assert(num <= 0x3ffffff);\n var p = (1 << 26) % num;\n\n var acc = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n acc = (p * acc + (this.words[i] | 0)) % num;\n }\n\n return acc;\n };\n\n // In-place division by number\n BN.prototype.idivn = function idivn (num) {\n assert(num <= 0x3ffffff);\n\n var carry = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var w = (this.words[i] | 0) + carry * 0x4000000;\n this.words[i] = (w / num) | 0;\n carry = w % num;\n }\n\n return this.strip();\n };\n\n BN.prototype.divn = function divn (num) {\n return this.clone().idivn(num);\n };\n\n BN.prototype.egcd = function egcd (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var x = this;\n var y = p.clone();\n\n if (x.negative !== 0) {\n x = x.umod(p);\n } else {\n x = x.clone();\n }\n\n // A * x + B * y = x\n var A = new BN(1);\n var B = new BN(0);\n\n // C * x + D * y = y\n var C = new BN(0);\n var D = new BN(1);\n\n var g = 0;\n\n while (x.isEven() && y.isEven()) {\n x.iushrn(1);\n y.iushrn(1);\n ++g;\n }\n\n var yp = y.clone();\n var xp = x.clone();\n\n while (!x.isZero()) {\n for (var i = 0, im = 1; (x.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n x.iushrn(i);\n while (i-- > 0) {\n if (A.isOdd() || B.isOdd()) {\n A.iadd(yp);\n B.isub(xp);\n }\n\n A.iushrn(1);\n B.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (y.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n y.iushrn(j);\n while (j-- > 0) {\n if (C.isOdd() || D.isOdd()) {\n C.iadd(yp);\n D.isub(xp);\n }\n\n C.iushrn(1);\n D.iushrn(1);\n }\n }\n\n if (x.cmp(y) >= 0) {\n x.isub(y);\n A.isub(C);\n B.isub(D);\n } else {\n y.isub(x);\n C.isub(A);\n D.isub(B);\n }\n }\n\n return {\n a: C,\n b: D,\n gcd: y.iushln(g)\n };\n };\n\n // This is reduced incarnation of the binary EEA\n // above, designated to invert members of the\n // _prime_ fields F(p) at a maximal speed\n BN.prototype._invmp = function _invmp (p) {\n assert(p.negative === 0);\n assert(!p.isZero());\n\n var a = this;\n var b = p.clone();\n\n if (a.negative !== 0) {\n a = a.umod(p);\n } else {\n a = a.clone();\n }\n\n var x1 = new BN(1);\n var x2 = new BN(0);\n\n var delta = b.clone();\n\n while (a.cmpn(1) > 0 && b.cmpn(1) > 0) {\n for (var i = 0, im = 1; (a.words[0] & im) === 0 && i < 26; ++i, im <<= 1);\n if (i > 0) {\n a.iushrn(i);\n while (i-- > 0) {\n if (x1.isOdd()) {\n x1.iadd(delta);\n }\n\n x1.iushrn(1);\n }\n }\n\n for (var j = 0, jm = 1; (b.words[0] & jm) === 0 && j < 26; ++j, jm <<= 1);\n if (j > 0) {\n b.iushrn(j);\n while (j-- > 0) {\n if (x2.isOdd()) {\n x2.iadd(delta);\n }\n\n x2.iushrn(1);\n }\n }\n\n if (a.cmp(b) >= 0) {\n a.isub(b);\n x1.isub(x2);\n } else {\n b.isub(a);\n x2.isub(x1);\n }\n }\n\n var res;\n if (a.cmpn(1) === 0) {\n res = x1;\n } else {\n res = x2;\n }\n\n if (res.cmpn(0) < 0) {\n res.iadd(p);\n }\n\n return res;\n };\n\n BN.prototype.gcd = function gcd (num) {\n if (this.isZero()) return num.abs();\n if (num.isZero()) return this.abs();\n\n var a = this.clone();\n var b = num.clone();\n a.negative = 0;\n b.negative = 0;\n\n // Remove common factor of two\n for (var shift = 0; a.isEven() && b.isEven(); shift++) {\n a.iushrn(1);\n b.iushrn(1);\n }\n\n do {\n while (a.isEven()) {\n a.iushrn(1);\n }\n while (b.isEven()) {\n b.iushrn(1);\n }\n\n var r = a.cmp(b);\n if (r < 0) {\n // Swap `a` and `b` to make `a` always bigger than `b`\n var t = a;\n a = b;\n b = t;\n } else if (r === 0 || b.cmpn(1) === 0) {\n break;\n }\n\n a.isub(b);\n } while (true);\n\n return b.iushln(shift);\n };\n\n // Invert number in the field F(num)\n BN.prototype.invm = function invm (num) {\n return this.egcd(num).a.umod(num);\n };\n\n BN.prototype.isEven = function isEven () {\n return (this.words[0] & 1) === 0;\n };\n\n BN.prototype.isOdd = function isOdd () {\n return (this.words[0] & 1) === 1;\n };\n\n // And first word and num\n BN.prototype.andln = function andln (num) {\n return this.words[0] & num;\n };\n\n // Increment at the bit position in-line\n BN.prototype.bincn = function bincn (bit) {\n assert(typeof bit === 'number');\n var r = bit % 26;\n var s = (bit - r) / 26;\n var q = 1 << r;\n\n // Fast case: bit is much higher than all existing words\n if (this.length <= s) {\n this._expand(s + 1);\n this.words[s] |= q;\n return this;\n }\n\n // Add bit and propagate, if needed\n var carry = q;\n for (var i = s; carry !== 0 && i < this.length; i++) {\n var w = this.words[i] | 0;\n w += carry;\n carry = w >>> 26;\n w &= 0x3ffffff;\n this.words[i] = w;\n }\n if (carry !== 0) {\n this.words[i] = carry;\n this.length++;\n }\n return this;\n };\n\n BN.prototype.isZero = function isZero () {\n return this.length === 1 && this.words[0] === 0;\n };\n\n BN.prototype.cmpn = function cmpn (num) {\n var negative = num < 0;\n\n if (this.negative !== 0 && !negative) return -1;\n if (this.negative === 0 && negative) return 1;\n\n this.strip();\n\n var res;\n if (this.length > 1) {\n res = 1;\n } else {\n if (negative) {\n num = -num;\n }\n\n assert(num <= 0x3ffffff, 'Number is too big');\n\n var w = this.words[0] | 0;\n res = w === num ? 0 : w < num ? -1 : 1;\n }\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Compare two numbers and return:\n // 1 - if `this` > `num`\n // 0 - if `this` == `num`\n // -1 - if `this` < `num`\n BN.prototype.cmp = function cmp (num) {\n if (this.negative !== 0 && num.negative === 0) return -1;\n if (this.negative === 0 && num.negative !== 0) return 1;\n\n var res = this.ucmp(num);\n if (this.negative !== 0) return -res | 0;\n return res;\n };\n\n // Unsigned comparison\n BN.prototype.ucmp = function ucmp (num) {\n // At this point both numbers have the same sign\n if (this.length > num.length) return 1;\n if (this.length < num.length) return -1;\n\n var res = 0;\n for (var i = this.length - 1; i >= 0; i--) {\n var a = this.words[i] | 0;\n var b = num.words[i] | 0;\n\n if (a === b) continue;\n if (a < b) {\n res = -1;\n } else if (a > b) {\n res = 1;\n }\n break;\n }\n return res;\n };\n\n BN.prototype.gtn = function gtn (num) {\n return this.cmpn(num) === 1;\n };\n\n BN.prototype.gt = function gt (num) {\n return this.cmp(num) === 1;\n };\n\n BN.prototype.gten = function gten (num) {\n return this.cmpn(num) >= 0;\n };\n\n BN.prototype.gte = function gte (num) {\n return this.cmp(num) >= 0;\n };\n\n BN.prototype.ltn = function ltn (num) {\n return this.cmpn(num) === -1;\n };\n\n BN.prototype.lt = function lt (num) {\n return this.cmp(num) === -1;\n };\n\n BN.prototype.lten = function lten (num) {\n return this.cmpn(num) <= 0;\n };\n\n BN.prototype.lte = function lte (num) {\n return this.cmp(num) <= 0;\n };\n\n BN.prototype.eqn = function eqn (num) {\n return this.cmpn(num) === 0;\n };\n\n BN.prototype.eq = function eq (num) {\n return this.cmp(num) === 0;\n };\n\n //\n // A reduce context, could be using montgomery or something better, depending\n // on the `m` itself.\n //\n BN.red = function red (num) {\n return new Red(num);\n };\n\n BN.prototype.toRed = function toRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n assert(this.negative === 0, 'red works only with positives');\n return ctx.convertTo(this)._forceRed(ctx);\n };\n\n BN.prototype.fromRed = function fromRed () {\n assert(this.red, 'fromRed works only with numbers in reduction context');\n return this.red.convertFrom(this);\n };\n\n BN.prototype._forceRed = function _forceRed (ctx) {\n this.red = ctx;\n return this;\n };\n\n BN.prototype.forceRed = function forceRed (ctx) {\n assert(!this.red, 'Already a number in reduction context');\n return this._forceRed(ctx);\n };\n\n BN.prototype.redAdd = function redAdd (num) {\n assert(this.red, 'redAdd works only with red numbers');\n return this.red.add(this, num);\n };\n\n BN.prototype.redIAdd = function redIAdd (num) {\n assert(this.red, 'redIAdd works only with red numbers');\n return this.red.iadd(this, num);\n };\n\n BN.prototype.redSub = function redSub (num) {\n assert(this.red, 'redSub works only with red numbers');\n return this.red.sub(this, num);\n };\n\n BN.prototype.redISub = function redISub (num) {\n assert(this.red, 'redISub works only with red numbers');\n return this.red.isub(this, num);\n };\n\n BN.prototype.redShl = function redShl (num) {\n assert(this.red, 'redShl works only with red numbers');\n return this.red.shl(this, num);\n };\n\n BN.prototype.redMul = function redMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.mul(this, num);\n };\n\n BN.prototype.redIMul = function redIMul (num) {\n assert(this.red, 'redMul works only with red numbers');\n this.red._verify2(this, num);\n return this.red.imul(this, num);\n };\n\n BN.prototype.redSqr = function redSqr () {\n assert(this.red, 'redSqr works only with red numbers');\n this.red._verify1(this);\n return this.red.sqr(this);\n };\n\n BN.prototype.redISqr = function redISqr () {\n assert(this.red, 'redISqr works only with red numbers');\n this.red._verify1(this);\n return this.red.isqr(this);\n };\n\n // Square root over p\n BN.prototype.redSqrt = function redSqrt () {\n assert(this.red, 'redSqrt works only with red numbers');\n this.red._verify1(this);\n return this.red.sqrt(this);\n };\n\n BN.prototype.redInvm = function redInvm () {\n assert(this.red, 'redInvm works only with red numbers');\n this.red._verify1(this);\n return this.red.invm(this);\n };\n\n // Return negative clone of `this` % `red modulo`\n BN.prototype.redNeg = function redNeg () {\n assert(this.red, 'redNeg works only with red numbers');\n this.red._verify1(this);\n return this.red.neg(this);\n };\n\n BN.prototype.redPow = function redPow (num) {\n assert(this.red && !num.red, 'redPow(normalNum)');\n this.red._verify1(this);\n return this.red.pow(this, num);\n };\n\n // Prime numbers with efficient reduction\n var primes = {\n k256: null,\n p224: null,\n p192: null,\n p25519: null\n };\n\n // Pseudo-Mersenne prime\n function MPrime (name, p) {\n // P = 2 ^ N - K\n this.name = name;\n this.p = new BN(p, 16);\n this.n = this.p.bitLength();\n this.k = new BN(1).iushln(this.n).isub(this.p);\n\n this.tmp = this._tmp();\n }\n\n MPrime.prototype._tmp = function _tmp () {\n var tmp = new BN(null);\n tmp.words = new Array(Math.ceil(this.n / 13));\n return tmp;\n };\n\n MPrime.prototype.ireduce = function ireduce (num) {\n // Assumes that `num` is less than `P^2`\n // num = HI * (2 ^ N - K) + HI * K + LO = HI * K + LO (mod P)\n var r = num;\n var rlen;\n\n do {\n this.split(r, this.tmp);\n r = this.imulK(r);\n r = r.iadd(this.tmp);\n rlen = r.bitLength();\n } while (rlen > this.n);\n\n var cmp = rlen < this.n ? -1 : r.ucmp(this.p);\n if (cmp === 0) {\n r.words[0] = 0;\n r.length = 1;\n } else if (cmp > 0) {\n r.isub(this.p);\n } else {\n if (r.strip !== undefined) {\n // r is BN v4 instance\n r.strip();\n } else {\n // r is BN v5 instance\n r._strip();\n }\n }\n\n return r;\n };\n\n MPrime.prototype.split = function split (input, out) {\n input.iushrn(this.n, 0, out);\n };\n\n MPrime.prototype.imulK = function imulK (num) {\n return num.imul(this.k);\n };\n\n function K256 () {\n MPrime.call(\n this,\n 'k256',\n 'ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f');\n }\n inherits(K256, MPrime);\n\n K256.prototype.split = function split (input, output) {\n // 256 = 9 * 26 + 22\n var mask = 0x3fffff;\n\n var outLen = Math.min(input.length, 9);\n for (var i = 0; i < outLen; i++) {\n output.words[i] = input.words[i];\n }\n output.length = outLen;\n\n if (input.length <= 9) {\n input.words[0] = 0;\n input.length = 1;\n return;\n }\n\n // Shift by 9 limbs\n var prev = input.words[9];\n output.words[output.length++] = prev & mask;\n\n for (i = 10; i < input.length; i++) {\n var next = input.words[i] | 0;\n input.words[i - 10] = ((next & mask) << 4) | (prev >>> 22);\n prev = next;\n }\n prev >>>= 22;\n input.words[i - 10] = prev;\n if (prev === 0 && input.length > 10) {\n input.length -= 10;\n } else {\n input.length -= 9;\n }\n };\n\n K256.prototype.imulK = function imulK (num) {\n // K = 0x1000003d1 = [ 0x40, 0x3d1 ]\n num.words[num.length] = 0;\n num.words[num.length + 1] = 0;\n num.length += 2;\n\n // bounded at: 0x40 * 0x3ffffff + 0x3d0 = 0x100000390\n var lo = 0;\n for (var i = 0; i < num.length; i++) {\n var w = num.words[i] | 0;\n lo += w * 0x3d1;\n num.words[i] = lo & 0x3ffffff;\n lo = w * 0x40 + ((lo / 0x4000000) | 0);\n }\n\n // Fast length reduction\n if (num.words[num.length - 1] === 0) {\n num.length--;\n if (num.words[num.length - 1] === 0) {\n num.length--;\n }\n }\n return num;\n };\n\n function P224 () {\n MPrime.call(\n this,\n 'p224',\n 'ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001');\n }\n inherits(P224, MPrime);\n\n function P192 () {\n MPrime.call(\n this,\n 'p192',\n 'ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff');\n }\n inherits(P192, MPrime);\n\n function P25519 () {\n // 2 ^ 255 - 19\n MPrime.call(\n this,\n '25519',\n '7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed');\n }\n inherits(P25519, MPrime);\n\n P25519.prototype.imulK = function imulK (num) {\n // K = 0x13\n var carry = 0;\n for (var i = 0; i < num.length; i++) {\n var hi = (num.words[i] | 0) * 0x13 + carry;\n var lo = hi & 0x3ffffff;\n hi >>>= 26;\n\n num.words[i] = lo;\n carry = hi;\n }\n if (carry !== 0) {\n num.words[num.length++] = carry;\n }\n return num;\n };\n\n // Exported mostly for testing purposes, use plain name instead\n BN._prime = function prime (name) {\n // Cached version of prime\n if (primes[name]) return primes[name];\n\n var prime;\n if (name === 'k256') {\n prime = new K256();\n } else if (name === 'p224') {\n prime = new P224();\n } else if (name === 'p192') {\n prime = new P192();\n } else if (name === 'p25519') {\n prime = new P25519();\n } else {\n throw new Error('Unknown prime ' + name);\n }\n primes[name] = prime;\n\n return prime;\n };\n\n //\n // Base reduction engine\n //\n function Red (m) {\n if (typeof m === 'string') {\n var prime = BN._prime(m);\n this.m = prime.p;\n this.prime = prime;\n } else {\n assert(m.gtn(1), 'modulus must be greater than 1');\n this.m = m;\n this.prime = null;\n }\n }\n\n Red.prototype._verify1 = function _verify1 (a) {\n assert(a.negative === 0, 'red works only with positives');\n assert(a.red, 'red works only with red numbers');\n };\n\n Red.prototype._verify2 = function _verify2 (a, b) {\n assert((a.negative | b.negative) === 0, 'red works only with positives');\n assert(a.red && a.red === b.red,\n 'red works only with red numbers');\n };\n\n Red.prototype.imod = function imod (a) {\n if (this.prime) return this.prime.ireduce(a)._forceRed(this);\n return a.umod(this.m)._forceRed(this);\n };\n\n Red.prototype.neg = function neg (a) {\n if (a.isZero()) {\n return a.clone();\n }\n\n return this.m.sub(a)._forceRed(this);\n };\n\n Red.prototype.add = function add (a, b) {\n this._verify2(a, b);\n\n var res = a.add(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.iadd = function iadd (a, b) {\n this._verify2(a, b);\n\n var res = a.iadd(b);\n if (res.cmp(this.m) >= 0) {\n res.isub(this.m);\n }\n return res;\n };\n\n Red.prototype.sub = function sub (a, b) {\n this._verify2(a, b);\n\n var res = a.sub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res._forceRed(this);\n };\n\n Red.prototype.isub = function isub (a, b) {\n this._verify2(a, b);\n\n var res = a.isub(b);\n if (res.cmpn(0) < 0) {\n res.iadd(this.m);\n }\n return res;\n };\n\n Red.prototype.shl = function shl (a, num) {\n this._verify1(a);\n return this.imod(a.ushln(num));\n };\n\n Red.prototype.imul = function imul (a, b) {\n this._verify2(a, b);\n return this.imod(a.imul(b));\n };\n\n Red.prototype.mul = function mul (a, b) {\n this._verify2(a, b);\n return this.imod(a.mul(b));\n };\n\n Red.prototype.isqr = function isqr (a) {\n return this.imul(a, a.clone());\n };\n\n Red.prototype.sqr = function sqr (a) {\n return this.mul(a, a);\n };\n\n Red.prototype.sqrt = function sqrt (a) {\n if (a.isZero()) return a.clone();\n\n var mod3 = this.m.andln(3);\n assert(mod3 % 2 === 1);\n\n // Fast case\n if (mod3 === 3) {\n var pow = this.m.add(new BN(1)).iushrn(2);\n return this.pow(a, pow);\n }\n\n // Tonelli-Shanks algorithm (Totally unoptimized and slow)\n //\n // Find Q and S, that Q * 2 ^ S = (P - 1)\n var q = this.m.subn(1);\n var s = 0;\n while (!q.isZero() && q.andln(1) === 0) {\n s++;\n q.iushrn(1);\n }\n assert(!q.isZero());\n\n var one = new BN(1).toRed(this);\n var nOne = one.redNeg();\n\n // Find quadratic non-residue\n // NOTE: Max is such because of generalized Riemann hypothesis.\n var lpow = this.m.subn(1).iushrn(1);\n var z = this.m.bitLength();\n z = new BN(2 * z * z).toRed(this);\n\n while (this.pow(z, lpow).cmp(nOne) !== 0) {\n z.redIAdd(nOne);\n }\n\n var c = this.pow(z, q);\n var r = this.pow(a, q.addn(1).iushrn(1));\n var t = this.pow(a, q);\n var m = s;\n while (t.cmp(one) !== 0) {\n var tmp = t;\n for (var i = 0; tmp.cmp(one) !== 0; i++) {\n tmp = tmp.redSqr();\n }\n assert(i < m);\n var b = this.pow(c, new BN(1).iushln(m - i - 1));\n\n r = r.redMul(b);\n c = b.redSqr();\n t = t.redMul(c);\n m = i;\n }\n\n return r;\n };\n\n Red.prototype.invm = function invm (a) {\n var inv = a._invmp(this.m);\n if (inv.negative !== 0) {\n inv.negative = 0;\n return this.imod(inv).redNeg();\n } else {\n return this.imod(inv);\n }\n };\n\n Red.prototype.pow = function pow (a, num) {\n if (num.isZero()) return new BN(1).toRed(this);\n if (num.cmpn(1) === 0) return a.clone();\n\n var windowSize = 4;\n var wnd = new Array(1 << windowSize);\n wnd[0] = new BN(1).toRed(this);\n wnd[1] = a;\n for (var i = 2; i < wnd.length; i++) {\n wnd[i] = this.mul(wnd[i - 1], a);\n }\n\n var res = wnd[0];\n var current = 0;\n var currentLen = 0;\n var start = num.bitLength() % 26;\n if (start === 0) {\n start = 26;\n }\n\n for (i = num.length - 1; i >= 0; i--) {\n var word = num.words[i];\n for (var j = start - 1; j >= 0; j--) {\n var bit = (word >> j) & 1;\n if (res !== wnd[0]) {\n res = this.sqr(res);\n }\n\n if (bit === 0 && current === 0) {\n currentLen = 0;\n continue;\n }\n\n current <<= 1;\n current |= bit;\n currentLen++;\n if (currentLen !== windowSize && (i !== 0 || j !== 0)) continue;\n\n res = this.mul(res, wnd[current]);\n currentLen = 0;\n current = 0;\n }\n start = 26;\n }\n\n return res;\n };\n\n Red.prototype.convertTo = function convertTo (num) {\n var r = num.umod(this.m);\n\n return r === num ? r.clone() : r;\n };\n\n Red.prototype.convertFrom = function convertFrom (num) {\n var res = num.clone();\n res.red = null;\n return res;\n };\n\n //\n // Montgomery method engine\n //\n\n BN.mont = function mont (num) {\n return new Mont(num);\n };\n\n function Mont (m) {\n Red.call(this, m);\n\n this.shift = this.m.bitLength();\n if (this.shift % 26 !== 0) {\n this.shift += 26 - (this.shift % 26);\n }\n\n this.r = new BN(1).iushln(this.shift);\n this.r2 = this.imod(this.r.sqr());\n this.rinv = this.r._invmp(this.m);\n\n this.minv = this.rinv.mul(this.r).isubn(1).div(this.m);\n this.minv = this.minv.umod(this.r);\n this.minv = this.r.sub(this.minv);\n }\n inherits(Mont, Red);\n\n Mont.prototype.convertTo = function convertTo (num) {\n return this.imod(num.ushln(this.shift));\n };\n\n Mont.prototype.convertFrom = function convertFrom (num) {\n var r = this.imod(num.mul(this.rinv));\n r.red = null;\n return r;\n };\n\n Mont.prototype.imul = function imul (a, b) {\n if (a.isZero() || b.isZero()) {\n a.words[0] = 0;\n a.length = 1;\n return a;\n }\n\n var t = a.imul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.mul = function mul (a, b) {\n if (a.isZero() || b.isZero()) return new BN(0)._forceRed(this);\n\n var t = a.mul(b);\n var c = t.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m);\n var u = t.isub(c).iushrn(this.shift);\n var res = u;\n if (u.cmp(this.m) >= 0) {\n res = u.isub(this.m);\n } else if (u.cmpn(0) < 0) {\n res = u.iadd(this.m);\n }\n\n return res._forceRed(this);\n };\n\n Mont.prototype.invm = function invm (a) {\n // (AR)^-1 * R^2 = (A^-1 * R^-1) * R^2 = A^-1 * R\n var res = this.imod(a._invmp(this.m).mul(this.r2));\n return res._forceRed(this);\n };\n})(typeof module === 'undefined' || module, this);\n","function _typeof(obj) {\n \"@babel/helpers - typeof\";\n\n if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") {\n _typeof = function (obj) {\n return typeof obj;\n };\n } else {\n _typeof = function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n };\n }\n\n return _typeof(obj);\n}\n\nfunction _defineProperty(obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n}\n\nfunction ownKeys(object, enumerableOnly) {\n var keys = Object.keys(object);\n\n if (Object.getOwnPropertySymbols) {\n var symbols = Object.getOwnPropertySymbols(object);\n if (enumerableOnly) symbols = symbols.filter(function (sym) {\n return Object.getOwnPropertyDescriptor(object, sym).enumerable;\n });\n keys.push.apply(keys, symbols);\n }\n\n return keys;\n}\n\nfunction _objectSpread2(target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i] != null ? arguments[i] : {};\n\n if (i % 2) {\n ownKeys(Object(source), true).forEach(function (key) {\n _defineProperty(target, key, source[key]);\n });\n } else if (Object.getOwnPropertyDescriptors) {\n Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));\n } else {\n ownKeys(Object(source)).forEach(function (key) {\n Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));\n });\n }\n }\n\n return target;\n}\n\nfunction _toArray(arr) {\n return _arrayWithHoles(arr) || _iterableToArray(arr) || _nonIterableRest();\n}\n\nfunction _toConsumableArray(arr) {\n return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();\n}\n\nfunction _arrayWithoutHoles(arr) {\n if (Array.isArray(arr)) {\n for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];\n\n return arr2;\n }\n}\n\nfunction _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}\n\nfunction _iterableToArray(iter) {\n if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === \"[object Arguments]\") return Array.from(iter);\n}\n\nfunction _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance\");\n}\n\nfunction _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n}\n\nexport { _defineProperty as _, _objectSpread2 as a, _typeof as b, _toArray as c, _toConsumableArray as d };\n","import { _ as _defineProperty, a as _objectSpread2, b as _typeof } from './chunk-1fafdf15.js';\n\n/**\r\n * +/- function to native math sign\r\n */\nfunction signPoly(value) {\n if (value < 0) return -1;\n return value > 0 ? 1 : 0;\n}\n\nvar sign = Math.sign || signPoly;\n/**\r\n * Get value of an object property/path even if it's nested\r\n */\n\nfunction getValueByPath(obj, path) {\n var value = path.split('.').reduce(function (o, i) {\n return o ? o[i] : null;\n }, obj);\n return value;\n}\n/**\r\n * Extension of indexOf method by equality function if specified\r\n */\n\nfunction indexOf(array, obj, fn) {\n if (!array) return -1;\n if (!fn || typeof fn !== 'function') return array.indexOf(obj);\n\n for (var i = 0; i < array.length; i++) {\n if (fn(array[i], obj)) {\n return i;\n }\n }\n\n return -1;\n}\n/**\r\n * Merge function to replace Object.assign with deep merging possibility\r\n */\n\nvar isObject = function isObject(item) {\n return _typeof(item) === 'object' && !Array.isArray(item);\n};\n\nvar mergeFn = function mergeFn(target, source) {\n var deep = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n if (deep || !Object.assign) {\n var isDeep = function isDeep(prop) {\n return isObject(source[prop]) && target !== null && target.hasOwnProperty(prop) && isObject(target[prop]);\n };\n\n var replaced = Object.getOwnPropertyNames(source).map(function (prop) {\n return _defineProperty({}, prop, isDeep(prop) ? mergeFn(target[prop], source[prop], deep) : source[prop]);\n }).reduce(function (a, b) {\n return _objectSpread2({}, a, {}, b);\n }, {});\n return _objectSpread2({}, target, {}, replaced);\n } else {\n return Object.assign(target, source);\n }\n};\n\nvar merge = mergeFn;\n/**\r\n * Mobile detection\r\n * https://www.abeautifulsite.net/detecting-mobile-devices-with-javascript\r\n */\n\nvar isMobile = {\n Android: function Android() {\n return typeof window !== 'undefined' && window.navigator.userAgent.match(/Android/i);\n },\n BlackBerry: function BlackBerry() {\n return typeof window !== 'undefined' && window.navigator.userAgent.match(/BlackBerry/i);\n },\n iOS: function iOS() {\n return typeof window !== 'undefined' && window.navigator.userAgent.match(/iPhone|iPad|iPod/i);\n },\n Opera: function Opera() {\n return typeof window !== 'undefined' && window.navigator.userAgent.match(/Opera Mini/i);\n },\n Windows: function Windows() {\n return typeof window !== 'undefined' && window.navigator.userAgent.match(/IEMobile/i);\n },\n any: function any() {\n return isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows();\n }\n};\nfunction removeElement(el) {\n if (typeof el.remove !== 'undefined') {\n el.remove();\n } else if (typeof el.parentNode !== 'undefined' && el.parentNode !== null) {\n el.parentNode.removeChild(el);\n }\n}\nfunction createAbsoluteElement(el) {\n var root = document.createElement('div');\n root.style.position = 'absolute';\n root.style.left = '0px';\n root.style.top = '0px';\n var wrapper = document.createElement('div');\n root.appendChild(wrapper);\n wrapper.appendChild(el);\n document.body.appendChild(root);\n return root;\n}\n/**\r\n * Escape regex characters\r\n * http://stackoverflow.com/a/6969486\r\n */\n\nfunction escapeRegExpChars(value) {\n if (!value) return value; // eslint-disable-next-line\n\n return value.replace(/[\\-\\[\\]\\/\\{\\}\\(\\)\\*\\+\\?\\.\\\\\\^\\$\\|]/g, '\\\\$&');\n}\nfunction multiColumnSort(inputArray, sortingPriority) {\n // clone it to prevent the any watchers from triggering every sorting iteration\n var array = JSON.parse(JSON.stringify(inputArray));\n\n var fieldSorter = function fieldSorter(fields) {\n return function (a, b) {\n return fields.map(function (o) {\n var dir = 1;\n\n if (o[0] === '-') {\n dir = -1;\n o = o.substring(1);\n }\n\n return a[o] > b[o] ? dir : a[o] < b[o] ? -dir : 0;\n }).reduce(function (p, n) {\n return p || n;\n }, 0);\n };\n };\n\n return array.sort(fieldSorter(sortingPriority));\n}\nfunction createNewEvent(eventName) {\n var event;\n\n if (typeof Event === 'function') {\n event = new Event(eventName);\n } else {\n event = document.createEvent('Event');\n event.initEvent(eventName, true, true);\n }\n\n return event;\n}\n\nexport { createAbsoluteElement, createNewEvent, escapeRegExpChars, getValueByPath, indexOf, isMobile, merge, multiColumnSort, removeElement, sign };\n","var config = {\n defaultContainerElement: null,\n defaultIconPack: 'mdi',\n defaultIconComponent: null,\n defaultIconPrev: 'chevron-left',\n defaultIconNext: 'chevron-right',\n defaultDialogConfirmText: null,\n defaultDialogCancelText: null,\n defaultSnackbarDuration: 3500,\n defaultSnackbarPosition: null,\n defaultToastDuration: 2000,\n defaultToastPosition: null,\n defaultNotificationDuration: 2000,\n defaultNotificationPosition: null,\n defaultTooltipType: 'is-primary',\n defaultTooltipAnimated: false,\n defaultTooltipDelay: 0,\n defaultInputAutocomplete: 'on',\n defaultDateFormatter: null,\n defaultDateParser: null,\n defaultDateCreator: null,\n defaultTimeCreator: null,\n defaultDayNames: null,\n defaultMonthNames: null,\n defaultFirstDayOfWeek: null,\n defaultUnselectableDaysOfWeek: null,\n defaultTimeFormatter: null,\n defaultTimeParser: null,\n defaultModalCanCancel: ['escape', 'x', 'outside', 'button'],\n defaultModalScroll: null,\n defaultDatepickerMobileNative: true,\n defaultTimepickerMobileNative: true,\n defaultNoticeQueue: true,\n defaultInputHasCounter: true,\n defaultTaginputHasCounter: true,\n defaultUseHtml5Validation: true,\n defaultDropdownMobileModal: true,\n defaultFieldLabelPosition: null,\n defaultDatepickerYearsRange: [-100, 3],\n defaultDatepickerNearbyMonthDays: true,\n defaultDatepickerNearbySelectableMonthDays: false,\n defaultDatepickerShowWeekNumber: false,\n defaultDatepickerMobileModal: true,\n defaultTrapFocus: false,\n defaultButtonRounded: false,\n defaultCarouselInterval: 3500,\n defaultTabsAnimated: true,\n defaultLinkTags: ['a', 'button', 'input', 'router-link', 'nuxt-link', 'n-link', 'RouterLink', 'NuxtLink', 'NLink'],\n customIconPacks: null\n}; // TODO defaultTrapFocus to true in the next breaking change\nvar setOptions = function setOptions(options) {\n config = options;\n};\nvar setVueInstance = function setVueInstance(Vue) {\n VueInstance = Vue;\n};\nvar VueInstance;\n\nexport { VueInstance as V, setVueInstance as a, config as c, setOptions as s };\n","function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier\n/* server only */\n, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\n if (typeof shadowMode !== 'boolean') {\n createInjectorSSR = createInjector;\n createInjector = shadowMode;\n shadowMode = false;\n } // Vue.extend constructor export interop.\n\n\n var options = typeof script === 'function' ? script.options : script; // render functions\n\n if (template && template.render) {\n options.render = template.render;\n options.staticRenderFns = template.staticRenderFns;\n options._compiled = true; // functional template\n\n if (isFunctionalTemplate) {\n options.functional = true;\n }\n } // scopedId\n\n\n if (scopeId) {\n options._scopeId = scopeId;\n }\n\n var hook;\n\n if (moduleIdentifier) {\n // server build\n hook = function hook(context) {\n // 2.3 injection\n context = context || // cached call\n this.$vnode && this.$vnode.ssrContext || // stateful\n this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional\n // 2.2 with runInNewContext: true\n\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\n context = __VUE_SSR_CONTEXT__;\n } // inject component styles\n\n\n if (style) {\n style.call(this, createInjectorSSR(context));\n } // register component module identifier for async chunk inference\n\n\n if (context && context._registeredComponents) {\n context._registeredComponents.add(moduleIdentifier);\n }\n }; // used by ssr in case component is cached and beforeCreate\n // never gets called\n\n\n options._ssrRegister = hook;\n } else if (style) {\n hook = shadowMode ? function () {\n style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));\n } : function (context) {\n style.call(this, createInjector(context));\n };\n }\n\n if (hook) {\n if (options.functional) {\n // register for functional component in vue file\n var originalRender = options.render;\n\n options.render = function renderWithStyleInjection(h, context) {\n hook.call(context);\n return originalRender(h, context);\n };\n } else {\n // inject component registration as beforeCreate hook\n var existing = options.beforeCreate;\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\n }\n }\n\n return script;\n}\n\nvar normalizeComponent_1 = normalizeComponent;\n\nvar use = function use(plugin) {\n if (typeof window !== 'undefined' && window.Vue) {\n window.Vue.use(plugin);\n }\n};\nvar registerComponent = function registerComponent(Vue, component) {\n Vue.component(component.name, component);\n};\nvar registerComponentProgrammatic = function registerComponentProgrammatic(Vue, property, component) {\n if (!Vue.prototype.$buefy) Vue.prototype.$buefy = {};\n Vue.prototype.$buefy[property] = component;\n};\n\nexport { normalizeComponent_1 as _, registerComponentProgrammatic as a, registerComponent as r, use as u };\n","import { c as config } from './chunk-6985c8ce.js';\n\nvar FormElementMixin = {\n props: {\n size: String,\n expanded: Boolean,\n loading: Boolean,\n rounded: Boolean,\n icon: String,\n iconPack: String,\n // Native options to use in HTML5 validation\n autocomplete: String,\n maxlength: [Number, String],\n useHtml5Validation: {\n type: Boolean,\n default: function _default() {\n return config.defaultUseHtml5Validation;\n }\n },\n validationMessage: String\n },\n data: function data() {\n return {\n isValid: true,\n isFocused: false,\n newIconPack: this.iconPack || config.defaultIconPack\n };\n },\n computed: {\n /**\r\n * Find parent Field, max 3 levels deep.\r\n */\n parentField: function parentField() {\n var parent = this.$parent;\n\n for (var i = 0; i < 3; i++) {\n if (parent && !parent.$data._isField) {\n parent = parent.$parent;\n }\n }\n\n return parent;\n },\n\n /**\r\n * Get the type prop from parent if it's a Field.\r\n */\n statusType: function statusType() {\n if (!this.parentField) return;\n if (!this.parentField.newType) return;\n\n if (typeof this.parentField.newType === 'string') {\n return this.parentField.newType;\n } else {\n for (var key in this.parentField.newType) {\n if (this.parentField.newType[key]) {\n return key;\n }\n }\n }\n },\n\n /**\r\n * Get the message prop from parent if it's a Field.\r\n */\n statusMessage: function statusMessage() {\n if (!this.parentField) return;\n return this.parentField.newMessage || this.parentField.$slots.message;\n },\n\n /**\r\n * Fix icon size for inputs, large was too big\r\n */\n iconSize: function iconSize() {\n switch (this.size) {\n case 'is-small':\n return this.size;\n\n case 'is-medium':\n return;\n\n case 'is-large':\n return this.newIconPack === 'mdi' ? 'is-medium' : '';\n }\n }\n },\n methods: {\n /**\r\n * Focus method that work dynamically depending on the component.\r\n */\n focus: function focus() {\n var _this = this;\n\n if (this.$data._elementRef === undefined) return;\n this.$nextTick(function () {\n var el = _this.$el.querySelector(_this.$data._elementRef);\n\n if (el) el.focus();\n });\n },\n onBlur: function onBlur($event) {\n this.isFocused = false;\n this.$emit('blur', $event);\n this.checkHtml5Validity();\n },\n onFocus: function onFocus($event) {\n this.isFocused = true;\n this.$emit('focus', $event);\n },\n getElement: function getElement() {\n return this.$el.querySelector(this.$data._elementRef);\n },\n setInvalid: function setInvalid() {\n var type = 'is-danger';\n var message = this.validationMessage || this.getElement().validationMessage;\n this.setValidity(type, message);\n },\n setValidity: function setValidity(type, message) {\n var _this2 = this;\n\n this.$nextTick(function () {\n if (_this2.parentField) {\n // Set type only if not defined\n if (!_this2.parentField.type) {\n _this2.parentField.newType = type;\n } // Set message only if not defined\n\n\n if (!_this2.parentField.message) {\n _this2.parentField.newMessage = message;\n }\n }\n });\n },\n\n /**\r\n * Check HTML5 validation, set isValid property.\r\n * If validation fail, send 'is-danger' type,\r\n * and error message to parent if it's a Field.\r\n */\n checkHtml5Validity: function checkHtml5Validity() {\n if (!this.useHtml5Validation) return;\n if (this.$refs[this.$data._elementRef] === undefined) return;\n if (this.getElement() === null) return;\n\n if (!this.getElement().checkValidity()) {\n this.setInvalid();\n this.isValid = false;\n } else {\n this.setValidity(null, null);\n this.isValid = true;\n }\n\n return this.isValid;\n }\n }\n};\n\nexport { FormElementMixin as F };\n","import { c as _toArray } from './chunk-1fafdf15.js';\nimport { merge } from './helpers.js';\nimport { c as config } from './chunk-6985c8ce.js';\nimport { _ as __vue_normalize__ } from './chunk-cca88db8.js';\n\nvar mdiIcons = {\n sizes: {\n 'default': 'mdi-24px',\n 'is-small': null,\n 'is-medium': 'mdi-36px',\n 'is-large': 'mdi-48px'\n },\n iconPrefix: 'mdi-'\n};\n\nvar faIcons = function faIcons() {\n var faIconPrefix = config && config.defaultIconComponent ? '' : 'fa-';\n return {\n sizes: {\n 'default': faIconPrefix + 'lg',\n 'is-small': null,\n 'is-medium': faIconPrefix + '2x',\n 'is-large': faIconPrefix + '3x'\n },\n iconPrefix: faIconPrefix,\n internalIcons: {\n 'information': 'info-circle',\n 'alert': 'exclamation-triangle',\n 'alert-circle': 'exclamation-circle',\n 'chevron-right': 'angle-right',\n 'chevron-left': 'angle-left',\n 'chevron-down': 'angle-down',\n 'eye-off': 'eye-slash',\n 'menu-down': 'caret-down',\n 'menu-up': 'caret-up',\n 'close-circle': 'times-circle'\n }\n };\n};\n\nvar getIcons = function getIcons() {\n var icons = {\n mdi: mdiIcons,\n fa: faIcons(),\n fas: faIcons(),\n far: faIcons(),\n fad: faIcons(),\n fab: faIcons(),\n fal: faIcons()\n };\n\n if (config && config.customIconPacks) {\n icons = merge(icons, config.customIconPacks, true);\n }\n\n return icons;\n};\n\nvar script = {\n name: 'BIcon',\n props: {\n type: [String, Object],\n component: String,\n pack: String,\n icon: String,\n size: String,\n customSize: String,\n customClass: String,\n both: Boolean // This is used internally to show both MDI and FA icon\n\n },\n computed: {\n iconConfig: function iconConfig() {\n var allIcons = getIcons();\n return allIcons[this.newPack];\n },\n iconPrefix: function iconPrefix() {\n if (this.iconConfig && this.iconConfig.iconPrefix) {\n return this.iconConfig.iconPrefix;\n }\n\n return '';\n },\n\n /**\r\n * Internal icon name based on the pack.\r\n * If pack is 'fa', gets the equivalent FA icon name of the MDI,\r\n * internal icons are always MDI.\r\n */\n newIcon: function newIcon() {\n return \"\".concat(this.iconPrefix).concat(this.getEquivalentIconOf(this.icon));\n },\n newPack: function newPack() {\n return this.pack || config.defaultIconPack;\n },\n newType: function newType() {\n if (!this.type) return;\n var splitType = [];\n\n if (typeof this.type === 'string') {\n splitType = this.type.split('-');\n } else {\n for (var key in this.type) {\n if (this.type[key]) {\n splitType = key.split('-');\n break;\n }\n }\n }\n\n if (splitType.length <= 1) return;\n\n var _splitType = splitType,\n _splitType2 = _toArray(_splitType),\n type = _splitType2.slice(1);\n\n return \"has-text-\".concat(type.join('-'));\n },\n newCustomSize: function newCustomSize() {\n return this.customSize || this.customSizeByPack;\n },\n customSizeByPack: function customSizeByPack() {\n if (this.iconConfig && this.iconConfig.sizes) {\n if (this.size && this.iconConfig.sizes[this.size] !== undefined) {\n return this.iconConfig.sizes[this.size];\n } else if (this.iconConfig.sizes.default) {\n return this.iconConfig.sizes.default;\n }\n }\n\n return null;\n },\n useIconComponent: function useIconComponent() {\n return this.component || config.defaultIconComponent;\n }\n },\n methods: {\n /**\r\n * Equivalent icon name of the MDI.\r\n */\n getEquivalentIconOf: function getEquivalentIconOf(value) {\n // Only transform the class if the both prop is set to true\n if (!this.both) {\n return value;\n }\n\n if (this.iconConfig && this.iconConfig.internalIcons && this.iconConfig.internalIcons[value]) {\n return this.iconConfig.internalIcons[value];\n }\n\n return value;\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{staticClass:\"icon\",class:[_vm.newType, _vm.size]},[(!_vm.useIconComponent)?_c('i',{class:[_vm.newPack, _vm.newIcon, _vm.newCustomSize, _vm.customClass]}):_c(_vm.useIconComponent,{tag:\"component\",class:[_vm.customClass],attrs:{\"icon\":[_vm.newPack, _vm.newIcon],\"size\":_vm.newCustomSize}})],1)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Icon = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nexport { Icon as I };\n","import { _ as _defineProperty } from './chunk-1fafdf15.js';\nimport { c as config } from './chunk-6985c8ce.js';\nimport { F as FormElementMixin } from './chunk-d0a313ea.js';\nimport { I as Icon } from './chunk-cdfca85b.js';\nimport { _ as __vue_normalize__ } from './chunk-cca88db8.js';\n\nvar script = {\n name: 'BInput',\n components: _defineProperty({}, Icon.name, Icon),\n mixins: [FormElementMixin],\n inheritAttrs: false,\n props: {\n value: [Number, String],\n type: {\n type: String,\n default: 'text'\n },\n passwordReveal: Boolean,\n iconClickable: Boolean,\n hasCounter: {\n type: Boolean,\n default: function _default() {\n return config.defaultInputHasCounter;\n }\n },\n customClass: {\n type: String,\n default: ''\n },\n iconRight: String,\n iconRightClickable: Boolean\n },\n data: function data() {\n return {\n newValue: this.value,\n newType: this.type,\n newAutocomplete: this.autocomplete || config.defaultInputAutocomplete,\n isPasswordVisible: false,\n _elementRef: this.type === 'textarea' ? 'textarea' : 'input'\n };\n },\n computed: {\n computedValue: {\n get: function get() {\n return this.newValue;\n },\n set: function set(value) {\n this.newValue = value;\n this.$emit('input', value);\n !this.isValid && this.checkHtml5Validity();\n }\n },\n rootClasses: function rootClasses() {\n return [this.iconPosition, this.size, {\n 'is-expanded': this.expanded,\n 'is-loading': this.loading,\n 'is-clearfix': !this.hasMessage\n }];\n },\n inputClasses: function inputClasses() {\n return [this.statusType, this.size, {\n 'is-rounded': this.rounded\n }];\n },\n hasIconRight: function hasIconRight() {\n return this.passwordReveal || this.loading || this.statusTypeIcon || this.iconRight;\n },\n rightIcon: function rightIcon() {\n if (this.passwordReveal) {\n return this.passwordVisibleIcon;\n } else if (this.iconRight) {\n return this.iconRight;\n }\n\n return this.statusTypeIcon;\n },\n rightIconType: function rightIconType() {\n if (this.passwordReveal) {\n return 'is-primary';\n } else if (this.iconRight) {\n return null;\n }\n\n return this.statusType;\n },\n\n /**\r\n * Position of the icon or if it's both sides.\r\n */\n iconPosition: function iconPosition() {\n if (this.icon && this.hasIconRight) {\n return 'has-icons-left has-icons-right';\n } else if (!this.icon && this.hasIconRight) {\n return 'has-icons-right';\n } else if (this.icon) {\n return 'has-icons-left';\n }\n },\n\n /**\r\n * Icon name (MDI) based on the type.\r\n */\n statusTypeIcon: function statusTypeIcon() {\n switch (this.statusType) {\n case 'is-success':\n return 'check';\n\n case 'is-danger':\n return 'alert-circle';\n\n case 'is-info':\n return 'information';\n\n case 'is-warning':\n return 'alert';\n }\n },\n\n /**\r\n * Check if have any message prop from parent if it's a Field.\r\n */\n hasMessage: function hasMessage() {\n return !!this.statusMessage;\n },\n\n /**\r\n * Current password-reveal icon name.\r\n */\n passwordVisibleIcon: function passwordVisibleIcon() {\n return !this.isPasswordVisible ? 'eye' : 'eye-off';\n },\n\n /**\r\n * Get value length\r\n */\n valueLength: function valueLength() {\n if (typeof this.computedValue === 'string') {\n return this.computedValue.length;\n } else if (typeof this.computedValue === 'number') {\n return this.computedValue.toString().length;\n }\n\n return 0;\n }\n },\n watch: {\n /**\r\n * When v-model is changed:\r\n * 1. Set internal value.\r\n */\n value: function value(_value) {\n this.newValue = _value;\n }\n },\n methods: {\n /**\r\n * Toggle the visibility of a password-reveal input\r\n * by changing the type and focus the input right away.\r\n */\n togglePasswordVisibility: function togglePasswordVisibility() {\n var _this = this;\n\n this.isPasswordVisible = !this.isPasswordVisible;\n this.newType = this.isPasswordVisible ? 'text' : 'password';\n this.$nextTick(function () {\n _this.$refs[_this.$data._elementRef].focus();\n });\n },\n\n /**\r\n * Input's 'input' event listener, 'nextTick' is used to prevent event firing\r\n * before ui update, helps when using masks (Cleavejs and potentially others).\r\n */\n onInput: function onInput(event) {\n var _this2 = this;\n\n this.$nextTick(function () {\n if (event.target) {\n _this2.computedValue = event.target.value;\n }\n });\n },\n iconClick: function iconClick(emit, event) {\n var _this3 = this;\n\n this.$emit(emit, event);\n this.$nextTick(function () {\n _this3.$refs[_this3.$data._elementRef].focus();\n });\n },\n rightIconClick: function rightIconClick(event) {\n if (this.passwordReveal) {\n this.togglePasswordVisibility();\n } else if (this.iconRightClickable) {\n this.iconClick('icon-right-click', event);\n }\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"control\",class:_vm.rootClasses},[(_vm.type !== 'textarea')?_c('input',_vm._b({ref:\"input\",staticClass:\"input\",class:[_vm.inputClasses, _vm.customClass],attrs:{\"type\":_vm.newType,\"autocomplete\":_vm.newAutocomplete,\"maxlength\":_vm.maxlength},domProps:{\"value\":_vm.computedValue},on:{\"input\":_vm.onInput,\"blur\":_vm.onBlur,\"focus\":_vm.onFocus}},'input',_vm.$attrs,false)):_c('textarea',_vm._b({ref:\"textarea\",staticClass:\"textarea\",class:[_vm.inputClasses, _vm.customClass],attrs:{\"maxlength\":_vm.maxlength},domProps:{\"value\":_vm.computedValue},on:{\"input\":_vm.onInput,\"blur\":_vm.onBlur,\"focus\":_vm.onFocus}},'textarea',_vm.$attrs,false)),_vm._v(\" \"),(_vm.icon)?_c('b-icon',{staticClass:\"is-left\",class:{'is-clickable': _vm.iconClickable},attrs:{\"icon\":_vm.icon,\"pack\":_vm.iconPack,\"size\":_vm.iconSize},nativeOn:{\"click\":function($event){_vm.iconClick('icon-click', $event);}}}):_vm._e(),_vm._v(\" \"),(!_vm.loading && _vm.hasIconRight)?_c('b-icon',{staticClass:\"is-right\",class:{ 'is-clickable': _vm.passwordReveal || _vm.iconRightClickable },attrs:{\"icon\":_vm.rightIcon,\"pack\":_vm.iconPack,\"size\":_vm.iconSize,\"type\":_vm.rightIconType,\"both\":\"\"},nativeOn:{\"click\":function($event){return _vm.rightIconClick($event)}}}):_vm._e(),_vm._v(\" \"),(_vm.maxlength && _vm.hasCounter && _vm.type !== 'number')?_c('small',{staticClass:\"help counter\",class:{ 'is-invisible': !_vm.isFocused }},[_vm._v(\"\\r\\n \"+_vm._s(_vm.valueLength)+\" / \"+_vm._s(_vm.maxlength)+\"\\r\\n \")]):_vm._e()],1)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Input = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nexport { Input as I };\n","import { _ as _defineProperty, b as _typeof } from './chunk-1fafdf15.js';\nimport { getValueByPath, createAbsoluteElement, removeElement } from './helpers.js';\nimport { F as FormElementMixin } from './chunk-d0a313ea.js';\nimport { _ as __vue_normalize__ } from './chunk-cca88db8.js';\nimport { I as Input } from './chunk-d1591eb8.js';\n\nvar script = {\n name: 'BAutocomplete',\n components: _defineProperty({}, Input.name, Input),\n mixins: [FormElementMixin],\n inheritAttrs: false,\n props: {\n value: [Number, String],\n data: {\n type: Array,\n default: function _default() {\n return [];\n }\n },\n field: {\n type: String,\n default: 'value'\n },\n keepFirst: Boolean,\n clearOnSelect: Boolean,\n openOnFocus: Boolean,\n customFormatter: Function,\n checkInfiniteScroll: Boolean,\n keepOpen: Boolean,\n clearable: Boolean,\n maxHeight: [String, Number],\n dropdownPosition: {\n type: String,\n default: 'auto'\n },\n iconRight: String,\n iconRightClickable: Boolean,\n appendToBody: Boolean\n },\n data: function data() {\n return {\n selected: null,\n hovered: null,\n isActive: false,\n newValue: this.value,\n newAutocomplete: this.autocomplete || 'off',\n isListInViewportVertically: true,\n hasFocus: false,\n style: {},\n _isAutocomplete: true,\n _elementRef: 'input',\n _bodyEl: undefined // Used to append to body\n\n };\n },\n computed: {\n /**\r\n * White-listed items to not close when clicked.\r\n * Add input, dropdown and all children.\r\n */\n whiteList: function whiteList() {\n var whiteList = [];\n whiteList.push(this.$refs.input.$el.querySelector('input'));\n whiteList.push(this.$refs.dropdown); // Add all chidren from dropdown\n\n if (this.$refs.dropdown !== undefined) {\n var children = this.$refs.dropdown.querySelectorAll('*');\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var child = _step.value;\n whiteList.push(child);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n\n if (this.$parent.$data._isTaginput) {\n // Add taginput container\n whiteList.push(this.$parent.$el); // Add .tag and .delete\n\n var tagInputChildren = this.$parent.$el.querySelectorAll('*');\n var _iteratorNormalCompletion2 = true;\n var _didIteratorError2 = false;\n var _iteratorError2 = undefined;\n\n try {\n for (var _iterator2 = tagInputChildren[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var tagInputChild = _step2.value;\n whiteList.push(tagInputChild);\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion2 && _iterator2.return != null) {\n _iterator2.return();\n }\n } finally {\n if (_didIteratorError2) {\n throw _iteratorError2;\n }\n }\n }\n }\n\n return whiteList;\n },\n\n /**\r\n * Check if exists default slot\r\n */\n hasDefaultSlot: function hasDefaultSlot() {\n return !!this.$scopedSlots.default;\n },\n\n /**\r\n * Check if exists \"empty\" slot\r\n */\n hasEmptySlot: function hasEmptySlot() {\n return !!this.$slots.empty;\n },\n\n /**\r\n * Check if exists \"header\" slot\r\n */\n hasHeaderSlot: function hasHeaderSlot() {\n return !!this.$slots.header;\n },\n\n /**\r\n * Check if exists \"footer\" slot\r\n */\n hasFooterSlot: function hasFooterSlot() {\n return !!this.$slots.footer;\n },\n\n /**\r\n * Apply dropdownPosition property\r\n */\n isOpenedTop: function isOpenedTop() {\n return this.dropdownPosition === 'top' || this.dropdownPosition === 'auto' && !this.isListInViewportVertically;\n },\n newIconRight: function newIconRight() {\n if (this.clearable && this.newValue) {\n return 'close-circle';\n }\n\n return this.iconRight;\n },\n newIconRightClickable: function newIconRightClickable() {\n if (this.clearable) {\n return true;\n }\n\n return this.iconRightClickable;\n },\n contentStyle: function contentStyle() {\n return {\n maxHeight: this.maxHeight === undefined ? null : isNaN(this.maxHeight) ? this.maxHeight : this.maxHeight + 'px'\n };\n }\n },\n watch: {\n /**\r\n * When dropdown is toggled, check the visibility to know when\r\n * to open upwards.\r\n */\n isActive: function isActive(active) {\n var _this = this;\n\n if (this.dropdownPosition === 'auto') {\n if (active) {\n this.calcDropdownInViewportVertical();\n } else {\n // Timeout to wait for the animation to finish before recalculating\n setTimeout(function () {\n _this.calcDropdownInViewportVertical();\n }, 100);\n }\n }\n\n if (active) this.$nextTick(function () {\n return _this.setHovered(null);\n });\n },\n\n /**\r\n * When updating input's value\r\n * 1. Emit changes\r\n * 2. If value isn't the same as selected, set null\r\n * 3. Close dropdown if value is clear or else open it\r\n */\n newValue: function newValue(value) {\n this.$emit('input', value); // Check if selected is invalid\n\n var currentValue = this.getValue(this.selected);\n\n if (currentValue && currentValue !== value) {\n this.setSelected(null, false);\n } // Close dropdown if input is clear or else open it\n\n\n if (this.hasFocus && (!this.openOnFocus || value)) {\n this.isActive = !!value;\n }\n },\n\n /**\r\n * When v-model is changed:\r\n * 1. Update internal value.\r\n * 2. If it's invalid, validate again.\r\n */\n value: function value(_value) {\n this.newValue = _value;\n },\n\n /**\r\n * Select first option if \"keep-first\r\n */\n data: function data(value) {\n // Keep first option always pre-selected\n if (this.keepFirst) {\n this.selectFirstOption(value);\n }\n }\n },\n methods: {\n /**\r\n * Set which option is currently hovered.\r\n */\n setHovered: function setHovered(option) {\n if (option === undefined) return;\n this.hovered = option;\n },\n\n /**\r\n * Set which option is currently selected, update v-model,\r\n * update input value and close dropdown.\r\n */\n setSelected: function setSelected(option) {\n var _this2 = this;\n\n var closeDropdown = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n var event = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;\n if (option === undefined) return;\n this.selected = option;\n this.$emit('select', this.selected, event);\n\n if (this.selected !== null) {\n this.newValue = this.clearOnSelect ? '' : this.getValue(this.selected);\n this.setHovered(null);\n }\n\n closeDropdown && this.$nextTick(function () {\n _this2.isActive = false;\n });\n this.checkValidity();\n },\n\n /**\r\n * Select first option\r\n */\n selectFirstOption: function selectFirstOption(options) {\n var _this3 = this;\n\n this.$nextTick(function () {\n if (options.length) {\n // If has visible data or open on focus, keep updating the hovered\n if (_this3.openOnFocus || _this3.newValue !== '' && _this3.hovered !== options[0]) {\n _this3.setHovered(options[0]);\n }\n } else {\n _this3.setHovered(null);\n }\n });\n },\n\n /**\r\n * Enter key listener.\r\n * Select the hovered option.\r\n */\n enterPressed: function enterPressed(event) {\n if (this.hovered === null) return;\n this.setSelected(this.hovered, !this.keepOpen, event);\n },\n\n /**\r\n * Tab key listener.\r\n * Select hovered option if it exists, close dropdown, then allow\r\n * native handling to move to next tabbable element.\r\n */\n tabPressed: function tabPressed(event) {\n if (this.hovered === null) {\n this.isActive = false;\n return;\n }\n\n this.setSelected(this.hovered, !this.keepOpen, event);\n },\n\n /**\r\n * Close dropdown if clicked outside.\r\n */\n clickedOutside: function clickedOutside(event) {\n if (this.whiteList.indexOf(event.target) < 0) this.isActive = false;\n },\n\n /**\r\n * Return display text for the input.\r\n * If object, get value from path, or else just the value.\r\n */\n getValue: function getValue(option) {\n if (option === null) return;\n\n if (typeof this.customFormatter !== 'undefined') {\n return this.customFormatter(option);\n }\n\n return _typeof(option) === 'object' ? getValueByPath(option, this.field) : option;\n },\n\n /**\r\n * Check if the scroll list inside the dropdown\r\n * reached it's end.\r\n */\n checkIfReachedTheEndOfScroll: function checkIfReachedTheEndOfScroll(list) {\n if (list.clientHeight !== list.scrollHeight && list.scrollTop + list.clientHeight >= list.scrollHeight) {\n this.$emit('infinite-scroll');\n }\n },\n\n /**\r\n * Calculate if the dropdown is vertically visible when activated,\r\n * otherwise it is openened upwards.\r\n */\n calcDropdownInViewportVertical: function calcDropdownInViewportVertical() {\n var _this4 = this;\n\n this.$nextTick(function () {\n /**\r\n * this.$refs.dropdown may be undefined\r\n * when Autocomplete is conditional rendered\r\n */\n if (_this4.$refs.dropdown === undefined) return;\n\n var rect = _this4.$refs.dropdown.getBoundingClientRect();\n\n _this4.isListInViewportVertically = rect.top >= 0 && rect.bottom <= (window.innerHeight || document.documentElement.clientHeight);\n\n if (_this4.appendToBody) {\n _this4.updateAppendToBody();\n }\n });\n },\n\n /**\r\n * Arrows keys listener.\r\n * If dropdown is active, set hovered option, or else just open.\r\n */\n keyArrows: function keyArrows(direction) {\n var sum = direction === 'down' ? 1 : -1;\n\n if (this.isActive) {\n var index = this.data.indexOf(this.hovered) + sum;\n index = index > this.data.length - 1 ? this.data.length : index;\n index = index < 0 ? 0 : index;\n this.setHovered(this.data[index]);\n var list = this.$refs.dropdown.querySelector('.dropdown-content');\n var element = list.querySelectorAll('a.dropdown-item:not(.is-disabled)')[index];\n if (!element) return;\n var visMin = list.scrollTop;\n var visMax = list.scrollTop + list.clientHeight - element.clientHeight;\n\n if (element.offsetTop < visMin) {\n list.scrollTop = element.offsetTop;\n } else if (element.offsetTop >= visMax) {\n list.scrollTop = element.offsetTop - list.clientHeight + element.clientHeight;\n }\n } else {\n this.isActive = true;\n }\n },\n\n /**\r\n * Focus listener.\r\n * If value is the same as selected, select all text.\r\n */\n focused: function focused(event) {\n if (this.getValue(this.selected) === this.newValue) {\n this.$el.querySelector('input').select();\n }\n\n if (this.openOnFocus) {\n this.isActive = true;\n\n if (this.keepFirst) {\n this.selectFirstOption(this.data);\n }\n }\n\n this.hasFocus = true;\n this.$emit('focus', event);\n },\n\n /**\r\n * Blur listener.\r\n */\n onBlur: function onBlur(event) {\n this.hasFocus = false;\n this.$emit('blur', event);\n },\n onInput: function onInput(event) {\n var currentValue = this.getValue(this.selected);\n if (currentValue && currentValue === this.newValue) return;\n this.$emit('typing', this.newValue);\n this.checkValidity();\n },\n rightIconClick: function rightIconClick(event) {\n if (this.clearable) {\n this.newValue = '';\n\n if (this.openOnFocus) {\n this.$el.focus();\n }\n } else {\n this.$emit('icon-right-click', event);\n }\n },\n checkValidity: function checkValidity() {\n var _this5 = this;\n\n if (this.useHtml5Validation) {\n this.$nextTick(function () {\n _this5.checkHtml5Validity();\n });\n }\n },\n updateAppendToBody: function updateAppendToBody() {\n var dropdownMenu = this.$refs.dropdown;\n var trigger = this.$refs.input.$el;\n\n if (dropdownMenu && trigger) {\n // update wrapper dropdown\n var root = this.$data._bodyEl;\n root.classList.forEach(function (item) {\n return root.classList.remove(item);\n });\n root.classList.add('autocomplete');\n root.classList.add('control');\n\n if (this.expandend) {\n root.classList.add('is-expandend');\n }\n\n var rect = trigger.getBoundingClientRect();\n var top = rect.top + window.scrollY;\n var left = rect.left + window.scrollX;\n\n if (!this.isOpenedTop) {\n top += trigger.clientHeight;\n } else {\n top -= dropdownMenu.clientHeight;\n }\n\n this.style = {\n position: 'absolute',\n top: \"\".concat(top, \"px\"),\n left: \"\".concat(left, \"px\"),\n width: \"\".concat(trigger.clientWidth, \"px\"),\n maxWidth: \"\".concat(trigger.clientWidth, \"px\"),\n zIndex: '99'\n };\n }\n }\n },\n created: function created() {\n if (typeof window !== 'undefined') {\n document.addEventListener('click', this.clickedOutside);\n if (this.dropdownPosition === 'auto') window.addEventListener('resize', this.calcDropdownInViewportVertical);\n }\n },\n mounted: function mounted() {\n var _this6 = this;\n\n if (this.checkInfiniteScroll && this.$refs.dropdown && this.$refs.dropdown.querySelector('.dropdown-content')) {\n var list = this.$refs.dropdown.querySelector('.dropdown-content');\n list.addEventListener('scroll', function () {\n return _this6.checkIfReachedTheEndOfScroll(list);\n });\n }\n\n if (this.appendToBody) {\n this.$data._bodyEl = createAbsoluteElement(this.$refs.dropdown);\n this.updateAppendToBody();\n }\n },\n beforeDestroy: function beforeDestroy() {\n if (typeof window !== 'undefined') {\n document.removeEventListener('click', this.clickedOutside);\n if (this.dropdownPosition === 'auto') window.removeEventListener('resize', this.calcDropdownInViewportVertical);\n }\n\n if (this.checkInfiniteScroll && this.$refs.dropdown && this.$refs.dropdown.querySelector('.dropdown-content')) {\n var list = this.$refs.dropdown.querySelector('.dropdown-content');\n list.removeEventListener('scroll', this.checkIfReachedTheEndOfScroll);\n }\n\n if (this.appendToBody) {\n removeElement(this.$data._bodyEl);\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"autocomplete control\",class:{'is-expanded': _vm.expanded}},[_c('b-input',_vm._b({ref:\"input\",attrs:{\"type\":\"text\",\"size\":_vm.size,\"loading\":_vm.loading,\"rounded\":_vm.rounded,\"icon\":_vm.icon,\"icon-right\":_vm.newIconRight,\"icon-right-clickable\":_vm.newIconRightClickable,\"icon-pack\":_vm.iconPack,\"maxlength\":_vm.maxlength,\"autocomplete\":_vm.newAutocomplete,\"use-html5-validation\":false},on:{\"input\":_vm.onInput,\"focus\":_vm.focused,\"blur\":_vm.onBlur,\"icon-right-click\":_vm.rightIconClick,\"icon-click\":function (event) { return _vm.$emit('icon-click', event); }},nativeOn:{\"keyup\":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"esc\",27,$event.key,[\"Esc\",\"Escape\"])){ return null; }$event.preventDefault();_vm.isActive = false;},\"keydown\":[function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"tab\",9,$event.key,\"Tab\")){ return null; }return _vm.tabPressed($event)},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }$event.preventDefault();return _vm.enterPressed($event)},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"up\",38,$event.key,[\"Up\",\"ArrowUp\"])){ return null; }$event.preventDefault();_vm.keyArrows('up');},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"down\",40,$event.key,[\"Down\",\"ArrowDown\"])){ return null; }$event.preventDefault();_vm.keyArrows('down');}]},model:{value:(_vm.newValue),callback:function ($$v) {_vm.newValue=$$v;},expression:\"newValue\"}},'b-input',_vm.$attrs,false)),_vm._v(\" \"),_c('transition',{attrs:{\"name\":\"fade\"}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isActive && (_vm.data.length > 0 || _vm.hasEmptySlot || _vm.hasHeaderSlot)),expression:\"isActive && (data.length > 0 || hasEmptySlot || hasHeaderSlot)\"}],ref:\"dropdown\",staticClass:\"dropdown-menu\",class:{ 'is-opened-top': _vm.isOpenedTop && !_vm.appendToBody },style:(_vm.style)},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isActive),expression:\"isActive\"}],staticClass:\"dropdown-content\",style:(_vm.contentStyle)},[(_vm.hasHeaderSlot)?_c('div',{staticClass:\"dropdown-item\"},[_vm._t(\"header\")],2):_vm._e(),_vm._v(\" \"),_vm._l((_vm.data),function(option,index){return _c('a',{key:index,staticClass:\"dropdown-item\",class:{ 'is-hovered': option === _vm.hovered },on:{\"click\":function($event){_vm.setSelected(option, undefined, $event);}}},[(_vm.hasDefaultSlot)?_vm._t(\"default\",null,{option:option,index:index}):_c('span',[_vm._v(\"\\r\\n \"+_vm._s(_vm.getValue(option, true))+\"\\r\\n \")])],2)}),_vm._v(\" \"),(_vm.data.length === 0 && _vm.hasEmptySlot)?_c('div',{staticClass:\"dropdown-item is-disabled\"},[_vm._t(\"empty\")],2):_vm._e(),_vm._v(\" \"),(_vm.hasFooterSlot)?_c('div',{staticClass:\"dropdown-item\"},[_vm._t(\"footer\")],2):_vm._e()],2)])])],1)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Autocomplete = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nexport { Autocomplete as A };\n","import './chunk-1fafdf15.js';\nimport './helpers.js';\nimport './chunk-6985c8ce.js';\nimport './chunk-d0a313ea.js';\nimport './chunk-cdfca85b.js';\nimport { r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport './chunk-d1591eb8.js';\nimport { A as Autocomplete } from './chunk-3fcea532.js';\nexport { A as BAutocomplete } from './chunk-3fcea532.js';\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Autocomplete);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\n","import { _ as _defineProperty } from './chunk-1fafdf15.js';\nimport './helpers.js';\nimport { c as config } from './chunk-6985c8ce.js';\nimport { I as Icon } from './chunk-cdfca85b.js';\nimport { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\n\nvar script = {\n name: 'BButton',\n components: _defineProperty({}, Icon.name, Icon),\n inheritAttrs: false,\n props: {\n type: [String, Object],\n size: String,\n label: String,\n iconPack: String,\n iconLeft: String,\n iconRight: String,\n rounded: {\n type: Boolean,\n default: function _default() {\n return config.defaultButtonRounded;\n }\n },\n loading: Boolean,\n outlined: Boolean,\n expanded: Boolean,\n inverted: Boolean,\n focused: Boolean,\n active: Boolean,\n hovered: Boolean,\n selected: Boolean,\n nativeType: {\n type: String,\n default: 'button',\n validator: function validator(value) {\n return ['button', 'submit', 'reset'].indexOf(value) >= 0;\n }\n },\n tag: {\n type: String,\n default: 'button',\n validator: function validator(value) {\n return config.defaultLinkTags.indexOf(value) >= 0;\n }\n }\n },\n computed: {\n computedTag: function computedTag() {\n if (this.$attrs.disabled !== undefined && this.$attrs.disabled !== false) {\n return 'button';\n }\n\n return this.tag;\n },\n iconSize: function iconSize() {\n if (!this.size || this.size === 'is-medium') {\n return 'is-small';\n } else if (this.size === 'is-large') {\n return 'is-medium';\n }\n\n return this.size;\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.computedTag,_vm._g(_vm._b({tag:\"component\",staticClass:\"button\",class:[_vm.size, _vm.type, {\r\n 'is-rounded': _vm.rounded,\r\n 'is-loading': _vm.loading,\r\n 'is-outlined': _vm.outlined,\r\n 'is-fullwidth': _vm.expanded,\r\n 'is-inverted': _vm.inverted,\r\n 'is-focused': _vm.focused,\r\n 'is-active': _vm.active,\r\n 'is-hovered': _vm.hovered,\r\n 'is-selected': _vm.selected\r\n }],attrs:{\"type\":_vm.nativeType}},'component',_vm.$attrs,false),_vm.$listeners),[(_vm.iconLeft)?_c('b-icon',{attrs:{\"pack\":_vm.iconPack,\"icon\":_vm.iconLeft,\"size\":_vm.iconSize}}):_vm._e(),_vm._v(\" \"),(_vm.label)?_c('span',[_vm._v(_vm._s(_vm.label))]):(_vm.$slots.default)?_c('span',[_vm._t(\"default\")],2):_vm._e(),_vm._v(\" \"),(_vm.iconRight)?_c('b-icon',{attrs:{\"pack\":_vm.iconPack,\"icon\":_vm.iconRight,\"size\":_vm.iconSize}}):_vm._e()],1)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Button = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Button);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Button as BButton };\n","import { _ as _defineProperty } from './chunk-1fafdf15.js';\nimport { merge, sign } from './helpers.js';\nimport { c as config } from './chunk-6985c8ce.js';\nimport { I as Icon } from './chunk-cdfca85b.js';\nimport { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\n\nvar script = {\n name: 'BCarousel',\n components: _defineProperty({}, Icon.name, Icon),\n props: {\n value: {\n type: Number,\n default: 0\n },\n animated: {\n type: String,\n default: 'slide'\n },\n interval: Number,\n hasDrag: {\n type: Boolean,\n default: true\n },\n autoplay: {\n type: Boolean,\n default: true\n },\n pauseHover: {\n type: Boolean,\n default: true\n },\n pauseInfo: {\n type: Boolean,\n default: true\n },\n pauseInfoType: {\n type: String,\n default: 'is-white'\n },\n pauseText: {\n type: String,\n default: 'Pause'\n },\n arrow: {\n type: Boolean,\n default: true\n },\n arrowBoth: {\n type: Boolean,\n default: true\n },\n arrowHover: {\n type: Boolean,\n default: true\n },\n repeat: {\n type: Boolean,\n default: true\n },\n iconPack: String,\n iconSize: String,\n iconPrev: {\n type: String,\n default: function _default() {\n return config.defaultIconPrev;\n }\n },\n iconNext: {\n type: String,\n default: function _default() {\n return config.defaultIconNext;\n }\n },\n indicator: {\n type: Boolean,\n default: true\n },\n indicatorBackground: Boolean,\n indicatorCustom: Boolean,\n indicatorCustomSize: {\n type: String,\n default: 'is-small'\n },\n indicatorInside: {\n type: Boolean,\n default: true\n },\n indicatorMode: {\n type: String,\n default: 'click'\n },\n indicatorPosition: {\n type: String,\n default: 'is-bottom'\n },\n indicatorStyle: {\n type: String,\n default: 'is-dots'\n },\n overlay: Boolean,\n progress: Boolean,\n progressType: {\n type: String,\n default: 'is-primary'\n },\n withCarouselList: Boolean\n },\n data: function data() {\n return {\n _isCarousel: true,\n activeItem: this.value,\n carouselItems: [],\n isPause: false,\n dragX: 0,\n timer: null\n };\n },\n computed: {\n indicatorClasses: function indicatorClasses() {\n return [{\n 'has-background': this.indicatorBackground,\n 'has-custom': this.indicatorCustom,\n 'is-inside': this.indicatorInside\n }, this.indicatorCustom && this.indicatorCustomSize, this.indicatorInside && this.indicatorPosition];\n }\n },\n watch: {\n /**\r\n * When v-model is changed set the new active item.\r\n */\n value: function value(_value) {\n if (_value < this.activeItem) {\n this.changeItem(_value);\n } else {\n this.changeItem(_value, false);\n }\n },\n\n /**\r\n * When carousel-items are updated, set active one.\r\n */\n carouselItems: function carouselItems() {\n if (this.activeItem < this.carouselItems.length) {\n this.carouselItems[this.activeItem].isActive = true;\n }\n },\n\n /**\r\n * When autoplay is change, set by status\r\n */\n autoplay: function autoplay(status) {\n status ? this.startTimer() : this.pauseTimer();\n }\n },\n methods: {\n startTimer: function startTimer() {\n var _this = this;\n\n if (!this.autoplay || this.timer) return;\n this.isPause = false;\n this.timer = setInterval(function () {\n if (!_this.repeat && _this.activeItem === _this.carouselItems.length - 1) {\n _this.pauseTimer();\n } else {\n _this.next();\n }\n }, this.interval || config.defaultCarouselInterval);\n },\n pauseTimer: function pauseTimer() {\n this.isPause = true;\n\n if (this.timer) {\n clearInterval(this.timer);\n this.timer = null;\n }\n },\n checkPause: function checkPause() {\n if (this.pauseHover && this.autoplay) {\n return this.pauseTimer();\n }\n },\n\n /**\r\n * Change the active item and emit change event.\r\n * action only for animated slide, there true = next, false = prev\r\n */\n changeItem: function changeItem(newIndex) {\n var action = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;\n if (this.activeItem === newIndex) return;\n\n if (this.activeItem < this.carouselItems.length) {\n this.carouselItems[this.activeItem].status(false, action);\n }\n\n this.carouselItems[newIndex].status(true, action);\n this.activeItem = newIndex;\n this.$emit('change', newIndex);\n },\n // Indicator trigger when change active item.\n modeChange: function modeChange(trigger, value) {\n if (this.indicatorMode === trigger) {\n this.$emit('input', value);\n return value < this.activeItem ? this.changeItem(value) : this.changeItem(value, false);\n }\n },\n prev: function prev() {\n if (this.activeItem === 0) {\n if (this.repeat) this.changeItem(this.carouselItems.length - 1);\n } else {\n this.changeItem(this.activeItem - 1);\n }\n },\n next: function next() {\n if (this.activeItem === this.carouselItems.length - 1) {\n if (this.repeat) this.changeItem(0, false);\n } else {\n this.changeItem(this.activeItem + 1, false);\n }\n },\n // checking arrow between both\n checkArrow: function checkArrow(value) {\n if (this.arrowBoth) return true;\n if (this.activeItem !== value) return true;\n },\n // handle drag event\n dragStart: function dragStart(event) {\n if (!this.hasDrag) return;\n this.dragx = event.touches ? event.changedTouches[0].pageX : event.pageX;\n\n if (event.touches) {\n this.pauseTimer();\n } else {\n event.preventDefault();\n }\n },\n dragEnd: function dragEnd(event) {\n if (!this.hasDrag) return;\n var detected = event.touches ? event.changedTouches[0].pageX : event.pageX;\n var diffX = detected - this.dragx;\n\n if (Math.abs(diffX) > 50) {\n if (diffX < 0) {\n this.next();\n } else {\n this.prev();\n }\n }\n\n if (event.touches) {\n this.startTimer();\n }\n }\n },\n mounted: function mounted() {\n if (this.activeItem < this.carouselItems.length) {\n this.carouselItems[this.activeItem].isActive = true;\n }\n\n this.startTimer();\n },\n beforeDestroy: function beforeDestroy() {\n this.pauseTimer();\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"carousel\",class:{'is-overlay': _vm.overlay},on:{\"mouseenter\":_vm.pauseTimer,\"mouseleave\":_vm.startTimer}},[(_vm.progress)?_c('progress',{staticClass:\"progress\",class:_vm.progressType,attrs:{\"max\":_vm.carouselItems.length - 1},domProps:{\"value\":_vm.activeItem}},[_vm._v(\"\\r\\n \"+_vm._s(_vm.carouselItems.length - 1)+\"\\r\\n \")]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"carousel-items\",on:{\"mousedown\":_vm.dragStart,\"mouseup\":_vm.dragEnd,\"touchstart\":function($event){$event.stopPropagation();return _vm.dragStart($event)},\"touchend\":function($event){$event.stopPropagation();return _vm.dragEnd($event)}}},[_vm._t(\"default\"),_vm._v(\" \"),(_vm.arrow)?_c('div',{staticClass:\"carousel-arrow\",class:{'is-hovered': _vm.arrowHover}},[(_vm.checkArrow(0))?_c('b-icon',{staticClass:\"has-icons-left\",attrs:{\"pack\":_vm.iconPack,\"icon\":_vm.iconPrev,\"size\":_vm.iconSize,\"both\":\"\"},nativeOn:{\"click\":function($event){$event.preventDefault();return _vm.prev($event)}}}):_vm._e(),_vm._v(\" \"),(_vm.checkArrow(_vm.carouselItems.length - 1))?_c('b-icon',{staticClass:\"has-icons-right\",attrs:{\"pack\":_vm.iconPack,\"icon\":_vm.iconNext,\"size\":_vm.iconSize,\"both\":\"\"},nativeOn:{\"click\":function($event){$event.preventDefault();return _vm.next($event)}}}):_vm._e()],1):_vm._e()],2),_vm._v(\" \"),(_vm.autoplay && _vm.pauseHover && _vm.pauseInfo && _vm.isPause)?_c('div',{staticClass:\"carousel-pause\"},[_c('span',{staticClass:\"tag\",class:_vm.pauseInfoType},[_vm._v(\"\\r\\n \"+_vm._s(_vm.pauseText)+\"\\r\\n \")])]):_vm._e(),_vm._v(\" \"),(_vm.withCarouselList && !_vm.indicator)?[_vm._t(\"list\",null,{active:_vm.activeItem,switch:_vm.changeItem})]:_vm._e(),_vm._v(\" \"),(_vm.indicator)?_c('div',{staticClass:\"carousel-indicator\",class:_vm.indicatorClasses},_vm._l((_vm.carouselItems),function(item,index){return _c('a',{key:index,staticClass:\"indicator-item\",class:{'is-active': index === _vm.activeItem},on:{\"mouseover\":function($event){_vm.modeChange('hover', index);},\"click\":function($event){_vm.modeChange('click', index);}}},[_vm._t(\"indicators\",[_c('span',{staticClass:\"indicator-style\",class:_vm.indicatorStyle})],{i:index})],2)})):_vm._e(),_vm._v(\" \"),(_vm.overlay)?[_vm._t(\"overlay\")]:_vm._e()],2)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Carousel = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\n//\n//\n//\n//\n//\n//\n//\n//\nvar script$1 = {\n name: 'BCarouselItem',\n data: function data() {\n return {\n isActive: false,\n transitionName: null\n };\n },\n computed: {\n transition: function transition() {\n if (this.$parent.animated === 'fade') {\n return 'fade';\n } else {\n return this.transitionName;\n }\n }\n },\n methods: {\n /**\r\n * Status of item, alter animation name based on action.\r\n */\n status: function status(value, action) {\n this.transitionName = action ? 'slide-next' : 'slide-prev';\n this.isActive = value;\n }\n },\n created: function created() {\n if (!this.$parent.$data._isCarousel) {\n this.$destroy();\n throw new Error('You should wrap bCarouselItem on a bCarousel');\n }\n\n this.$parent.carouselItems.push(this);\n },\n beforeDestroy: function beforeDestroy() {\n var index = this.$parent.carouselItems.indexOf(this);\n\n if (index >= 0) {\n this.$parent.carouselItems.splice(index, 1);\n }\n }\n};\n\n/* script */\nconst __vue_script__$1 = script$1;\n\n/* template */\nvar __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{\"name\":_vm.transition}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isActive),expression:\"isActive\"}],staticClass:\"carousel-item\"},[_vm._t(\"default\")],2)])};\nvar __vue_staticRenderFns__$1 = [];\n\n /* style */\n const __vue_inject_styles__$1 = undefined;\n /* scoped */\n const __vue_scope_id__$1 = undefined;\n /* module identifier */\n const __vue_module_identifier__$1 = undefined;\n /* functional template */\n const __vue_is_functional_template__$1 = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var CarouselItem = __vue_normalize__(\n { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },\n __vue_inject_styles__$1,\n __vue_script__$1,\n __vue_scope_id__$1,\n __vue_is_functional_template__$1,\n __vue_module_identifier__$1,\n undefined,\n undefined\n );\n\nvar script$2 = {\n name: 'BCarouselList',\n components: _defineProperty({}, Icon.name, Icon),\n props: {\n config: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n data: {\n type: Array,\n default: function _default() {\n return [];\n }\n },\n value: {\n type: Number,\n default: 0\n },\n hasDrag: {\n type: Boolean,\n default: true\n },\n hasGrayscale: Boolean,\n hasOpacity: Boolean,\n repeat: Boolean,\n itemsToShow: {\n type: Number,\n default: 4\n },\n itemsToList: {\n type: Number,\n default: 1\n },\n asIndicator: Boolean,\n arrow: {\n type: Boolean,\n default: true\n },\n arrowHover: {\n type: Boolean,\n default: true\n },\n iconPack: String,\n iconSize: String,\n iconPrev: {\n type: String,\n default: function _default() {\n return config.defaultIconPrev;\n }\n },\n iconNext: {\n type: String,\n default: function _default() {\n return config.defaultIconNext;\n }\n },\n refresh: Boolean\n },\n data: function data() {\n return {\n activeItem: this.value,\n breakpoints: {},\n delta: 0,\n dragging: false,\n hold: 0,\n itemWidth: 0,\n settings: {}\n };\n },\n computed: {\n listClass: function listClass() {\n return [{\n 'has-grayscale': this.settings.hasGrayscale || this.hasGrayscale,\n 'has-opacity': this.settings.hasOpacity || this.hasOpacity,\n 'is-dragging': this.dragging\n }];\n },\n itemStyle: function itemStyle() {\n return \"width: \".concat(this.itemWidth, \"px;\");\n },\n transformStyle: function transformStyle() {\n var translate = this.delta + 1 * (this.activeItem * this.itemWidth);\n var result = this.dragging ? -translate : -Math.abs(translate);\n return \"transform: translateX(\".concat(result, \"px);\");\n },\n total: function total() {\n return this.data.length - 1;\n }\n },\n watch: {\n /**\r\n * When v-model is changed set the new active item.\r\n */\n value: function value(_value) {\n this.switchTo(_value);\n },\n\n /**\r\n * Only for overlay and as indicator.\r\n * when call overlay with click.\r\n */\n refresh: function refresh(status) {\n if (status && this.asIndicator) {\n this.getWidth();\n }\n },\n '$props': {\n handler: function handler(value) {\n this.initConfig();\n this.update();\n },\n deep: true\n }\n },\n methods: {\n initConfig: function initConfig() {\n this.breakpoints = this.config.breakpoints;\n this.settings = merge(this.$props, this.config, true);\n },\n getWidth: function getWidth() {\n var rect = this.$el.getBoundingClientRect();\n this.itemWidth = rect.width / this.settings.itemsToShow;\n },\n update: function update() {\n if (this.breakpoints) {\n this.updateConfig();\n }\n\n this.getWidth();\n },\n updateConfig: function updateConfig() {\n var _this = this;\n\n var breakpoints = Object.keys(this.breakpoints).sort(function (a, b) {\n return b - a;\n });\n var checking;\n breakpoints.some(function (breakpoint) {\n checking = window.matchMedia(\"(min-width: \".concat(breakpoint, \"px)\")).matches;\n\n if (checking) {\n _this.settings = _this.config.breakpoints[breakpoint];\n return true;\n }\n });\n\n if (!checking) {\n this.settings = this.config;\n }\n },\n switchTo: function switchTo(newIndex) {\n if (newIndex < 0 || this.activeItem === newIndex || !this.repeat && newIndex > this.total) return;\n var result = this.repeat && newIndex > this.total ? 0 : newIndex;\n this.activeItem = result;\n this.$emit('switch', result);\n },\n next: function next() {\n this.switchTo(this.activeItem + this.itemsToList);\n },\n prev: function prev() {\n this.switchTo(this.activeItem - this.itemsToList);\n },\n checkArrow: function checkArrow(value) {\n if (this.repeat || this.activeItem !== value) return true;\n },\n checkAsIndicator: function checkAsIndicator(value, e) {\n if (!this.asIndicator) return;\n var timeCheck = new Date().getTime(); // al solution: holding, 100 - 400 not 100% but 200 is better!\n\n if (!e.touches && timeCheck - this.hold > 200) return;\n this.switchTo(value);\n },\n // handle drag event\n dragStart: function dragStart(event) {\n if (!this.hasDrag || event.button !== 0 && event.type !== 'touchstart') return;\n this.hold = new Date().getTime();\n this.dragging = true;\n this.dragStartX = event.touches ? event.touches[0].clientX : event.clientX;\n window.addEventListener(event.touches ? 'touchmove' : 'mousemove', this.dragMove);\n window.addEventListener(event.touches ? 'touchend' : 'mouseup', this.dragEnd);\n },\n dragMove: function dragMove(event) {\n this.dragEndX = event.touches ? event.touches[0].clientX : event.clientX;\n var deltaX = this.dragEndX - this.dragStartX;\n this.delta = deltaX < 0 ? Math.abs(deltaX) : -Math.abs(deltaX);\n\n if (!event.touches) {\n event.preventDefault();\n }\n },\n dragEnd: function dragEnd(event) {\n var signCheck = 1 * sign(this.delta);\n var results = Math.round(Math.abs(this.delta / this.itemWidth) + 0.15); // Hack\n\n this.switchTo(this.activeItem + signCheck * results);\n this.dragging = false;\n this.delta = 0;\n window.removeEventListener(event.touches ? 'touchmove' : 'mousemove', this.dragMove);\n window.removeEventListener(event.touches ? 'touchend' : 'mouseup', this.dragEnd);\n }\n },\n created: function created() {\n this.initConfig();\n\n if (typeof window !== 'undefined') {\n window.addEventListener('resize', this.update);\n }\n },\n mounted: function mounted() {\n var _this2 = this;\n\n this.$nextTick(function () {\n _this2.update();\n });\n },\n beforeDestroy: function beforeDestroy() {\n if (typeof window !== 'undefined') {\n window.removeEventListener('resize', this.update);\n }\n }\n};\n\n/* script */\nconst __vue_script__$2 = script$2;\n\n/* template */\nvar __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"carousel-list\",class:{'has-shadow': _vm.activeItem > 0},on:{\"mousedown\":function($event){$event.stopPropagation();$event.preventDefault();return _vm.dragStart($event)},\"touchstart\":_vm.dragStart}},[_c('div',{staticClass:\"carousel-slides\",class:_vm.listClass,style:(_vm.transformStyle)},_vm._l((_vm.data),function(list,index){return _c('div',{key:index,staticClass:\"carousel-slide\",class:{'is-active': _vm.activeItem === index},style:(_vm.itemStyle),on:{\"click\":function($event){_vm.checkAsIndicator(index, $event);}}},[_vm._t(\"item\",[_c('figure',{staticClass:\"image\"},[_c('img',{attrs:{\"src\":list.image,\"title\":list.title}})])],{list:list,index:index,active:_vm.activeItem})],2)})),_vm._v(\" \"),(_vm.arrow)?_c('div',{staticClass:\"carousel-arrow\",class:{'is-hovered': _vm.arrowHover}},[_c('b-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.activeItem > 0),expression:\"activeItem > 0\"}],staticClass:\"has-icons-left\",attrs:{\"pack\":_vm.iconPack,\"icon\":_vm.iconPrev,\"size\":_vm.iconSize,\"both\":\"\"},nativeOn:{\"click\":function($event){$event.preventDefault();return _vm.prev($event)}}}),_vm._v(\" \"),_c('b-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.checkArrow(_vm.total)),expression:\"checkArrow(total)\"}],staticClass:\"has-icons-right\",attrs:{\"pack\":_vm.iconPack,\"icon\":_vm.iconNext,\"size\":_vm.iconSize,\"both\":\"\"},nativeOn:{\"click\":function($event){$event.preventDefault();return _vm.next($event)}}})],1):_vm._e()])};\nvar __vue_staticRenderFns__$2 = [];\n\n /* style */\n const __vue_inject_styles__$2 = undefined;\n /* scoped */\n const __vue_scope_id__$2 = undefined;\n /* module identifier */\n const __vue_module_identifier__$2 = undefined;\n /* functional template */\n const __vue_is_functional_template__$2 = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var CarouselList = __vue_normalize__(\n { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 },\n __vue_inject_styles__$2,\n __vue_script__$2,\n __vue_scope_id__$2,\n __vue_is_functional_template__$2,\n __vue_module_identifier__$2,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Carousel);\n registerComponent(Vue, CarouselItem);\n registerComponent(Vue, CarouselList);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Carousel as BCarousel, CarouselItem as BCarouselItem, CarouselList as BCarouselList };\n","var CheckRadioMixin = {\n props: {\n value: [String, Number, Boolean, Function, Object, Array],\n nativeValue: [String, Number, Boolean, Function, Object, Array],\n type: String,\n disabled: Boolean,\n required: Boolean,\n name: String,\n size: String\n },\n data: function data() {\n return {\n newValue: this.value\n };\n },\n computed: {\n computedValue: {\n get: function get() {\n return this.newValue;\n },\n set: function set(value) {\n this.newValue = value;\n this.$emit('input', value);\n }\n }\n },\n watch: {\n /**\r\n * When v-model change, set internal value.\r\n */\n value: function value(_value) {\n this.newValue = _value;\n }\n },\n methods: {\n focus: function focus() {\n // MacOS FireFox and Safari do not focus when clicked\n this.$refs.input.focus();\n }\n }\n};\n\nexport { CheckRadioMixin as C };\n","import { _ as __vue_normalize__ } from './chunk-cca88db8.js';\nimport { C as CheckRadioMixin } from './chunk-2793447b.js';\n\n//\nvar script = {\n name: 'BCheckbox',\n mixins: [CheckRadioMixin],\n props: {\n indeterminate: Boolean,\n trueValue: {\n type: [String, Number, Boolean, Function, Object, Array],\n default: true\n },\n falseValue: {\n type: [String, Number, Boolean, Function, Object, Array],\n default: false\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{ref:\"label\",staticClass:\"b-checkbox checkbox\",class:[_vm.size, { 'is-disabled': _vm.disabled }],attrs:{\"disabled\":_vm.disabled},on:{\"click\":_vm.focus,\"keydown\":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }$event.preventDefault();_vm.$refs.label.click();}}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.computedValue),expression:\"computedValue\"}],ref:\"input\",attrs:{\"type\":\"checkbox\",\"disabled\":_vm.disabled,\"required\":_vm.required,\"name\":_vm.name,\"true-value\":_vm.trueValue,\"false-value\":_vm.falseValue},domProps:{\"indeterminate\":_vm.indeterminate,\"value\":_vm.nativeValue,\"checked\":Array.isArray(_vm.computedValue)?_vm._i(_vm.computedValue,_vm.nativeValue)>-1:_vm._q(_vm.computedValue,_vm.trueValue)},on:{\"click\":function($event){$event.stopPropagation();},\"change\":function($event){var $$a=_vm.computedValue,$$el=$event.target,$$c=$$el.checked?(_vm.trueValue):(_vm.falseValue);if(Array.isArray($$a)){var $$v=_vm.nativeValue,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.computedValue=$$a.concat([$$v]));}else{$$i>-1&&(_vm.computedValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)));}}else{_vm.computedValue=$$c;}}}}),_vm._v(\" \"),_c('span',{staticClass:\"check\",class:_vm.type}),_vm._v(\" \"),_c('span',{staticClass:\"control-label\"},[_vm._t(\"default\")],2)])};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Checkbox = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nexport { Checkbox as C };\n","import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport { C as CheckRadioMixin } from './chunk-2793447b.js';\nimport { C as Checkbox } from './chunk-7bdbd626.js';\nexport { C as BCheckbox } from './chunk-7bdbd626.js';\n\n//\nvar script = {\n name: 'BCheckboxButton',\n mixins: [CheckRadioMixin],\n props: {\n type: {\n type: String,\n default: 'is-primary'\n },\n expanded: Boolean\n },\n data: function data() {\n return {\n isFocused: false\n };\n },\n computed: {\n checked: function checked() {\n if (Array.isArray(this.newValue)) {\n return this.newValue.indexOf(this.nativeValue) >= 0;\n }\n\n return this.newValue === this.nativeValue;\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"control\",class:{ 'is-expanded': _vm.expanded }},[_c('label',{ref:\"label\",staticClass:\"b-checkbox checkbox button\",class:[_vm.checked ? _vm.type : null, _vm.size, {\r\n 'is-disabled': _vm.disabled,\r\n 'is-focused': _vm.isFocused\r\n }],attrs:{\"disabled\":_vm.disabled},on:{\"click\":_vm.focus,\"keydown\":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }$event.preventDefault();_vm.$refs.label.click();}}},[_vm._t(\"default\"),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.computedValue),expression:\"computedValue\"}],ref:\"input\",attrs:{\"type\":\"checkbox\",\"disabled\":_vm.disabled,\"required\":_vm.required,\"name\":_vm.name},domProps:{\"value\":_vm.nativeValue,\"checked\":Array.isArray(_vm.computedValue)?_vm._i(_vm.computedValue,_vm.nativeValue)>-1:(_vm.computedValue)},on:{\"click\":function($event){$event.stopPropagation();},\"focus\":function($event){_vm.isFocused = true;},\"blur\":function($event){_vm.isFocused = false;},\"change\":function($event){var $$a=_vm.computedValue,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=_vm.nativeValue,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.computedValue=$$a.concat([$$v]));}else{$$i>-1&&(_vm.computedValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)));}}else{_vm.computedValue=$$c;}}}})],2)])};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var CheckboxButton = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Checkbox);\n registerComponent(Vue, CheckboxButton);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { CheckboxButton as BCheckboxButton };\n","import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\n\nvar script = {\n name: 'BCollapse',\n props: {\n open: {\n type: Boolean,\n default: true\n },\n animation: {\n type: String,\n default: 'fade'\n },\n ariaId: {\n type: String,\n default: ''\n },\n position: {\n type: String,\n default: 'is-top',\n validator: function validator(value) {\n return ['is-top', 'is-bottom'].indexOf(value) > -1;\n }\n }\n },\n data: function data() {\n return {\n isOpen: this.open\n };\n },\n watch: {\n open: function open(value) {\n this.isOpen = value;\n }\n },\n methods: {\n /**\r\n * Toggle and emit events\r\n */\n toggle: function toggle() {\n this.isOpen = !this.isOpen;\n this.$emit('update:open', this.isOpen);\n this.$emit(this.isOpen ? 'open' : 'close');\n }\n },\n render: function render(createElement) {\n var trigger = createElement('div', {\n staticClass: 'collapse-trigger',\n on: {\n click: this.toggle\n }\n }, this.$scopedSlots.trigger ? [this.$scopedSlots.trigger({\n open: this.isOpen\n })] : [this.$slots.trigger]);\n var content = createElement('transition', {\n props: {\n name: this.animation\n }\n }, [createElement('div', {\n staticClass: 'collapse-content',\n attrs: {\n 'id': this.ariaId,\n 'aria-expanded': this.isOpen\n },\n directives: [{\n name: 'show',\n value: this.isOpen\n }]\n }, this.$slots.default)]);\n return createElement('div', {\n staticClass: 'collapse'\n }, this.position === 'is-top' ? [trigger, content] : [content, trigger]);\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = undefined;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Collapse = __vue_normalize__(\n {},\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Collapse);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Collapse as BCollapse };\n","var findFocusable = function findFocusable(element) {\n var programmatic = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n if (!element) {\n return null;\n }\n\n if (programmatic) {\n return element.querySelectorAll(\"*[tabindex=\\\"-1\\\"]\");\n }\n\n return element.querySelectorAll(\"a[href]:not([tabindex=\\\"-1\\\"]),\\n area[href],\\n input:not([disabled]),\\n select:not([disabled]),\\n textarea:not([disabled]),\\n button:not([disabled]),\\n iframe,\\n object,\\n embed,\\n *[tabindex]:not([tabindex=\\\"-1\\\"]),\\n *[contenteditable]\");\n};\n\nvar onKeyDown;\n\nvar bind = function bind(el, _ref) {\n var _ref$value = _ref.value,\n value = _ref$value === void 0 ? true : _ref$value;\n\n if (value) {\n var focusable = findFocusable(el);\n var focusableProg = findFocusable(el, true);\n\n if (focusable && focusable.length > 0) {\n onKeyDown = function onKeyDown(event) {\n // Need to get focusable each time since it can change between key events\n // ex. changing month in a datepicker\n focusable = findFocusable(el);\n focusableProg = findFocusable(el, true);\n var firstFocusable = focusable[0];\n var lastFocusable = focusable[focusable.length - 1];\n\n if (event.target === firstFocusable && event.shiftKey && event.key === 'Tab') {\n event.preventDefault();\n lastFocusable.focus();\n } else if ((event.target === lastFocusable || Array.from(focusableProg).indexOf(event.target) >= 0) && !event.shiftKey && event.key === 'Tab') {\n event.preventDefault();\n firstFocusable.focus();\n }\n };\n\n el.addEventListener('keydown', onKeyDown);\n }\n }\n};\n\nvar unbind = function unbind(el) {\n el.removeEventListener('keydown', onKeyDown);\n};\n\nvar directive = {\n bind: bind,\n unbind: unbind\n};\n\nexport { directive as t };\n","import { isMobile } from './helpers.js';\nimport { c as config } from './chunk-6985c8ce.js';\nimport { F as FormElementMixin } from './chunk-d0a313ea.js';\n\nvar AM = 'AM';\nvar PM = 'PM';\nvar HOUR_FORMAT_24 = '24';\nvar HOUR_FORMAT_12 = '12';\n\nvar defaultTimeFormatter = function defaultTimeFormatter(date, vm) {\n var hours = date.getHours();\n var minutes = date.getMinutes();\n var seconds = date.getSeconds();\n var period = '';\n\n if (vm.hourFormat === HOUR_FORMAT_12) {\n period = ' ' + (hours < 12 ? AM : PM);\n\n if (hours > 12) {\n hours -= 12;\n } else if (hours === 0) {\n hours = 12;\n }\n }\n\n return vm.pad(hours) + ':' + vm.pad(minutes) + (vm.enableSeconds ? ':' + vm.pad(seconds) : '') + period;\n};\n\nvar defaultTimeParser = function defaultTimeParser(timeString, vm) {\n if (timeString) {\n var am = false;\n\n if (vm.hourFormat === HOUR_FORMAT_12) {\n var dateString12 = timeString.split(' ');\n timeString = dateString12[0];\n am = dateString12[1] === AM;\n }\n\n var time = timeString.split(':');\n var hours = parseInt(time[0], 10);\n var minutes = parseInt(time[1], 10);\n var seconds = vm.enableSeconds ? parseInt(time[2], 10) : 0;\n\n if (isNaN(hours) || hours < 0 || hours > 23 || vm.hourFormat === HOUR_FORMAT_12 && (hours < 1 || hours > 12) || isNaN(minutes) || minutes < 0 || minutes > 59) {\n return null;\n }\n\n var d = null;\n\n if (vm.computedValue && !isNaN(vm.computedValue)) {\n d = new Date(vm.computedValue);\n } else {\n d = vm.timeCreator();\n d.setMilliseconds(0);\n }\n\n d.setSeconds(seconds);\n d.setMinutes(minutes);\n\n if (vm.hourFormat === HOUR_FORMAT_12) {\n if (am && hours === 12) {\n hours = 0;\n } else if (!am && hours !== 12) {\n hours += 12;\n }\n }\n\n d.setHours(hours);\n return new Date(d.getTime());\n }\n\n return null;\n};\n\nvar TimepickerMixin = {\n mixins: [FormElementMixin],\n inheritAttrs: false,\n props: {\n value: Date,\n inline: Boolean,\n minTime: Date,\n maxTime: Date,\n placeholder: String,\n editable: Boolean,\n disabled: Boolean,\n hourFormat: {\n type: String,\n default: HOUR_FORMAT_24,\n validator: function validator(value) {\n return value === HOUR_FORMAT_24 || value === HOUR_FORMAT_12;\n }\n },\n incrementHours: {\n type: Number,\n default: 1\n },\n incrementMinutes: {\n type: Number,\n default: 1\n },\n incrementSeconds: {\n type: Number,\n default: 1\n },\n timeFormatter: {\n type: Function,\n default: function _default(date, vm) {\n if (typeof config.defaultTimeFormatter === 'function') {\n return config.defaultTimeFormatter(date);\n } else {\n return defaultTimeFormatter(date, vm);\n }\n }\n },\n timeParser: {\n type: Function,\n default: function _default(date, vm) {\n if (typeof config.defaultTimeParser === 'function') {\n return config.defaultTimeParser(date);\n } else {\n return defaultTimeParser(date, vm);\n }\n }\n },\n mobileNative: {\n type: Boolean,\n default: function _default() {\n return config.defaultTimepickerMobileNative;\n }\n },\n timeCreator: {\n type: Function,\n default: function _default() {\n if (typeof config.defaultTimeCreator === 'function') {\n return config.defaultTimeCreator();\n } else {\n return new Date();\n }\n }\n },\n position: String,\n unselectableTimes: Array,\n openOnFocus: Boolean,\n enableSeconds: Boolean,\n defaultMinutes: Number,\n defaultSeconds: Number,\n focusable: {\n type: Boolean,\n default: true\n },\n tzOffset: {\n type: Number,\n default: 0\n },\n appendToBody: Boolean\n },\n data: function data() {\n return {\n dateSelected: this.value,\n hoursSelected: null,\n minutesSelected: null,\n secondsSelected: null,\n meridienSelected: null,\n _elementRef: 'input',\n AM: AM,\n PM: PM,\n HOUR_FORMAT_24: HOUR_FORMAT_24,\n HOUR_FORMAT_12: HOUR_FORMAT_12\n };\n },\n computed: {\n computedValue: {\n get: function get() {\n return this.dateSelected;\n },\n set: function set(value) {\n this.dateSelected = value;\n this.$emit('input', this.dateSelected);\n }\n },\n hours: function hours() {\n if (!this.incrementHours || this.incrementHours < 1) throw new Error('Hour increment cannot be null or less than 1.');\n var hours = [];\n var numberOfHours = this.isHourFormat24 ? 24 : 12;\n\n for (var i = 0; i < numberOfHours; i += this.incrementHours) {\n var value = i;\n var label = value;\n\n if (!this.isHourFormat24) {\n value = i + 1;\n label = value;\n\n if (this.meridienSelected === this.AM) {\n if (value === 12) {\n value = 0;\n }\n } else if (this.meridienSelected === this.PM) {\n if (value !== 12) {\n value += 12;\n }\n }\n }\n\n hours.push({\n label: this.formatNumber(label),\n value: value\n });\n }\n\n return hours;\n },\n minutes: function minutes() {\n if (!this.incrementMinutes || this.incrementMinutes < 1) throw new Error('Minute increment cannot be null or less than 1.');\n var minutes = [];\n\n for (var i = 0; i < 60; i += this.incrementMinutes) {\n minutes.push({\n label: this.formatNumber(i, true),\n value: i\n });\n }\n\n return minutes;\n },\n seconds: function seconds() {\n if (!this.incrementSeconds || this.incrementSeconds < 1) throw new Error('Second increment cannot be null or less than 1.');\n var seconds = [];\n\n for (var i = 0; i < 60; i += this.incrementSeconds) {\n seconds.push({\n label: this.formatNumber(i, true),\n value: i\n });\n }\n\n return seconds;\n },\n meridiens: function meridiens() {\n return [AM, PM];\n },\n isMobile: function isMobile$1() {\n return this.mobileNative && isMobile.any();\n },\n isHourFormat24: function isHourFormat24() {\n return this.hourFormat === HOUR_FORMAT_24;\n }\n },\n watch: {\n hourFormat: function hourFormat() {\n if (this.hoursSelected !== null) {\n this.meridienSelected = this.hoursSelected >= 12 ? PM : AM;\n }\n },\n\n /**\r\n * When v-model is changed:\r\n * 1. Update internal value.\r\n * 2. If it's invalid, validate again.\r\n */\n value: {\n handler: function handler(value) {\n this.updateInternalState(value);\n !this.isValid && this.$refs.input.checkHtml5Validity();\n },\n immediate: true\n }\n },\n methods: {\n onMeridienChange: function onMeridienChange(value) {\n if (this.hoursSelected !== null) {\n if (value === PM) {\n this.hoursSelected += 12;\n } else if (value === AM) {\n this.hoursSelected -= 12;\n }\n }\n\n this.updateDateSelected(this.hoursSelected, this.minutesSelected, this.enableSeconds ? this.secondsSelected : 0, value);\n },\n onHoursChange: function onHoursChange(value) {\n if (!this.minutesSelected && typeof this.defaultMinutes !== 'undefined') {\n this.minutesSelected = this.defaultMinutes;\n }\n\n if (!this.secondsSelected && typeof this.defaultSeconds !== 'undefined') {\n this.secondsSelected = this.defaultSeconds;\n }\n\n this.updateDateSelected(parseInt(value, 10), this.minutesSelected, this.enableSeconds ? this.secondsSelected : 0, this.meridienSelected);\n },\n onMinutesChange: function onMinutesChange(value) {\n if (!this.secondsSelected && this.defaultSeconds) {\n this.secondsSelected = this.defaultSeconds;\n }\n\n this.updateDateSelected(this.hoursSelected, parseInt(value, 10), this.enableSeconds ? this.secondsSelected : 0, this.meridienSelected);\n },\n onSecondsChange: function onSecondsChange(value) {\n this.updateDateSelected(this.hoursSelected, this.minutesSelected, parseInt(value, 10), this.meridienSelected);\n },\n updateDateSelected: function updateDateSelected(hours, minutes, seconds, meridiens) {\n if (hours != null && minutes != null && (!this.isHourFormat24 && meridiens !== null || this.isHourFormat24)) {\n var time = null;\n\n if (this.computedValue && !isNaN(this.computedValue)) {\n time = new Date(this.computedValue);\n } else {\n time = this.timeCreator();\n time.setMilliseconds(0);\n }\n\n time.setHours(hours);\n time.setMinutes(minutes);\n time.setSeconds(seconds);\n this.computedValue = new Date(time.getTime());\n }\n },\n updateInternalState: function updateInternalState(value) {\n if (value) {\n this.hoursSelected = value.getHours();\n this.minutesSelected = value.getMinutes();\n this.secondsSelected = value.getSeconds();\n this.meridienSelected = value.getHours() >= 12 ? PM : AM;\n } else {\n this.hoursSelected = null;\n this.minutesSelected = null;\n this.secondsSelected = null;\n this.meridienSelected = AM;\n }\n\n this.dateSelected = value;\n },\n isHourDisabled: function isHourDisabled(hour) {\n var _this = this;\n\n var disabled = false;\n\n if (this.minTime) {\n var minHours = this.minTime.getHours();\n var noMinutesAvailable = this.minutes.every(function (minute) {\n return _this.isMinuteDisabledForHour(hour, minute.value);\n });\n disabled = hour < minHours || noMinutesAvailable;\n }\n\n if (this.maxTime) {\n if (!disabled) {\n var maxHours = this.maxTime.getHours();\n disabled = hour > maxHours;\n }\n }\n\n if (this.unselectableTimes) {\n if (!disabled) {\n var unselectable = this.unselectableTimes.filter(function (time) {\n if (_this.enableSeconds && _this.secondsSelected !== null) {\n return time.getHours() === hour && time.getMinutes() === _this.minutesSelected && time.getSeconds() === _this.secondsSelected;\n } else if (_this.minutesSelected !== null) {\n return time.getHours() === hour && time.getMinutes() === _this.minutesSelected;\n } else {\n return time.getHours() === hour;\n }\n });\n disabled = unselectable.length > 0;\n }\n }\n\n return disabled;\n },\n isMinuteDisabledForHour: function isMinuteDisabledForHour(hour, minute) {\n var disabled = false;\n\n if (this.minTime) {\n var minHours = this.minTime.getHours();\n var minMinutes = this.minTime.getMinutes();\n disabled = hour === minHours && minute < minMinutes;\n }\n\n if (this.maxTime) {\n if (!disabled) {\n var maxHours = this.maxTime.getHours();\n var maxMinutes = this.maxTime.getMinutes();\n disabled = hour === maxHours && minute > maxMinutes;\n }\n }\n\n return disabled;\n },\n isMinuteDisabled: function isMinuteDisabled(minute) {\n var _this2 = this;\n\n var disabled = false;\n\n if (this.hoursSelected !== null) {\n if (this.isHourDisabled(this.hoursSelected)) {\n disabled = true;\n } else {\n disabled = this.isMinuteDisabledForHour(this.hoursSelected, minute);\n }\n\n if (this.unselectableTimes) {\n if (!disabled) {\n var unselectable = this.unselectableTimes.filter(function (time) {\n if (_this2.enableSeconds && _this2.secondsSelected !== null) {\n return time.getHours() === _this2.hoursSelected && time.getMinutes() === minute && time.getSeconds() === _this2.secondsSelected;\n } else {\n return time.getHours() === _this2.hoursSelected && time.getMinutes() === minute;\n }\n });\n disabled = unselectable.length > 0;\n }\n }\n }\n\n return disabled;\n },\n isSecondDisabled: function isSecondDisabled(second) {\n var _this3 = this;\n\n var disabled = false;\n\n if (this.minutesSelected !== null) {\n if (this.isMinuteDisabled(this.minutesSelected)) {\n disabled = true;\n } else {\n if (this.minTime) {\n var minHours = this.minTime.getHours();\n var minMinutes = this.minTime.getMinutes();\n var minSeconds = this.minTime.getSeconds();\n disabled = this.hoursSelected === minHours && this.minutesSelected === minMinutes && second < minSeconds;\n }\n\n if (this.maxTime) {\n if (!disabled) {\n var maxHours = this.maxTime.getHours();\n var maxMinutes = this.maxTime.getMinutes();\n var maxSeconds = this.maxTime.getSeconds();\n disabled = this.hoursSelected === maxHours && this.minutesSelected === maxMinutes && second > maxSeconds;\n }\n }\n }\n\n if (this.unselectableTimes) {\n if (!disabled) {\n var unselectable = this.unselectableTimes.filter(function (time) {\n return time.getHours() === _this3.hoursSelected && time.getMinutes() === _this3.minutesSelected && time.getSeconds() === second;\n });\n disabled = unselectable.length > 0;\n }\n }\n }\n\n return disabled;\n },\n\n /*\r\n * Parse string into date\r\n */\n onChange: function onChange(value) {\n var date = this.timeParser(value, this);\n this.updateInternalState(date);\n\n if (date && !isNaN(date)) {\n this.computedValue = date;\n } else {\n // Force refresh input value when not valid date\n this.computedValue = null;\n this.$refs.input.newValue = this.computedValue;\n }\n },\n\n /*\r\n * Toggle timepicker\r\n */\n toggle: function toggle(active) {\n if (this.$refs.dropdown) {\n this.$refs.dropdown.isActive = typeof active === 'boolean' ? active : !this.$refs.dropdown.isActive;\n }\n },\n\n /*\r\n * Close timepicker\r\n */\n close: function close() {\n this.toggle(false);\n },\n\n /*\r\n * Call default onFocus method and show timepicker\r\n */\n handleOnFocus: function handleOnFocus() {\n this.onFocus();\n\n if (this.openOnFocus) {\n this.toggle(true);\n }\n },\n\n /*\r\n * Format date into string 'HH-MM-SS'\r\n */\n formatHHMMSS: function formatHHMMSS(value) {\n var date = new Date(value);\n\n if (value && !isNaN(date)) {\n var hours = date.getHours();\n var minutes = date.getMinutes();\n var seconds = date.getSeconds();\n return this.formatNumber(hours, true) + ':' + this.formatNumber(minutes, true) + ':' + this.formatNumber(seconds, true);\n }\n\n return '';\n },\n\n /*\r\n * Parse time from string\r\n */\n onChangeNativePicker: function onChangeNativePicker(event) {\n var date = event.target.value;\n\n if (date) {\n var time = null;\n\n if (this.computedValue && !isNaN(this.computedValue)) {\n time = new Date(this.computedValue);\n } else {\n time = new Date();\n time.setMilliseconds(0);\n }\n\n var t = date.split(':');\n time.setHours(parseInt(t[0], 10));\n time.setMinutes(parseInt(t[1], 10));\n time.setSeconds(t[2] ? parseInt(t[2], 10) : 0);\n this.computedValue = new Date(time.getTime());\n } else {\n this.computedValue = null;\n }\n },\n formatNumber: function formatNumber(value, prependZero) {\n return this.isHourFormat24 || prependZero ? this.pad(value) : value;\n },\n pad: function pad(value) {\n return (value < 10 ? '0' : '') + value;\n },\n\n /*\r\n * Format date into string\r\n */\n formatValue: function formatValue(date) {\n if (date && !isNaN(date)) {\n return this.timeFormatter(date, this);\n } else {\n return null;\n }\n },\n\n /**\r\n * Keypress event that is bound to the document.\r\n */\n keyPress: function keyPress(event) {\n // Esc key\n if (this.$refs.dropdown && this.$refs.dropdown.isActive && event.keyCode === 27) {\n this.toggle(false);\n }\n },\n\n /**\r\n * Emit 'blur' event on dropdown is not active (closed)\r\n */\n onActiveChange: function onActiveChange(value) {\n if (!value) {\n this.onBlur();\n }\n }\n },\n created: function created() {\n if (typeof window !== 'undefined') {\n document.addEventListener('keyup', this.keyPress);\n }\n },\n beforeDestroy: function beforeDestroy() {\n if (typeof window !== 'undefined') {\n document.removeEventListener('keyup', this.keyPress);\n }\n }\n};\n\nexport { TimepickerMixin as T };\n","import { b as _typeof } from './chunk-1fafdf15.js';\nimport { createAbsoluteElement, removeElement } from './helpers.js';\nimport { c as config } from './chunk-6985c8ce.js';\nimport { _ as __vue_normalize__ } from './chunk-cca88db8.js';\nimport { t as trapFocus } from './chunk-42f463e6.js';\n\nvar DEFAULT_CLOSE_OPTIONS = ['escape', 'outside'];\nvar script = {\n name: 'BDropdown',\n directives: {\n trapFocus: trapFocus\n },\n props: {\n value: {\n type: [String, Number, Boolean, Object, Array, Function],\n default: null\n },\n disabled: Boolean,\n hoverable: Boolean,\n inline: Boolean,\n scrollable: Boolean,\n maxHeight: {\n type: [String, Number],\n default: 200\n },\n position: {\n type: String,\n validator: function validator(value) {\n return ['is-top-right', 'is-top-left', 'is-bottom-left', 'is-bottom-right'].indexOf(value) > -1;\n }\n },\n mobileModal: {\n type: Boolean,\n default: function _default() {\n return config.defaultDropdownMobileModal;\n }\n },\n ariaRole: {\n type: String,\n validator: function validator(value) {\n return ['menu', 'list', 'dialog'].indexOf(value) > -1;\n },\n default: null\n },\n animation: {\n type: String,\n default: 'fade'\n },\n multiple: Boolean,\n trapFocus: {\n type: Boolean,\n default: function _default() {\n return config.defaultTrapFocus;\n }\n },\n closeOnClick: {\n type: Boolean,\n default: true\n },\n canClose: {\n type: [Array, Boolean],\n default: true\n },\n expanded: Boolean,\n appendToBody: Boolean,\n appendToBodyCopyParent: Boolean\n },\n data: function data() {\n return {\n selected: this.value,\n style: {},\n isActive: false,\n isHoverable: this.hoverable,\n _isDropdown: true,\n // Used internally by DropdownItem\n _bodyEl: undefined // Used to append to body\n\n };\n },\n computed: {\n rootClasses: function rootClasses() {\n return [this.position, {\n 'is-disabled': this.disabled,\n 'is-hoverable': this.hoverable,\n 'is-inline': this.inline,\n 'is-active': this.isActive || this.inline,\n 'is-mobile-modal': this.isMobileModal,\n 'is-expanded': this.expanded\n }];\n },\n isMobileModal: function isMobileModal() {\n return this.mobileModal && !this.inline && !this.hoverable;\n },\n cancelOptions: function cancelOptions() {\n return typeof this.canClose === 'boolean' ? this.canClose ? DEFAULT_CLOSE_OPTIONS : [] : this.canClose;\n },\n contentStyle: function contentStyle() {\n return {\n maxHeight: this.scrollable ? this.maxHeight === undefined ? null : isNaN(this.maxHeight) ? this.maxHeight : this.maxHeight + 'px' : null,\n overflow: this.scrollable ? 'auto' : null\n };\n }\n },\n watch: {\n /**\r\n * When v-model is changed set the new selected item.\r\n */\n value: function value(_value) {\n this.selected = _value;\n },\n\n /**\r\n * Emit event when isActive value is changed.\r\n */\n isActive: function isActive(value) {\n var _this = this;\n\n this.$emit('active-change', value);\n\n if (this.appendToBody) {\n this.$nextTick(function () {\n _this.updateAppendToBody();\n });\n }\n }\n },\n methods: {\n /**\r\n * Click listener from DropdownItem.\r\n * 1. Set new selected item.\r\n * 2. Emit input event to update the user v-model.\r\n * 3. Close the dropdown.\r\n */\n selectItem: function selectItem(value) {\n if (this.multiple) {\n if (this.selected) {\n var index = this.selected.indexOf(value);\n\n if (index === -1) {\n this.selected.push(value);\n } else {\n this.selected.splice(index, 1);\n }\n } else {\n this.selected = [value];\n }\n\n this.$emit('change', this.selected);\n } else {\n if (this.selected !== value) {\n this.selected = value;\n this.$emit('change', this.selected);\n }\n }\n\n this.$emit('input', this.selected);\n\n if (!this.multiple) {\n this.isActive = !this.closeOnClick;\n\n if (this.hoverable && this.closeOnClick) {\n this.isHoverable = false;\n }\n }\n },\n\n /**\r\n * White-listed items to not close when clicked.\r\n */\n isInWhiteList: function isInWhiteList(el) {\n if (el === this.$refs.dropdownMenu) return true;\n if (el === this.$refs.trigger) return true; // All chidren from dropdown\n\n if (this.$refs.dropdownMenu !== undefined) {\n var children = this.$refs.dropdownMenu.querySelectorAll('*');\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var child = _step.value;\n\n if (el === child) {\n return true;\n }\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n } // All children from trigger\n\n\n if (this.$refs.trigger !== undefined) {\n var _children = this.$refs.trigger.querySelectorAll('*');\n\n var _iteratorNormalCompletion2 = true;\n var _didIteratorError2 = false;\n var _iteratorError2 = undefined;\n\n try {\n for (var _iterator2 = _children[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {\n var _child = _step2.value;\n\n if (el === _child) {\n return true;\n }\n }\n } catch (err) {\n _didIteratorError2 = true;\n _iteratorError2 = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion2 && _iterator2.return != null) {\n _iterator2.return();\n }\n } finally {\n if (_didIteratorError2) {\n throw _iteratorError2;\n }\n }\n }\n }\n\n return false;\n },\n\n /**\r\n * Close dropdown if clicked outside.\r\n */\n clickedOutside: function clickedOutside(event) {\n if (this.cancelOptions.indexOf('outside') < 0) return;\n if (this.inline) return;\n if (!this.isInWhiteList(event.target)) this.isActive = false;\n },\n\n /**\r\n * Keypress event that is bound to the document\r\n */\n keyPress: function keyPress(event) {\n // Esc key\n if (this.isActive && event.keyCode === 27) {\n if (this.cancelOptions.indexOf('escape') < 0) return;\n this.isActive = false;\n }\n },\n\n /**\r\n * Toggle dropdown if it's not disabled.\r\n */\n toggle: function toggle() {\n var _this2 = this;\n\n if (this.disabled) return;\n\n if (!this.isActive) {\n // if not active, toggle after clickOutside event\n // this fixes toggling programmatic\n this.$nextTick(function () {\n var value = !_this2.isActive;\n _this2.isActive = value; // Vue 2.6.x ???\n\n setTimeout(function () {\n return _this2.isActive = value;\n });\n });\n } else {\n this.isActive = !this.isActive;\n }\n },\n checkHoverable: function checkHoverable() {\n if (this.hoverable) {\n this.isHoverable = true;\n }\n },\n updateAppendToBody: function updateAppendToBody() {\n var dropdownMenu = this.$refs.dropdownMenu;\n var trigger = this.$refs.trigger;\n\n if (dropdownMenu && trigger) {\n // update wrapper dropdown\n var dropdown = this.$data._bodyEl.children[0];\n dropdown.classList.forEach(function (item) {\n return dropdown.classList.remove(item);\n });\n dropdown.classList.add('dropdown');\n dropdown.classList.add('dropdown-menu-animation');\n\n if (this.$vnode && this.$vnode.data && this.$vnode.data.staticClass) {\n dropdown.classList.add(this.$vnode.data.staticClass);\n }\n\n this.rootClasses.forEach(function (item) {\n // skip position prop\n if (item && _typeof(item) === 'object') {\n for (var key in item) {\n if (item[key]) {\n dropdown.classList.add(key);\n }\n }\n }\n });\n\n if (this.appendToBodyCopyParent) {\n var parentNode = this.$refs.dropdown.parentNode;\n var parent = this.$data._bodyEl;\n parent.classList.forEach(function (item) {\n return parent.classList.remove(item);\n });\n parentNode.classList.forEach(function (item) {\n parent.classList.add(item);\n });\n }\n\n var rect = trigger.getBoundingClientRect();\n var top = rect.top + window.scrollY;\n var left = rect.left + window.scrollX;\n\n if (!this.position || this.position.indexOf('bottom') >= 0) {\n top += trigger.clientHeight;\n } else {\n top -= dropdownMenu.clientHeight;\n }\n\n if (this.position && this.position.indexOf('left') >= 0) {\n left -= dropdownMenu.clientWidth - trigger.clientWidth;\n }\n\n this.style = {\n position: 'absolute',\n top: \"\".concat(top, \"px\"),\n left: \"\".concat(left, \"px\"),\n zIndex: '99'\n };\n }\n }\n },\n mounted: function mounted() {\n if (this.appendToBody) {\n this.$data._bodyEl = createAbsoluteElement(this.$refs.dropdownMenu);\n this.updateAppendToBody();\n }\n },\n created: function created() {\n if (typeof window !== 'undefined') {\n document.addEventListener('click', this.clickedOutside);\n document.addEventListener('keyup', this.keyPress);\n }\n },\n beforeDestroy: function beforeDestroy() {\n if (typeof window !== 'undefined') {\n document.removeEventListener('click', this.clickedOutside);\n document.removeEventListener('keyup', this.keyPress);\n }\n\n if (this.appendToBody) {\n removeElement(this.$data._bodyEl);\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:\"dropdown\",staticClass:\"dropdown dropdown-menu-animation\",class:_vm.rootClasses},[(!_vm.inline)?_c('div',{ref:\"trigger\",staticClass:\"dropdown-trigger\",attrs:{\"role\":\"button\",\"aria-haspopup\":\"true\"},on:{\"click\":_vm.toggle,\"mouseenter\":_vm.checkHoverable}},[_vm._t(\"trigger\",null,{active:_vm.isActive})],2):_vm._e(),_vm._v(\" \"),_c('transition',{attrs:{\"name\":_vm.animation}},[(_vm.isMobileModal)?_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isActive),expression:\"isActive\"}],staticClass:\"background\",attrs:{\"aria-hidden\":!_vm.isActive}}):_vm._e()]),_vm._v(\" \"),_c('transition',{attrs:{\"name\":_vm.animation}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:((!_vm.disabled && (_vm.isActive || _vm.isHoverable)) || _vm.inline),expression:\"(!disabled && (isActive || isHoverable)) || inline\"},{name:\"trap-focus\",rawName:\"v-trap-focus\",value:(_vm.trapFocus),expression:\"trapFocus\"}],ref:\"dropdownMenu\",staticClass:\"dropdown-menu\",style:(_vm.style),attrs:{\"aria-hidden\":!_vm.isActive}},[_c('div',{staticClass:\"dropdown-content\",style:(_vm.contentStyle),attrs:{\"role\":_vm.ariaRole}},[_vm._t(\"default\")],2)])])],1)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Dropdown = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar script$1 = {\n name: 'BDropdownItem',\n props: {\n value: {\n type: [String, Number, Boolean, Object, Array, Function],\n default: null\n },\n separator: Boolean,\n disabled: Boolean,\n custom: Boolean,\n focusable: {\n type: Boolean,\n default: true\n },\n paddingless: Boolean,\n hasLink: Boolean,\n ariaRole: {\n type: String,\n default: ''\n }\n },\n computed: {\n anchorClasses: function anchorClasses() {\n return {\n 'is-disabled': this.$parent.disabled || this.disabled,\n 'is-paddingless': this.paddingless,\n 'is-active': this.isActive\n };\n },\n itemClasses: function itemClasses() {\n return {\n 'dropdown-item': !this.hasLink,\n 'is-disabled': this.disabled,\n 'is-paddingless': this.paddingless,\n 'is-active': this.isActive,\n 'has-link': this.hasLink\n };\n },\n ariaRoleItem: function ariaRoleItem() {\n return this.ariaRole === 'menuitem' || this.ariaRole === 'listitem' ? this.ariaRole : null;\n },\n isClickable: function isClickable() {\n return !this.$parent.disabled && !this.separator && !this.disabled && !this.custom;\n },\n isActive: function isActive() {\n if (this.$parent.selected === null) return false;\n if (this.$parent.multiple) return this.$parent.selected.indexOf(this.value) >= 0;\n return this.value === this.$parent.selected;\n },\n isFocusable: function isFocusable() {\n return this.hasLink ? false : this.focusable;\n }\n },\n methods: {\n /**\r\n * Click listener, select the item.\r\n */\n selectItem: function selectItem() {\n if (!this.isClickable) return;\n this.$parent.selectItem(this.value);\n this.$emit('click');\n }\n },\n created: function created() {\n if (!this.$parent.$data._isDropdown) {\n this.$destroy();\n throw new Error('You should wrap bDropdownItem on a bDropdown');\n }\n }\n};\n\n/* script */\nconst __vue_script__$1 = script$1;\n\n/* template */\nvar __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.separator)?_c('hr',{staticClass:\"dropdown-divider\"}):(!_vm.custom && !_vm.hasLink)?_c('a',{staticClass:\"dropdown-item\",class:_vm.anchorClasses,attrs:{\"role\":_vm.ariaRoleItem,\"tabindex\":_vm.isFocusable ? 0 : null},on:{\"click\":_vm.selectItem}},[_vm._t(\"default\")],2):_c('div',{class:_vm.itemClasses,attrs:{\"role\":_vm.ariaRoleItem,\"tabindex\":_vm.isFocusable ? 0 : null},on:{\"click\":_vm.selectItem}},[_vm._t(\"default\")],2)};\nvar __vue_staticRenderFns__$1 = [];\n\n /* style */\n const __vue_inject_styles__$1 = undefined;\n /* scoped */\n const __vue_scope_id__$1 = undefined;\n /* module identifier */\n const __vue_module_identifier__$1 = undefined;\n /* functional template */\n const __vue_is_functional_template__$1 = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var DropdownItem = __vue_normalize__(\n { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },\n __vue_inject_styles__$1,\n __vue_script__$1,\n __vue_scope_id__$1,\n __vue_is_functional_template__$1,\n __vue_module_identifier__$1,\n undefined,\n undefined\n );\n\nexport { Dropdown as D, DropdownItem as a };\n","import { _ as _defineProperty } from './chunk-1fafdf15.js';\nimport { c as config } from './chunk-6985c8ce.js';\nimport { _ as __vue_normalize__ } from './chunk-cca88db8.js';\n\nvar script = {\n name: 'BFieldBody',\n props: {\n message: {\n type: [String, Array]\n },\n type: {\n type: [String, Object]\n }\n },\n render: function render(createElement) {\n var _this = this;\n\n var first = true;\n return createElement('div', {\n attrs: {\n 'class': 'field-body'\n }\n }, this.$slots.default.map(function (element) {\n // skip returns and comments\n if (!element.tag) {\n return element;\n }\n\n var message;\n\n if (first) {\n message = _this.message;\n first = false;\n }\n\n return createElement('b-field', {\n attrs: {\n type: _this.type,\n message: message\n }\n }, [element]);\n }));\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = undefined;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var FieldBody = __vue_normalize__(\n {},\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar script$1 = {\n name: 'BField',\n components: _defineProperty({}, FieldBody.name, FieldBody),\n props: {\n type: [String, Object],\n label: String,\n labelFor: String,\n message: [String, Array, Object],\n grouped: Boolean,\n groupMultiline: Boolean,\n position: String,\n expanded: Boolean,\n horizontal: Boolean,\n addons: {\n type: Boolean,\n default: true\n },\n customClass: String,\n labelPosition: {\n type: String,\n default: function _default() {\n return config.defaultFieldLabelPosition;\n }\n }\n },\n data: function data() {\n return {\n newType: this.type,\n newMessage: this.message,\n fieldLabelSize: null,\n _isField: true // Used internally by Input and Select\n\n };\n },\n computed: {\n rootClasses: function rootClasses() {\n return [this.newPosition, {\n 'is-expanded': this.expanded,\n 'is-grouped-multiline': this.groupMultiline,\n 'is-horizontal': this.horizontal,\n 'is-floating-in-label': this.hasLabel && !this.horizontal && this.labelPosition === 'inside',\n 'is-floating-label': this.hasLabel && !this.horizontal && this.labelPosition === 'on-border'\n }, this.numberInputClasses];\n },\n\n /**\r\n * Correct Bulma class for the side of the addon or group.\r\n *\r\n * This is not kept like the others (is-small, etc.),\r\n * because since 'has-addons' is set automatically it\r\n * doesn't make sense to teach users what addons are exactly.\r\n */\n newPosition: function newPosition() {\n if (this.position === undefined) return;\n var position = this.position.split('-');\n if (position.length < 1) return;\n var prefix = this.grouped ? 'is-grouped-' : 'has-addons-';\n if (this.position) return prefix + position[1];\n },\n\n /**\r\n * Formatted message in case it's an array\r\n * (each element is separated by
tag)\r\n */\n formattedMessage: function formattedMessage() {\n if (typeof this.newMessage === 'string') {\n return [this.newMessage];\n }\n\n var messages = [];\n\n if (Array.isArray(this.newMessage)) {\n this.newMessage.forEach(function (message) {\n if (typeof message === 'string') {\n messages.push(message);\n } else {\n for (var key in message) {\n if (message[key]) {\n messages.push(key);\n }\n }\n }\n });\n } else {\n for (var key in this.newMessage) {\n if (this.newMessage[key]) {\n messages.push(key);\n }\n }\n }\n\n return messages.filter(function (m) {\n if (m) return m;\n });\n },\n hasLabel: function hasLabel() {\n return this.label || this.$slots.label;\n },\n hasMessage: function hasMessage() {\n return this.newMessage || this.$slots.message;\n },\n numberInputClasses: function numberInputClasses() {\n if (this.$slots.default) {\n var numberinput = this.$slots.default.filter(function (node) {\n return node.tag && node.tag.toLowerCase().indexOf('numberinput') >= 0;\n })[0];\n\n if (numberinput) {\n var classes = ['has-numberinput'];\n var controlsPosition = numberinput.componentOptions.propsData.controlsPosition;\n var size = numberinput.componentOptions.propsData.size;\n\n if (controlsPosition) {\n classes.push(\"has-numberinput-\".concat(controlsPosition));\n }\n\n if (size) {\n classes.push(\"has-numberinput-\".concat(size));\n }\n\n return classes;\n }\n }\n\n return null;\n }\n },\n watch: {\n /**\r\n * Set internal type when prop change.\r\n */\n type: function type(value) {\n this.newType = value;\n },\n\n /**\r\n * Set internal message when prop change.\r\n */\n message: function message(value) {\n this.newMessage = value;\n }\n },\n methods: {\n /**\r\n * Field has addons if there are more than one slot\r\n * (element / component) in the Field.\r\n * Or is grouped when prop is set.\r\n * Is a method to be called when component re-render.\r\n */\n fieldType: function fieldType() {\n if (this.grouped) return 'is-grouped';\n var renderedNode = 0;\n\n if (this.$slots.default) {\n renderedNode = this.$slots.default.reduce(function (i, node) {\n return node.tag ? i + 1 : i;\n }, 0);\n }\n\n if (renderedNode > 1 && this.addons && !this.horizontal) {\n return 'has-addons';\n }\n }\n },\n mounted: function mounted() {\n if (this.horizontal) {\n // Bulma docs: .is-normal for any .input or .button\n var elements = this.$el.querySelectorAll('.input, .select, .button, .textarea, .b-slider');\n\n if (elements.length > 0) {\n this.fieldLabelSize = 'is-normal';\n }\n }\n }\n};\n\n/* script */\nconst __vue_script__$1 = script$1;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"field\",class:[_vm.rootClasses, _vm.fieldType()]},[(_vm.horizontal)?_c('div',{staticClass:\"field-label\",class:[_vm.customClass, _vm.fieldLabelSize]},[(_vm.hasLabel)?_c('label',{staticClass:\"label\",class:_vm.customClass,attrs:{\"for\":_vm.labelFor}},[(_vm.$slots.label)?_vm._t(\"label\"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()]):[(_vm.hasLabel)?_c('label',{staticClass:\"label\",class:_vm.customClass,attrs:{\"for\":_vm.labelFor}},[(_vm.$slots.label)?_vm._t(\"label\"):[_vm._v(_vm._s(_vm.label))]],2):_vm._e()],_vm._v(\" \"),(_vm.horizontal)?_c('b-field-body',{attrs:{\"message\":_vm.newMessage ? _vm.formattedMessage : '',\"type\":_vm.newType}},[_vm._t(\"default\")],2):[_vm._t(\"default\")],_vm._v(\" \"),(_vm.hasMessage && !_vm.horizontal)?_c('p',{staticClass:\"help\",class:_vm.newType},[(_vm.$slots.message)?_vm._t(\"message\"):[_vm._l((_vm.formattedMessage),function(mess,i){return [_vm._v(\"\\r\\n \"+_vm._s(mess)+\"\\r\\n \"),((i + 1) < _vm.formattedMessage.length)?_c('br',{key:i}):_vm._e()]})]],2):_vm._e()],2)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__$1 = undefined;\n /* scoped */\n const __vue_scope_id__$1 = undefined;\n /* module identifier */\n const __vue_module_identifier__$1 = undefined;\n /* functional template */\n const __vue_is_functional_template__$1 = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Field = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__$1,\n __vue_script__$1,\n __vue_scope_id__$1,\n __vue_is_functional_template__$1,\n __vue_module_identifier__$1,\n undefined,\n undefined\n );\n\nexport { Field as F };\n","import { _ as _defineProperty } from './chunk-1fafdf15.js';\nimport './helpers.js';\nimport { c as config } from './chunk-6985c8ce.js';\nimport './chunk-d0a313ea.js';\nimport { I as Icon } from './chunk-cdfca85b.js';\nimport { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport { I as Input } from './chunk-d1591eb8.js';\nimport { T as TimepickerMixin } from './chunk-1196ee55.js';\nimport './chunk-42f463e6.js';\nimport { D as Dropdown, a as DropdownItem } from './chunk-4d76806f.js';\nimport { F as Field } from './chunk-eb60b35a.js';\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n// These should match the variables in clockpicker.scss\nvar indicatorSize = 40;\nvar paddingInner = 5;\nvar script = {\n name: 'BClockpickerFace',\n props: {\n pickerSize: Number,\n min: Number,\n max: Number,\n double: Boolean,\n value: Number,\n faceNumbers: Array,\n disabledValues: Function\n },\n data: function data() {\n return {\n isDragging: false,\n inputValue: this.value,\n prevAngle: 720\n };\n },\n computed: {\n /**\r\n * How many number indicators are shown on the face\r\n */\n count: function count() {\n return this.max - this.min + 1;\n },\n\n /**\r\n * How many number indicators are shown per ring on the face\r\n */\n countPerRing: function countPerRing() {\n return this.double ? this.count / 2 : this.count;\n },\n\n /**\r\n * Radius of the clock face\r\n */\n radius: function radius() {\n return this.pickerSize / 2;\n },\n\n /**\r\n * Radius of the outer ring of number indicators\r\n */\n outerRadius: function outerRadius() {\n return this.radius - paddingInner - indicatorSize / 2;\n },\n\n /**\r\n * Radius of the inner ring of number indicators\r\n */\n innerRadius: function innerRadius() {\n return Math.max(this.outerRadius * 0.6, this.outerRadius - paddingInner - indicatorSize); // 48px gives enough room for the outer ring of numbers\n },\n\n /**\r\n * The angle for each selectable value\r\n * For hours this ends up being 30 degrees, for minutes 6 degrees\r\n */\n degreesPerUnit: function degreesPerUnit() {\n return 360 / this.countPerRing;\n },\n\n /**\r\n * Used for calculating x/y grid location based on degrees\r\n */\n degrees: function degrees() {\n return this.degreesPerUnit * Math.PI / 180;\n },\n\n /**\r\n * Calculates the angle the clock hand should be rotated for the\r\n * selected value\r\n */\n handRotateAngle: function handRotateAngle() {\n var currentAngle = this.prevAngle;\n\n while (currentAngle < 0) {\n currentAngle += 360;\n }\n\n var targetAngle = this.calcHandAngle(this.displayedValue);\n var degreesDiff = this.shortestDistanceDegrees(currentAngle, targetAngle);\n var angle = this.prevAngle + degreesDiff;\n return angle;\n },\n\n /**\r\n * Determines how long the selector hand is based on if the\r\n * selected value is located along the outer or inner ring\r\n */\n handScale: function handScale() {\n return this.calcHandScale(this.displayedValue);\n },\n handStyle: function handStyle() {\n return {\n transform: \"rotate(\".concat(this.handRotateAngle, \"deg) scaleY(\").concat(this.handScale, \")\"),\n transition: '.3s cubic-bezier(.25,.8,.50,1)'\n };\n },\n\n /**\r\n * The value the hand should be pointing at\r\n */\n displayedValue: function displayedValue() {\n return this.inputValue == null ? this.min : this.inputValue;\n }\n },\n watch: {\n value: function value(_value) {\n if (_value !== this.inputValue) {\n this.prevAngle = this.handRotateAngle;\n }\n\n this.inputValue = _value;\n }\n },\n methods: {\n isDisabled: function isDisabled(value) {\n return this.disabledValues && this.disabledValues(value);\n },\n\n /**\r\n * Calculates the distance between two points\r\n */\n euclidean: function euclidean(p0, p1) {\n var dx = p1.x - p0.x;\n var dy = p1.y - p0.y;\n return Math.sqrt(dx * dx + dy * dy);\n },\n shortestDistanceDegrees: function shortestDistanceDegrees(start, stop) {\n var modDiff = (stop - start) % 360;\n var shortestDistance = 180 - Math.abs(Math.abs(modDiff) - 180);\n return (modDiff + 360) % 360 < 180 ? shortestDistance * 1 : shortestDistance * -1;\n },\n\n /**\r\n * Calculates the angle of the line from the center point\r\n * to the given point.\r\n */\n coordToAngle: function coordToAngle(center, p1) {\n var value = 2 * Math.atan2(p1.y - center.y - this.euclidean(center, p1), p1.x - center.x);\n return Math.abs(value * 180 / Math.PI);\n },\n\n /**\r\n * Generates the inline style translate() property for a\r\n * number indicator, which determines it's location on the\r\n * clock face\r\n */\n getNumberTranslate: function getNumberTranslate(value) {\n var _this$getNumberCoords = this.getNumberCoords(value),\n x = _this$getNumberCoords.x,\n y = _this$getNumberCoords.y;\n\n return \"translate(\".concat(x, \"px, \").concat(y, \"px)\");\n },\n\n /***\r\n * Calculates the coordinates on the clock face for a number\r\n * indicator value\r\n */\n getNumberCoords: function getNumberCoords(value) {\n var radius = this.isInnerRing(value) ? this.innerRadius : this.outerRadius;\n return {\n x: Math.round(radius * Math.sin((value - this.min) * this.degrees)),\n y: Math.round(-radius * Math.cos((value - this.min) * this.degrees))\n };\n },\n getFaceNumberClasses: function getFaceNumberClasses(num) {\n return {\n 'active': num.value === this.displayedValue,\n 'disabled': this.isDisabled(num.value)\n };\n },\n\n /**\r\n * Determines if a value resides on the inner ring\r\n */\n isInnerRing: function isInnerRing(value) {\n return this.double && value - this.min >= this.countPerRing;\n },\n calcHandAngle: function calcHandAngle(value) {\n var angle = this.degreesPerUnit * (value - this.min);\n if (this.isInnerRing(value)) angle -= 360;\n return angle;\n },\n calcHandScale: function calcHandScale(value) {\n return this.isInnerRing(value) ? this.innerRadius / this.outerRadius : 1;\n },\n onMouseDown: function onMouseDown(e) {\n e.preventDefault();\n this.isDragging = true;\n this.onDragMove(e);\n },\n onMouseUp: function onMouseUp() {\n this.isDragging = false;\n\n if (!this.isDisabled(this.inputValue)) {\n this.$emit('change', this.inputValue);\n }\n },\n onDragMove: function onDragMove(e) {\n e.preventDefault();\n if (!this.isDragging && e.type !== 'click') return;\n\n var _this$$refs$clock$get = this.$refs.clock.getBoundingClientRect(),\n width = _this$$refs$clock$get.width,\n top = _this$$refs$clock$get.top,\n left = _this$$refs$clock$get.left;\n\n var _ref = 'touches' in e ? e.touches[0] : e,\n clientX = _ref.clientX,\n clientY = _ref.clientY;\n\n var center = {\n x: width / 2,\n y: -width / 2\n };\n var coords = {\n x: clientX - left,\n y: top - clientY\n };\n var handAngle = Math.round(this.coordToAngle(center, coords) + 360) % 360;\n var insideClick = this.double && this.euclidean(center, coords) < (this.outerRadius + this.innerRadius) / 2 - 16;\n var value = Math.round(handAngle / this.degreesPerUnit) + this.min + (insideClick ? this.countPerRing : 0); // Necessary to fix edge case when selecting left part of max value\n\n if (handAngle >= 360 - this.degreesPerUnit / 2) {\n value = insideClick ? this.max : this.min;\n }\n\n this.update(value);\n },\n update: function update(value) {\n if (this.inputValue !== value && !this.isDisabled(value)) {\n this.prevAngle = this.handRotateAngle;\n this.inputValue = value;\n this.$emit('input', value);\n }\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"b-clockpicker-face\",on:{\"mousedown\":_vm.onMouseDown,\"mouseup\":_vm.onMouseUp,\"mousemove\":_vm.onDragMove,\"touchstart\":_vm.onMouseDown,\"touchend\":_vm.onMouseUp,\"touchmove\":_vm.onDragMove}},[_c('div',{ref:\"clock\",staticClass:\"b-clockpicker-face-outer-ring\"},[_c('div',{staticClass:\"b-clockpicker-face-hand\",style:(_vm.handStyle)}),_vm._v(\" \"),_vm._l((_vm.faceNumbers),function(num,index){return _c('span',{key:index,staticClass:\"b-clockpicker-face-number\",class:_vm.getFaceNumberClasses(num),style:({ transform: _vm.getNumberTranslate(num.value) })},[_c('span',[_vm._v(_vm._s(num.label))])])})],2)])};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var ClockpickerFace = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar _components;\nvar outerPadding = 12;\nvar script$1 = {\n name: 'BClockpicker',\n components: (_components = {}, _defineProperty(_components, ClockpickerFace.name, ClockpickerFace), _defineProperty(_components, Input.name, Input), _defineProperty(_components, Field.name, Field), _defineProperty(_components, Icon.name, Icon), _defineProperty(_components, Dropdown.name, Dropdown), _defineProperty(_components, DropdownItem.name, DropdownItem), _components),\n mixins: [TimepickerMixin],\n props: {\n pickerSize: {\n type: Number,\n default: 290\n },\n hourFormat: {\n type: String,\n default: '12',\n validator: function validator(value) {\n return value === '24' || value === '12';\n }\n },\n incrementMinutes: {\n type: Number,\n default: 5\n },\n autoSwitch: {\n type: Boolean,\n default: true\n },\n type: {\n type: String,\n default: 'is-primary'\n },\n hoursLabel: {\n type: String,\n default: function _default() {\n return config.defaultClockpickerHoursLabel || 'Hours';\n }\n },\n minutesLabel: {\n type: String,\n default: function _default() {\n return config.defaultClockpickerMinutesLabel || 'Min';\n }\n }\n },\n data: function data() {\n return {\n isSelectingHour: true,\n isDragging: false,\n _isClockpicker: true\n };\n },\n computed: {\n hoursDisplay: function hoursDisplay() {\n if (this.hoursSelected == null) return '--';\n if (this.isHourFormat24) return this.pad(this.hoursSelected);\n var display = this.hoursSelected;\n if (this.meridienSelected === this.PM) display -= 12;\n if (display === 0) display = 12;\n return display;\n },\n minutesDisplay: function minutesDisplay() {\n return this.minutesSelected == null ? '--' : this.pad(this.minutesSelected);\n },\n minFaceValue: function minFaceValue() {\n return this.isSelectingHour && !this.isHourFormat24 && this.meridienSelected === this.PM ? 12 : 0;\n },\n maxFaceValue: function maxFaceValue() {\n return this.isSelectingHour ? !this.isHourFormat24 && this.meridienSelected === this.AM ? 11 : 23 : 59;\n },\n faceSize: function faceSize() {\n return this.pickerSize - outerPadding * 2;\n },\n faceDisabledValues: function faceDisabledValues() {\n return this.isSelectingHour ? this.isHourDisabled : this.isMinuteDisabled;\n }\n },\n methods: {\n onClockInput: function onClockInput(value) {\n if (this.isSelectingHour) {\n this.hoursSelected = value;\n this.onHoursChange(value);\n } else {\n this.minutesSelected = value;\n this.onMinutesChange(value);\n }\n },\n onClockChange: function onClockChange(value) {\n if (this.autoSwitch && this.isSelectingHour) {\n this.isSelectingHour = !this.isSelectingHour;\n }\n },\n onMeridienClick: function onMeridienClick(value) {\n if (this.meridienSelected !== value) {\n this.meridienSelected = value;\n this.onMeridienChange(value);\n }\n }\n }\n};\n\n/* script */\nconst __vue_script__$1 = script$1;\n\n/* template */\nvar __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"b-clockpicker control\",class:[_vm.size, _vm.type, {'is-expanded': _vm.expanded}]},[(!_vm.isMobile || _vm.inline)?_c('b-dropdown',{ref:\"dropdown\",attrs:{\"position\":_vm.position,\"disabled\":_vm.disabled,\"inline\":_vm.inline,\"append-to-body\":_vm.appendToBody,\"append-to-body-copy-parent\":\"\"},on:{\"active-change\":_vm.onActiveChange}},[(!_vm.inline)?_c('b-input',_vm._b({ref:\"input\",attrs:{\"slot\":\"trigger\",\"autocomplete\":\"off\",\"value\":_vm.formatValue(_vm.computedValue),\"placeholder\":_vm.placeholder,\"size\":_vm.size,\"icon\":_vm.icon,\"icon-pack\":_vm.iconPack,\"loading\":_vm.loading,\"disabled\":_vm.disabled,\"readonly\":!_vm.editable,\"rounded\":_vm.rounded,\"use-html5-validation\":_vm.useHtml5Validation},on:{\"focus\":_vm.handleOnFocus,\"blur\":function($event){_vm.onBlur() && _vm.checkHtml5Validity();}},nativeOn:{\"click\":function($event){$event.stopPropagation();_vm.toggle(true);},\"keyup\":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }_vm.toggle(true);},\"change\":function($event){return _vm.onChangeNativePicker($event)}},slot:\"trigger\"},'b-input',_vm.$attrs,false)):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"card\",attrs:{\"disabled\":_vm.disabled,\"custom\":\"\"}},[(_vm.inline)?_c('header',{staticClass:\"card-header\"},[_c('div',{staticClass:\"b-clockpicker-header card-header-title\"},[_c('div',{staticClass:\"b-clockpicker-time\"},[_c('span',{staticClass:\"b-clockpicker-btn\",class:{ active: _vm.isSelectingHour },on:{\"click\":function($event){_vm.isSelectingHour = true;}}},[_vm._v(_vm._s(_vm.hoursDisplay))]),_vm._v(\" \"),_c('span',[_vm._v(\":\")]),_vm._v(\" \"),_c('span',{staticClass:\"b-clockpicker-btn\",class:{ active: !_vm.isSelectingHour },on:{\"click\":function($event){_vm.isSelectingHour = false;}}},[_vm._v(_vm._s(_vm.minutesDisplay))])]),_vm._v(\" \"),(!_vm.isHourFormat24)?_c('div',{staticClass:\"b-clockpicker-period\"},[_c('div',{staticClass:\"b-clockpicker-btn\",class:{ active: _vm.meridienSelected == _vm.AM },on:{\"click\":function($event){_vm.onMeridienClick(_vm.AM);}}},[_vm._v(\"am\")]),_vm._v(\" \"),_c('div',{staticClass:\"b-clockpicker-btn\",class:{ active: _vm.meridienSelected == _vm.PM },on:{\"click\":function($event){_vm.onMeridienClick(_vm.PM);}}},[_vm._v(\"pm\")])]):_vm._e()])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"card-content\"},[_c('div',{staticClass:\"b-clockpicker-body\",style:({ width: _vm.faceSize + 'px', height: _vm.faceSize + 'px' })},[(!_vm.inline)?_c('div',{staticClass:\"b-clockpicker-time\"},[_c('div',{staticClass:\"b-clockpicker-btn\",class:{ active: _vm.isSelectingHour },on:{\"click\":function($event){_vm.isSelectingHour = true;}}},[_vm._v(_vm._s(_vm.hoursLabel))]),_vm._v(\" \"),_c('span',{staticClass:\"b-clockpicker-btn\",class:{ active: !_vm.isSelectingHour },on:{\"click\":function($event){_vm.isSelectingHour = false;}}},[_vm._v(_vm._s(_vm.minutesLabel))])]):_vm._e(),_vm._v(\" \"),(!_vm.isHourFormat24 && !_vm.inline)?_c('div',{staticClass:\"b-clockpicker-period\"},[_c('div',{staticClass:\"b-clockpicker-btn\",class:{ active: _vm.meridienSelected == _vm.AM },on:{\"click\":function($event){_vm.onMeridienClick(_vm.AM);}}},[_vm._v(_vm._s(_vm.AM))]),_vm._v(\" \"),_c('div',{staticClass:\"b-clockpicker-btn\",class:{ active: _vm.meridienSelected == _vm.PM },on:{\"click\":function($event){_vm.onMeridienClick(_vm.PM);}}},[_vm._v(_vm._s(_vm.PM))])]):_vm._e(),_vm._v(\" \"),_c('b-clockpicker-face',{attrs:{\"picker-size\":_vm.faceSize,\"min\":_vm.minFaceValue,\"max\":_vm.maxFaceValue,\"face-numbers\":_vm.isSelectingHour ? _vm.hours : _vm.minutes,\"disabled-values\":_vm.faceDisabledValues,\"double\":_vm.isSelectingHour && _vm.isHourFormat24,\"value\":_vm.isSelectingHour ? _vm.hoursSelected : _vm.minutesSelected},on:{\"input\":_vm.onClockInput,\"change\":_vm.onClockChange}})],1)]),_vm._v(\" \"),(_vm.$slots.default !== undefined && _vm.$slots.default.length)?_c('footer',{staticClass:\"b-clockpicker-footer card-footer\"},[_vm._t(\"default\")],2):_vm._e()])],1):_c('b-input',_vm._b({ref:\"input\",attrs:{\"type\":\"time\",\"autocomplete\":\"off\",\"value\":_vm.formatHHMMSS(_vm.computedValue),\"placeholder\":_vm.placeholder,\"size\":_vm.size,\"icon\":_vm.icon,\"icon-pack\":_vm.iconPack,\"loading\":_vm.loading,\"max\":_vm.formatHHMMSS(_vm.maxTime),\"min\":_vm.formatHHMMSS(_vm.minTime),\"disabled\":_vm.disabled,\"readonly\":false,\"use-html5-validation\":_vm.useHtml5Validation},on:{\"focus\":_vm.handleOnFocus,\"blur\":function($event){_vm.onBlur() && _vm.checkHtml5Validity();}},nativeOn:{\"click\":function($event){$event.stopPropagation();_vm.toggle(true);},\"keyup\":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }_vm.toggle(true);},\"change\":function($event){return _vm.onChangeNativePicker($event)}}},'b-input',_vm.$attrs,false))],1)};\nvar __vue_staticRenderFns__$1 = [];\n\n /* style */\n const __vue_inject_styles__$1 = undefined;\n /* scoped */\n const __vue_scope_id__$1 = undefined;\n /* module identifier */\n const __vue_module_identifier__$1 = undefined;\n /* functional template */\n const __vue_is_functional_template__$1 = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Clockpicker = __vue_normalize__(\n { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },\n __vue_inject_styles__$1,\n __vue_script__$1,\n __vue_scope_id__$1,\n __vue_is_functional_template__$1,\n __vue_module_identifier__$1,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Clockpicker);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Clockpicker as BClockpicker };\n","import { _ as _defineProperty } from './chunk-1fafdf15.js';\nimport { F as FormElementMixin } from './chunk-d0a313ea.js';\nimport { I as Icon } from './chunk-cdfca85b.js';\nimport { _ as __vue_normalize__ } from './chunk-cca88db8.js';\n\nvar script = {\n name: 'BSelect',\n components: _defineProperty({}, Icon.name, Icon),\n mixins: [FormElementMixin],\n inheritAttrs: false,\n props: {\n value: {\n type: [String, Number, Boolean, Object, Array, Function],\n default: null\n },\n placeholder: String,\n multiple: Boolean,\n nativeSize: [String, Number]\n },\n data: function data() {\n return {\n selected: this.value,\n _elementRef: 'select'\n };\n },\n computed: {\n computedValue: {\n get: function get() {\n return this.selected;\n },\n set: function set(value) {\n this.selected = value;\n this.$emit('input', value);\n !this.isValid && this.checkHtml5Validity();\n }\n },\n spanClasses: function spanClasses() {\n return [this.size, this.statusType, {\n 'is-fullwidth': this.expanded,\n 'is-loading': this.loading,\n 'is-multiple': this.multiple,\n 'is-rounded': this.rounded,\n 'is-empty': this.selected === null\n }];\n }\n },\n watch: {\n /**\r\n * When v-model is changed:\r\n * 1. Set the selected option.\r\n * 2. If it's invalid, validate again.\r\n */\n value: function value(_value) {\n this.selected = _value;\n !this.isValid && this.checkHtml5Validity();\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"control\",class:{ 'is-expanded': _vm.expanded, 'has-icons-left': _vm.icon }},[_c('span',{staticClass:\"select\",class:_vm.spanClasses},[_c('select',_vm._b({directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.computedValue),expression:\"computedValue\"}],ref:\"select\",attrs:{\"multiple\":_vm.multiple,\"size\":_vm.nativeSize},on:{\"blur\":function($event){_vm.$emit('blur', $event) && _vm.checkHtml5Validity();},\"focus\":function($event){_vm.$emit('focus', $event);},\"change\":function($event){var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = \"_value\" in o ? o._value : o.value;return val}); _vm.computedValue=$event.target.multiple ? $$selectedVal : $$selectedVal[0];}}},'select',_vm.$attrs,false),[(_vm.placeholder)?[(_vm.computedValue == null)?_c('option',{attrs:{\"disabled\":\"\",\"hidden\":\"\"},domProps:{\"value\":null}},[_vm._v(\"\\r\\n \"+_vm._s(_vm.placeholder)+\"\\r\\n \")]):_vm._e()]:_vm._e(),_vm._v(\" \"),_vm._t(\"default\")],2)]),_vm._v(\" \"),(_vm.icon)?_c('b-icon',{staticClass:\"is-left\",attrs:{\"icon\":_vm.icon,\"pack\":_vm.iconPack,\"size\":_vm.iconSize}}):_vm._e()],1)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Select = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nexport { Select as S };\n","import { _ as _defineProperty } from './chunk-1fafdf15.js';\nimport { isMobile } from './helpers.js';\nimport { c as config } from './chunk-6985c8ce.js';\nimport { F as FormElementMixin } from './chunk-d0a313ea.js';\nimport { I as Icon } from './chunk-cdfca85b.js';\nimport { _ as __vue_normalize__ } from './chunk-cca88db8.js';\nimport { I as Input } from './chunk-d1591eb8.js';\nimport { D as Dropdown, a as DropdownItem } from './chunk-4d76806f.js';\nimport { F as Field } from './chunk-eb60b35a.js';\nimport { S as Select } from './chunk-77ffdf8b.js';\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar script = {\n name: 'BDatepickerTableRow',\n props: {\n selectedDate: {\n type: [Date, Array]\n },\n hoveredDateRange: Array,\n day: {\n type: Number\n },\n week: {\n type: Array,\n required: true\n },\n month: {\n type: Number,\n required: true\n },\n minDate: Date,\n maxDate: Date,\n disabled: Boolean,\n unselectableDates: Array,\n unselectableDaysOfWeek: Array,\n selectableDates: Array,\n events: Array,\n indicators: String,\n dateCreator: Function,\n nearbyMonthDays: Boolean,\n nearbySelectableMonthDays: Boolean,\n showWeekNumber: {\n type: Boolean,\n default: function _default() {\n return false;\n }\n },\n range: Boolean,\n multiple: Boolean,\n rulesForFirstWeek: {\n type: Number,\n default: function _default() {\n return 4;\n }\n },\n firstDayOfWeek: Number\n },\n watch: {\n day: {\n handler: function handler(day) {\n var _this = this;\n\n var refName = \"day-\".concat(day);\n\n if (this.$refs[refName] && this.$refs[refName].length > 0) {\n this.$nextTick(function () {\n if (_this.$refs[refName][0]) {\n _this.$refs[refName][0].focus();\n }\n }); // $nextTick needed when month is changed\n }\n },\n immediate: true\n }\n },\n methods: {\n firstWeekOffset: function firstWeekOffset(year, dow, doy) {\n // first-week day -- which january is always in the first week (4 for iso, 1 for other)\n var fwd = 7 + dow - doy; // first-week day local weekday -- which local weekday is fwd\n\n var firstJanuary = new Date(year, 0, fwd);\n var fwdlw = (7 + firstJanuary.getDay() - dow) % 7;\n return -fwdlw + fwd - 1;\n },\n daysInYear: function daysInYear(year) {\n return this.isLeapYear(year) ? 366 : 365;\n },\n isLeapYear: function isLeapYear(year) {\n return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;\n },\n getSetDayOfYear: function getSetDayOfYear(input) {\n return Math.round((input - new Date(input.getFullYear(), 0, 1)) / 864e5) + 1;\n },\n weeksInYear: function weeksInYear(year, dow, doy) {\n var weekOffset = this.firstWeekOffset(year, dow, doy);\n var weekOffsetNext = this.firstWeekOffset(year + 1, dow, doy);\n return (this.daysInYear(year) - weekOffset + weekOffsetNext) / 7;\n },\n getWeekNumber: function getWeekNumber(mom) {\n var dow = this.firstDayOfWeek; // first day of week\n // Rules for the first week : 1 for the 1st January, 4 for the 4th January\n\n var doy = this.rulesForFirstWeek;\n var weekOffset = this.firstWeekOffset(mom.getFullYear(), dow, doy);\n var week = Math.floor((this.getSetDayOfYear(mom) - weekOffset - 1) / 7) + 1;\n var resWeek;\n var resYear;\n\n if (week < 1) {\n resYear = mom.getFullYear() - 1;\n resWeek = week + this.weeksInYear(resYear, dow, doy);\n } else if (week > this.weeksInYear(mom.getFullYear(), dow, doy)) {\n resWeek = week - this.weeksInYear(mom.getFullYear(), dow, doy);\n resYear = mom.getFullYear() + 1;\n } else {\n resYear = mom.getFullYear();\n resWeek = week;\n }\n\n return resWeek;\n },\n\n /*\r\n * Check that selected day is within earliest/latest params and\r\n * is within this month\r\n */\n selectableDate: function selectableDate(day) {\n var validity = [];\n\n if (this.minDate) {\n validity.push(day >= this.minDate);\n }\n\n if (this.maxDate) {\n validity.push(day <= this.maxDate);\n }\n\n if (this.nearbyMonthDays && !this.nearbySelectableMonthDays) {\n validity.push(day.getMonth() === this.month);\n }\n\n if (this.selectableDates) {\n for (var i = 0; i < this.selectableDates.length; i++) {\n var enabledDate = this.selectableDates[i];\n\n if (day.getDate() === enabledDate.getDate() && day.getFullYear() === enabledDate.getFullYear() && day.getMonth() === enabledDate.getMonth()) {\n return true;\n } else {\n validity.push(false);\n }\n }\n }\n\n if (this.unselectableDates) {\n for (var _i = 0; _i < this.unselectableDates.length; _i++) {\n var disabledDate = this.unselectableDates[_i];\n validity.push(day.getDate() !== disabledDate.getDate() || day.getFullYear() !== disabledDate.getFullYear() || day.getMonth() !== disabledDate.getMonth());\n }\n }\n\n if (this.unselectableDaysOfWeek) {\n for (var _i2 = 0; _i2 < this.unselectableDaysOfWeek.length; _i2++) {\n var dayOfWeek = this.unselectableDaysOfWeek[_i2];\n validity.push(day.getDay() !== dayOfWeek);\n }\n }\n\n return validity.indexOf(false) < 0;\n },\n\n /*\r\n * Emit select event with chosen date as payload\r\n */\n emitChosenDate: function emitChosenDate(day) {\n if (this.disabled) return;\n\n if (this.selectableDate(day)) {\n this.$emit('select', day);\n }\n },\n eventsDateMatch: function eventsDateMatch(day) {\n if (!this.events || !this.events.length) return false;\n var dayEvents = [];\n\n for (var i = 0; i < this.events.length; i++) {\n if (this.events[i].date.getDay() === day.getDay()) {\n dayEvents.push(this.events[i]);\n }\n }\n\n if (!dayEvents.length) {\n return false;\n }\n\n return dayEvents;\n },\n\n /*\r\n * Build classObject for cell using validations\r\n */\n classObject: function classObject(day) {\n function dateMatch(dateOne, dateTwo, multiple) {\n // if either date is null or undefined, return false\n // if using multiple flag, return false\n if (!dateOne || !dateTwo || multiple) {\n return false;\n }\n\n if (Array.isArray(dateTwo)) {\n return dateTwo.some(function (date) {\n return dateOne.getDate() === date.getDate() && dateOne.getFullYear() === date.getFullYear() && dateOne.getMonth() === date.getMonth();\n });\n }\n\n return dateOne.getDate() === dateTwo.getDate() && dateOne.getFullYear() === dateTwo.getFullYear() && dateOne.getMonth() === dateTwo.getMonth();\n }\n\n function dateWithin(dateOne, dates, multiple) {\n if (!Array.isArray(dates) || multiple) {\n return false;\n }\n\n return dateOne > dates[0] && dateOne < dates[1];\n }\n\n return {\n 'is-selected': dateMatch(day, this.selectedDate) || dateWithin(day, this.selectedDate, this.multiple),\n 'is-first-selected': dateMatch(day, Array.isArray(this.selectedDate) && this.selectedDate[0], this.multiple),\n 'is-within-selected': dateWithin(day, this.selectedDate, this.multiple),\n 'is-last-selected': dateMatch(day, Array.isArray(this.selectedDate) && this.selectedDate[1], this.multiple),\n 'is-within-hovered-range': this.hoveredDateRange && this.hoveredDateRange.length === 2 && (dateMatch(day, this.hoveredDateRange) || dateWithin(day, this.hoveredDateRange)),\n 'is-first-hovered': dateMatch(day, Array.isArray(this.hoveredDateRange) && this.hoveredDateRange[0]),\n 'is-within-hovered': dateWithin(day, this.hoveredDateRange),\n 'is-last-hovered': dateMatch(day, Array.isArray(this.hoveredDateRange) && this.hoveredDateRange[1]),\n 'is-today': dateMatch(day, this.dateCreator()),\n 'is-selectable': this.selectableDate(day) && !this.disabled,\n 'is-unselectable': !this.selectableDate(day) || this.disabled,\n 'is-invisible': !this.nearbyMonthDays && day.getMonth() !== this.month,\n 'is-nearby': this.nearbySelectableMonthDays && day.getMonth() !== this.month\n };\n },\n setRangeHoverEndDate: function setRangeHoverEndDate(day) {\n if (this.range) {\n this.$emit('rangeHoverEndDate', day);\n }\n },\n changeFocus: function changeFocus(day, inc) {\n var nextDay = day;\n nextDay.setDate(day.getDate() + inc);\n this.$emit('change-focus', nextDay);\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"datepicker-row\"},[(_vm.showWeekNumber)?_c('a',{staticClass:\"datepicker-cell is-week-number\"},[_c('span',[_vm._v(_vm._s(_vm.getWeekNumber(_vm.week[6])))])]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.week),function(weekDay,index){return [(_vm.selectableDate(weekDay) && !_vm.disabled)?_c('a',{key:index,ref:(\"day-\" + (weekDay.getDate())),refInFor:true,staticClass:\"datepicker-cell\",class:[_vm.classObject(weekDay), {'has-event': _vm.eventsDateMatch(weekDay)}, _vm.indicators],attrs:{\"role\":\"button\",\"href\":\"#\",\"disabled\":_vm.disabled,\"tabindex\":_vm.day === weekDay.getDate() ? null : -1},on:{\"click\":function($event){$event.preventDefault();_vm.emitChosenDate(weekDay);},\"keydown\":[function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }$event.preventDefault();_vm.emitChosenDate(weekDay);},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"space\",32,$event.key,[\" \",\"Spacebar\"])){ return null; }$event.preventDefault();_vm.emitChosenDate(weekDay);},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"arrow-left\",undefined,$event.key,undefined)){ return null; }$event.preventDefault();_vm.changeFocus(weekDay, -1);},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"arrow-right\",undefined,$event.key,undefined)){ return null; }$event.preventDefault();_vm.changeFocus(weekDay, 1);},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"arrow-up\",undefined,$event.key,undefined)){ return null; }$event.preventDefault();_vm.changeFocus(weekDay, -7);},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"arrow-down\",undefined,$event.key,undefined)){ return null; }$event.preventDefault();_vm.changeFocus(weekDay, 7);}],\"mouseenter\":function($event){_vm.setRangeHoverEndDate(weekDay);}}},[_c('span',[_vm._v(_vm._s(weekDay.getDate()))]),_vm._v(\" \"),(_vm.eventsDateMatch(weekDay))?_c('div',{staticClass:\"events\"},_vm._l((_vm.eventsDateMatch(weekDay)),function(event,index){return _c('div',{key:index,staticClass:\"event\",class:event.type})})):_vm._e()]):_c('div',{key:index,staticClass:\"datepicker-cell\",class:_vm.classObject(weekDay)},[_c('span',[_vm._v(_vm._s(weekDay.getDate()))])])]})],2)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var DatepickerTableRow = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar isDefined = function isDefined(d) {\n return d !== undefined;\n};\n\nvar script$1 = {\n name: 'BDatepickerTable',\n components: _defineProperty({}, DatepickerTableRow.name, DatepickerTableRow),\n props: {\n value: {\n type: [Date, Array]\n },\n dayNames: Array,\n monthNames: Array,\n firstDayOfWeek: Number,\n events: Array,\n indicators: String,\n minDate: Date,\n maxDate: Date,\n focused: Object,\n disabled: Boolean,\n dateCreator: Function,\n unselectableDates: Array,\n unselectableDaysOfWeek: Array,\n selectableDates: Array,\n nearbyMonthDays: Boolean,\n nearbySelectableMonthDays: Boolean,\n showWeekNumber: {\n type: Boolean,\n default: function _default() {\n return false;\n }\n },\n rulesForFirstWeek: {\n type: Number,\n default: function _default() {\n return 4;\n }\n },\n range: Boolean,\n multiple: Boolean\n },\n data: function data() {\n return {\n selectedBeginDate: undefined,\n selectedEndDate: undefined,\n hoveredEndDate: undefined,\n multipleSelectedDates: this.multiple && this.value ? this.value : []\n };\n },\n computed: {\n visibleDayNames: function visibleDayNames() {\n var visibleDayNames = [];\n var index = this.firstDayOfWeek;\n\n while (visibleDayNames.length < this.dayNames.length) {\n var currentDayName = this.dayNames[index % this.dayNames.length];\n visibleDayNames.push(currentDayName);\n index++;\n }\n\n if (this.showWeekNumber) visibleDayNames.unshift('');\n return visibleDayNames;\n },\n hasEvents: function hasEvents() {\n return this.events && this.events.length;\n },\n\n /*\r\n * Return array of all events in the specified month\r\n */\n eventsInThisMonth: function eventsInThisMonth() {\n if (!this.events) return [];\n var monthEvents = [];\n\n for (var i = 0; i < this.events.length; i++) {\n var event = this.events[i];\n\n if (!event.hasOwnProperty('date')) {\n event = {\n date: event\n };\n }\n\n if (!event.hasOwnProperty('type')) {\n event.type = 'is-primary';\n }\n\n if (event.date.getMonth() === this.focused.month && event.date.getFullYear() === this.focused.year) {\n monthEvents.push(event);\n }\n }\n\n return monthEvents;\n },\n\n /*\r\n * Return array of all weeks in the specified month\r\n */\n weeksInThisMonth: function weeksInThisMonth() {\n this.validateFocusedDay();\n var month = this.focused.month;\n var year = this.focused.year;\n var weeksInThisMonth = [];\n var startingDay = 1;\n\n while (weeksInThisMonth.length < 6) {\n var newWeek = this.weekBuilder(startingDay, month, year);\n weeksInThisMonth.push(newWeek);\n startingDay += 7;\n }\n\n return weeksInThisMonth;\n },\n hoveredDateRange: function hoveredDateRange() {\n if (!this.range) {\n return [];\n }\n\n if (!isNaN(this.selectedEndDate)) {\n return [];\n }\n\n if (this.hoveredEndDate < this.selectedBeginDate) {\n return [this.hoveredEndDate, this.selectedBeginDate].filter(isDefined);\n }\n\n return [this.selectedBeginDate, this.hoveredEndDate].filter(isDefined);\n }\n },\n methods: {\n /*\r\n * Emit input event with selected date as payload for v-model in parent\r\n */\n updateSelectedDate: function updateSelectedDate(date) {\n if (!this.range && !this.multiple) {\n this.$emit('input', date);\n } else if (this.range) {\n this.handleSelectRangeDate(date);\n } else if (this.multiple) {\n this.handleSelectMultipleDates(date);\n }\n },\n\n /*\r\n * If both begin and end dates are set, reset the end date and set the begin date.\r\n * If only begin date is selected, emit an array of the begin date and the new date.\r\n * If not set, only set the begin date.\r\n */\n handleSelectRangeDate: function handleSelectRangeDate(date) {\n if (this.selectedBeginDate && this.selectedEndDate) {\n this.selectedBeginDate = date;\n this.selectedEndDate = undefined;\n this.$emit('range-start', date);\n } else if (this.selectedBeginDate && !this.selectedEndDate) {\n if (this.selectedBeginDate > date) {\n this.selectedEndDate = this.selectedBeginDate;\n this.selectedBeginDate = date;\n } else {\n this.selectedEndDate = date;\n }\n\n this.$emit('range-end', date);\n this.$emit('input', [this.selectedBeginDate, this.selectedEndDate]);\n } else {\n this.selectedBeginDate = date;\n this.$emit('range-start', date);\n }\n },\n\n /*\r\n * If selected date already exists list of selected dates, remove it from the list\r\n * Otherwise, add date to list of selected dates\r\n */\n handleSelectMultipleDates: function handleSelectMultipleDates(date) {\n var multipleSelect = this.multipleSelectedDates.filter(function (selectedDate) {\n return selectedDate.getDate() === date.getDate() && selectedDate.getFullYear() === date.getFullYear() && selectedDate.getMonth() === date.getMonth();\n });\n\n if (multipleSelect.length) {\n this.multipleSelectedDates = this.multipleSelectedDates.filter(function (selectedDate) {\n return selectedDate.getDate() !== date.getDate() || selectedDate.getFullYear() !== date.getFullYear() || selectedDate.getMonth() !== date.getMonth();\n });\n } else {\n this.multipleSelectedDates.push(date);\n }\n\n this.$emit('input', this.multipleSelectedDates);\n },\n\n /*\r\n * Return array of all days in the week that the startingDate is within\r\n */\n weekBuilder: function weekBuilder(startingDate, month, year) {\n var thisMonth = new Date(year, month);\n var thisWeek = [];\n var dayOfWeek = new Date(year, month, startingDate).getDay();\n var end = dayOfWeek >= this.firstDayOfWeek ? dayOfWeek - this.firstDayOfWeek : 7 - this.firstDayOfWeek + dayOfWeek;\n var daysAgo = 1;\n\n for (var i = 0; i < end; i++) {\n thisWeek.unshift(new Date(thisMonth.getFullYear(), thisMonth.getMonth(), startingDate - daysAgo));\n daysAgo++;\n }\n\n thisWeek.push(new Date(year, month, startingDate));\n var daysForward = 1;\n\n while (thisWeek.length < 7) {\n thisWeek.push(new Date(year, month, startingDate + daysForward));\n daysForward++;\n }\n\n return thisWeek;\n },\n validateFocusedDay: function validateFocusedDay() {\n var focusedDate = new Date(this.focused.year, this.focused.month, this.focused.day);\n if (this.selectableDate(focusedDate)) return;\n var day = 0; // Number of days in the current month\n\n var monthDays = new Date(this.focused.year, this.focused.month + 1, 0).getDate();\n var firstFocusable = null;\n\n while (!firstFocusable && ++day < monthDays) {\n var date = new Date(this.focused.year, this.focused.month, day);\n\n if (this.selectableDate(date)) {\n firstFocusable = focusedDate;\n var focused = {\n day: date.getDate(),\n month: date.getMonth(),\n year: date.getFullYear()\n };\n this.$emit('update:focused', focused);\n }\n }\n },\n\n /*\r\n * Check that selected day is within earliest/latest params and\r\n * is within this month\r\n */\n selectableDate: function selectableDate(day) {\n var validity = [];\n\n if (this.minDate) {\n validity.push(day >= this.minDate);\n }\n\n if (this.maxDate) {\n validity.push(day <= this.maxDate);\n }\n\n if (this.nearbyMonthDays && !this.nearbySelectableMonthDays) {\n validity.push(day.getMonth() === this.focused.month);\n }\n\n if (this.selectableDates) {\n for (var i = 0; i < this.selectableDates.length; i++) {\n var enabledDate = this.selectableDates[i];\n\n if (day.getDate() === enabledDate.getDate() && day.getFullYear() === enabledDate.getFullYear() && day.getMonth() === enabledDate.getMonth()) {\n return true;\n } else {\n validity.push(false);\n }\n }\n }\n\n if (this.unselectableDates) {\n for (var _i = 0; _i < this.unselectableDates.length; _i++) {\n var disabledDate = this.unselectableDates[_i];\n validity.push(day.getDate() !== disabledDate.getDate() || day.getFullYear() !== disabledDate.getFullYear() || day.getMonth() !== disabledDate.getMonth());\n }\n }\n\n if (this.unselectableDaysOfWeek) {\n for (var _i2 = 0; _i2 < this.unselectableDaysOfWeek.length; _i2++) {\n var dayOfWeek = this.unselectableDaysOfWeek[_i2];\n validity.push(day.getDay() !== dayOfWeek);\n }\n }\n\n return validity.indexOf(false) < 0;\n },\n eventsInThisWeek: function eventsInThisWeek(week) {\n return this.eventsInThisMonth.filter(function (event) {\n var stripped = new Date(Date.parse(event.date));\n stripped.setHours(0, 0, 0, 0);\n var timed = stripped.getTime();\n return week.some(function (weekDate) {\n return weekDate.getTime() === timed;\n });\n });\n },\n setRangeHoverEndDate: function setRangeHoverEndDate(day) {\n this.hoveredEndDate = day;\n },\n changeFocus: function changeFocus(day) {\n var focused = {\n day: day.getDate(),\n month: day.getMonth(),\n year: day.getFullYear()\n };\n this.$emit('update:focused', focused);\n }\n }\n};\n\n/* script */\nconst __vue_script__$1 = script$1;\n\n/* template */\nvar __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:\"datepicker-table\"},[_c('header',{staticClass:\"datepicker-header\"},_vm._l((_vm.visibleDayNames),function(day,index){return _c('div',{key:index,staticClass:\"datepicker-cell\"},[_c('span',[_vm._v(_vm._s(day))])])})),_vm._v(\" \"),_c('div',{staticClass:\"datepicker-body\",class:{'has-events':_vm.hasEvents}},_vm._l((_vm.weeksInThisMonth),function(week,index){return _c('b-datepicker-table-row',{key:index,attrs:{\"selected-date\":_vm.value,\"day\":_vm.focused.day,\"week\":week,\"month\":_vm.focused.month,\"min-date\":_vm.minDate,\"max-date\":_vm.maxDate,\"disabled\":_vm.disabled,\"unselectable-dates\":_vm.unselectableDates,\"unselectable-days-of-week\":_vm.unselectableDaysOfWeek,\"selectable-dates\":_vm.selectableDates,\"events\":_vm.eventsInThisWeek(week),\"indicators\":_vm.indicators,\"date-creator\":_vm.dateCreator,\"nearby-month-days\":_vm.nearbyMonthDays,\"nearby-selectable-month-days\":_vm.nearbySelectableMonthDays,\"show-week-number\":_vm.showWeekNumber,\"first-day-of-week\":_vm.firstDayOfWeek,\"rules-for-first-week\":_vm.rulesForFirstWeek,\"range\":_vm.range,\"hovered-date-range\":_vm.hoveredDateRange,\"multiple\":_vm.multiple},on:{\"select\":_vm.updateSelectedDate,\"rangeHoverEndDate\":_vm.setRangeHoverEndDate,\"change-focus\":_vm.changeFocus}})}),1)])};\nvar __vue_staticRenderFns__$1 = [];\n\n /* style */\n const __vue_inject_styles__$1 = undefined;\n /* scoped */\n const __vue_scope_id__$1 = undefined;\n /* module identifier */\n const __vue_module_identifier__$1 = undefined;\n /* functional template */\n const __vue_is_functional_template__$1 = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var DatepickerTable = __vue_normalize__(\n { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },\n __vue_inject_styles__$1,\n __vue_script__$1,\n __vue_scope_id__$1,\n __vue_is_functional_template__$1,\n __vue_module_identifier__$1,\n undefined,\n undefined\n );\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar script$2 = {\n name: 'BDatepickerMonth',\n props: {\n value: {\n type: [Date, Array]\n },\n monthNames: Array,\n events: Array,\n indicators: String,\n minDate: Date,\n maxDate: Date,\n focused: Object,\n disabled: Boolean,\n dateCreator: Function,\n unselectableDates: Array,\n unselectableDaysOfWeek: Array,\n selectableDates: Array,\n multiple: Boolean\n },\n data: function data() {\n return {\n multipleSelectedDates: this.multiple && this.value ? this.value : []\n };\n },\n computed: {\n hasEvents: function hasEvents() {\n return this.events && this.events.length;\n },\n\n /*\r\n * Return array of all events in the specified month\r\n */\n eventsInThisYear: function eventsInThisYear() {\n if (!this.events) return [];\n var yearEvents = [];\n\n for (var i = 0; i < this.events.length; i++) {\n var event = this.events[i];\n\n if (!event.hasOwnProperty('date')) {\n event = {\n date: event\n };\n }\n\n if (!event.hasOwnProperty('type')) {\n event.type = 'is-primary';\n }\n\n if (event.date.getFullYear() === this.focused.year) {\n yearEvents.push(event);\n }\n }\n\n return yearEvents;\n },\n monthDates: function monthDates() {\n var year = this.focused.year;\n var months = [];\n\n for (var i = 0; i < 12; i++) {\n var d = new Date(year, i, 1);\n d.setHours(0, 0, 0, 0);\n months.push(d);\n }\n\n return months;\n },\n focusedMonth: function focusedMonth() {\n return this.focused.month;\n }\n },\n watch: {\n focusedMonth: {\n handler: function handler(month) {\n var _this = this;\n\n var refName = \"month-\".concat(month);\n\n if (this.$refs[refName] && this.$refs[refName].length > 0) {\n this.$nextTick(function () {\n if (_this.$refs[refName][0]) {\n _this.$refs[refName][0].focus();\n }\n }); // $nextTick needed when year is changed\n }\n },\n deep: true,\n immediate: true\n }\n },\n methods: {\n selectMultipleDates: function selectMultipleDates(date) {\n var multipleSelect = this.multipleSelectedDates.filter(function (selectedDate) {\n return selectedDate.getDate() === date.getDate() && selectedDate.getFullYear() === date.getFullYear() && selectedDate.getMonth() === date.getMonth();\n });\n\n if (multipleSelect.length) {\n this.multipleSelectedDates = this.multipleSelectedDates.filter(function (selectedDate) {\n return selectedDate.getDate() !== date.getDate() || selectedDate.getFullYear() !== date.getFullYear() || selectedDate.getMonth() !== date.getMonth();\n });\n } else {\n this.multipleSelectedDates.push(date);\n }\n\n this.$emit('input', this.multipleSelectedDates);\n },\n selectableDate: function selectableDate(day) {\n var validity = [];\n\n if (this.minDate) {\n validity.push(day >= this.minDate);\n }\n\n if (this.maxDate) {\n validity.push(day <= this.maxDate);\n }\n\n validity.push(day.getFullYear() === this.focused.year);\n\n if (this.selectableDates) {\n for (var i = 0; i < this.selectableDates.length; i++) {\n var enabledDate = this.selectableDates[i];\n\n if (day.getFullYear() === enabledDate.getFullYear() && day.getMonth() === enabledDate.getMonth()) {\n return true;\n } else {\n validity.push(false);\n }\n }\n }\n\n if (this.unselectableDates) {\n for (var _i = 0; _i < this.unselectableDates.length; _i++) {\n var disabledDate = this.unselectableDates[_i];\n validity.push(day.getFullYear() !== disabledDate.getFullYear() || day.getMonth() !== disabledDate.getMonth());\n }\n }\n\n if (this.unselectableDaysOfWeek) {\n for (var _i2 = 0; _i2 < this.unselectableDaysOfWeek.length; _i2++) {\n var dayOfWeek = this.unselectableDaysOfWeek[_i2];\n validity.push(day.getDay() !== dayOfWeek);\n }\n }\n\n return validity.indexOf(false) < 0;\n },\n eventsDateMatch: function eventsDateMatch(day) {\n if (!this.eventsInThisYear.length) return false;\n var monthEvents = [];\n\n for (var i = 0; i < this.eventsInThisYear.length; i++) {\n if (this.eventsInThisYear[i].date.getMonth() === day.getMonth()) {\n monthEvents.push(this.events[i]);\n }\n }\n\n if (!monthEvents.length) {\n return false;\n }\n\n return monthEvents;\n },\n\n /*\r\n * Build classObject for cell using validations\r\n */\n classObject: function classObject(day) {\n function dateMatch(dateOne, dateTwo, multiple) {\n // if either date is null or undefined, return false\n if (!dateOne || !dateTwo || multiple) {\n return false;\n }\n\n return dateOne.getFullYear() === dateTwo.getFullYear() && dateOne.getMonth() === dateTwo.getMonth();\n }\n\n function dateMultipleSelected(dateOne, dates, multiple) {\n if (!Array.isArray(dates) || !multiple) {\n return false;\n }\n\n return dates.some(function (date) {\n return dateOne.getDate() === date.getDate() && dateOne.getFullYear() === date.getFullYear() && dateOne.getMonth() === date.getMonth();\n });\n }\n\n return {\n 'is-selected': dateMatch(day, this.value, this.multiple) || dateMultipleSelected(day, this.multipleSelectedDates, this.multiple),\n 'is-today': dateMatch(day, this.dateCreator()),\n 'is-selectable': this.selectableDate(day) && !this.disabled,\n 'is-unselectable': !this.selectableDate(day) || this.disabled\n };\n },\n\n /*\r\n * Emit select event with chosen date as payload\r\n */\n emitChosenDate: function emitChosenDate(day) {\n if (this.disabled) return;\n\n if (!this.multiple) {\n if (this.selectableDate(day)) {\n this.$emit('input', day);\n }\n } else {\n this.selectMultipleDates(day);\n }\n },\n changeFocus: function changeFocus(month, inc) {\n var nextMonth = month;\n nextMonth.setMonth(month.getMonth() + inc);\n this.$emit('change-focus', nextMonth);\n }\n }\n};\n\n/* script */\nconst __vue_script__$2 = script$2;\n\n/* template */\nvar __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('section',{staticClass:\"datepicker-table\"},[_c('div',{staticClass:\"datepicker-body\",class:{'has-events':_vm.hasEvents}},[_c('div',{staticClass:\"datepicker-months\"},[_vm._l((_vm.monthDates),function(date,index){return [(_vm.selectableDate(date) && !_vm.disabled)?_c('a',{key:index,ref:(\"month-\" + (date.getMonth())),refInFor:true,staticClass:\"datepicker-cell\",class:[\r\n _vm.classObject(date),\r\n {'has-event': _vm.eventsDateMatch(date)},\r\n _vm.indicators\r\n ],attrs:{\"role\":\"button\",\"href\":\"#\",\"disabled\":_vm.disabled,\"tabindex\":_vm.focused.month === date.getMonth() ? null : -1},on:{\"click\":function($event){$event.preventDefault();_vm.emitChosenDate(date);},\"keydown\":[function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }$event.preventDefault();_vm.emitChosenDate(date);},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"space\",32,$event.key,[\" \",\"Spacebar\"])){ return null; }$event.preventDefault();_vm.emitChosenDate(date);},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"arrow-left\",undefined,$event.key,undefined)){ return null; }$event.preventDefault();_vm.changeFocus(date, -1);},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"arrow-right\",undefined,$event.key,undefined)){ return null; }$event.preventDefault();_vm.changeFocus(date, 1);},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"arrow-up\",undefined,$event.key,undefined)){ return null; }$event.preventDefault();_vm.changeFocus(date, -3);},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"arrow-down\",undefined,$event.key,undefined)){ return null; }$event.preventDefault();_vm.changeFocus(date, 3);}]}},[_vm._v(\"\\r\\n \"+_vm._s(_vm.monthNames[date.getMonth()])+\"\\r\\n \"),(_vm.eventsDateMatch(date))?_c('div',{staticClass:\"events\"},_vm._l((_vm.eventsDateMatch(date)),function(event,index){return _c('div',{key:index,staticClass:\"event\",class:event.type})})):_vm._e()]):_c('div',{key:index,staticClass:\"datepicker-cell\",class:_vm.classObject(date)},[_vm._v(\"\\r\\n \"+_vm._s(_vm.monthNames[date.getMonth()])+\"\\r\\n \")])]})],2)])])};\nvar __vue_staticRenderFns__$2 = [];\n\n /* style */\n const __vue_inject_styles__$2 = undefined;\n /* scoped */\n const __vue_scope_id__$2 = undefined;\n /* module identifier */\n const __vue_module_identifier__$2 = undefined;\n /* functional template */\n const __vue_is_functional_template__$2 = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var DatepickerMonth = __vue_normalize__(\n { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 },\n __vue_inject_styles__$2,\n __vue_script__$2,\n __vue_scope_id__$2,\n __vue_is_functional_template__$2,\n __vue_module_identifier__$2,\n undefined,\n undefined\n );\n\nvar _components;\n\nvar defaultDateFormatter = function defaultDateFormatter(date, vm) {\n var targetDates = Array.isArray(date) ? date : [date];\n var dates = targetDates.map(function (date) {\n var d = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 12);\n return !vm.isTypeMonth ? d.toLocaleDateString() : d.toLocaleDateString(undefined, {\n year: 'numeric',\n month: '2-digit'\n });\n });\n return !vm.multiple ? dates.join(' - ') : dates.join(', ');\n};\n\nvar defaultDateParser = function defaultDateParser(date, vm) {\n if (!vm.isTypeMonth) return new Date(Date.parse(date));\n\n if (date) {\n var s = date.split('/');\n var year = s[0].length === 4 ? s[0] : s[1];\n var month = s[0].length === 2 ? s[0] : s[1];\n\n if (year && month) {\n return new Date(parseInt(year, 10), parseInt(month - 1, 10), 1, 0, 0, 0, 0);\n }\n }\n\n return null;\n};\n\nvar script$3 = {\n name: 'BDatepicker',\n components: (_components = {}, _defineProperty(_components, DatepickerTable.name, DatepickerTable), _defineProperty(_components, DatepickerMonth.name, DatepickerMonth), _defineProperty(_components, Input.name, Input), _defineProperty(_components, Field.name, Field), _defineProperty(_components, Select.name, Select), _defineProperty(_components, Icon.name, Icon), _defineProperty(_components, Dropdown.name, Dropdown), _defineProperty(_components, DropdownItem.name, DropdownItem), _components),\n mixins: [FormElementMixin],\n inheritAttrs: false,\n props: {\n value: {\n type: [Date, Array]\n },\n dayNames: {\n type: Array,\n default: function _default() {\n if (Array.isArray(config.defaultDayNames)) {\n return config.defaultDayNames;\n } else {\n return ['Su', 'M', 'Tu', 'W', 'Th', 'F', 'S'];\n }\n }\n },\n monthNames: {\n type: Array,\n default: function _default() {\n if (Array.isArray(config.defaultMonthNames)) {\n return config.defaultMonthNames;\n } else {\n return ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];\n }\n }\n },\n firstDayOfWeek: {\n type: Number,\n default: function _default() {\n if (typeof config.defaultFirstDayOfWeek === 'number') {\n return config.defaultFirstDayOfWeek;\n } else {\n return 0;\n }\n }\n },\n inline: Boolean,\n minDate: Date,\n maxDate: Date,\n focusedDate: Date,\n placeholder: String,\n editable: Boolean,\n disabled: Boolean,\n horizontalTimePicker: Boolean,\n unselectableDates: Array,\n unselectableDaysOfWeek: {\n type: Array,\n default: function _default() {\n return config.defaultUnselectableDaysOfWeek;\n }\n },\n selectableDates: Array,\n dateFormatter: {\n type: Function,\n default: function _default(date, vm) {\n if (typeof config.defaultDateFormatter === 'function') {\n return config.defaultDateFormatter(date);\n } else {\n return defaultDateFormatter(date, vm);\n }\n }\n },\n dateParser: {\n type: Function,\n default: function _default(date, vm) {\n if (typeof config.defaultDateParser === 'function') {\n return config.defaultDateParser(date);\n } else {\n return defaultDateParser(date, vm);\n }\n }\n },\n dateCreator: {\n type: Function,\n default: function _default() {\n if (typeof config.defaultDateCreator === 'function') {\n return config.defaultDateCreator();\n } else {\n return new Date();\n }\n }\n },\n mobileNative: {\n type: Boolean,\n default: function _default() {\n return config.defaultDatepickerMobileNative;\n }\n },\n position: String,\n events: Array,\n indicators: {\n type: String,\n default: 'dots'\n },\n openOnFocus: Boolean,\n iconPrev: {\n type: String,\n default: function _default() {\n return config.defaultIconPrev;\n }\n },\n iconNext: {\n type: String,\n default: function _default() {\n return config.defaultIconNext;\n }\n },\n yearsRange: {\n type: Array,\n default: function _default() {\n return config.defaultDatepickerYearsRange;\n }\n },\n type: {\n type: String,\n validator: function validator(value) {\n return ['month'].indexOf(value) >= 0;\n }\n },\n nearbyMonthDays: {\n type: Boolean,\n default: function _default() {\n return config.defaultDatepickerNearbyMonthDays;\n }\n },\n nearbySelectableMonthDays: {\n type: Boolean,\n default: function _default() {\n return config.defaultDatepickerNearbySelectableMonthDays;\n }\n },\n showWeekNumber: {\n type: Boolean,\n default: function _default() {\n return config.defaultDatepickerShowWeekNumber;\n }\n },\n rulesForFirstWeek: {\n type: Number,\n default: function _default() {\n return 4;\n }\n },\n range: {\n type: Boolean,\n default: false\n },\n closeOnClick: {\n type: Boolean,\n default: true\n },\n multiple: {\n type: Boolean,\n default: false\n },\n mobileModal: {\n type: Boolean,\n default: function _default() {\n return config.defaultDatepickerMobileModal;\n }\n },\n focusable: {\n type: Boolean,\n default: true\n },\n trapFocus: {\n type: Boolean,\n default: function _default() {\n return config.defaultTrapFocus;\n }\n },\n appendToBody: Boolean,\n ariaNextLabel: String,\n ariaPreviousLabel: String\n },\n data: function data() {\n var focusedDate = (Array.isArray(this.value) ? this.value[0] : this.value) || this.focusedDate || this.dateCreator();\n return {\n dateSelected: this.value,\n focusedDateData: {\n day: focusedDate.getDate(),\n month: focusedDate.getMonth(),\n year: focusedDate.getFullYear()\n },\n _elementRef: 'input',\n _isDatepicker: true\n };\n },\n computed: {\n computedValue: {\n get: function get() {\n return this.dateSelected;\n },\n set: function set(value) {\n var _this = this;\n\n this.updateInternalState(value);\n if (!this.multiple) this.togglePicker(false);\n this.$emit('input', value);\n\n if (this.useHtml5Validation) {\n this.$nextTick(function () {\n _this.checkHtml5Validity();\n });\n }\n }\n },\n listOfMonths: function listOfMonths() {\n var minMonth = 0;\n var maxMonth = 12;\n\n if (this.minDate && this.focusedDateData.year === this.minDate.getFullYear()) {\n minMonth = this.minDate.getMonth();\n }\n\n if (this.maxDate && this.focusedDateData.year === this.maxDate.getFullYear()) {\n maxMonth = this.maxDate.getMonth();\n }\n\n return this.monthNames.map(function (name, index) {\n return {\n name: name,\n index: index,\n disabled: index < minMonth || index > maxMonth\n };\n });\n },\n\n /*\r\n * Returns an array of years for the year dropdown. If earliest/latest\r\n * dates are set by props, range of years will fall within those dates.\r\n */\n listOfYears: function listOfYears() {\n var latestYear = this.focusedDateData.year + this.yearsRange[1];\n\n if (this.maxDate && this.maxDate.getFullYear() < latestYear) {\n latestYear = Math.max(this.maxDate.getFullYear(), this.focusedDateData.year);\n }\n\n var earliestYear = this.focusedDateData.year + this.yearsRange[0];\n\n if (this.minDate && this.minDate.getFullYear() > earliestYear) {\n earliestYear = Math.min(this.minDate.getFullYear(), this.focusedDateData.year);\n }\n\n var arrayOfYears = [];\n\n for (var i = earliestYear; i <= latestYear; i++) {\n arrayOfYears.push(i);\n }\n\n return arrayOfYears.reverse();\n },\n showPrev: function showPrev() {\n if (!this.minDate) return false;\n\n if (this.isTypeMonth) {\n return this.focusedDateData.year <= this.minDate.getFullYear();\n }\n\n var dateToCheck = new Date(this.focusedDateData.year, this.focusedDateData.month);\n var date = new Date(this.minDate.getFullYear(), this.minDate.getMonth());\n return dateToCheck <= date;\n },\n showNext: function showNext() {\n if (!this.maxDate) return false;\n\n if (this.isTypeMonth) {\n return this.focusedDateData.year >= this.maxDate.getFullYear();\n }\n\n var dateToCheck = new Date(this.focusedDateData.year, this.focusedDateData.month);\n var date = new Date(this.maxDate.getFullYear(), this.maxDate.getMonth());\n return dateToCheck >= date;\n },\n isMobile: function isMobile$1() {\n return this.mobileNative && isMobile.any();\n },\n isTypeMonth: function isTypeMonth() {\n return this.type === 'month';\n },\n ariaRole: function ariaRole() {\n if (!this.inline) {\n return 'dialog';\n }\n }\n },\n watch: {\n /**\r\n * When v-model is changed:\r\n * 1. Update internal value.\r\n * 2. If it's invalid, validate again.\r\n */\n value: function value(_value) {\n this.updateInternalState(_value);\n if (!this.multiple) this.togglePicker(false);\n },\n focusedDate: function focusedDate(value) {\n if (value) {\n this.focusedDateData = {\n day: value.getDate(),\n month: value.getMonth(),\n year: value.getFullYear()\n };\n }\n },\n\n /*\r\n * Emit input event on month and/or year change\r\n */\n 'focusedDateData.month': function focusedDateDataMonth(value) {\n this.$emit('change-month', value);\n },\n 'focusedDateData.year': function focusedDateDataYear(value) {\n this.$emit('change-year', value);\n }\n },\n methods: {\n /*\r\n * Parse string into date\r\n */\n onChange: function onChange(value) {\n var date = this.dateParser(value, this);\n\n if (date && (!isNaN(date) || Array.isArray(date) && date.length === 2 && !isNaN(date[0]) && !isNaN(date[1]))) {\n this.computedValue = date;\n } else {\n // Force refresh input value when not valid date\n this.computedValue = null;\n this.$refs.input.newValue = this.computedValue;\n }\n },\n\n /*\r\n * Format date into string\r\n */\n formatValue: function formatValue(value) {\n if (Array.isArray(value)) {\n var isArrayWithValidDates = Array.isArray(value) && value.every(function (v) {\n return !isNaN(v);\n });\n return isArrayWithValidDates ? this.dateFormatter(value, this) : null;\n }\n\n return value && !isNaN(value) ? this.dateFormatter(value, this) : null;\n },\n\n /*\r\n * Either decrement month by 1 if not January or decrement year by 1\r\n * and set month to 11 (December) or decrement year when 'month'\r\n */\n prev: function prev() {\n if (this.disabled) return;\n\n if (this.isTypeMonth) {\n this.focusedDateData.year -= 1;\n } else {\n if (this.focusedDateData.month > 0) {\n this.focusedDateData.month -= 1;\n } else {\n this.focusedDateData.month = 11;\n this.focusedDateData.year -= 1;\n }\n }\n },\n\n /*\r\n * Either increment month by 1 if not December or increment year by 1\r\n * and set month to 0 (January) or increment year when 'month'\r\n */\n next: function next() {\n if (this.disabled) return;\n\n if (this.isTypeMonth) {\n this.focusedDateData.year += 1;\n } else {\n if (this.focusedDateData.month < 11) {\n this.focusedDateData.month += 1;\n } else {\n this.focusedDateData.month = 0;\n this.focusedDateData.year += 1;\n }\n }\n },\n formatNative: function formatNative(value) {\n return this.isTypeMonth ? this.formatYYYYMM(value) : this.formatYYYYMMDD(value);\n },\n\n /*\r\n * Format date into string 'YYYY-MM-DD'\r\n */\n formatYYYYMMDD: function formatYYYYMMDD(value) {\n var date = new Date(value);\n\n if (value && !isNaN(date)) {\n var year = date.getFullYear();\n var month = date.getMonth() + 1;\n var day = date.getDate();\n return year + '-' + ((month < 10 ? '0' : '') + month) + '-' + ((day < 10 ? '0' : '') + day);\n }\n\n return '';\n },\n\n /*\r\n * Format date into string 'YYYY-MM'\r\n */\n formatYYYYMM: function formatYYYYMM(value) {\n var date = new Date(value);\n\n if (value && !isNaN(date)) {\n var year = date.getFullYear();\n var month = date.getMonth() + 1;\n return year + '-' + ((month < 10 ? '0' : '') + month);\n }\n\n return '';\n },\n\n /*\r\n * Parse date from string\r\n */\n onChangeNativePicker: function onChangeNativePicker(event) {\n var date = event.target.value;\n var s = date ? date.split('-') : [];\n\n if (s.length === 3) {\n var year = parseInt(s[0], 10);\n var month = parseInt(s[1]) - 1;\n var day = parseInt(s[2]);\n this.computedValue = new Date(year, month, day);\n } else {\n this.computedValue = null;\n }\n },\n updateInternalState: function updateInternalState(value) {\n var currentDate = Array.isArray(value) ? !value.length ? this.dateCreator() : value[0] : !value ? this.dateCreator() : value;\n this.focusedDateData = {\n day: currentDate.getDate(),\n month: currentDate.getMonth(),\n year: currentDate.getFullYear()\n };\n this.dateSelected = value;\n },\n\n /*\r\n * Toggle datepicker\r\n */\n togglePicker: function togglePicker(active) {\n if (this.$refs.dropdown) {\n if (this.closeOnClick) {\n this.$refs.dropdown.isActive = typeof active === 'boolean' ? active : !this.$refs.dropdown.isActive;\n }\n }\n },\n\n /*\r\n * Call default onFocus method and show datepicker\r\n */\n handleOnFocus: function handleOnFocus(event) {\n this.onFocus(event);\n\n if (this.openOnFocus) {\n this.togglePicker(true);\n }\n },\n\n /*\r\n * Toggle dropdown\r\n */\n toggle: function toggle() {\n if (this.mobileNative && this.isMobile) {\n var input = this.$refs.input.$refs.input;\n input.focus();\n input.click();\n return;\n }\n\n this.$refs.dropdown.toggle();\n },\n\n /*\r\n * Avoid dropdown toggle when is already visible\r\n */\n onInputClick: function onInputClick(event) {\n if (this.$refs.dropdown.isActive) {\n event.stopPropagation();\n }\n },\n\n /**\r\n * Keypress event that is bound to the document.\r\n */\n keyPress: function keyPress(event) {\n // Esc key\n if (this.$refs.dropdown && this.$refs.dropdown.isActive && event.keyCode === 27) {\n this.togglePicker(false);\n }\n },\n\n /**\r\n * Emit 'blur' event on dropdown is not active (closed)\r\n */\n onActiveChange: function onActiveChange(value) {\n if (!value) {\n this.onBlur();\n }\n },\n changeFocus: function changeFocus(day) {\n this.focusedDateData = {\n day: day.getDate(),\n month: day.getMonth(),\n year: day.getFullYear()\n };\n }\n },\n created: function created() {\n if (typeof window !== 'undefined') {\n document.addEventListener('keyup', this.keyPress);\n }\n },\n beforeDestroy: function beforeDestroy() {\n if (typeof window !== 'undefined') {\n document.removeEventListener('keyup', this.keyPress);\n }\n }\n};\n\n/* script */\nconst __vue_script__$3 = script$3;\n\n/* template */\nvar __vue_render__$3 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"datepicker control\",class:[_vm.size, {'is-expanded': _vm.expanded}]},[(!_vm.isMobile || _vm.inline)?_c('b-dropdown',{ref:\"dropdown\",attrs:{\"position\":_vm.position,\"disabled\":_vm.disabled,\"inline\":_vm.inline,\"mobile-modal\":_vm.mobileModal,\"trap-focus\":_vm.trapFocus,\"aria-role\":_vm.ariaRole,\"aria-modal\":!_vm.inline,\"append-to-body\":_vm.appendToBody,\"append-to-body-copy-parent\":\"\"},on:{\"active-change\":_vm.onActiveChange}},[(!_vm.inline)?_c('b-input',_vm._b({ref:\"input\",attrs:{\"slot\":\"trigger\",\"autocomplete\":\"off\",\"value\":_vm.formatValue(_vm.computedValue),\"placeholder\":_vm.placeholder,\"size\":_vm.size,\"icon\":_vm.icon,\"icon-pack\":_vm.iconPack,\"rounded\":_vm.rounded,\"loading\":_vm.loading,\"disabled\":_vm.disabled,\"readonly\":!_vm.editable,\"use-html5-validation\":false},on:{\"focus\":_vm.handleOnFocus},nativeOn:{\"click\":function($event){return _vm.onInputClick($event)},\"keyup\":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }_vm.togglePicker(true);},\"change\":function($event){_vm.onChange($event.target.value);}},slot:\"trigger\"},'b-input',_vm.$attrs,false)):_vm._e(),_vm._v(\" \"),_c('b-dropdown-item',{class:{'dropdown-horizonal-timepicker': _vm.horizontalTimePicker},attrs:{\"disabled\":_vm.disabled,\"focusable\":_vm.focusable,\"custom\":\"\"}},[_c('div',[_c('header',{staticClass:\"datepicker-header\"},[(_vm.$slots.header !== undefined && _vm.$slots.header.length)?[_vm._t(\"header\")]:_c('div',{staticClass:\"pagination field is-centered\",class:_vm.size},[_c('a',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showPrev && !_vm.disabled),expression:\"!showPrev && !disabled\"}],staticClass:\"pagination-previous\",attrs:{\"role\":\"button\",\"href\":\"#\",\"disabled\":_vm.disabled,\"aria-label\":_vm.ariaPreviousLabel},on:{\"click\":function($event){$event.preventDefault();return _vm.prev($event)},\"keydown\":[function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }$event.preventDefault();return _vm.prev($event)},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"space\",32,$event.key,[\" \",\"Spacebar\"])){ return null; }$event.preventDefault();return _vm.prev($event)}]}},[_c('b-icon',{attrs:{\"icon\":_vm.iconPrev,\"pack\":_vm.iconPack,\"both\":\"\",\"type\":\"is-primary is-clickable\"}})],1),_vm._v(\" \"),_c('a',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.showNext && !_vm.disabled),expression:\"!showNext && !disabled\"}],staticClass:\"pagination-next\",attrs:{\"role\":\"button\",\"href\":\"#\",\"disabled\":_vm.disabled,\"aria-label\":_vm.ariaNextLabel},on:{\"click\":function($event){$event.preventDefault();return _vm.next($event)},\"keydown\":[function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }$event.preventDefault();return _vm.next($event)},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"space\",32,$event.key,[\" \",\"Spacebar\"])){ return null; }$event.preventDefault();return _vm.next($event)}]}},[_c('b-icon',{attrs:{\"icon\":_vm.iconNext,\"pack\":_vm.iconPack,\"both\":\"\",\"type\":\"is-primary is-clickable\"}})],1),_vm._v(\" \"),_c('div',{staticClass:\"pagination-list\"},[_c('b-field',[(!_vm.isTypeMonth)?_c('b-select',{attrs:{\"disabled\":_vm.disabled,\"size\":_vm.size},model:{value:(_vm.focusedDateData.month),callback:function ($$v) {_vm.$set(_vm.focusedDateData, \"month\", $$v);},expression:\"focusedDateData.month\"}},_vm._l((_vm.listOfMonths),function(month){return _c('option',{key:month.name,attrs:{\"disabled\":month.disabled},domProps:{\"value\":month.index}},[_vm._v(\"\\r\\n \"+_vm._s(month.name)+\"\\r\\n \")])})):_vm._e(),_vm._v(\" \"),_c('b-select',{attrs:{\"disabled\":_vm.disabled,\"size\":_vm.size},model:{value:(_vm.focusedDateData.year),callback:function ($$v) {_vm.$set(_vm.focusedDateData, \"year\", $$v);},expression:\"focusedDateData.year\"}},_vm._l((_vm.listOfYears),function(year){return _c('option',{key:year,domProps:{\"value\":year}},[_vm._v(\"\\r\\n \"+_vm._s(year)+\"\\r\\n \")])}))],1)],1)])],2),_vm._v(\" \"),(!_vm.isTypeMonth)?_c('div',{staticClass:\"datepicker-content\",class:{'content-horizonal-timepicker': _vm.horizontalTimePicker}},[_c('b-datepicker-table',{attrs:{\"day-names\":_vm.dayNames,\"month-names\":_vm.monthNames,\"first-day-of-week\":_vm.firstDayOfWeek,\"rules-for-first-week\":_vm.rulesForFirstWeek,\"min-date\":_vm.minDate,\"max-date\":_vm.maxDate,\"focused\":_vm.focusedDateData,\"disabled\":_vm.disabled,\"unselectable-dates\":_vm.unselectableDates,\"unselectable-days-of-week\":_vm.unselectableDaysOfWeek,\"selectable-dates\":_vm.selectableDates,\"events\":_vm.events,\"indicators\":_vm.indicators,\"date-creator\":_vm.dateCreator,\"type-month\":_vm.isTypeMonth,\"nearby-month-days\":_vm.nearbyMonthDays,\"nearby-selectable-month-days\":_vm.nearbySelectableMonthDays,\"show-week-number\":_vm.showWeekNumber,\"range\":_vm.range,\"multiple\":_vm.multiple},on:{\"update:focused\":function($event){_vm.focusedDateData=$event;},\"range-start\":function (date) { return _vm.$emit('range-start', date); },\"range-end\":function (date) { return _vm.$emit('range-end', date); },\"close\":function($event){_vm.togglePicker(false);}},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=$$v;},expression:\"computedValue\"}})],1):_c('div',[_c('b-datepicker-month',{attrs:{\"month-names\":_vm.monthNames,\"min-date\":_vm.minDate,\"max-date\":_vm.maxDate,\"focused\":_vm.focusedDateData,\"disabled\":_vm.disabled,\"unselectable-dates\":_vm.unselectableDates,\"unselectable-days-of-week\":_vm.unselectableDaysOfWeek,\"selectable-dates\":_vm.selectableDates,\"events\":_vm.events,\"indicators\":_vm.indicators,\"date-creator\":_vm.dateCreator,\"multiple\":_vm.multiple},on:{\"update:focused\":function($event){_vm.focusedDateData=$event;},\"close\":function($event){_vm.togglePicker(false);},\"change-focus\":_vm.changeFocus},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=$$v;},expression:\"computedValue\"}})],1)]),_vm._v(\" \"),(_vm.$slots.default !== undefined && _vm.$slots.default.length)?_c('footer',{staticClass:\"datepicker-footer\",class:{'footer-horizontal-timepicker': _vm.horizontalTimePicker}},[_vm._t(\"default\")],2):_vm._e()])],1):_c('b-input',_vm._b({ref:\"input\",attrs:{\"type\":!_vm.isTypeMonth ? 'date' : 'month',\"autocomplete\":\"off\",\"value\":_vm.formatNative(_vm.computedValue),\"placeholder\":_vm.placeholder,\"size\":_vm.size,\"icon\":_vm.icon,\"icon-pack\":_vm.iconPack,\"rounded\":_vm.rounded,\"loading\":_vm.loading,\"max\":_vm.formatNative(_vm.maxDate),\"min\":_vm.formatNative(_vm.minDate),\"disabled\":_vm.disabled,\"readonly\":false,\"use-html5-validation\":false},on:{\"focus\":_vm.onFocus,\"blur\":_vm.onBlur},nativeOn:{\"change\":function($event){return _vm.onChangeNativePicker($event)}}},'b-input',_vm.$attrs,false))],1)};\nvar __vue_staticRenderFns__$3 = [];\n\n /* style */\n const __vue_inject_styles__$3 = undefined;\n /* scoped */\n const __vue_scope_id__$3 = undefined;\n /* module identifier */\n const __vue_module_identifier__$3 = undefined;\n /* functional template */\n const __vue_is_functional_template__$3 = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Datepicker = __vue_normalize__(\n { render: __vue_render__$3, staticRenderFns: __vue_staticRenderFns__$3 },\n __vue_inject_styles__$3,\n __vue_script__$3,\n __vue_scope_id__$3,\n __vue_is_functional_template__$3,\n __vue_module_identifier__$3,\n undefined,\n undefined\n );\n\nexport { Datepicker as D };\n","import './chunk-1fafdf15.js';\nimport './helpers.js';\nimport './chunk-6985c8ce.js';\nimport './chunk-d0a313ea.js';\nimport './chunk-cdfca85b.js';\nimport { r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport './chunk-d1591eb8.js';\nimport './chunk-42f463e6.js';\nimport './chunk-4d76806f.js';\nimport './chunk-eb60b35a.js';\nimport './chunk-77ffdf8b.js';\nimport { D as Datepicker } from './chunk-66a4ceca.js';\nexport { D as BDatepicker } from './chunk-66a4ceca.js';\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Datepicker);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\n","import { _ as _defineProperty } from './chunk-1fafdf15.js';\nimport { I as Icon } from './chunk-cdfca85b.js';\nimport { _ as __vue_normalize__ } from './chunk-cca88db8.js';\nimport { I as Input } from './chunk-d1591eb8.js';\nimport { T as TimepickerMixin } from './chunk-1196ee55.js';\nimport { D as Dropdown, a as DropdownItem } from './chunk-4d76806f.js';\nimport { F as Field } from './chunk-eb60b35a.js';\nimport { S as Select } from './chunk-77ffdf8b.js';\n\nvar _components;\nvar script = {\n name: 'BTimepicker',\n components: (_components = {}, _defineProperty(_components, Input.name, Input), _defineProperty(_components, Field.name, Field), _defineProperty(_components, Select.name, Select), _defineProperty(_components, Icon.name, Icon), _defineProperty(_components, Dropdown.name, Dropdown), _defineProperty(_components, DropdownItem.name, DropdownItem), _components),\n mixins: [TimepickerMixin],\n inheritAttrs: false,\n data: function data() {\n return {\n _isTimepicker: true\n };\n },\n computed: {\n nativeStep: function nativeStep() {\n if (this.enableSeconds) return '1';\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"timepicker control\",class:[_vm.size, {'is-expanded': _vm.expanded}]},[(!_vm.isMobile || _vm.inline)?_c('b-dropdown',{ref:\"dropdown\",attrs:{\"position\":_vm.position,\"disabled\":_vm.disabled,\"inline\":_vm.inline,\"append-to-body\":_vm.appendToBody,\"append-to-body-copy-parent\":\"\"},on:{\"active-change\":_vm.onActiveChange}},[(!_vm.inline)?_c('b-input',_vm._b({ref:\"input\",attrs:{\"slot\":\"trigger\",\"autocomplete\":\"off\",\"value\":_vm.formatValue(_vm.computedValue),\"placeholder\":_vm.placeholder,\"size\":_vm.size,\"icon\":_vm.icon,\"icon-pack\":_vm.iconPack,\"loading\":_vm.loading,\"disabled\":_vm.disabled,\"readonly\":!_vm.editable,\"rounded\":_vm.rounded,\"use-html5-validation\":_vm.useHtml5Validation},on:{\"focus\":_vm.handleOnFocus},nativeOn:{\"keyup\":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }_vm.toggle(true);},\"change\":function($event){_vm.onChange($event.target.value);}},slot:\"trigger\"},'b-input',_vm.$attrs,false)):_vm._e(),_vm._v(\" \"),_c('b-dropdown-item',{attrs:{\"disabled\":_vm.disabled,\"focusable\":_vm.focusable,\"custom\":\"\"}},[_c('b-field',{attrs:{\"grouped\":\"\",\"position\":\"is-centered\"}},[_c('b-select',{attrs:{\"disabled\":_vm.disabled,\"placeholder\":\"00\"},nativeOn:{\"change\":function($event){_vm.onHoursChange($event.target.value);}},model:{value:(_vm.hoursSelected),callback:function ($$v) {_vm.hoursSelected=$$v;},expression:\"hoursSelected\"}},_vm._l((_vm.hours),function(hour){return _c('option',{key:hour.value,attrs:{\"disabled\":_vm.isHourDisabled(hour.value)},domProps:{\"value\":hour.value}},[_vm._v(\"\\r\\n \"+_vm._s(hour.label)+\"\\r\\n \")])})),_vm._v(\" \"),_c('span',{staticClass:\"control is-colon\"},[_vm._v(\":\")]),_vm._v(\" \"),_c('b-select',{attrs:{\"disabled\":_vm.disabled,\"placeholder\":\"00\"},nativeOn:{\"change\":function($event){_vm.onMinutesChange($event.target.value);}},model:{value:(_vm.minutesSelected),callback:function ($$v) {_vm.minutesSelected=$$v;},expression:\"minutesSelected\"}},_vm._l((_vm.minutes),function(minute){return _c('option',{key:minute.value,attrs:{\"disabled\":_vm.isMinuteDisabled(minute.value)},domProps:{\"value\":minute.value}},[_vm._v(\"\\r\\n \"+_vm._s(minute.label)+\"\\r\\n \")])})),_vm._v(\" \"),(_vm.enableSeconds)?[_c('span',{staticClass:\"control is-colon\"},[_vm._v(\":\")]),_vm._v(\" \"),_c('b-select',{attrs:{\"disabled\":_vm.disabled,\"placeholder\":\"00\"},nativeOn:{\"change\":function($event){_vm.onSecondsChange($event.target.value);}},model:{value:(_vm.secondsSelected),callback:function ($$v) {_vm.secondsSelected=$$v;},expression:\"secondsSelected\"}},_vm._l((_vm.seconds),function(second){return _c('option',{key:second.value,attrs:{\"disabled\":_vm.isSecondDisabled(second.value)},domProps:{\"value\":second.value}},[_vm._v(\"\\r\\n \"+_vm._s(second.label)+\"\\r\\n \")])}))]:_vm._e(),_vm._v(\" \"),(!_vm.isHourFormat24)?_c('b-select',{attrs:{\"disabled\":_vm.disabled},nativeOn:{\"change\":function($event){_vm.onMeridienChange($event.target.value);}},model:{value:(_vm.meridienSelected),callback:function ($$v) {_vm.meridienSelected=$$v;},expression:\"meridienSelected\"}},_vm._l((_vm.meridiens),function(meridien){return _c('option',{key:meridien,domProps:{\"value\":meridien}},[_vm._v(\"\\r\\n \"+_vm._s(meridien)+\"\\r\\n \")])})):_vm._e()],2),_vm._v(\" \"),(_vm.$slots.default !== undefined && _vm.$slots.default.length)?_c('footer',{staticClass:\"timepicker-footer\"},[_vm._t(\"default\")],2):_vm._e()],1)],1):_c('b-input',_vm._b({ref:\"input\",attrs:{\"type\":\"time\",\"step\":_vm.nativeStep,\"autocomplete\":\"off\",\"value\":_vm.formatHHMMSS(_vm.computedValue),\"placeholder\":_vm.placeholder,\"size\":_vm.size,\"icon\":_vm.icon,\"icon-pack\":_vm.iconPack,\"rounded\":_vm.rounded,\"loading\":_vm.loading,\"max\":_vm.formatHHMMSS(_vm.maxTime),\"min\":_vm.formatHHMMSS(_vm.minTime),\"disabled\":_vm.disabled,\"readonly\":false,\"use-html5-validation\":_vm.useHtml5Validation},on:{\"focus\":_vm.handleOnFocus,\"blur\":function($event){_vm.onBlur() && _vm.checkHtml5Validity();}},nativeOn:{\"change\":function($event){_vm.onChange($event.target.value);}}},'b-input',_vm.$attrs,false))],1)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Timepicker = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nexport { Timepicker as T };\n","import { _ as _defineProperty } from './chunk-1fafdf15.js';\nimport { isMobile } from './helpers.js';\nimport { c as config } from './chunk-6985c8ce.js';\nimport { F as FormElementMixin } from './chunk-d0a313ea.js';\nimport './chunk-cdfca85b.js';\nimport { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport './chunk-d1591eb8.js';\nimport './chunk-1196ee55.js';\nimport './chunk-42f463e6.js';\nimport './chunk-4d76806f.js';\nimport './chunk-eb60b35a.js';\nimport './chunk-77ffdf8b.js';\nimport { D as Datepicker } from './chunk-66a4ceca.js';\nimport { T as Timepicker } from './chunk-a684d1f3.js';\n\nvar _components;\nvar script = {\n name: 'BDatetimepicker',\n components: (_components = {}, _defineProperty(_components, Datepicker.name, Datepicker), _defineProperty(_components, Timepicker.name, Timepicker), _components),\n mixins: [FormElementMixin],\n inheritAttrs: false,\n props: {\n value: {\n type: Date\n },\n editable: {\n type: Boolean,\n default: false\n },\n placeholder: String,\n horizontalTimePicker: Boolean,\n disabled: Boolean,\n icon: String,\n iconPack: String,\n inline: Boolean,\n openOnFocus: Boolean,\n position: String,\n mobileNative: {\n type: Boolean,\n default: true\n },\n minDatetime: Date,\n maxDatetime: Date,\n datetimeFormatter: {\n type: Function\n },\n datetimeParser: {\n type: Function\n },\n datetimeCreator: {\n type: Function,\n default: function _default(date) {\n if (typeof config.defaultDatetimeCreator === 'function') {\n return config.defaultDatetimeCreator(date);\n } else {\n return date;\n }\n }\n },\n datepicker: Object,\n timepicker: Object,\n tzOffset: {\n type: Number,\n default: 0\n },\n focusable: {\n type: Boolean,\n default: true\n },\n appendToBody: Boolean\n },\n data: function data() {\n return {\n newValue: this.adjustValue(this.value)\n };\n },\n computed: {\n computedValue: {\n get: function get() {\n return this.newValue;\n },\n set: function set(value) {\n if (value) {\n var val = new Date(value.getTime());\n\n if (this.newValue) {\n // restore time part\n if ((value.getDate() !== this.newValue.getDate() || value.getMonth() !== this.newValue.getMonth() || value.getFullYear() !== this.newValue.getFullYear()) && value.getHours() === 0 && value.getMinutes() === 0 && value.getSeconds() === 0) {\n val.setHours(this.newValue.getHours(), this.newValue.getMinutes(), this.newValue.getSeconds(), 0);\n }\n } else {\n val = this.datetimeCreator(value);\n } // check min and max range\n\n\n if (this.minDatetime && val < this.adjustValue(this.minDatetime)) {\n val = this.adjustValue(this.minDatetime);\n } else if (this.maxDatetime && val > this.adjustValue(this.maxDatetime)) {\n val = this.adjustValue(this.maxDatetime);\n }\n\n this.newValue = new Date(val.getTime());\n } else {\n this.newValue = this.adjustValue(this.value);\n }\n\n var adjustedValue = this.adjustValue(this.newValue, true); // reverse adjust\n\n this.$emit('input', adjustedValue);\n }\n },\n isMobileNative: function isMobileNative() {\n return this.mobileNative && this.tzOffset === 0;\n },\n isMobile: function isMobile$1() {\n return this.isMobileNative && isMobile.any();\n },\n minDate: function minDate() {\n if (!this.minDatetime) {\n return this.datepicker ? this.adjustValue(this.datepicker.minDate) : null;\n }\n\n var adjMinDatetime = this.adjustValue(this.minDatetime);\n return new Date(adjMinDatetime.getFullYear(), adjMinDatetime.getMonth(), adjMinDatetime.getDate(), 0, 0, 0, 0);\n },\n maxDate: function maxDate() {\n if (!this.maxDatetime) {\n return this.datepicker ? this.adjustValue(this.datepicker.maxDate) : null;\n }\n\n var adjMaxDatetime = this.adjustValue(this.maxDatetime);\n return new Date(adjMaxDatetime.getFullYear(), adjMaxDatetime.getMonth(), adjMaxDatetime.getDate(), 0, 0, 0, 0);\n },\n minTime: function minTime() {\n if (!this.minDatetime || this.newValue === null || typeof this.newValue === 'undefined') {\n return this.timepicker ? this.adjustValue(this.timepicker.minTime) : null;\n }\n\n var adjMinDatetime = this.adjustValue(this.minDatetime);\n\n if (adjMinDatetime.getFullYear() === this.newValue.getFullYear() && adjMinDatetime.getMonth() === this.newValue.getMonth() && adjMinDatetime.getDate() === this.newValue.getDate()) {\n return adjMinDatetime;\n }\n },\n maxTime: function maxTime() {\n if (!this.maxDatetime || this.newValue === null || typeof this.newValue === 'undefined') {\n return this.timepicker ? this.adjustValue(this.timepicker.maxTime) : null;\n }\n\n var adjMaxDatetime = this.adjustValue(this.maxDatetime);\n\n if (adjMaxDatetime.getFullYear() === this.newValue.getFullYear() && adjMaxDatetime.getMonth() === this.newValue.getMonth() && adjMaxDatetime.getDate() === this.newValue.getDate()) {\n return adjMaxDatetime;\n }\n },\n datepickerSize: function datepickerSize() {\n return this.datepicker && this.datepicker.size ? this.datepicker.size : this.size;\n },\n timepickerSize: function timepickerSize() {\n return this.timepicker && this.timepicker.size ? this.timepicker.size : this.size;\n },\n timepickerDisabled: function timepickerDisabled() {\n return this.timepicker && this.timepicker.disabled ? this.timepicker.disabled : this.disabled;\n }\n },\n watch: {\n value: function value(val) {\n this.newValue = this.adjustValue(this.value);\n },\n tzOffset: function tzOffset(val) {\n this.newValue = this.adjustValue(this.value);\n }\n },\n methods: {\n adjustValue: function adjustValue(value) {\n var reverse = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n if (!value) return value;\n\n if (reverse) {\n return new Date(value.getTime() - this.tzOffset * 60000);\n } else {\n return new Date(value.getTime() + this.tzOffset * 60000);\n }\n },\n defaultDatetimeParser: function defaultDatetimeParser(date) {\n if (typeof this.datetimeParser === 'function') {\n return this.datetimeParser(date);\n } else if (typeof config.defaultDatetimeParser === 'function') {\n return config.defaultDatetimeParser(date);\n } else {\n return new Date(Date.parse(date));\n }\n },\n defaultDatetimeFormatter: function defaultDatetimeFormatter(date) {\n if (typeof this.datetimeFormatter === 'function') {\n return this.datetimeFormatter(date);\n } else if (typeof config.defaultDatetimeFormatter === 'function') {\n return config.defaultDatetimeFormatter(date);\n } else {\n if (this.$refs.timepicker) {\n var d = new Date(date.getFullYear(), date.getMonth(), date.getDate(), 12);\n return d.toLocaleDateString() + ' ' + this.$refs.timepicker.timeFormatter(date, this.$refs.timepicker);\n }\n\n return null;\n }\n },\n\n /*\r\n * Parse date from string\r\n */\n onChangeNativePicker: function onChangeNativePicker(event) {\n var date = event.target.value;\n var s = date ? date.split(/\\D/) : [];\n\n if (s.length >= 5) {\n var year = parseInt(s[0], 10);\n var month = parseInt(s[1], 10) - 1;\n var day = parseInt(s[2], 10);\n var hours = parseInt(s[3], 10);\n var minutes = parseInt(s[4], 10); // Seconds are omitted intentionally; they are unsupported by input\n // type=datetime-local and cause the control to fail native validation\n\n this.computedValue = new Date(year, month, day, hours, minutes);\n } else {\n this.computedValue = null;\n }\n },\n formatNative: function formatNative(value) {\n var date = new Date(value);\n\n if (value && !isNaN(date)) {\n var year = date.getFullYear();\n var month = date.getMonth() + 1;\n var day = date.getDate();\n var hours = date.getHours();\n var minutes = date.getMinutes();\n var seconds = date.getSeconds();\n return year + '-' + ((month < 10 ? '0' : '') + month) + '-' + ((day < 10 ? '0' : '') + day) + 'T' + ((hours < 10 ? '0' : '') + hours) + ':' + ((minutes < 10 ? '0' : '') + minutes) + ':' + ((seconds < 10 ? '0' : '') + seconds);\n }\n\n return '';\n },\n toggle: function toggle() {\n this.$refs.datepicker.toggle();\n }\n },\n mounted: function mounted() {\n if (!this.isMobile || this.inline) {\n // $refs attached, it's time to refresh datepicker (input)\n if (this.newValue) {\n this.$refs.datepicker.$forceUpdate();\n }\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (!_vm.isMobile || _vm.inline)?_c('b-datepicker',_vm._b({ref:\"datepicker\",attrs:{\"open-on-focus\":_vm.openOnFocus,\"position\":_vm.position,\"loading\":_vm.loading,\"inline\":_vm.inline,\"editable\":_vm.editable,\"expanded\":_vm.expanded,\"close-on-click\":false,\"date-formatter\":_vm.defaultDatetimeFormatter,\"date-parser\":_vm.defaultDatetimeParser,\"min-date\":_vm.minDate,\"max-date\":_vm.maxDate,\"icon\":_vm.icon,\"icon-pack\":_vm.iconPack,\"size\":_vm.datepickerSize,\"placeholder\":_vm.placeholder,\"horizontal-time-picker\":_vm.horizontalTimePicker,\"range\":false,\"disabled\":_vm.disabled,\"mobile-native\":_vm.isMobileNative,\"focusable\":_vm.focusable,\"append-to-body\":_vm.appendToBody},on:{\"focus\":_vm.onFocus,\"blur\":_vm.onBlur,\"change-month\":function($event){_vm.$emit('change-month', $event);},\"change-year\":function($event){_vm.$emit('change-year', $event);}},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=$$v;},expression:\"computedValue\"}},'b-datepicker',_vm.datepicker,false),[_c('nav',{staticClass:\"level is-mobile\"},[(_vm.$slots.left !== undefined)?_c('div',{staticClass:\"level-item has-text-centered\"},[_vm._t(\"left\")],2):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"level-item has-text-centered\"},[_c('b-timepicker',_vm._b({ref:\"timepicker\",attrs:{\"inline\":\"\",\"editable\":_vm.editable,\"min-time\":_vm.minTime,\"max-time\":_vm.maxTime,\"size\":_vm.timepickerSize,\"disabled\":_vm.timepickerDisabled,\"focusable\":_vm.focusable,\"mobile-native\":_vm.isMobileNative},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=$$v;},expression:\"computedValue\"}},'b-timepicker',_vm.timepicker,false))],1),_vm._v(\" \"),(_vm.$slots.right !== undefined)?_c('div',{staticClass:\"level-item has-text-centered\"},[_vm._t(\"right\")],2):_vm._e()])]):_c('b-input',_vm._b({ref:\"input\",attrs:{\"type\":\"datetime-local\",\"autocomplete\":\"off\",\"value\":_vm.formatNative(_vm.computedValue),\"placeholder\":_vm.placeholder,\"size\":_vm.size,\"icon\":_vm.icon,\"icon-pack\":_vm.iconPack,\"rounded\":_vm.rounded,\"loading\":_vm.loading,\"max\":_vm.formatNative(_vm.maxDate),\"min\":_vm.formatNative(_vm.minDate),\"disabled\":_vm.disabled,\"readonly\":false,\"use-html5-validation\":_vm.useHtml5Validation},on:{\"focus\":_vm.onFocus,\"blur\":_vm.onBlur},nativeOn:{\"change\":function($event){return _vm.onChangeNativePicker($event)}}},'b-input',_vm.$attrs,false))};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Datetimepicker = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Datetimepicker);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Datetimepicker as BDatetimepicker };\n","import { removeElement } from './helpers.js';\nimport { c as config } from './chunk-6985c8ce.js';\nimport { _ as __vue_normalize__ } from './chunk-cca88db8.js';\nimport { t as trapFocus } from './chunk-42f463e6.js';\n\n//\nvar script = {\n name: 'BModal',\n directives: {\n trapFocus: trapFocus\n },\n props: {\n active: Boolean,\n component: [Object, Function],\n content: String,\n programmatic: Boolean,\n props: Object,\n events: Object,\n width: {\n type: [String, Number],\n default: 960\n },\n hasModalCard: Boolean,\n animation: {\n type: String,\n default: 'zoom-out'\n },\n canCancel: {\n type: [Array, Boolean],\n default: function _default() {\n return config.defaultModalCanCancel;\n }\n },\n onCancel: {\n type: Function,\n default: function _default() {}\n },\n scroll: {\n type: String,\n default: function _default() {\n return config.defaultModalScroll ? config.defaultModalScroll : 'clip';\n },\n validator: function validator(value) {\n return ['clip', 'keep'].indexOf(value) >= 0;\n }\n },\n fullScreen: Boolean,\n trapFocus: {\n type: Boolean,\n default: function _default() {\n return config.defaultTrapFocus;\n }\n },\n customClass: String,\n ariaRole: {\n type: String,\n validator: function validator(value) {\n return ['dialog', 'alertdialog'].indexOf(value) >= 0;\n }\n },\n ariaModal: Boolean,\n destroyOnHide: {\n type: Boolean,\n default: true\n }\n },\n data: function data() {\n return {\n isActive: this.active || false,\n savedScrollTop: null,\n newWidth: typeof this.width === 'number' ? this.width + 'px' : this.width,\n animating: true,\n destroyed: !this.active\n };\n },\n computed: {\n cancelOptions: function cancelOptions() {\n return typeof this.canCancel === 'boolean' ? this.canCancel ? config.defaultModalCanCancel : [] : this.canCancel;\n },\n showX: function showX() {\n return this.cancelOptions.indexOf('x') >= 0;\n },\n customStyle: function customStyle() {\n if (!this.fullScreen) {\n return {\n maxWidth: this.newWidth\n };\n }\n\n return null;\n }\n },\n watch: {\n active: function active(value) {\n this.isActive = value;\n },\n isActive: function isActive(value) {\n var _this = this;\n\n if (value) this.destroyed = false;\n this.handleScroll();\n this.$nextTick(function () {\n if (value && _this.$el && _this.$el.focus) {\n _this.$el.focus();\n }\n });\n }\n },\n methods: {\n handleScroll: function handleScroll() {\n if (typeof window === 'undefined') return;\n\n if (this.scroll === 'clip') {\n if (this.isActive) {\n document.documentElement.classList.add('is-clipped');\n } else {\n document.documentElement.classList.remove('is-clipped');\n }\n\n return;\n }\n\n this.savedScrollTop = !this.savedScrollTop ? document.documentElement.scrollTop : this.savedScrollTop;\n\n if (this.isActive) {\n document.body.classList.add('is-noscroll');\n } else {\n document.body.classList.remove('is-noscroll');\n }\n\n if (this.isActive) {\n document.body.style.top = \"-\".concat(this.savedScrollTop, \"px\");\n return;\n }\n\n document.documentElement.scrollTop = this.savedScrollTop;\n document.body.style.top = null;\n this.savedScrollTop = null;\n },\n\n /**\r\n * Close the Modal if canCancel and call the onCancel prop (function).\r\n */\n cancel: function cancel(method) {\n if (this.cancelOptions.indexOf(method) < 0) return;\n this.onCancel.apply(null, arguments);\n this.close();\n },\n\n /**\r\n * Call the onCancel prop (function).\r\n * Emit events, and destroy modal if it's programmatic.\r\n */\n close: function close() {\n var _this2 = this;\n\n this.$emit('close');\n this.$emit('update:active', false); // Timeout for the animation complete before destroying\n\n if (this.programmatic) {\n this.isActive = false;\n setTimeout(function () {\n _this2.$destroy();\n\n removeElement(_this2.$el);\n }, 150);\n }\n },\n\n /**\r\n * Keypress event that is bound to the document.\r\n */\n keyPress: function keyPress(event) {\n // Esc key\n if (this.isActive && event.keyCode === 27) this.cancel('escape');\n },\n\n /**\r\n * Transition after-enter hook\r\n */\n afterEnter: function afterEnter() {\n this.animating = false;\n },\n\n /**\r\n * Transition before-leave hook\r\n */\n beforeLeave: function beforeLeave() {\n this.animating = true;\n },\n\n /**\r\n * Transition after-leave hook\r\n */\n afterLeave: function afterLeave() {\n if (this.destroyOnHide) {\n this.destroyed = true;\n }\n }\n },\n created: function created() {\n if (typeof window !== 'undefined') {\n document.addEventListener('keyup', this.keyPress);\n }\n },\n beforeMount: function beforeMount() {\n // Insert the Modal component in body tag\n // only if it's programmatic\n this.programmatic && document.body.appendChild(this.$el);\n },\n mounted: function mounted() {\n if (this.programmatic) this.isActive = true;else if (this.isActive) this.handleScroll();\n },\n beforeDestroy: function beforeDestroy() {\n if (typeof window !== 'undefined') {\n document.removeEventListener('keyup', this.keyPress); // reset scroll\n\n document.documentElement.classList.remove('is-clipped');\n var savedScrollTop = !this.savedScrollTop ? document.documentElement.scrollTop : this.savedScrollTop;\n document.body.classList.remove('is-noscroll');\n document.documentElement.scrollTop = savedScrollTop;\n document.body.style.top = null;\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{\"name\":_vm.animation},on:{\"after-enter\":_vm.afterEnter,\"before-leave\":_vm.beforeLeave,\"after-leave\":_vm.afterLeave}},[(!_vm.destroyed)?_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isActive),expression:\"isActive\"},{name:\"trap-focus\",rawName:\"v-trap-focus\",value:(_vm.trapFocus),expression:\"trapFocus\"}],staticClass:\"modal is-active\",class:[{'is-full-screen': _vm.fullScreen}, _vm.customClass],attrs:{\"tabindex\":\"-1\",\"role\":_vm.ariaRole,\"aria-modal\":_vm.ariaModal}},[_c('div',{staticClass:\"modal-background\",on:{\"click\":function($event){_vm.cancel('outside');}}}),_vm._v(\" \"),_c('div',{staticClass:\"animation-content\",class:{ 'modal-content': !_vm.hasModalCard },style:(_vm.customStyle)},[(_vm.component)?_c(_vm.component,_vm._g(_vm._b({tag:\"component\",on:{\"close\":_vm.close}},'component',_vm.props,false),_vm.events)):(_vm.content)?_c('div',{domProps:{\"innerHTML\":_vm._s(_vm.content)}}):_vm._t(\"default\"),_vm._v(\" \"),(_vm.showX)?_c('button',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.animating),expression:\"!animating\"}],staticClass:\"modal-close is-large\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){_vm.cancel('x');}}}):_vm._e()],2)]):_vm._e()])};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Modal = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nexport { Modal as M };\n","import { _ as _defineProperty } from './chunk-1fafdf15.js';\nimport { removeElement, merge } from './helpers.js';\nimport { c as config, V as VueInstance } from './chunk-6985c8ce.js';\nimport { I as Icon } from './chunk-cdfca85b.js';\nimport { _ as __vue_normalize__, r as registerComponent, a as registerComponentProgrammatic, u as use } from './chunk-cca88db8.js';\nimport { t as trapFocus } from './chunk-42f463e6.js';\nimport { M as Modal } from './chunk-0cb0546b.js';\n\nvar script = {\n name: 'BDialog',\n components: _defineProperty({}, Icon.name, Icon),\n directives: {\n trapFocus: trapFocus\n },\n extends: Modal,\n props: {\n title: String,\n message: String,\n icon: String,\n iconPack: String,\n hasIcon: Boolean,\n type: {\n type: String,\n default: 'is-primary'\n },\n size: String,\n confirmText: {\n type: String,\n default: function _default() {\n return config.defaultDialogConfirmText ? config.defaultDialogConfirmText : 'OK';\n }\n },\n cancelText: {\n type: String,\n default: function _default() {\n return config.defaultDialogCancelText ? config.defaultDialogCancelText : 'Cancel';\n }\n },\n hasInput: Boolean,\n // Used internally to know if it's prompt\n inputAttrs: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n onConfirm: {\n type: Function,\n default: function _default() {}\n },\n closeOnConfirm: {\n type: Boolean,\n default: true\n },\n container: {\n type: String,\n default: function _default() {\n return config.defaultContainerElement;\n }\n },\n focusOn: {\n type: String,\n default: 'confirm'\n },\n trapFocus: {\n type: Boolean,\n default: function _default() {\n return config.defaultTrapFocus;\n }\n },\n ariaRole: {\n type: String,\n validator: function validator(value) {\n return ['dialog', 'alertdialog'].indexOf(value) >= 0;\n }\n },\n ariaModal: Boolean\n },\n data: function data() {\n var prompt = this.hasInput ? this.inputAttrs.value || '' : '';\n return {\n prompt: prompt,\n isActive: false,\n validationMessage: ''\n };\n },\n computed: {\n dialogClass: function dialogClass() {\n return [this.size, {\n 'has-custom-container': this.container !== null\n }];\n },\n\n /**\r\n * Icon name (MDI) based on the type.\r\n */\n iconByType: function iconByType() {\n switch (this.type) {\n case 'is-info':\n return 'information';\n\n case 'is-success':\n return 'check-circle';\n\n case 'is-warning':\n return 'alert';\n\n case 'is-danger':\n return 'alert-circle';\n\n default:\n return null;\n }\n },\n showCancel: function showCancel() {\n return this.cancelOptions.indexOf('button') >= 0;\n }\n },\n methods: {\n /**\r\n * If it's a prompt Dialog, validate the input.\r\n * Call the onConfirm prop (function) and close the Dialog.\r\n */\n confirm: function confirm() {\n var _this = this;\n\n if (this.$refs.input !== undefined) {\n if (!this.$refs.input.checkValidity()) {\n this.validationMessage = this.$refs.input.validationMessage;\n this.$nextTick(function () {\n return _this.$refs.input.select();\n });\n return;\n }\n }\n\n this.onConfirm(this.prompt, this);\n if (this.closeOnConfirm) this.close();\n },\n\n /**\r\n * Close the Dialog.\r\n */\n close: function close() {\n var _this2 = this;\n\n this.isActive = false; // Timeout for the animation complete before destroying\n\n setTimeout(function () {\n _this2.$destroy();\n\n removeElement(_this2.$el);\n }, 150);\n }\n },\n beforeMount: function beforeMount() {\n var _this3 = this;\n\n // Insert the Dialog component in the element container\n if (typeof window !== 'undefined') {\n this.$nextTick(function () {\n var container = document.querySelector(_this3.container) || document.body;\n container.appendChild(_this3.$el);\n });\n }\n },\n mounted: function mounted() {\n var _this4 = this;\n\n this.isActive = true;\n\n if (typeof this.inputAttrs.required === 'undefined') {\n this.$set(this.inputAttrs, 'required', true);\n }\n\n this.$nextTick(function () {\n // Handle which element receives focus\n if (_this4.hasInput) {\n _this4.$refs.input.focus();\n } else if (_this4.focusOn === 'cancel' && _this4.showCancel) {\n _this4.$refs.cancelButton.focus();\n } else {\n _this4.$refs.confirmButton.focus();\n }\n });\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{\"name\":_vm.animation}},[(_vm.isActive)?_c('div',{directives:[{name:\"trap-focus\",rawName:\"v-trap-focus\",value:(_vm.trapFocus),expression:\"trapFocus\"}],staticClass:\"dialog modal is-active\",class:_vm.dialogClass,attrs:{\"role\":_vm.ariaRole,\"aria-modal\":_vm.ariaModal}},[_c('div',{staticClass:\"modal-background\",on:{\"click\":function($event){_vm.cancel('outside');}}}),_vm._v(\" \"),_c('div',{staticClass:\"modal-card animation-content\"},[(_vm.title)?_c('header',{staticClass:\"modal-card-head\"},[_c('p',{staticClass:\"modal-card-title\"},[_vm._v(_vm._s(_vm.title))])]):_vm._e(),_vm._v(\" \"),_c('section',{staticClass:\"modal-card-body\",class:{ 'is-titleless': !_vm.title, 'is-flex': _vm.hasIcon }},[_c('div',{staticClass:\"media\"},[(_vm.hasIcon && (_vm.icon || _vm.iconByType))?_c('div',{staticClass:\"media-left\"},[_c('b-icon',{attrs:{\"icon\":_vm.icon ? _vm.icon : _vm.iconByType,\"pack\":_vm.iconPack,\"type\":_vm.type,\"both\":!_vm.icon,\"size\":\"is-large\"}})],1):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"media-content\"},[_c('p',{domProps:{\"innerHTML\":_vm._s(_vm.message)}}),_vm._v(\" \"),(_vm.hasInput)?_c('div',{staticClass:\"field\"},[_c('div',{staticClass:\"control\"},[(((_vm.inputAttrs).type)==='checkbox')?_c('input',_vm._b({directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.prompt),expression:\"prompt\"}],ref:\"input\",staticClass:\"input\",class:{ 'is-danger': _vm.validationMessage },attrs:{\"type\":\"checkbox\"},domProps:{\"checked\":Array.isArray(_vm.prompt)?_vm._i(_vm.prompt,null)>-1:(_vm.prompt)},on:{\"keyup\":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.confirm($event)},\"change\":function($event){var $$a=_vm.prompt,$$el=$event.target,$$c=$$el.checked?(true):(false);if(Array.isArray($$a)){var $$v=null,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.prompt=$$a.concat([$$v]));}else{$$i>-1&&(_vm.prompt=$$a.slice(0,$$i).concat($$a.slice($$i+1)));}}else{_vm.prompt=$$c;}}}},'input',_vm.inputAttrs,false)):(((_vm.inputAttrs).type)==='radio')?_c('input',_vm._b({directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.prompt),expression:\"prompt\"}],ref:\"input\",staticClass:\"input\",class:{ 'is-danger': _vm.validationMessage },attrs:{\"type\":\"radio\"},domProps:{\"checked\":_vm._q(_vm.prompt,null)},on:{\"keyup\":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.confirm($event)},\"change\":function($event){_vm.prompt=null;}}},'input',_vm.inputAttrs,false)):_c('input',_vm._b({directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.prompt),expression:\"prompt\"}],ref:\"input\",staticClass:\"input\",class:{ 'is-danger': _vm.validationMessage },attrs:{\"type\":(_vm.inputAttrs).type},domProps:{\"value\":(_vm.prompt)},on:{\"keyup\":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.confirm($event)},\"input\":function($event){if($event.target.composing){ return; }_vm.prompt=$event.target.value;}}},'input',_vm.inputAttrs,false))]),_vm._v(\" \"),_c('p',{staticClass:\"help is-danger\"},[_vm._v(_vm._s(_vm.validationMessage))])]):_vm._e()])])]),_vm._v(\" \"),_c('footer',{staticClass:\"modal-card-foot\"},[(_vm.showCancel)?_c('button',{ref:\"cancelButton\",staticClass:\"button\",on:{\"click\":function($event){_vm.cancel('button');}}},[_vm._v(_vm._s(_vm.cancelText))]):_vm._e(),_vm._v(\" \"),_c('button',{ref:\"confirmButton\",staticClass:\"button\",class:_vm.type,on:{\"click\":_vm.confirm}},[_vm._v(_vm._s(_vm.confirmText))])])])]):_vm._e()])};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Dialog = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar localVueInstance;\n\nfunction open(propsData) {\n var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : localVueInstance || VueInstance;\n var DialogComponent = vm.extend(Dialog);\n return new DialogComponent({\n el: document.createElement('div'),\n propsData: propsData\n });\n}\n\nvar DialogProgrammatic = {\n alert: function alert(params) {\n if (typeof params === 'string') {\n params = {\n message: params\n };\n }\n\n var defaultParam = {\n canCancel: false\n };\n var propsData = merge(defaultParam, params);\n return open(propsData);\n },\n confirm: function confirm(params) {\n var defaultParam = {};\n var propsData = merge(defaultParam, params);\n return open(propsData);\n },\n prompt: function prompt(params) {\n var defaultParam = {\n hasInput: true,\n confirmText: 'Done'\n };\n var propsData = merge(defaultParam, params);\n return open(propsData);\n }\n};\nvar Plugin = {\n install: function install(Vue) {\n localVueInstance = Vue;\n registerComponent(Vue, Dialog);\n registerComponentProgrammatic(Vue, 'dialog', DialogProgrammatic);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Dialog as BDialog, DialogProgrammatic };\n","import './chunk-1fafdf15.js';\nimport './helpers.js';\nimport './chunk-6985c8ce.js';\nimport { r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport './chunk-42f463e6.js';\nimport { D as Dropdown, a as DropdownItem } from './chunk-4d76806f.js';\nexport { D as BDropdown, a as BDropdownItem } from './chunk-4d76806f.js';\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Dropdown);\n registerComponent(Vue, DropdownItem);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\n","import './chunk-1fafdf15.js';\nimport './chunk-6985c8ce.js';\nimport { r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport { F as Field } from './chunk-eb60b35a.js';\nexport { F as BField } from './chunk-eb60b35a.js';\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Field);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\n","import './chunk-1fafdf15.js';\nimport './helpers.js';\nimport './chunk-6985c8ce.js';\nimport { I as Icon } from './chunk-cdfca85b.js';\nexport { I as BIcon } from './chunk-cdfca85b.js';\nimport { r as registerComponent, u as use } from './chunk-cca88db8.js';\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Icon);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\n","import './chunk-1fafdf15.js';\nimport './helpers.js';\nimport './chunk-6985c8ce.js';\nimport './chunk-d0a313ea.js';\nimport './chunk-cdfca85b.js';\nimport { r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport { I as Input } from './chunk-d1591eb8.js';\nexport { I as BInput } from './chunk-d1591eb8.js';\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Input);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\n","// Polyfills for SSR\nvar isSSR = typeof window === 'undefined';\nvar HTMLElement = isSSR ? Object : window.HTMLElement;\nvar File = isSSR ? Object : window.File;\n\nexport { File as F, HTMLElement as H };\n","import './chunk-1fafdf15.js';\nimport { removeElement, merge } from './helpers.js';\nimport { V as VueInstance } from './chunk-6985c8ce.js';\nimport { _ as __vue_normalize__, r as registerComponent, a as registerComponentProgrammatic, u as use } from './chunk-cca88db8.js';\nimport { H as HTMLElement } from './chunk-b9bdb0e4.js';\n\n//\nvar script = {\n name: 'BLoading',\n props: {\n active: Boolean,\n programmatic: Boolean,\n container: [Object, Function, HTMLElement],\n isFullPage: {\n type: Boolean,\n default: true\n },\n animation: {\n type: String,\n default: 'fade'\n },\n canCancel: {\n type: Boolean,\n default: false\n },\n onCancel: {\n type: Function,\n default: function _default() {}\n }\n },\n data: function data() {\n return {\n isActive: this.active || false,\n displayInFullPage: this.isFullPage\n };\n },\n watch: {\n active: function active(value) {\n this.isActive = value;\n },\n isFullPage: function isFullPage(value) {\n this.displayInFullPage = value;\n }\n },\n methods: {\n /**\r\n * Close the Modal if canCancel.\r\n */\n cancel: function cancel() {\n if (!this.canCancel || !this.isActive) return;\n this.close();\n },\n\n /**\r\n * Emit events, and destroy modal if it's programmatic.\r\n */\n close: function close() {\n var _this = this;\n\n this.onCancel.apply(null, arguments);\n this.$emit('close');\n this.$emit('update:active', false); // Timeout for the animation complete before destroying\n\n if (this.programmatic) {\n this.isActive = false;\n setTimeout(function () {\n _this.$destroy();\n\n removeElement(_this.$el);\n }, 150);\n }\n },\n\n /**\r\n * Keypress event that is bound to the document.\r\n */\n keyPress: function keyPress(event) {\n // Esc key\n if (event.keyCode === 27) this.cancel();\n }\n },\n created: function created() {\n if (typeof window !== 'undefined') {\n document.addEventListener('keyup', this.keyPress);\n }\n },\n beforeMount: function beforeMount() {\n // Insert the Loading component in body tag\n // only if it's programmatic\n if (this.programmatic) {\n if (!this.container) {\n document.body.appendChild(this.$el);\n } else {\n this.displayInFullPage = false;\n this.$emit('update:is-full-page', false);\n this.container.appendChild(this.$el);\n }\n }\n },\n mounted: function mounted() {\n if (this.programmatic) this.isActive = true;\n },\n beforeDestroy: function beforeDestroy() {\n if (typeof window !== 'undefined') {\n document.removeEventListener('keyup', this.keyPress);\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{\"name\":_vm.animation}},[(_vm.isActive)?_c('div',{staticClass:\"loading-overlay is-active\",class:{ 'is-full-page': _vm.displayInFullPage }},[_c('div',{staticClass:\"loading-background\",on:{\"click\":_vm.cancel}}),_vm._v(\" \"),_vm._t(\"default\",[_c('div',{staticClass:\"loading-icon\"})])],2):_vm._e()])};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Loading = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar localVueInstance;\nvar LoadingProgrammatic = {\n open: function open(params) {\n var defaultParam = {\n programmatic: true\n };\n var propsData = merge(defaultParam, params);\n var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : localVueInstance || VueInstance;\n var LoadingComponent = vm.extend(Loading);\n return new LoadingComponent({\n el: document.createElement('div'),\n propsData: propsData\n });\n }\n};\nvar Plugin = {\n install: function install(Vue) {\n localVueInstance = Vue;\n registerComponent(Vue, Loading);\n registerComponentProgrammatic(Vue, 'loading', LoadingProgrammatic);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Loading as BLoading, LoadingProgrammatic };\n","import { _ as _defineProperty } from './chunk-1fafdf15.js';\nimport './helpers.js';\nimport { c as config } from './chunk-6985c8ce.js';\nimport { I as Icon } from './chunk-cdfca85b.js';\nimport { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\n\n//\n//\n//\n//\n//\n//\nvar script = {\n name: 'BMenu',\n props: {\n accordion: {\n type: Boolean,\n default: true\n },\n activable: {\n type: Boolean,\n default: true\n }\n },\n data: function data() {\n return {\n _isMenu: true // Used by MenuItem\n\n };\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"menu\"},[_vm._t(\"default\")],2)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Menu = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar script$1 = {\n name: 'BMenuList',\n functional: true,\n props: {\n label: String,\n icon: String,\n iconPack: String,\n ariaRole: {\n type: String,\n default: ''\n }\n },\n render: function render(createElement, context) {\n var vlabel = null;\n var slots = context.slots();\n\n if (context.props.label || slots.label) {\n vlabel = createElement('p', {\n attrs: {\n 'class': 'menu-label'\n }\n }, context.props.label ? context.props.icon ? [createElement('b-icon', {\n props: {\n 'icon': context.props.icon,\n 'pack': context.props.iconPack,\n 'size': 'is-small'\n }\n }), createElement('span', {}, context.props.label)] : context.props.label : slots.label);\n }\n\n var vnode = createElement('ul', {\n attrs: {\n 'class': 'menu-list',\n 'role': context.props.ariaRole === 'menu' ? context.props.ariaRole : null\n }\n }, slots.default);\n return vlabel ? [vlabel, vnode] : vnode;\n }\n};\n\n/* script */\nconst __vue_script__$1 = script$1;\n\n/* template */\n\n /* style */\n const __vue_inject_styles__$1 = undefined;\n /* scoped */\n const __vue_scope_id__$1 = undefined;\n /* module identifier */\n const __vue_module_identifier__$1 = undefined;\n /* functional template */\n const __vue_is_functional_template__$1 = undefined;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var MenuList = __vue_normalize__(\n {},\n __vue_inject_styles__$1,\n __vue_script__$1,\n __vue_scope_id__$1,\n __vue_is_functional_template__$1,\n __vue_module_identifier__$1,\n undefined,\n undefined\n );\n\nvar script$2 = {\n name: 'BMenuItem',\n components: _defineProperty({}, Icon.name, Icon),\n inheritAttrs: false,\n props: {\n label: String,\n active: Boolean,\n expanded: Boolean,\n disabled: Boolean,\n iconPack: String,\n icon: String,\n animation: {\n type: String,\n default: 'slide'\n },\n tag: {\n type: String,\n default: 'a',\n validator: function validator(value) {\n return config.defaultLinkTags.indexOf(value) >= 0;\n }\n },\n ariaRole: {\n type: String,\n default: ''\n }\n },\n data: function data() {\n return {\n newActive: this.active,\n newExpanded: this.expanded\n };\n },\n computed: {\n ariaRoleMenu: function ariaRoleMenu() {\n return this.ariaRole === 'menuitem' ? this.ariaRole : null;\n }\n },\n watch: {\n active: function active(value) {\n this.newActive = value;\n },\n expanded: function expanded(value) {\n this.newExpanded = value;\n }\n },\n methods: {\n onClick: function onClick(event) {\n if (this.disabled) return;\n var menu = this.getMenu();\n this.reset(this.$parent, menu);\n this.newExpanded = !this.newExpanded;\n this.$emit('update:expanded', this.newActive);\n\n if (menu && menu.activable) {\n this.newActive = true;\n this.$emit('update:active', this.newActive);\n }\n },\n reset: function reset(parent, menu) {\n var _this = this;\n\n var items = parent.$children.filter(function (c) {\n return c.name === _this.name;\n });\n items.forEach(function (item) {\n if (item !== _this) {\n _this.reset(item, menu);\n\n if (!parent.$data._isMenu || parent.$data._isMenu && parent.accordion) {\n item.newExpanded = false;\n item.$emit('update:expanded', item.newActive);\n }\n\n if (menu && menu.activable) {\n item.newActive = false;\n item.$emit('update:active', item.newActive);\n }\n }\n });\n },\n getMenu: function getMenu() {\n var parent = this.$parent;\n\n while (parent && !parent.$data._isMenu) {\n parent = parent.$parent;\n }\n\n return parent;\n }\n }\n};\n\n/* script */\nconst __vue_script__$2 = script$2;\n\n/* template */\nvar __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{attrs:{\"role\":_vm.ariaRoleMenu}},[_c(_vm.tag,_vm._g(_vm._b({tag:\"component\",class:{\r\n 'is-active': _vm.newActive,\r\n 'is-disabled': _vm.disabled\r\n },on:{\"click\":function($event){_vm.onClick($event);}}},'component',_vm.$attrs,false),_vm.$listeners),[(_vm.icon)?_c('b-icon',{attrs:{\"icon\":_vm.icon,\"pack\":_vm.iconPack,\"size\":\"is-small\"}}):_vm._e(),_vm._v(\" \"),(_vm.label)?_c('span',[_vm._v(_vm._s(_vm.label))]):_vm._t(\"label\",null,{expanded:_vm.newExpanded,active:_vm.newActive})],2),_vm._v(\" \"),(_vm.$slots.default)?[_c('transition',{attrs:{\"name\":_vm.animation}},[_c('ul',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.newExpanded),expression:\"newExpanded\"}]},[_vm._t(\"default\")],2)])]:_vm._e()],2)};\nvar __vue_staticRenderFns__$1 = [];\n\n /* style */\n const __vue_inject_styles__$2 = undefined;\n /* scoped */\n const __vue_scope_id__$2 = undefined;\n /* module identifier */\n const __vue_module_identifier__$2 = undefined;\n /* functional template */\n const __vue_is_functional_template__$2 = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var MenuItem = __vue_normalize__(\n { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },\n __vue_inject_styles__$2,\n __vue_script__$2,\n __vue_scope_id__$2,\n __vue_is_functional_template__$2,\n __vue_module_identifier__$2,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Menu);\n registerComponent(Vue, MenuList);\n registerComponent(Vue, MenuItem);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Menu as BMenu, MenuItem as BMenuItem, MenuList as BMenuList };\n","import { _ as _defineProperty } from './chunk-1fafdf15.js';\nimport { I as Icon } from './chunk-cdfca85b.js';\n\nvar MessageMixin = {\n components: _defineProperty({}, Icon.name, Icon),\n props: {\n active: {\n type: Boolean,\n default: true\n },\n title: String,\n closable: {\n type: Boolean,\n default: true\n },\n message: String,\n type: String,\n hasIcon: Boolean,\n size: String,\n icon: String,\n iconPack: String,\n iconSize: String,\n autoClose: {\n type: Boolean,\n default: false\n },\n duration: {\n type: Number,\n default: 2000\n }\n },\n data: function data() {\n return {\n isActive: this.active\n };\n },\n watch: {\n active: function active(value) {\n this.isActive = value;\n },\n isActive: function isActive(value) {\n if (value) {\n this.setAutoClose();\n } else {\n if (this.timer) {\n clearTimeout(this.timer);\n }\n }\n }\n },\n computed: {\n /**\r\n * Icon name (MDI) based on type.\r\n */\n computedIcon: function computedIcon() {\n if (this.icon) {\n return this.icon;\n }\n\n switch (this.type) {\n case 'is-info':\n return 'information';\n\n case 'is-success':\n return 'check-circle';\n\n case 'is-warning':\n return 'alert';\n\n case 'is-danger':\n return 'alert-circle';\n\n default:\n return null;\n }\n }\n },\n methods: {\n /**\r\n * Close the Message and emit events.\r\n */\n close: function close() {\n this.isActive = false;\n this.$emit('close');\n this.$emit('update:active', false);\n },\n\n /**\r\n * Set timer to auto close message\r\n */\n setAutoClose: function setAutoClose() {\n var _this = this;\n\n if (this.autoClose) {\n this.timer = setTimeout(function () {\n if (_this.isActive) {\n _this.close();\n }\n }, this.duration);\n }\n }\n },\n mounted: function mounted() {\n this.setAutoClose();\n }\n};\n\nexport { MessageMixin as M };\n","import './chunk-1fafdf15.js';\nimport './helpers.js';\nimport './chunk-6985c8ce.js';\nimport './chunk-cdfca85b.js';\nimport { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport { M as MessageMixin } from './chunk-0e26d208.js';\n\n//\nvar script = {\n name: 'BMessage',\n mixins: [MessageMixin],\n props: {\n ariaCloseLabel: String\n },\n data: function data() {\n return {\n newIconSize: this.iconSize || this.size || 'is-large'\n };\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{\"name\":\"fade\"}},[(_vm.isActive)?_c('article',{staticClass:\"message\",class:[_vm.type, _vm.size]},[(_vm.title)?_c('header',{staticClass:\"message-header\"},[_c('p',[_vm._v(_vm._s(_vm.title))]),_vm._v(\" \"),(_vm.closable)?_c('button',{staticClass:\"delete\",attrs:{\"type\":\"button\",\"aria-label\":_vm.ariaCloseLabel},on:{\"click\":_vm.close}}):_vm._e()]):_vm._e(),_vm._v(\" \"),_c('section',{staticClass:\"message-body\"},[_c('div',{staticClass:\"media\"},[(_vm.computedIcon && _vm.hasIcon)?_c('div',{staticClass:\"media-left\"},[_c('b-icon',{class:_vm.type,attrs:{\"icon\":_vm.computedIcon,\"pack\":_vm.iconPack,\"both\":\"\",\"size\":_vm.newIconSize}})],1):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"media-content\"},[_vm._t(\"default\")],2)])])]):_vm._e()])};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Message = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Message);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Message as BMessage };\n","import './chunk-1fafdf15.js';\nimport { merge } from './helpers.js';\nimport { V as VueInstance } from './chunk-6985c8ce.js';\nimport { r as registerComponent, a as registerComponentProgrammatic, u as use } from './chunk-cca88db8.js';\nimport './chunk-42f463e6.js';\nimport { M as Modal } from './chunk-0cb0546b.js';\nexport { M as BModal } from './chunk-0cb0546b.js';\n\nvar localVueInstance;\nvar ModalProgrammatic = {\n open: function open(params) {\n var parent;\n\n if (typeof params === 'string') {\n params = {\n content: params\n };\n }\n\n var defaultParam = {\n programmatic: true\n };\n\n if (params.parent) {\n parent = params.parent;\n delete params.parent;\n }\n\n var propsData = merge(defaultParam, params);\n var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : localVueInstance || VueInstance;\n var ModalComponent = vm.extend(Modal);\n return new ModalComponent({\n parent: parent,\n el: document.createElement('div'),\n propsData: propsData\n });\n }\n};\nvar Plugin = {\n install: function install(Vue) {\n localVueInstance = Vue;\n registerComponent(Vue, Modal);\n registerComponentProgrammatic(Vue, 'modal', ModalProgrammatic);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { ModalProgrammatic };\n","import { removeElement } from './helpers.js';\nimport { c as config } from './chunk-6985c8ce.js';\n\nvar NoticeMixin = {\n props: {\n type: {\n type: String,\n default: 'is-dark'\n },\n message: String,\n duration: Number,\n queue: {\n type: Boolean,\n default: undefined\n },\n position: {\n type: String,\n default: 'is-top',\n validator: function validator(value) {\n return ['is-top-right', 'is-top', 'is-top-left', 'is-bottom-right', 'is-bottom', 'is-bottom-left'].indexOf(value) > -1;\n }\n },\n container: String\n },\n data: function data() {\n return {\n isActive: false,\n parentTop: null,\n parentBottom: null,\n newContainer: this.container || config.defaultContainerElement\n };\n },\n computed: {\n correctParent: function correctParent() {\n switch (this.position) {\n case 'is-top-right':\n case 'is-top':\n case 'is-top-left':\n return this.parentTop;\n\n case 'is-bottom-right':\n case 'is-bottom':\n case 'is-bottom-left':\n return this.parentBottom;\n }\n },\n transition: function transition() {\n switch (this.position) {\n case 'is-top-right':\n case 'is-top':\n case 'is-top-left':\n return {\n enter: 'fadeInDown',\n leave: 'fadeOut'\n };\n\n case 'is-bottom-right':\n case 'is-bottom':\n case 'is-bottom-left':\n return {\n enter: 'fadeInUp',\n leave: 'fadeOut'\n };\n }\n }\n },\n methods: {\n shouldQueue: function shouldQueue() {\n var queue = this.queue !== undefined ? this.queue : config.defaultNoticeQueue;\n if (!queue) return false;\n return this.parentTop.childElementCount > 0 || this.parentBottom.childElementCount > 0;\n },\n close: function close() {\n var _this = this;\n\n clearTimeout(this.timer);\n this.isActive = false;\n this.$emit('close'); // Timeout for the animation complete before destroying\n\n setTimeout(function () {\n _this.$destroy();\n\n removeElement(_this.$el);\n }, 150);\n },\n showNotice: function showNotice() {\n var _this2 = this;\n\n if (this.shouldQueue()) {\n // Call recursively if should queue\n setTimeout(function () {\n return _this2.showNotice();\n }, 250);\n return;\n }\n\n this.correctParent.insertAdjacentElement('afterbegin', this.$el);\n this.isActive = true;\n\n if (!this.indefinite) {\n this.timer = setTimeout(function () {\n return _this2.close();\n }, this.newDuration);\n }\n },\n setupContainer: function setupContainer() {\n this.parentTop = document.querySelector((this.newContainer ? this.newContainer : 'body') + '>.notices.is-top');\n this.parentBottom = document.querySelector((this.newContainer ? this.newContainer : 'body') + '>.notices.is-bottom');\n if (this.parentTop && this.parentBottom) return;\n\n if (!this.parentTop) {\n this.parentTop = document.createElement('div');\n this.parentTop.className = 'notices is-top';\n }\n\n if (!this.parentBottom) {\n this.parentBottom = document.createElement('div');\n this.parentBottom.className = 'notices is-bottom';\n }\n\n var container = document.querySelector(this.newContainer) || document.body;\n container.appendChild(this.parentTop);\n container.appendChild(this.parentBottom);\n\n if (this.newContainer) {\n this.parentTop.classList.add('has-custom-container');\n this.parentBottom.classList.add('has-custom-container');\n }\n }\n },\n beforeMount: function beforeMount() {\n this.setupContainer();\n },\n mounted: function mounted() {\n this.showNotice();\n }\n};\n\nexport { NoticeMixin as N };\n","import './chunk-1fafdf15.js';\nimport { merge } from './helpers.js';\nimport { c as config, V as VueInstance } from './chunk-6985c8ce.js';\nimport './chunk-cdfca85b.js';\nimport { _ as __vue_normalize__, r as registerComponent, a as registerComponentProgrammatic, u as use } from './chunk-cca88db8.js';\nimport { M as MessageMixin } from './chunk-0e26d208.js';\nimport { N as NoticeMixin } from './chunk-53640c15.js';\n\n//\nvar script = {\n name: 'BNotification',\n mixins: [MessageMixin],\n props: {\n position: String,\n ariaCloseLabel: String,\n animation: {\n type: String,\n default: 'fade'\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{\"name\":_vm.animation}},[_c('article',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isActive),expression:\"isActive\"}],staticClass:\"notification\",class:[_vm.type, _vm.position]},[(_vm.closable)?_c('button',{staticClass:\"delete\",attrs:{\"type\":\"button\",\"aria-label\":_vm.ariaCloseLabel},on:{\"click\":_vm.close}}):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"media\"},[(_vm.computedIcon && _vm.hasIcon)?_c('div',{staticClass:\"media-left\"},[_c('b-icon',{attrs:{\"icon\":_vm.computedIcon,\"pack\":_vm.iconPack,\"both\":\"\",\"size\":\"is-large\",\"aria-hidden\":\"\"}})],1):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"media-content\"},[(_vm.message)?_c('p',{staticClass:\"text\",domProps:{\"innerHTML\":_vm._s(_vm.message)}}):_vm._t(\"default\")],2)])])])};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Notification = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\n//\nvar script$1 = {\n name: 'BNotificationNotice',\n mixins: [NoticeMixin],\n props: {\n indefinite: {\n type: Boolean,\n default: false\n }\n },\n data: function data() {\n return {\n newDuration: this.duration || config.defaultNotificationDuration\n };\n }\n};\n\n/* script */\nconst __vue_script__$1 = script$1;\n\n/* template */\nvar __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('b-notification',_vm._b({on:{\"close\":_vm.close}},'b-notification',_vm.$options.propsData,false))};\nvar __vue_staticRenderFns__$1 = [];\n\n /* style */\n const __vue_inject_styles__$1 = undefined;\n /* scoped */\n const __vue_scope_id__$1 = undefined;\n /* module identifier */\n const __vue_module_identifier__$1 = undefined;\n /* functional template */\n const __vue_is_functional_template__$1 = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var NotificationNotice = __vue_normalize__(\n { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },\n __vue_inject_styles__$1,\n __vue_script__$1,\n __vue_scope_id__$1,\n __vue_is_functional_template__$1,\n __vue_module_identifier__$1,\n undefined,\n undefined\n );\n\nvar localVueInstance;\nvar NotificationProgrammatic = {\n open: function open(params) {\n var parent;\n\n if (typeof params === 'string') {\n params = {\n message: params\n };\n }\n\n var defaultParam = {\n position: config.defaultNotificationPosition || 'is-top-right'\n };\n\n if (params.parent) {\n parent = params.parent;\n delete params.parent;\n }\n\n var propsData = merge(defaultParam, params);\n var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : localVueInstance || VueInstance;\n var NotificationNoticeComponent = vm.extend(NotificationNotice);\n return new NotificationNoticeComponent({\n parent: parent,\n el: document.createElement('div'),\n propsData: propsData\n });\n }\n};\nvar Plugin = {\n install: function install(Vue) {\n localVueInstance = Vue;\n registerComponent(Vue, Notification);\n registerComponentProgrammatic(Vue, 'notification', NotificationProgrammatic);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Notification as BNotification, NotificationProgrammatic };\n","import { b as _typeof, _ as _defineProperty } from './chunk-1fafdf15.js';\nimport { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar script = {\n name: 'NavbarBurger',\n props: {\n isOpened: {\n type: Boolean,\n default: false\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a',_vm._g({staticClass:\"navbar-burger burger\",class:{ 'is-active': _vm.isOpened },attrs:{\"role\":\"button\",\"aria-label\":\"menu\",\"aria-expanded\":_vm.isOpened}},_vm.$listeners),[_c('span',{attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\" \"),_c('span',{attrs:{\"aria-hidden\":\"true\"}}),_vm._v(\" \"),_c('span',{attrs:{\"aria-hidden\":\"true\"}})])};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var NavbarBurger = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar isTouch = typeof window !== 'undefined' && ('ontouchstart' in window || navigator.msMaxTouchPoints > 0);\nvar events = isTouch ? ['touchstart', 'click'] : ['click'];\nvar instances = [];\n\nfunction processArgs(bindingValue) {\n var isFunction = typeof bindingValue === 'function';\n\n if (!isFunction && _typeof(bindingValue) !== 'object') {\n throw new Error(\"v-click-outside: Binding value should be a function or an object, typeof \".concat(bindingValue, \" given\"));\n }\n\n return {\n handler: isFunction ? bindingValue : bindingValue.handler,\n middleware: bindingValue.middleware || function (isClickOutside) {\n return isClickOutside;\n },\n events: bindingValue.events || events\n };\n}\n\nfunction onEvent(_ref) {\n var el = _ref.el,\n event = _ref.event,\n handler = _ref.handler,\n middleware = _ref.middleware;\n var isClickOutside = event.target !== el && !el.contains(event.target);\n\n if (!isClickOutside) {\n return;\n }\n\n if (middleware(event, el)) {\n handler(event, el);\n }\n}\n\nfunction bind(el, _ref2) {\n var value = _ref2.value;\n\n var _processArgs = processArgs(value),\n _handler = _processArgs.handler,\n middleware = _processArgs.middleware,\n events = _processArgs.events;\n\n var instance = {\n el: el,\n eventHandlers: events.map(function (eventName) {\n return {\n event: eventName,\n handler: function handler(event) {\n return onEvent({\n event: event,\n el: el,\n handler: _handler,\n middleware: middleware\n });\n }\n };\n })\n };\n instance.eventHandlers.forEach(function (_ref3) {\n var event = _ref3.event,\n handler = _ref3.handler;\n return document.addEventListener(event, handler);\n });\n instances.push(instance);\n}\n\nfunction update(el, _ref4) {\n var value = _ref4.value;\n\n var _processArgs2 = processArgs(value),\n _handler2 = _processArgs2.handler,\n middleware = _processArgs2.middleware,\n events = _processArgs2.events; // `filter` instead of `find` for compat with IE\n\n\n var instance = instances.filter(function (instance) {\n return instance.el === el;\n })[0];\n instance.eventHandlers.forEach(function (_ref5) {\n var event = _ref5.event,\n handler = _ref5.handler;\n return document.removeEventListener(event, handler);\n });\n instance.eventHandlers = events.map(function (eventName) {\n return {\n event: eventName,\n handler: function handler(event) {\n return onEvent({\n event: event,\n el: el,\n handler: _handler2,\n middleware: middleware\n });\n }\n };\n });\n instance.eventHandlers.forEach(function (_ref6) {\n var event = _ref6.event,\n handler = _ref6.handler;\n return document.addEventListener(event, handler);\n });\n}\n\nfunction unbind(el) {\n // `filter` instead of `find` for compat with IE\n var instance = instances.filter(function (instance) {\n return instance.el === el;\n })[0];\n instance.eventHandlers.forEach(function (_ref7) {\n var event = _ref7.event,\n handler = _ref7.handler;\n return document.removeEventListener(event, handler);\n });\n}\n\nvar directive = {\n bind: bind,\n update: update,\n unbind: unbind,\n instances: instances\n};\n\nvar FIXED_TOP_CLASS = 'is-fixed-top';\nvar BODY_FIXED_TOP_CLASS = 'has-navbar-fixed-top';\nvar BODY_SPACED_FIXED_TOP_CLASS = 'has-spaced-navbar-fixed-top';\nvar FIXED_BOTTOM_CLASS = 'is-fixed-bottom';\nvar BODY_FIXED_BOTTOM_CLASS = 'has-navbar-fixed-bottom';\nvar BODY_SPACED_FIXED_BOTTOM_CLASS = 'has-spaced-navbar-fixed-bottom';\n\nvar isFilled = function isFilled(str) {\n return !!str;\n};\n\nvar script$1 = {\n name: 'BNavbar',\n components: {\n NavbarBurger: NavbarBurger\n },\n directives: {\n clickOutside: directive\n },\n props: {\n type: [String, Object],\n transparent: {\n type: Boolean,\n default: false\n },\n fixedTop: {\n type: Boolean,\n default: false\n },\n fixedBottom: {\n type: Boolean,\n default: false\n },\n isActive: {\n type: Boolean,\n default: false\n },\n wrapperClass: {\n type: String\n },\n closeOnClick: {\n type: Boolean,\n default: true\n },\n mobileBurger: {\n type: Boolean,\n default: true\n },\n spaced: Boolean,\n shadow: Boolean\n },\n data: function data() {\n return {\n internalIsActive: this.isActive,\n _isNavBar: true // Used internally by NavbarItem\n\n };\n },\n computed: {\n isOpened: function isOpened() {\n return this.internalIsActive;\n },\n computedClasses: function computedClasses() {\n var _ref;\n\n return [this.type, (_ref = {}, _defineProperty(_ref, FIXED_TOP_CLASS, this.fixedTop), _defineProperty(_ref, FIXED_BOTTOM_CLASS, this.fixedBottom), _defineProperty(_ref, 'is-spaced', this.spaced), _defineProperty(_ref, 'has-shadow', this.shadow), _defineProperty(_ref, 'is-transparent', this.transparent), _ref)];\n }\n },\n watch: {\n isActive: {\n handler: function handler(isActive) {\n this.internalIsActive = isActive;\n },\n immediate: true\n },\n fixedTop: {\n handler: function handler(isSet) {\n this.checkIfFixedPropertiesAreColliding();\n\n if (isSet) {\n // TODO Apply only one of the classes once PR is merged in Bulma:\n // https://github.com/jgthms/bulma/pull/2737\n this.setBodyClass(BODY_FIXED_TOP_CLASS);\n this.spaced && this.setBodyClass(BODY_SPACED_FIXED_TOP_CLASS);\n } else {\n this.removeBodyClass(BODY_FIXED_TOP_CLASS);\n this.removeBodyClass(BODY_SPACED_FIXED_TOP_CLASS);\n }\n },\n immediate: true\n },\n fixedBottom: {\n handler: function handler(isSet) {\n this.checkIfFixedPropertiesAreColliding();\n\n if (isSet) {\n // TODO Apply only one of the classes once PR is merged in Bulma:\n // https://github.com/jgthms/bulma/pull/2737\n this.setBodyClass(BODY_FIXED_BOTTOM_CLASS);\n this.spaced && this.setBodyClass(BODY_SPACED_FIXED_BOTTOM_CLASS);\n } else {\n this.removeBodyClass(BODY_FIXED_BOTTOM_CLASS);\n this.removeBodyClass(BODY_SPACED_FIXED_BOTTOM_CLASS);\n }\n },\n immediate: true\n }\n },\n methods: {\n toggleActive: function toggleActive() {\n this.internalIsActive = !this.internalIsActive;\n this.emitUpdateParentEvent();\n },\n closeMenu: function closeMenu() {\n if (this.closeOnClick) {\n this.internalIsActive = false;\n this.emitUpdateParentEvent();\n }\n },\n emitUpdateParentEvent: function emitUpdateParentEvent() {\n this.$emit('update:isActive', this.internalIsActive);\n },\n setBodyClass: function setBodyClass(className) {\n if (typeof window !== 'undefined') {\n document.body.classList.add(className);\n }\n },\n removeBodyClass: function removeBodyClass(className) {\n if (typeof window !== 'undefined') {\n document.body.classList.remove(className);\n }\n },\n checkIfFixedPropertiesAreColliding: function checkIfFixedPropertiesAreColliding() {\n var areColliding = this.fixedTop && this.fixedBottom;\n\n if (areColliding) {\n throw new Error('You should choose if the BNavbar is fixed bottom or fixed top, but not both');\n }\n },\n genNavbar: function genNavbar(createElement) {\n var navBarSlots = [this.genNavbarBrandNode(createElement), this.genNavbarSlotsNode(createElement)];\n\n if (!isFilled(this.wrapperClass)) {\n return this.genNavbarSlots(createElement, navBarSlots);\n } // It wraps the slots into a div with the provided wrapperClass prop\n\n\n var navWrapper = createElement('div', {\n class: this.wrapperClass\n }, navBarSlots);\n return this.genNavbarSlots(createElement, [navWrapper]);\n },\n genNavbarSlots: function genNavbarSlots(createElement, slots) {\n return createElement('nav', {\n staticClass: 'navbar',\n class: this.computedClasses,\n attrs: {\n role: 'navigation',\n 'aria-label': 'main navigation'\n },\n directives: [{\n name: 'click-outside',\n value: this.closeMenu\n }]\n }, slots);\n },\n genNavbarBrandNode: function genNavbarBrandNode(createElement) {\n return createElement('div', {\n class: 'navbar-brand'\n }, [this.$slots.brand, this.genBurgerNode(createElement)]);\n },\n genBurgerNode: function genBurgerNode(createElement) {\n if (this.mobileBurger) {\n var defaultBurgerNode = createElement('navbar-burger', {\n props: {\n isOpened: this.isOpened\n },\n on: {\n click: this.toggleActive\n }\n });\n var hasBurgerSlot = !!this.$scopedSlots.burger;\n return hasBurgerSlot ? this.$scopedSlots.burger({\n isOpened: this.isOpened,\n toggleActive: this.toggleActive\n }) : defaultBurgerNode;\n }\n },\n genNavbarSlotsNode: function genNavbarSlotsNode(createElement) {\n return createElement('div', {\n staticClass: 'navbar-menu',\n class: {\n 'is-active': this.isOpened\n }\n }, [this.genMenuPosition(createElement, 'start'), this.genMenuPosition(createElement, 'end')]);\n },\n genMenuPosition: function genMenuPosition(createElement, positionName) {\n return createElement('div', {\n staticClass: \"navbar-\".concat(positionName)\n }, this.$slots[positionName]);\n }\n },\n beforeDestroy: function beforeDestroy() {\n if (this.fixedTop) {\n var className = this.spaced ? BODY_SPACED_FIXED_TOP_CLASS : BODY_FIXED_TOP_CLASS;\n this.removeBodyClass(className);\n } else if (this.fixedBottom) {\n var _className = this.spaced ? BODY_SPACED_FIXED_BOTTOM_CLASS : BODY_FIXED_BOTTOM_CLASS;\n\n this.removeBodyClass(_className);\n }\n },\n render: function render(createElement, fn) {\n return this.genNavbar(createElement);\n }\n};\n\n/* script */\nconst __vue_script__$1 = script$1;\n\n/* template */\n\n /* style */\n const __vue_inject_styles__$1 = undefined;\n /* scoped */\n const __vue_scope_id__$1 = undefined;\n /* module identifier */\n const __vue_module_identifier__$1 = undefined;\n /* functional template */\n const __vue_is_functional_template__$1 = undefined;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Navbar = __vue_normalize__(\n {},\n __vue_inject_styles__$1,\n __vue_script__$1,\n __vue_scope_id__$1,\n __vue_is_functional_template__$1,\n __vue_module_identifier__$1,\n undefined,\n undefined\n );\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar clickableWhiteList = ['div', 'span'];\nvar script$2 = {\n name: 'BNavbarItem',\n inheritAttrs: false,\n props: {\n tag: {\n type: String,\n default: 'a'\n },\n active: Boolean\n },\n methods: {\n /**\r\n * Keypress event that is bound to the document\r\n */\n keyPress: function keyPress(event) {\n // Esc key\n // TODO: use code instead (because keyCode is actually deprecated)\n // https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/keyCode\n if (event.keyCode === 27) {\n this.closeMenuRecursive(this, ['NavBar']);\n }\n },\n\n /**\r\n * Close parent if clicked outside.\r\n */\n handleClickEvent: function handleClickEvent(event) {\n var isOnWhiteList = clickableWhiteList.some(function (item) {\n return item === event.target.localName;\n });\n\n if (!isOnWhiteList) {\n var parent = this.closeMenuRecursive(this, ['NavbarDropdown', 'NavBar']);\n if (parent.$data._isNavbarDropdown) this.closeMenuRecursive(parent, ['NavBar']);\n }\n },\n\n /**\r\n * Close parent recursively\r\n */\n closeMenuRecursive: function closeMenuRecursive(current, targetComponents) {\n if (!current.$parent) return null;\n var foundItem = targetComponents.reduce(function (acc, item) {\n if (current.$parent.$data[\"_is\".concat(item)]) {\n current.$parent.closeMenu();\n return current.$parent;\n }\n\n return acc;\n }, null);\n return foundItem || this.closeMenuRecursive(current.$parent, targetComponents);\n }\n },\n mounted: function mounted() {\n if (typeof window !== 'undefined') {\n this.$el.addEventListener('click', this.handleClickEvent);\n document.addEventListener('keyup', this.keyPress);\n }\n },\n beforeDestroy: function beforeDestroy() {\n if (typeof window !== 'undefined') {\n this.$el.removeEventListener('click', this.handleClickEvent);\n document.removeEventListener('keyup', this.keyPress);\n }\n }\n};\n\n/* script */\nconst __vue_script__$2 = script$2;\n\n/* template */\nvar __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.tag,_vm._g(_vm._b({tag:\"component\",staticClass:\"navbar-item\",class:{\r\n 'is-active': _vm.active\r\n }},'component',_vm.$attrs,false),_vm.$listeners),[_vm._t(\"default\")],2)};\nvar __vue_staticRenderFns__$1 = [];\n\n /* style */\n const __vue_inject_styles__$2 = undefined;\n /* scoped */\n const __vue_scope_id__$2 = undefined;\n /* module identifier */\n const __vue_module_identifier__$2 = undefined;\n /* functional template */\n const __vue_is_functional_template__$2 = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var NavbarItem = __vue_normalize__(\n { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },\n __vue_inject_styles__$2,\n __vue_script__$2,\n __vue_scope_id__$2,\n __vue_is_functional_template__$2,\n __vue_module_identifier__$2,\n undefined,\n undefined\n );\n\n//\nvar script$3 = {\n name: 'BNavbarDropdown',\n directives: {\n clickOutside: directive\n },\n props: {\n label: String,\n hoverable: Boolean,\n active: Boolean,\n right: Boolean,\n arrowless: Boolean,\n boxed: Boolean,\n closeOnClick: {\n type: Boolean,\n default: true\n },\n collapsible: Boolean\n },\n data: function data() {\n return {\n newActive: this.active,\n isHoverable: this.hoverable,\n _isNavbarDropdown: true // Used internally by NavbarItem\n\n };\n },\n watch: {\n active: function active(value) {\n this.newActive = value;\n }\n },\n methods: {\n showMenu: function showMenu() {\n this.newActive = true;\n },\n\n /**\r\n * See naming convetion of navbaritem\r\n */\n closeMenu: function closeMenu() {\n this.newActive = !this.closeOnClick;\n\n if (this.hoverable && this.closeOnClick) {\n this.isHoverable = false;\n }\n },\n checkHoverable: function checkHoverable() {\n if (this.hoverable) {\n this.isHoverable = true;\n }\n }\n }\n};\n\n/* script */\nconst __vue_script__$3 = script$3;\n\n/* template */\nvar __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:\"click-outside\",rawName:\"v-click-outside\",value:(_vm.closeMenu),expression:\"closeMenu\"}],staticClass:\"navbar-item has-dropdown\",class:{\r\n 'is-hoverable': _vm.isHoverable,\r\n 'is-active': _vm.newActive\r\n },on:{\"mouseenter\":_vm.checkHoverable}},[_c('a',{staticClass:\"navbar-link\",class:{\r\n 'is-arrowless': _vm.arrowless,\r\n 'is-active': _vm.newActive && _vm.collapsible\r\n },attrs:{\"role\":\"menuitem\",\"aria-haspopup\":\"true\",\"href\":\"#\"},on:{\"click\":function($event){$event.preventDefault();_vm.newActive = !_vm.newActive;}}},[(_vm.label)?[_vm._v(_vm._s(_vm.label))]:_vm._t(\"label\")],2),_vm._v(\" \"),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.collapsible || (_vm.collapsible && _vm.newActive)),expression:\"!collapsible || (collapsible && newActive)\"}],staticClass:\"navbar-dropdown\",class:{\r\n 'is-right': _vm.right,\r\n 'is-boxed': _vm.boxed,\r\n }},[_vm._t(\"default\")],2)])};\nvar __vue_staticRenderFns__$2 = [];\n\n /* style */\n const __vue_inject_styles__$3 = undefined;\n /* scoped */\n const __vue_scope_id__$3 = undefined;\n /* module identifier */\n const __vue_module_identifier__$3 = undefined;\n /* functional template */\n const __vue_is_functional_template__$3 = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var NavbarDropdown = __vue_normalize__(\n { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 },\n __vue_inject_styles__$3,\n __vue_script__$3,\n __vue_scope_id__$3,\n __vue_is_functional_template__$3,\n __vue_module_identifier__$3,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Navbar);\n registerComponent(Vue, NavbarItem);\n registerComponent(Vue, NavbarDropdown);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Navbar as BNavbar, NavbarDropdown as BNavbarDropdown, NavbarItem as BNavbarItem };\n","import { _ as _defineProperty } from './chunk-1fafdf15.js';\nimport './helpers.js';\nimport './chunk-6985c8ce.js';\nimport { F as FormElementMixin } from './chunk-d0a313ea.js';\nimport { I as Icon } from './chunk-cdfca85b.js';\nimport { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport { I as Input } from './chunk-d1591eb8.js';\n\nvar _components;\nvar script = {\n name: 'BNumberinput',\n components: (_components = {}, _defineProperty(_components, Icon.name, Icon), _defineProperty(_components, Input.name, Input), _components),\n mixins: [FormElementMixin],\n inheritAttrs: false,\n props: {\n value: Number,\n min: [Number, String],\n max: [Number, String],\n step: [Number, String],\n disabled: Boolean,\n type: {\n type: String,\n default: 'is-primary'\n },\n editable: {\n type: Boolean,\n default: true\n },\n controls: {\n type: Boolean,\n default: true\n },\n controlsRounded: {\n type: Boolean,\n default: false\n },\n controlsPosition: String\n },\n data: function data() {\n return {\n newValue: !isNaN(this.value) ? this.value : parseFloat(this.min) || 0,\n newStep: this.step || 1,\n _elementRef: 'input'\n };\n },\n computed: {\n computedValue: {\n get: function get() {\n return this.newValue;\n },\n set: function set(value) {\n var newValue = value;\n\n if (value === '') {\n newValue = parseFloat(this.min) || null;\n }\n\n this.newValue = newValue;\n this.$emit('input', newValue);\n !this.isValid && this.$refs.input.checkHtml5Validity();\n }\n },\n fieldClasses: function fieldClasses() {\n return [{\n 'has-addons': this.controlsPosition === 'compact'\n }, {\n 'is-grouped': this.controlsPosition !== 'compact'\n }, {\n 'is-expanded': this.expanded\n }];\n },\n buttonClasses: function buttonClasses() {\n return [this.type, this.size, {\n 'is-rounded': this.controlsRounded\n }];\n },\n minNumber: function minNumber() {\n return typeof this.min === 'string' ? parseFloat(this.min) : this.min;\n },\n maxNumber: function maxNumber() {\n return typeof this.max === 'string' ? parseFloat(this.max) : this.max;\n },\n stepNumber: function stepNumber() {\n return typeof this.newStep === 'string' ? parseFloat(this.newStep) : this.newStep;\n },\n disabledMin: function disabledMin() {\n return this.computedValue - this.stepNumber < this.minNumber;\n },\n disabledMax: function disabledMax() {\n return this.computedValue + this.stepNumber > this.maxNumber;\n },\n stepDecimals: function stepDecimals() {\n var step = this.stepNumber.toString();\n var index = step.indexOf('.');\n\n if (index >= 0) {\n return step.substring(index + 1).length;\n }\n\n return 0;\n }\n },\n watch: {\n /**\r\n * When v-model is changed:\r\n * 1. Set internal value.\r\n */\n value: function value(_value) {\n this.newValue = _value;\n }\n },\n methods: {\n decrement: function decrement() {\n if (typeof this.minNumber === 'undefined' || this.computedValue - this.stepNumber >= this.minNumber) {\n var value = this.computedValue - this.stepNumber;\n this.computedValue = parseFloat(value.toFixed(this.stepDecimals));\n }\n },\n increment: function increment() {\n if (typeof this.maxNumber === 'undefined' || this.computedValue + this.stepNumber <= this.maxNumber) {\n var value = this.computedValue + this.stepNumber;\n this.computedValue = parseFloat(value.toFixed(this.stepDecimals));\n }\n },\n onControlClick: function onControlClick(event, inc) {\n // IE 11 -> filter click event\n if (event.detail !== 0 || event.type === 'click') return;\n if (inc) this.increment();else this.decrement();\n },\n onStartLongPress: function onStartLongPress(event, inc) {\n var _this = this;\n\n if (event.button !== 0 && event.type !== 'touchstart') return;\n this._$intervalTime = new Date();\n clearInterval(this._$intervalRef);\n this._$intervalRef = setInterval(function () {\n if (inc) _this.increment();else _this.decrement();\n }, 250);\n },\n onStopLongPress: function onStopLongPress(inc) {\n if (!this._$intervalRef) return;\n var d = new Date();\n\n if (d - this._$intervalTime < 250) {\n if (inc) this.increment();else this.decrement();\n }\n\n clearInterval(this._$intervalRef);\n this._$intervalRef = null;\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"b-numberinput field\",class:_vm.fieldClasses},[(_vm.controls)?_c('p',{staticClass:\"control\",on:{\"mouseup\":function($event){_vm.onStopLongPress(false);},\"mouseleave\":function($event){_vm.onStopLongPress(false);},\"touchend\":function($event){_vm.onStopLongPress(false);},\"touchcancel\":function($event){_vm.onStopLongPress(false);}}},[_c('button',{staticClass:\"button\",class:_vm.buttonClasses,attrs:{\"type\":\"button\",\"disabled\":_vm.disabled || _vm.disabledMin},on:{\"mousedown\":function($event){_vm.onStartLongPress($event, false);},\"touchstart\":function($event){$event.preventDefault();_vm.onStartLongPress($event, false);},\"click\":function($event){_vm.onControlClick($event, false);}}},[_c('b-icon',{attrs:{\"icon\":\"minus\",\"both\":\"\",\"pack\":_vm.iconPack,\"size\":_vm.iconSize}})],1)]):_vm._e(),_vm._v(\" \"),_c('b-input',_vm._b({ref:\"input\",attrs:{\"type\":\"number\",\"step\":_vm.newStep,\"max\":_vm.max,\"min\":_vm.min,\"size\":_vm.size,\"disabled\":_vm.disabled,\"readonly\":!_vm.editable,\"loading\":_vm.loading,\"rounded\":_vm.rounded,\"icon\":_vm.icon,\"icon-pack\":_vm.iconPack,\"autocomplete\":_vm.autocomplete,\"expanded\":_vm.expanded,\"use-html5-validation\":_vm.useHtml5Validation},on:{\"focus\":function($event){_vm.$emit('focus', $event);},\"blur\":function($event){_vm.$emit('blur', $event);}},model:{value:(_vm.computedValue),callback:function ($$v) {_vm.computedValue=_vm._n($$v);},expression:\"computedValue\"}},'b-input',_vm.$attrs,false)),_vm._v(\" \"),(_vm.controls)?_c('p',{staticClass:\"control\",on:{\"mouseup\":function($event){_vm.onStopLongPress(true);},\"mouseleave\":function($event){_vm.onStopLongPress(true);},\"touchend\":function($event){_vm.onStopLongPress(true);},\"touchcancel\":function($event){_vm.onStopLongPress(true);}}},[_c('button',{staticClass:\"button\",class:_vm.buttonClasses,attrs:{\"type\":\"button\",\"disabled\":_vm.disabled || _vm.disabledMax},on:{\"mousedown\":function($event){_vm.onStartLongPress($event, true);},\"touchstart\":function($event){$event.preventDefault();_vm.onStartLongPress($event, true);},\"click\":function($event){_vm.onControlClick($event, true);}}},[_c('b-icon',{attrs:{\"icon\":\"plus\",\"both\":\"\",\"pack\":_vm.iconPack,\"size\":_vm.iconSize}})],1)]):_vm._e()],1)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Numberinput = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Numberinput);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Numberinput as BNumberinput };\n","import { _ as _defineProperty } from './chunk-1fafdf15.js';\nimport { c as config } from './chunk-6985c8ce.js';\nimport { I as Icon } from './chunk-cdfca85b.js';\nimport { _ as __vue_normalize__ } from './chunk-cca88db8.js';\n\n//\nvar script = {\n name: 'BPaginationButton',\n props: {\n page: {\n type: Object,\n required: true\n },\n tag: {\n type: String,\n default: 'a',\n validator: function validator(value) {\n return config.defaultLinkTags.indexOf(value) >= 0;\n }\n },\n disabled: {\n type: Boolean,\n default: false\n }\n },\n computed: {\n href: function href() {\n if (this.tag === 'a') {\n return '#';\n }\n },\n isDisabled: function isDisabled() {\n return this.disabled || this.page.disabled;\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {\nvar _obj;\nvar _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c(_vm.tag,_vm._b({tag:\"component\",staticClass:\"pagination-link\",class:( _obj = { 'is-current': _vm.page.isCurrent }, _obj[_vm.page.class] = true, _obj ),attrs:{\"role\":\"button\",\"href\":_vm.href,\"disabled\":_vm.isDisabled,\"aria-label\":_vm.page['aria-label'],\"aria-current\":_vm.page.isCurrent},on:{\"click\":function($event){$event.preventDefault();return _vm.page.click($event)}}},'component',_vm.$attrs,false),[_vm._t(\"default\",[_vm._v(_vm._s(_vm.page.number))])],2)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var PaginationButton = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar _components;\nvar script$1 = {\n name: 'BPagination',\n components: (_components = {}, _defineProperty(_components, Icon.name, Icon), _defineProperty(_components, PaginationButton.name, PaginationButton), _components),\n props: {\n total: [Number, String],\n perPage: {\n type: [Number, String],\n default: 20\n },\n current: {\n type: [Number, String],\n default: 1\n },\n rangeBefore: {\n type: [Number, String],\n default: 1\n },\n rangeAfter: {\n type: [Number, String],\n default: 1\n },\n size: String,\n simple: Boolean,\n rounded: Boolean,\n order: String,\n iconPack: String,\n iconPrev: {\n type: String,\n default: function _default() {\n return config.defaultIconPrev;\n }\n },\n iconNext: {\n type: String,\n default: function _default() {\n return config.defaultIconNext;\n }\n },\n ariaNextLabel: String,\n ariaPreviousLabel: String,\n ariaPageLabel: String,\n ariaCurrentLabel: String\n },\n computed: {\n rootClasses: function rootClasses() {\n return [this.order, this.size, {\n 'is-simple': this.simple,\n 'is-rounded': this.rounded\n }];\n },\n beforeCurrent: function beforeCurrent() {\n return parseInt(this.rangeBefore);\n },\n afterCurrent: function afterCurrent() {\n return parseInt(this.rangeAfter);\n },\n\n /**\r\n * Total page size (count).\r\n */\n pageCount: function pageCount() {\n return Math.ceil(this.total / this.perPage);\n },\n\n /**\r\n * First item of the page (count).\r\n */\n firstItem: function firstItem() {\n var firstItem = this.current * this.perPage - this.perPage + 1;\n return firstItem >= 0 ? firstItem : 0;\n },\n\n /**\r\n * Check if previous button is available.\r\n */\n hasPrev: function hasPrev() {\n return this.current > 1;\n },\n\n /**\r\n * Check if first page button should be visible.\r\n */\n hasFirst: function hasFirst() {\n return this.current >= 2 + this.beforeCurrent;\n },\n\n /**\r\n * Check if first ellipsis should be visible.\r\n */\n hasFirstEllipsis: function hasFirstEllipsis() {\n return this.current >= this.beforeCurrent + 4;\n },\n\n /**\r\n * Check if last page button should be visible.\r\n */\n hasLast: function hasLast() {\n return this.current <= this.pageCount - (1 + this.afterCurrent);\n },\n\n /**\r\n * Check if last ellipsis should be visible.\r\n */\n hasLastEllipsis: function hasLastEllipsis() {\n return this.current < this.pageCount - (2 + this.afterCurrent);\n },\n\n /**\r\n * Check if next button is available.\r\n */\n hasNext: function hasNext() {\n return this.current < this.pageCount;\n },\n\n /**\r\n * Get near pages, 1 before and 1 after the current.\r\n * Also add the click event to the array.\r\n */\n pagesInRange: function pagesInRange() {\n if (this.simple) return;\n var left = Math.max(1, this.current - this.beforeCurrent);\n\n if (left - 1 === 2) {\n left--; // Do not show the ellipsis if there is only one to hide\n }\n\n var right = Math.min(this.current + this.afterCurrent, this.pageCount);\n\n if (this.pageCount - right === 2) {\n right++; // Do not show the ellipsis if there is only one to hide\n }\n\n var pages = [];\n\n for (var i = left; i <= right; i++) {\n pages.push(this.getPage(i));\n }\n\n return pages;\n }\n },\n watch: {\n /**\r\n * If current page is trying to be greater than page count, set to last.\r\n */\n pageCount: function pageCount(value) {\n if (this.current > value) this.last();\n }\n },\n methods: {\n /**\r\n * Previous button click listener.\r\n */\n prev: function prev(event) {\n this.changePage(this.current - 1, event);\n },\n\n /**\r\n * Next button click listener.\r\n */\n next: function next(event) {\n this.changePage(this.current + 1, event);\n },\n\n /**\r\n * First button click listener.\r\n */\n first: function first(event) {\n this.changePage(1, event);\n },\n\n /**\r\n * Last button click listener.\r\n */\n last: function last(event) {\n this.changePage(this.pageCount, event);\n },\n changePage: function changePage(num, event) {\n if (this.current === num || num < 1 || num > this.pageCount) return;\n this.$emit('change', num);\n this.$emit('update:current', num); // Set focus on element to keep tab order\n\n if (event && event.target) {\n this.$nextTick(function () {\n return event.target.focus();\n });\n }\n },\n getPage: function getPage(num) {\n var _this = this;\n\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n return {\n number: num,\n isCurrent: this.current === num,\n click: function click(event) {\n return _this.changePage(num, event);\n },\n disabled: options.disabled || false,\n class: options.class || '',\n 'aria-label': options['aria-label'] || this.getAriaPageLabel(num, this.current === num)\n };\n },\n\n /**\r\n * Get text for aria-label according to page number.\r\n */\n getAriaPageLabel: function getAriaPageLabel(pageNumber, isCurrent) {\n if (this.ariaPageLabel && (!isCurrent || !this.ariaCurrentLabel)) {\n return this.ariaPageLabel + ' ' + pageNumber + '.';\n } else if (this.ariaPageLabel && isCurrent && this.ariaCurrentLabel) {\n return this.ariaCurrentLabel + ', ' + this.ariaPageLabel + ' ' + pageNumber + '.';\n }\n\n return null;\n }\n }\n};\n\n/* script */\nconst __vue_script__$1 = script$1;\n\n/* template */\nvar __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('nav',{staticClass:\"pagination\",class:_vm.rootClasses},[(_vm.$scopedSlots.previous)?_vm._t(\"previous\",[_c('b-icon',{attrs:{\"icon\":_vm.iconPrev,\"pack\":_vm.iconPack,\"both\":\"\",\"aria-hidden\":\"true\"}})],{page:_vm.getPage(_vm.current - 1, {\r\n disabled: !_vm.hasPrev,\r\n class: 'pagination-previous',\r\n 'aria-label': _vm.ariaPreviousLabel\r\n })}):_c('BPaginationButton',{staticClass:\"pagination-previous\",attrs:{\"disabled\":!_vm.hasPrev,\"page\":_vm.getPage(_vm.current - 1)}},[_c('b-icon',{attrs:{\"icon\":_vm.iconPrev,\"pack\":_vm.iconPack,\"both\":\"\",\"aria-hidden\":\"true\"}})],1),_vm._v(\" \"),(_vm.$scopedSlots.next)?_vm._t(\"next\",[_c('b-icon',{attrs:{\"icon\":_vm.iconNext,\"pack\":_vm.iconPack,\"both\":\"\",\"aria-hidden\":\"true\"}})],{page:_vm.getPage(_vm.current + 1, {\r\n disabled: !_vm.hasNext,\r\n class: 'pagination-next',\r\n 'aria-label': _vm.ariaNextLabel\r\n })}):_c('BPaginationButton',{staticClass:\"pagination-next\",attrs:{\"disabled\":!_vm.hasNext,\"page\":_vm.getPage(_vm.current + 1)}},[_c('b-icon',{attrs:{\"icon\":_vm.iconNext,\"pack\":_vm.iconPack,\"both\":\"\",\"aria-hidden\":\"true\"}})],1),_vm._v(\" \"),(_vm.simple)?_c('small',{staticClass:\"info\"},[(_vm.perPage == 1)?[_vm._v(\"\\r\\n \"+_vm._s(_vm.firstItem)+\" / \"+_vm._s(_vm.total)+\"\\r\\n \")]:[_vm._v(\"\\r\\n \"+_vm._s(_vm.firstItem)+\"-\"+_vm._s(Math.min(_vm.current * _vm.perPage, _vm.total))+\" / \"+_vm._s(_vm.total)+\"\\r\\n \")]],2):_c('ul',{staticClass:\"pagination-list\"},[(_vm.hasFirst)?_c('li',[(_vm.$scopedSlots.default)?_vm._t(\"default\",null,{page:_vm.getPage(1)}):_c('BPaginationButton',{attrs:{\"page\":_vm.getPage(1)}})],2):_vm._e(),_vm._v(\" \"),(_vm.hasFirstEllipsis)?_c('li',[_c('span',{staticClass:\"pagination-ellipsis\"},[_vm._v(\"…\")])]):_vm._e(),_vm._v(\" \"),_vm._l((_vm.pagesInRange),function(page){return _c('li',{key:page.number},[(_vm.$scopedSlots.default)?_vm._t(\"default\",null,{page:page}):_c('BPaginationButton',{attrs:{\"page\":page}})],2)}),_vm._v(\" \"),(_vm.hasLastEllipsis)?_c('li',[_c('span',{staticClass:\"pagination-ellipsis\"},[_vm._v(\"…\")])]):_vm._e(),_vm._v(\" \"),(_vm.hasLast)?_c('li',[(_vm.$scopedSlots.default)?_vm._t(\"default\",null,{page:_vm.getPage(_vm.pageCount)}):_c('BPaginationButton',{attrs:{\"page\":_vm.getPage(_vm.pageCount)}})],2):_vm._e()],2)],2)};\nvar __vue_staticRenderFns__$1 = [];\n\n /* style */\n const __vue_inject_styles__$1 = undefined;\n /* scoped */\n const __vue_scope_id__$1 = undefined;\n /* module identifier */\n const __vue_module_identifier__$1 = undefined;\n /* functional template */\n const __vue_is_functional_template__$1 = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Pagination = __vue_normalize__(\n { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },\n __vue_inject_styles__$1,\n __vue_script__$1,\n __vue_scope_id__$1,\n __vue_is_functional_template__$1,\n __vue_module_identifier__$1,\n undefined,\n undefined\n );\n\nexport { Pagination as P, PaginationButton as a };\n","import './chunk-1fafdf15.js';\nimport './helpers.js';\nimport './chunk-6985c8ce.js';\nimport './chunk-cdfca85b.js';\nimport { r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport { P as Pagination, a as PaginationButton } from './chunk-bd608559.js';\nexport { P as BPagination, a as BPaginationButton } from './chunk-bd608559.js';\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Pagination);\n registerComponent(Vue, PaginationButton);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\n","import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar script = {\n name: 'BProgress',\n props: {\n type: {\n type: [String, Object],\n default: 'is-darkgrey'\n },\n size: String,\n value: {\n type: Number,\n default: undefined\n },\n max: {\n type: Number,\n default: 100\n },\n showValue: {\n type: Boolean,\n default: false\n },\n format: {\n type: String,\n default: 'raw',\n validator: function validator(value) {\n return ['raw', 'percent'].indexOf(value) >= 0;\n }\n },\n precision: {\n type: Number,\n default: 2\n },\n keepTrailingZeroes: {\n type: Boolean,\n default: false\n }\n },\n computed: {\n isIndeterminate: function isIndeterminate() {\n return this.value === undefined || this.value === null;\n },\n newType: function newType() {\n return [this.size, this.type];\n },\n newValue: function newValue() {\n if (this.value === undefined || this.value === null || isNaN(this.value)) {\n return undefined;\n }\n\n if (this.format === 'percent') {\n var _val = this.toFixed(this.value * 100 / this.max);\n\n return \"\".concat(_val, \"%\");\n }\n\n var val = this.toFixed(this.value);\n return val;\n }\n },\n watch: {\n value: function value(_value) {\n this.setValue(_value);\n }\n },\n methods: {\n /**\r\n * When value is changed back to undefined, value of native progress get reset to 0.\r\n * Need to add and remove the value attribute to have the indeterminate or not.\r\n */\n setValue: function setValue(value) {\n if (this.isIndeterminate) {\n this.$refs.progress.removeAttribute('value');\n } else {\n this.$refs.progress.setAttribute('value', value);\n }\n },\n // Custom function that imitate the javascript toFixed method with improved rounding\n toFixed: function toFixed(num) {\n var fixed = (+\"\".concat(Math.round(+\"\".concat(num, \"e\").concat(this.precision)), \"e\").concat(-this.precision)).toFixed(this.precision);\n\n if (!this.keepTrailingZeroes) {\n fixed = fixed.replace(/\\.?0+$/, '');\n }\n\n return fixed;\n }\n },\n mounted: function mounted() {\n this.setValue(this.value);\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"progress-wrapper\"},[_c('progress',{ref:\"progress\",staticClass:\"progress\",class:_vm.newType,attrs:{\"max\":_vm.max}},[_vm._v(_vm._s(_vm.newValue))]),_vm._v(\" \"),(_vm.showValue)?_c('p',{staticClass:\"progress-value\"},[_vm._t(\"default\",[_vm._v(_vm._s(_vm.newValue))])],2):_vm._e()])};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Progress = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Progress);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Progress as BProgress };\n","import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport { C as CheckRadioMixin } from './chunk-2793447b.js';\n\n//\nvar script = {\n name: 'BRadio',\n mixins: [CheckRadioMixin]\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{ref:\"label\",staticClass:\"b-radio radio\",class:[_vm.size, { 'is-disabled': _vm.disabled }],attrs:{\"disabled\":_vm.disabled},on:{\"click\":_vm.focus,\"keydown\":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }$event.preventDefault();_vm.$refs.label.click();}}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.computedValue),expression:\"computedValue\"}],ref:\"input\",attrs:{\"type\":\"radio\",\"disabled\":_vm.disabled,\"required\":_vm.required,\"name\":_vm.name},domProps:{\"value\":_vm.nativeValue,\"checked\":_vm._q(_vm.computedValue,_vm.nativeValue)},on:{\"click\":function($event){$event.stopPropagation();},\"change\":function($event){_vm.computedValue=_vm.nativeValue;}}}),_vm._v(\" \"),_c('span',{staticClass:\"check\",class:_vm.type}),_vm._v(\" \"),_c('span',{staticClass:\"control-label\"},[_vm._t(\"default\")],2)])};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Radio = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\n//\nvar script$1 = {\n name: 'BRadioButton',\n mixins: [CheckRadioMixin],\n props: {\n type: {\n type: String,\n default: 'is-primary'\n },\n expanded: Boolean\n },\n data: function data() {\n return {\n isFocused: false\n };\n }\n};\n\n/* script */\nconst __vue_script__$1 = script$1;\n\n/* template */\nvar __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"control\",class:{ 'is-expanded': _vm.expanded }},[_c('label',{ref:\"label\",staticClass:\"b-radio radio button\",class:[_vm.newValue === _vm.nativeValue ? _vm.type : null, _vm.size, {\r\n 'is-disabled': _vm.disabled,\r\n 'is-focused': _vm.isFocused\r\n }],attrs:{\"disabled\":_vm.disabled},on:{\"click\":_vm.focus,\"keydown\":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }$event.preventDefault();_vm.$refs.label.click();}}},[_vm._t(\"default\"),_vm._v(\" \"),_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.computedValue),expression:\"computedValue\"}],ref:\"input\",attrs:{\"type\":\"radio\",\"disabled\":_vm.disabled,\"required\":_vm.required,\"name\":_vm.name},domProps:{\"value\":_vm.nativeValue,\"checked\":_vm._q(_vm.computedValue,_vm.nativeValue)},on:{\"click\":function($event){$event.stopPropagation();},\"focus\":function($event){_vm.isFocused = true;},\"blur\":function($event){_vm.isFocused = false;},\"change\":function($event){_vm.computedValue=_vm.nativeValue;}}})],2)])};\nvar __vue_staticRenderFns__$1 = [];\n\n /* style */\n const __vue_inject_styles__$1 = undefined;\n /* scoped */\n const __vue_scope_id__$1 = undefined;\n /* module identifier */\n const __vue_module_identifier__$1 = undefined;\n /* functional template */\n const __vue_is_functional_template__$1 = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var RadioButton = __vue_normalize__(\n { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },\n __vue_inject_styles__$1,\n __vue_script__$1,\n __vue_scope_id__$1,\n __vue_is_functional_template__$1,\n __vue_module_identifier__$1,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Radio);\n registerComponent(Vue, RadioButton);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Radio as BRadio, RadioButton as BRadioButton };\n","import { _ as _defineProperty } from './chunk-1fafdf15.js';\nimport './helpers.js';\nimport './chunk-6985c8ce.js';\nimport { I as Icon } from './chunk-cdfca85b.js';\nimport { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\n\nvar script = {\n name: 'BRate',\n components: _defineProperty({}, Icon.name, Icon),\n props: {\n value: {\n type: Number,\n default: 0\n },\n max: {\n type: Number,\n default: 5\n },\n icon: {\n type: String,\n default: 'star'\n },\n iconPack: String,\n size: String,\n spaced: Boolean,\n rtl: Boolean,\n disabled: Boolean,\n showScore: Boolean,\n showText: Boolean,\n customText: String,\n texts: Array\n },\n data: function data() {\n return {\n newValue: this.value,\n hoverValue: 0\n };\n },\n computed: {\n halfStyle: function halfStyle() {\n return \"width:\".concat(this.valueDecimal, \"%\");\n },\n showMe: function showMe() {\n var result = '';\n\n if (this.showScore) {\n result = this.disabled ? this.value : this.newValue;\n if (result === 0) result = '';\n } else if (this.showText) {\n result = this.texts[Math.ceil(this.newValue) - 1];\n }\n\n return result;\n },\n valueDecimal: function valueDecimal() {\n return this.value * 100 - Math.floor(this.value) * 100;\n }\n },\n watch: {\n // When v-model is changed set the new value.\n value: function value(_value) {\n this.newValue = _value;\n }\n },\n methods: {\n resetNewValue: function resetNewValue() {\n if (this.disabled) return;\n this.hoverValue = 0;\n },\n previewRate: function previewRate(index, event) {\n if (this.disabled) return;\n this.hoverValue = index;\n event.stopPropagation();\n },\n confirmValue: function confirmValue(index) {\n if (this.disabled) return;\n this.newValue = index;\n this.$emit('change', this.newValue);\n this.$emit('input', this.newValue);\n },\n checkHalf: function checkHalf(index) {\n var showWhenDisabled = this.disabled && this.valueDecimal > 0 && index - 1 < this.value && index > this.value;\n return showWhenDisabled;\n },\n rateClass: function rateClass(index) {\n var output = '';\n var currentValue = this.hoverValue !== 0 ? this.hoverValue : this.newValue;\n\n if (index <= currentValue) {\n output = 'set-on';\n } else if (this.disabled && Math.ceil(this.value) === index) {\n output = 'set-half';\n }\n\n return output;\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"rate\",class:{ 'is-disabled': _vm.disabled, 'is-spaced': _vm.spaced, 'is-rtl': _vm.rtl }},[_vm._l((_vm.max),function(item,index){return _c('div',{key:index,staticClass:\"rate-item\",class:_vm.rateClass(item),on:{\"mousemove\":function($event){_vm.previewRate(item, $event);},\"mouseleave\":_vm.resetNewValue,\"click\":function($event){$event.preventDefault();_vm.confirmValue(item);}}},[_c('b-icon',{attrs:{\"pack\":_vm.iconPack,\"icon\":_vm.icon,\"size\":_vm.size}}),_vm._v(\" \"),(_vm.checkHalf(item))?_c('b-icon',{staticClass:\"is-half\",style:(_vm.halfStyle),attrs:{\"pack\":_vm.iconPack,\"icon\":_vm.icon,\"size\":_vm.size}}):_vm._e()],1)}),_vm._v(\" \"),(_vm.showText || _vm.showScore || _vm.customText)?_c('div',{staticClass:\"rate-text\",class:_vm.size},[_c('span',[_vm._v(_vm._s(_vm.showMe))]),_vm._v(\" \"),(_vm.customText && !_vm.showText)?_c('span',[_vm._v(_vm._s(_vm.customText))]):_vm._e()]):_vm._e()],2)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Rate = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Rate);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Rate as BRate };\n","import './chunk-1fafdf15.js';\nimport './helpers.js';\nimport './chunk-6985c8ce.js';\nimport './chunk-d0a313ea.js';\nimport './chunk-cdfca85b.js';\nimport { r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport { S as Select } from './chunk-77ffdf8b.js';\nexport { S as BSelect } from './chunk-77ffdf8b.js';\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Select);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\n","import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\n\nvar script = {\n name: 'BSkeleton',\n functional: true,\n props: {\n active: {\n type: Boolean,\n default: true\n },\n animated: {\n type: Boolean,\n default: true\n },\n width: [Number, String],\n height: [Number, String],\n circle: Boolean,\n rounded: {\n type: Boolean,\n default: true\n },\n count: {\n type: Number,\n default: 1\n },\n size: String\n },\n render: function render(createElement, context) {\n if (!context.props.active) return;\n var items = [];\n var width = context.props.width;\n var height = context.props.height;\n\n for (var i = 0; i < context.props.count; i++) {\n items.push(createElement('div', {\n staticClass: 'b-skeleton-item',\n class: {\n 'is-rounded': context.props.rounded\n },\n key: i,\n style: {\n height: height === undefined ? null : isNaN(height) ? height : height + 'px',\n width: width === undefined ? null : isNaN(width) ? width : width + 'px',\n borderRadius: context.props.circle ? '50%' : null\n }\n }));\n }\n\n return createElement('div', {\n staticClass: 'b-skeleton',\n class: [context.props.size, {\n 'is-animated': context.props.animated\n }]\n }, items);\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = undefined;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Skeleton = __vue_normalize__(\n {},\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Skeleton);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Skeleton as BSkeleton };\n","import './chunk-1fafdf15.js';\nimport { removeElement } from './helpers.js';\nimport { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\n\n//\nvar script = {\n name: 'BSidebar',\n props: {\n open: Boolean,\n type: [String, Object],\n overlay: Boolean,\n position: {\n type: String,\n default: 'fixed',\n validator: function validator(value) {\n return ['fixed', 'absolute', 'static'].indexOf(value) >= 0;\n }\n },\n fullheight: Boolean,\n fullwidth: Boolean,\n right: Boolean,\n mobile: {\n type: String\n },\n reduce: Boolean,\n expandOnHover: Boolean,\n expandOnHoverFixed: Boolean,\n canCancel: {\n type: [Array, Boolean],\n default: function _default() {\n return ['escape', 'outside'];\n }\n },\n onCancel: {\n type: Function,\n default: function _default() {}\n }\n },\n data: function data() {\n return {\n isOpen: this.open,\n transitionName: null,\n animating: true\n };\n },\n computed: {\n rootClasses: function rootClasses() {\n return [this.type, {\n 'is-fixed': this.isFixed,\n 'is-static': this.isStatic,\n 'is-absolute': this.isAbsolute,\n 'is-fullheight': this.fullheight,\n 'is-fullwidth': this.fullwidth,\n 'is-right': this.right,\n 'is-mini': this.reduce,\n 'is-mini-expand': this.expandOnHover,\n 'is-mini-expand-fixed': this.expandOnHover && this.expandOnHoverFixed,\n 'is-mini-mobile': this.mobile === 'reduce',\n 'is-hidden-mobile': this.mobile === 'hide',\n 'is-fullwidth-mobile': this.mobile === 'fullwidth'\n }];\n },\n cancelOptions: function cancelOptions() {\n return typeof this.canCancel === 'boolean' ? this.canCancel ? ['escape', 'outside'] : [] : this.canCancel;\n },\n isStatic: function isStatic() {\n return this.position === 'static';\n },\n isFixed: function isFixed() {\n return this.position === 'fixed';\n },\n isAbsolute: function isAbsolute() {\n return this.position === 'absolute';\n },\n\n /**\r\n * White-listed items to not close when clicked.\r\n * Add sidebar content and all children.\r\n */\n whiteList: function whiteList() {\n var whiteList = [];\n whiteList.push(this.$refs.sidebarContent); // Add all chidren from dropdown\n\n if (this.$refs.sidebarContent !== undefined) {\n var children = this.$refs.sidebarContent.querySelectorAll('*');\n var _iteratorNormalCompletion = true;\n var _didIteratorError = false;\n var _iteratorError = undefined;\n\n try {\n for (var _iterator = children[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {\n var child = _step.value;\n whiteList.push(child);\n }\n } catch (err) {\n _didIteratorError = true;\n _iteratorError = err;\n } finally {\n try {\n if (!_iteratorNormalCompletion && _iterator.return != null) {\n _iterator.return();\n }\n } finally {\n if (_didIteratorError) {\n throw _iteratorError;\n }\n }\n }\n }\n\n return whiteList;\n }\n },\n watch: {\n open: {\n handler: function handler(value) {\n this.isOpen = value;\n var open = this.right ? !value : value;\n this.transitionName = !open ? 'slide-prev' : 'slide-next';\n },\n immediate: true\n }\n },\n methods: {\n /**\r\n * Keypress event that is bound to the document.\r\n */\n keyPress: function keyPress(event) {\n // Esc key\n if (this.isFixed) {\n if (this.isOpen && event.keyCode === 27) this.cancel('escape');\n }\n },\n\n /**\r\n * Close the Sidebar if canCancel and call the onCancel prop (function).\r\n */\n cancel: function cancel(method) {\n if (this.cancelOptions.indexOf(method) < 0) return;\n if (this.isStatic) return;\n this.onCancel.apply(null, arguments);\n this.close();\n },\n\n /**\r\n * Call the onCancel prop (function) and emit events\r\n */\n close: function close() {\n this.isOpen = false;\n this.$emit('close');\n this.$emit('update:open', false);\n },\n\n /**\r\n * Close fixed sidebar if clicked outside.\r\n */\n clickedOutside: function clickedOutside(event) {\n if (this.isFixed) {\n if (this.isOpen && !this.animating) {\n if (this.whiteList.indexOf(event.target) < 0) {\n this.cancel('outside');\n }\n }\n }\n },\n\n /**\r\n * Transition before-enter hook\r\n */\n beforeEnter: function beforeEnter() {\n this.animating = true;\n },\n\n /**\r\n * Transition after-leave hook\r\n */\n afterEnter: function afterEnter() {\n this.animating = false;\n }\n },\n created: function created() {\n if (typeof window !== 'undefined') {\n document.addEventListener('keyup', this.keyPress);\n document.addEventListener('click', this.clickedOutside);\n }\n },\n mounted: function mounted() {\n if (typeof window !== 'undefined') {\n if (this.isFixed) {\n document.body.appendChild(this.$el);\n }\n }\n },\n beforeDestroy: function beforeDestroy() {\n if (typeof window !== 'undefined') {\n document.removeEventListener('keyup', this.keyPress);\n document.removeEventListener('click', this.clickedOutside);\n }\n\n if (this.isFixed) {\n removeElement(this.$el);\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"b-sidebar\"},[(_vm.overlay && _vm.isOpen)?_c('div',{staticClass:\"sidebar-background\"}):_vm._e(),_vm._v(\" \"),_c('transition',{attrs:{\"name\":_vm.transitionName},on:{\"before-enter\":_vm.beforeEnter,\"after-enter\":_vm.afterEnter}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isOpen),expression:\"isOpen\"}],ref:\"sidebarContent\",staticClass:\"sidebar-content\",class:_vm.rootClasses},[_vm._t(\"default\")],2)])],1)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Sidebar = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Sidebar);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Sidebar as BSidebar };\n","import { c as config } from './chunk-6985c8ce.js';\nimport { _ as __vue_normalize__ } from './chunk-cca88db8.js';\n\n//\nvar script = {\n name: 'BTooltip',\n props: {\n active: {\n type: Boolean,\n default: true\n },\n type: String,\n label: String,\n position: {\n type: String,\n default: 'is-top',\n validator: function validator(value) {\n return ['is-top', 'is-bottom', 'is-left', 'is-right'].indexOf(value) > -1;\n }\n },\n always: Boolean,\n animated: Boolean,\n square: Boolean,\n dashed: Boolean,\n multilined: Boolean,\n size: {\n type: String,\n default: 'is-medium'\n },\n delay: Number\n },\n computed: {\n newType: function newType() {\n return this.type || config.defaultTooltipType;\n },\n newAnimated: function newAnimated() {\n return this.animated || config.defaultTooltipAnimated;\n },\n newDelay: function newDelay() {\n return this.delay || config.defaultTooltipDelay;\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('span',{class:[_vm.newType, _vm.position, _vm.size, {\r\n 'b-tooltip': _vm.active,\r\n 'is-square': _vm.square,\r\n 'is-animated': _vm.newAnimated,\r\n 'is-always': _vm.always,\r\n 'is-multiline': _vm.multilined,\r\n 'is-dashed': _vm.dashed\r\n }],style:({'transition-delay': (_vm.newDelay + \"ms\")}),attrs:{\"data-label\":_vm.label}},[_vm._t(\"default\")],2)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Tooltip = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nexport { Tooltip as T };\n","import { _ as _defineProperty, d as _toConsumableArray } from './chunk-1fafdf15.js';\nimport './chunk-6985c8ce.js';\nimport { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport { T as Tooltip } from './chunk-9ec85033.js';\n\nvar script = {\n name: 'BSliderThumb',\n components: _defineProperty({}, Tooltip.name, Tooltip),\n inheritAttrs: false,\n props: {\n value: {\n type: Number,\n default: 0\n },\n type: {\n type: String,\n default: ''\n },\n tooltip: {\n type: Boolean,\n default: true\n },\n customFormatter: Function\n },\n data: function data() {\n return {\n isFocused: false,\n dragging: false,\n startX: 0,\n startPosition: 0,\n newPosition: null,\n oldValue: this.value\n };\n },\n computed: {\n disabled: function disabled() {\n return this.$parent.disabled;\n },\n max: function max() {\n return this.$parent.max;\n },\n min: function min() {\n return this.$parent.min;\n },\n step: function step() {\n return this.$parent.step;\n },\n precision: function precision() {\n return this.$parent.precision;\n },\n currentPosition: function currentPosition() {\n return \"\".concat((this.value - this.min) / (this.max - this.min) * 100, \"%\");\n },\n wrapperStyle: function wrapperStyle() {\n return {\n left: this.currentPosition\n };\n },\n tooltipLabel: function tooltipLabel() {\n return typeof this.customFormatter !== 'undefined' ? this.customFormatter(this.value) : this.value.toString();\n }\n },\n methods: {\n onFocus: function onFocus() {\n this.isFocused = true;\n },\n onBlur: function onBlur() {\n this.isFocused = false;\n },\n onButtonDown: function onButtonDown(event) {\n if (this.disabled) return;\n event.preventDefault();\n this.onDragStart(event);\n\n if (typeof window !== 'undefined') {\n document.addEventListener('mousemove', this.onDragging);\n document.addEventListener('touchmove', this.onDragging);\n document.addEventListener('mouseup', this.onDragEnd);\n document.addEventListener('touchend', this.onDragEnd);\n document.addEventListener('contextmenu', this.onDragEnd);\n }\n },\n onLeftKeyDown: function onLeftKeyDown() {\n if (this.disabled || this.value === this.min) return;\n this.newPosition = parseFloat(this.currentPosition) - this.step / (this.max - this.min) * 100;\n this.setPosition(this.newPosition);\n this.$parent.emitValue('change');\n },\n onRightKeyDown: function onRightKeyDown() {\n if (this.disabled || this.value === this.max) return;\n this.newPosition = parseFloat(this.currentPosition) + this.step / (this.max - this.min) * 100;\n this.setPosition(this.newPosition);\n this.$parent.emitValue('change');\n },\n onHomeKeyDown: function onHomeKeyDown() {\n if (this.disabled || this.value === this.min) return;\n this.newPosition = 0;\n this.setPosition(this.newPosition);\n this.$parent.emitValue('change');\n },\n onEndKeyDown: function onEndKeyDown() {\n if (this.disabled || this.value === this.max) return;\n this.newPosition = 100;\n this.setPosition(this.newPosition);\n this.$parent.emitValue('change');\n },\n onDragStart: function onDragStart(event) {\n this.dragging = true;\n this.$emit('dragstart');\n\n if (event.type === 'touchstart') {\n event.clientX = event.touches[0].clientX;\n }\n\n this.startX = event.clientX;\n this.startPosition = parseFloat(this.currentPosition);\n this.newPosition = this.startPosition;\n },\n onDragging: function onDragging(event) {\n if (this.dragging) {\n if (event.type === 'touchmove') {\n event.clientX = event.touches[0].clientX;\n }\n\n var diff = (event.clientX - this.startX) / this.$parent.sliderSize() * 100;\n this.newPosition = this.startPosition + diff;\n this.setPosition(this.newPosition);\n }\n },\n onDragEnd: function onDragEnd() {\n this.dragging = false;\n this.$emit('dragend');\n\n if (this.value !== this.oldValue) {\n this.$parent.emitValue('change');\n }\n\n this.setPosition(this.newPosition);\n\n if (typeof window !== 'undefined') {\n document.removeEventListener('mousemove', this.onDragging);\n document.removeEventListener('touchmove', this.onDragging);\n document.removeEventListener('mouseup', this.onDragEnd);\n document.removeEventListener('touchend', this.onDragEnd);\n document.removeEventListener('contextmenu', this.onDragEnd);\n }\n },\n setPosition: function setPosition(percent) {\n if (percent === null || isNaN(percent)) return;\n\n if (percent < 0) {\n percent = 0;\n } else if (percent > 100) {\n percent = 100;\n }\n\n var stepLength = 100 / ((this.max - this.min) / this.step);\n var steps = Math.round(percent / stepLength);\n var value = steps * stepLength / 100 * (this.max - this.min) + this.min;\n value = parseFloat(value.toFixed(this.precision));\n this.$emit('input', value);\n\n if (!this.dragging && value !== this.oldValue) {\n this.oldValue = value;\n }\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"b-slider-thumb-wrapper\",class:{ 'is-dragging': _vm.dragging },style:(_vm.wrapperStyle)},[_c('b-tooltip',{attrs:{\"label\":_vm.tooltipLabel,\"type\":_vm.type,\"always\":_vm.dragging || _vm.isFocused,\"active\":!_vm.disabled && _vm.tooltip}},[_c('div',_vm._b({staticClass:\"b-slider-thumb\",attrs:{\"tabindex\":_vm.disabled ? false : 0},on:{\"mousedown\":_vm.onButtonDown,\"touchstart\":_vm.onButtonDown,\"focus\":_vm.onFocus,\"blur\":_vm.onBlur,\"keydown\":[function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"left\",37,$event.key,[\"Left\",\"ArrowLeft\"])){ return null; }if('button' in $event && $event.button !== 0){ return null; }$event.preventDefault();return _vm.onLeftKeyDown($event)},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"right\",39,$event.key,[\"Right\",\"ArrowRight\"])){ return null; }if('button' in $event && $event.button !== 2){ return null; }$event.preventDefault();return _vm.onRightKeyDown($event)},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"down\",40,$event.key,[\"Down\",\"ArrowDown\"])){ return null; }$event.preventDefault();return _vm.onLeftKeyDown($event)},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"up\",38,$event.key,[\"Up\",\"ArrowUp\"])){ return null; }$event.preventDefault();return _vm.onRightKeyDown($event)},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"home\",undefined,$event.key,undefined)){ return null; }$event.preventDefault();return _vm.onHomeKeyDown($event)},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"end\",undefined,$event.key,undefined)){ return null; }$event.preventDefault();return _vm.onEndKeyDown($event)}]}},'div',_vm.$attrs,false))])],1)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var SliderThumb = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar script$1 = {\n name: 'BSliderTick',\n props: {\n value: {\n type: Number,\n default: 0\n }\n },\n computed: {\n position: function position() {\n var pos = (this.value - this.$parent.min) / (this.$parent.max - this.$parent.min) * 100;\n return pos >= 0 && pos <= 100 ? pos : 0;\n },\n hidden: function hidden() {\n return this.value === this.$parent.min || this.value === this.$parent.max;\n }\n },\n methods: {\n getTickStyle: function getTickStyle(position) {\n return {\n 'left': position + '%'\n };\n }\n },\n created: function created() {\n if (!this.$parent.$data._isSlider) {\n this.$destroy();\n throw new Error('You should wrap bSliderTick on a bSlider');\n }\n }\n};\n\n/* script */\nconst __vue_script__$1 = script$1;\n\n/* template */\nvar __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"b-slider-tick\",class:{ 'is-tick-hidden': _vm.hidden },style:(_vm.getTickStyle(_vm.position))},[(_vm.$slots.default)?_c('span',{staticClass:\"b-slider-tick-label\"},[_vm._t(\"default\")],2):_vm._e()])};\nvar __vue_staticRenderFns__$1 = [];\n\n /* style */\n const __vue_inject_styles__$1 = undefined;\n /* scoped */\n const __vue_scope_id__$1 = undefined;\n /* module identifier */\n const __vue_module_identifier__$1 = undefined;\n /* functional template */\n const __vue_is_functional_template__$1 = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var SliderTick = __vue_normalize__(\n { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },\n __vue_inject_styles__$1,\n __vue_script__$1,\n __vue_scope_id__$1,\n __vue_is_functional_template__$1,\n __vue_module_identifier__$1,\n undefined,\n undefined\n );\n\nvar _components;\nvar script$2 = {\n name: 'BSlider',\n components: (_components = {}, _defineProperty(_components, SliderThumb.name, SliderThumb), _defineProperty(_components, SliderTick.name, SliderTick), _components),\n props: {\n value: {\n type: [Number, Array],\n default: 0\n },\n min: {\n type: Number,\n default: 0\n },\n max: {\n type: Number,\n default: 100\n },\n step: {\n type: Number,\n default: 1\n },\n type: {\n type: String,\n default: 'is-primary'\n },\n size: String,\n ticks: {\n type: Boolean,\n default: false\n },\n tooltip: {\n type: Boolean,\n default: true\n },\n tooltipType: String,\n rounded: {\n type: Boolean,\n default: false\n },\n disabled: {\n type: Boolean,\n default: false\n },\n lazy: {\n type: Boolean,\n default: false\n },\n customFormatter: Function,\n ariaLabel: [String, Array],\n biggerSliderFocus: {\n type: Boolean,\n default: false\n }\n },\n data: function data() {\n return {\n value1: null,\n value2: null,\n dragging: false,\n isRange: false,\n _isSlider: true // Used by Thumb and Tick\n\n };\n },\n computed: {\n newTooltipType: function newTooltipType() {\n return this.tooltipType ? this.tooltipType : this.type;\n },\n tickValues: function tickValues() {\n if (!this.ticks || this.min > this.max || this.step === 0) return [];\n var result = [];\n\n for (var i = this.min + this.step; i < this.max; i = i + this.step) {\n result.push(i);\n }\n\n return result;\n },\n minValue: function minValue() {\n return Math.min(this.value1, this.value2);\n },\n maxValue: function maxValue() {\n return Math.max(this.value1, this.value2);\n },\n barSize: function barSize() {\n return this.isRange ? \"\".concat(100 * (this.maxValue - this.minValue) / (this.max - this.min), \"%\") : \"\".concat(100 * (this.value1 - this.min) / (this.max - this.min), \"%\");\n },\n barStart: function barStart() {\n return this.isRange ? \"\".concat(100 * (this.minValue - this.min) / (this.max - this.min), \"%\") : '0%';\n },\n precision: function precision() {\n var precisions = [this.min, this.max, this.step].map(function (item) {\n var decimal = ('' + item).split('.')[1];\n return decimal ? decimal.length : 0;\n });\n return Math.max.apply(Math, _toConsumableArray(precisions));\n },\n barStyle: function barStyle() {\n return {\n width: this.barSize,\n left: this.barStart\n };\n },\n rootClasses: function rootClasses() {\n return {\n 'is-rounded': this.rounded,\n 'is-dragging': this.dragging,\n 'is-disabled': this.disabled,\n 'slider-focus': this.biggerSliderFocus\n };\n }\n },\n watch: {\n /**\r\n * When v-model is changed set the new active step.\r\n */\n value: function value(_value) {\n this.setValues(_value);\n },\n value1: function value1() {\n this.onInternalValueUpdate();\n },\n value2: function value2() {\n this.onInternalValueUpdate();\n },\n min: function min() {\n this.setValues(this.value);\n },\n max: function max() {\n this.setValues(this.value);\n }\n },\n methods: {\n setValues: function setValues(newValue) {\n if (this.min > this.max) {\n return;\n }\n\n if (Array.isArray(newValue)) {\n this.isRange = true;\n var smallValue = typeof newValue[0] !== 'number' || isNaN(newValue[0]) ? this.min : Math.min(Math.max(this.min, newValue[0]), this.max);\n var largeValue = typeof newValue[1] !== 'number' || isNaN(newValue[1]) ? this.max : Math.max(Math.min(this.max, newValue[1]), this.min);\n this.value1 = this.isThumbReversed ? largeValue : smallValue;\n this.value2 = this.isThumbReversed ? smallValue : largeValue;\n } else {\n this.isRange = false;\n this.value1 = isNaN(newValue) ? this.min : Math.min(this.max, Math.max(this.min, newValue));\n this.value2 = null;\n }\n },\n onInternalValueUpdate: function onInternalValueUpdate() {\n if (this.isRange) {\n this.isThumbReversed = this.value1 > this.value2;\n }\n\n if (!this.lazy || !this.dragging) {\n this.emitValue('input');\n }\n\n if (this.dragging) {\n this.emitValue('dragging');\n }\n },\n sliderSize: function sliderSize() {\n return this.$refs.slider.getBoundingClientRect().width;\n },\n onSliderClick: function onSliderClick(event) {\n if (this.disabled || this.isTrackClickDisabled) return;\n var sliderOffsetLeft = this.$refs.slider.getBoundingClientRect().left;\n var percent = (event.clientX - sliderOffsetLeft) / this.sliderSize() * 100;\n var targetValue = this.min + percent * (this.max - this.min) / 100;\n var diffFirst = Math.abs(targetValue - this.value1);\n\n if (!this.isRange) {\n if (diffFirst < this.step / 2) return;\n this.$refs.button1.setPosition(percent);\n } else {\n var diffSecond = Math.abs(targetValue - this.value2);\n\n if (diffFirst <= diffSecond) {\n if (diffFirst < this.step / 2) return;\n this.$refs['button1'].setPosition(percent);\n } else {\n if (diffSecond < this.step / 2) return;\n this.$refs['button2'].setPosition(percent);\n }\n }\n\n this.emitValue('change');\n },\n onDragStart: function onDragStart() {\n this.dragging = true;\n this.$emit('dragstart');\n },\n onDragEnd: function onDragEnd() {\n var _this = this;\n\n this.isTrackClickDisabled = true;\n setTimeout(function () {\n // avoid triggering onSliderClick after dragend\n _this.isTrackClickDisabled = false;\n }, 0);\n this.dragging = false;\n this.$emit('dragend');\n\n if (this.lazy) {\n this.emitValue('input');\n }\n },\n emitValue: function emitValue(type) {\n this.$emit(type, this.isRange ? [this.minValue, this.maxValue] : this.value1);\n }\n },\n created: function created() {\n this.isThumbReversed = false;\n this.isTrackClickDisabled = false;\n this.setValues(this.value);\n }\n};\n\n/* script */\nconst __vue_script__$2 = script$2;\n\n/* template */\nvar __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"b-slider\",class:[_vm.size, _vm.type, _vm.rootClasses ],on:{\"click\":_vm.onSliderClick}},[_c('div',{ref:\"slider\",staticClass:\"b-slider-track\"},[_c('div',{staticClass:\"b-slider-fill\",style:(_vm.barStyle)}),_vm._v(\" \"),(_vm.ticks)?_vm._l((_vm.tickValues),function(val,key){return _c('b-slider-tick',{key:key,attrs:{\"value\":val}})}):_vm._e(),_vm._v(\" \"),_vm._t(\"default\"),_vm._v(\" \"),_c('b-slider-thumb',{ref:\"button1\",attrs:{\"type\":_vm.newTooltipType,\"tooltip\":_vm.tooltip,\"custom-formatter\":_vm.customFormatter,\"role\":\"slider\",\"aria-valuenow\":_vm.value1,\"aria-valuemin\":_vm.min,\"aria-valuemax\":_vm.max,\"aria-orientation\":\"horizontal\",\"aria-label\":Array.isArray(_vm.ariaLabel) ? _vm.ariaLabel[0] : _vm.ariaLabel,\"aria-disabled\":_vm.disabled},on:{\"dragstart\":_vm.onDragStart,\"dragend\":_vm.onDragEnd},model:{value:(_vm.value1),callback:function ($$v) {_vm.value1=$$v;},expression:\"value1\"}}),_vm._v(\" \"),(_vm.isRange)?_c('b-slider-thumb',{ref:\"button2\",attrs:{\"type\":_vm.newTooltipType,\"tooltip\":_vm.tooltip,\"custom-formatter\":_vm.customFormatter,\"role\":\"slider\",\"aria-valuenow\":_vm.value2,\"aria-valuemin\":_vm.min,\"aria-valuemax\":_vm.max,\"aria-orientation\":\"horizontal\",\"aria-label\":Array.isArray(_vm.ariaLabel) ? _vm.ariaLabel[1] : '',\"aria-disabled\":_vm.disabled},on:{\"dragstart\":_vm.onDragStart,\"dragend\":_vm.onDragEnd},model:{value:(_vm.value2),callback:function ($$v) {_vm.value2=$$v;},expression:\"value2\"}}):_vm._e()],2)])};\nvar __vue_staticRenderFns__$2 = [];\n\n /* style */\n const __vue_inject_styles__$2 = undefined;\n /* scoped */\n const __vue_scope_id__$2 = undefined;\n /* module identifier */\n const __vue_module_identifier__$2 = undefined;\n /* functional template */\n const __vue_is_functional_template__$2 = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Slider = __vue_normalize__(\n { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 },\n __vue_inject_styles__$2,\n __vue_script__$2,\n __vue_scope_id__$2,\n __vue_is_functional_template__$2,\n __vue_module_identifier__$2,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Slider);\n registerComponent(Vue, SliderTick);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Slider as BSlider, SliderTick as BSliderTick };\n","import './chunk-1fafdf15.js';\nimport { merge } from './helpers.js';\nimport { c as config, V as VueInstance } from './chunk-6985c8ce.js';\nimport { _ as __vue_normalize__, a as registerComponentProgrammatic, u as use } from './chunk-cca88db8.js';\nimport { N as NoticeMixin } from './chunk-53640c15.js';\n\n//\nvar script = {\n name: 'BSnackbar',\n mixins: [NoticeMixin],\n props: {\n actionText: {\n type: String,\n default: 'OK'\n },\n onAction: {\n type: Function,\n default: function _default() {}\n },\n indefinite: {\n type: Boolean,\n default: false\n }\n },\n data: function data() {\n return {\n newDuration: this.duration || config.defaultSnackbarDuration\n };\n },\n methods: {\n /**\r\n * Click listener.\r\n * Call action prop before closing (from Mixin).\r\n */\n action: function action() {\n this.onAction();\n this.close();\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{\"enter-active-class\":_vm.transition.enter,\"leave-active-class\":_vm.transition.leave}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isActive),expression:\"isActive\"}],staticClass:\"snackbar\",class:[_vm.type,_vm.position],attrs:{\"role\":_vm.actionText ? 'alertdialog' : 'alert'}},[_c('div',{staticClass:\"text\",domProps:{\"innerHTML\":_vm._s(_vm.message)}}),_vm._v(\" \"),(_vm.actionText)?_c('div',{staticClass:\"action\",class:_vm.type,on:{\"click\":_vm.action}},[_c('button',{staticClass:\"button\"},[_vm._v(_vm._s(_vm.actionText))])]):_vm._e()])])};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Snackbar = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar localVueInstance;\nvar SnackbarProgrammatic = {\n open: function open(params) {\n var parent;\n\n if (typeof params === 'string') {\n params = {\n message: params\n };\n }\n\n var defaultParam = {\n type: 'is-success',\n position: config.defaultSnackbarPosition || 'is-bottom-right'\n };\n\n if (params.parent) {\n parent = params.parent;\n delete params.parent;\n }\n\n var propsData = merge(defaultParam, params);\n var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : localVueInstance || VueInstance;\n var SnackbarComponent = vm.extend(Snackbar);\n return new SnackbarComponent({\n parent: parent,\n el: document.createElement('div'),\n propsData: propsData\n });\n }\n};\nvar Plugin = {\n install: function install(Vue) {\n localVueInstance = Vue;\n registerComponentProgrammatic(Vue, 'snackbar', SnackbarProgrammatic);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Snackbar as BSnackbar, SnackbarProgrammatic };\n","import { _ as _defineProperty } from './chunk-1fafdf15.js';\nimport './helpers.js';\nimport { c as config } from './chunk-6985c8ce.js';\nimport { I as Icon } from './chunk-cdfca85b.js';\nimport { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport { S as SlotComponent } from './chunk-0e3f4fb5.js';\n\nvar _components;\nvar script = {\n name: 'BSteps',\n components: (_components = {}, _defineProperty(_components, Icon.name, Icon), _defineProperty(_components, SlotComponent.name, SlotComponent), _components),\n props: {\n value: [Number, String],\n type: [String, Object],\n size: String,\n animated: {\n type: Boolean,\n default: true\n },\n destroyOnHide: {\n type: Boolean,\n default: false\n },\n iconPack: String,\n iconPrev: {\n type: String,\n default: function _default() {\n return config.defaultIconPrev;\n }\n },\n iconNext: {\n type: String,\n default: function _default() {\n return config.defaultIconNext;\n }\n },\n hasNavigation: {\n type: Boolean,\n default: true\n },\n vertical: {\n type: Boolean,\n default: false\n },\n position: String,\n labelPosition: {\n type: String,\n validator: function validator(value) {\n return ['bottom', 'right', 'left'].indexOf(value) > -1;\n },\n default: 'bottom'\n },\n rounded: {\n type: Boolean,\n default: true\n },\n mobileMode: {\n type: String,\n validator: function validator(value) {\n return ['minimalist', 'compact'].indexOf(value) > -1;\n },\n default: 'minimalist'\n },\n ariaNextLabel: String,\n ariaPreviousLabel: String\n },\n data: function data() {\n return {\n activeStep: 0,\n defaultSlots: [],\n contentHeight: 0,\n isTransitioning: false,\n _isSteps: true // Used internally by StepItem\n\n };\n },\n computed: {\n wrapperClasses: function wrapperClasses() {\n return [this.size, _defineProperty({\n 'is-vertical': this.vertical\n }, this.position, this.position && this.vertical)];\n },\n mainClasses: function mainClasses() {\n return [this.type, _defineProperty({\n 'has-label-right': this.labelPosition === 'right',\n 'has-label-left': this.labelPosition === 'left',\n 'is-animated': this.animated,\n 'is-rounded': this.rounded\n }, \"mobile-\".concat(this.mobileMode), this.mobileMode !== null)];\n },\n stepItems: function stepItems() {\n return this.defaultSlots.filter(function (vnode) {\n return vnode.componentInstance && vnode.componentInstance.$data && vnode.componentInstance.$data._isStepItem;\n }).map(function (vnode) {\n return vnode.componentInstance;\n });\n },\n reversedStepItems: function reversedStepItems() {\n return this.stepItems.slice().reverse();\n },\n\n /**\r\n * Check the first visible step index.\r\n */\n firstVisibleStepIndex: function firstVisibleStepIndex() {\n return this.stepItems.map(function (step, idx) {\n return step.visible;\n }).indexOf(true);\n },\n\n /**\r\n * Check if previous button is available.\r\n */\n hasPrev: function hasPrev() {\n return this.firstVisibleStepIndex >= 0 && this.activeStep > this.firstVisibleStepIndex;\n },\n\n /**\r\n * Check the last visible step index.\r\n */\n lastVisibleStepIndex: function lastVisibleStepIndex() {\n var idx = this.reversedStepItems.map(function (step, idx) {\n return step.visible;\n }).indexOf(true);\n\n if (idx >= 0) {\n return this.stepItems.length - 1 - idx;\n }\n\n return idx;\n },\n\n /**\r\n * Check if next button is available.\r\n */\n hasNext: function hasNext() {\n return this.lastVisibleStepIndex >= 0 && this.activeStep < this.lastVisibleStepIndex;\n },\n navigationProps: function navigationProps() {\n return {\n previous: {\n disabled: !this.hasPrev,\n action: this.prev\n },\n next: {\n disabled: !this.hasNext,\n action: this.next\n }\n };\n }\n },\n watch: {\n /**\r\n * When v-model is changed set the new active step.\r\n */\n value: function value(_value) {\n var index = this.getIndexByValue(_value);\n this.changeStep(index);\n },\n\n /**\r\n * When step-items are updated, set active one.\r\n */\n stepItems: function stepItems() {\n var _this = this;\n\n if (this.activeStep < this.stepItems.length) {\n var previous = this.activeStep;\n this.stepItems.map(function (step, idx) {\n if (step.isActive) {\n previous = idx;\n\n if (previous < _this.stepItems.length) {\n _this.stepItems[previous].isActive = false;\n }\n }\n });\n this.stepItems[this.activeStep].isActive = true;\n } else if (this.activeStep > 0) {\n this.changeStep(this.activeStep - 1);\n }\n }\n },\n methods: {\n refreshSlots: function refreshSlots() {\n this.defaultSlots = this.$slots.default || [];\n },\n\n /**\r\n * Change the active step and emit change event.\r\n */\n changeStep: function changeStep(newIndex) {\n if (this.activeStep === newIndex) return;\n if (newIndex > this.stepItems.length) throw new Error('The index you trying to set is bigger than the steps length');\n\n if (this.activeStep < this.stepItems.length) {\n this.stepItems[this.activeStep].deactivate(this.activeStep, newIndex);\n }\n\n this.stepItems[newIndex].activate(this.activeStep, newIndex);\n this.activeStep = newIndex;\n this.$emit('change', this.getValueByIndex(newIndex));\n },\n\n /**\r\n * Return if the step should be clickable or not.\r\n */\n isItemClickable: function isItemClickable(stepItem, index) {\n if (stepItem.clickable === undefined) {\n return this.activeStep > index;\n }\n\n return stepItem.clickable;\n },\n\n /**\r\n * Step click listener, emit input event and change active step.\r\n */\n stepClick: function stepClick(index) {\n this.$emit('input', this.getValueByIndex(index));\n this.changeStep(index);\n },\n\n /**\r\n * Previous button click listener.\r\n */\n prev: function prev() {\n var _this2 = this;\n\n if (!this.hasPrev) return;\n var prevItemIdx = this.reversedStepItems.map(function (step, idx) {\n return _this2.stepItems.length - 1 - idx < _this2.activeStep && step.visible;\n }).indexOf(true);\n\n if (prevItemIdx >= 0) {\n prevItemIdx = this.stepItems.length - 1 - prevItemIdx;\n }\n\n this.$emit('input', this.getValueByIndex(prevItemIdx));\n this.changeStep(prevItemIdx);\n },\n\n /**\r\n * Previous button click listener.\r\n */\n next: function next() {\n var _this3 = this;\n\n if (!this.hasNext) return;\n var nextItemIdx = this.stepItems.map(function (step, idx) {\n return idx > _this3.activeStep && step.visible;\n }).indexOf(true);\n this.$emit('input', this.getValueByIndex(nextItemIdx));\n this.changeStep(nextItemIdx);\n },\n getIndexByValue: function getIndexByValue(value) {\n var index = this.stepItems.map(function (t) {\n return t.$options.propsData ? t.$options.propsData.value : undefined;\n }).indexOf(value);\n return index >= 0 ? index : value;\n },\n getValueByIndex: function getValueByIndex(index) {\n var propsData = this.stepItems[index].$options.propsData;\n return propsData && propsData.value ? propsData.value : index;\n }\n },\n mounted: function mounted() {\n this.activeStep = this.getIndexByValue(this.value || 0);\n\n if (this.activeStep < this.stepItems.length) {\n this.stepItems[this.activeStep].isActive = true;\n }\n\n this.refreshSlots();\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"b-steps\",class:_vm.wrapperClasses},[_c('nav',{staticClass:\"steps\",class:_vm.mainClasses},[_c('ul',{staticClass:\"step-items\"},_vm._l((_vm.stepItems),function(stepItem,index){return _c('li',{directives:[{name:\"show\",rawName:\"v-show\",value:(stepItem.visible),expression:\"stepItem.visible\"}],key:index,staticClass:\"step-item\",class:[stepItem.type || _vm.type, {\r\n 'is-active': _vm.activeStep === index,\r\n 'is-previous': _vm.activeStep > index\r\n }]},[_c('a',{staticClass:\"step-link\",class:{'is-clickable': _vm.isItemClickable(stepItem, index)},on:{\"click\":function($event){_vm.isItemClickable(stepItem, index) && _vm.stepClick(index);}}},[_c('div',{staticClass:\"step-marker\"},[(stepItem.icon)?_c('b-icon',{attrs:{\"icon\":stepItem.icon,\"pack\":stepItem.iconPack,\"size\":_vm.size}}):(stepItem.step)?_c('span',[_vm._v(_vm._s(stepItem.step))]):_vm._e()],1),_vm._v(\" \"),_c('div',{staticClass:\"step-details\"},[_c('span',{staticClass:\"step-title\"},[_vm._v(_vm._s(stepItem.label))])])])])}))]),_vm._v(\" \"),_c('section',{staticClass:\"step-content\",class:{'is-transitioning': _vm.isTransitioning}},[_vm._t(\"default\")],2),_vm._v(\" \"),_vm._t(\"navigation\",[(_vm.hasNavigation)?_c('nav',{staticClass:\"step-navigation\"},[_c('a',{staticClass:\"pagination-previous\",attrs:{\"role\":\"button\",\"disabled\":_vm.navigationProps.previous.disabled,\"aria-label\":_vm.ariaPreviousLabel},on:{\"click\":function($event){$event.preventDefault();return _vm.navigationProps.previous.action($event)}}},[_c('b-icon',{attrs:{\"icon\":_vm.iconPrev,\"pack\":_vm.iconPack,\"both\":\"\",\"aria-hidden\":\"true\"}})],1),_vm._v(\" \"),_c('a',{staticClass:\"pagination-next\",attrs:{\"role\":\"button\",\"disabled\":_vm.navigationProps.next.disabled,\"aria-label\":_vm.ariaNextLabel},on:{\"click\":function($event){$event.preventDefault();return _vm.navigationProps.next.action($event)}}},[_c('b-icon',{attrs:{\"icon\":_vm.iconNext,\"pack\":_vm.iconPack,\"both\":\"\",\"aria-hidden\":\"true\"}})],1)]):_vm._e()],{previous:_vm.navigationProps.previous,next:_vm.navigationProps.next})],2)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Steps = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar script$1 = {\n name: 'BStepItem',\n props: {\n step: [String, Number],\n label: String,\n type: [String, Object],\n icon: String,\n iconPack: String,\n clickable: {\n type: Boolean,\n default: undefined\n },\n visible: {\n type: Boolean,\n default: true\n },\n value: [String, Number]\n },\n data: function data() {\n return {\n isActive: false,\n transitionName: null,\n _isStepItem: true // Used internally by Step\n\n };\n },\n methods: {\n /**\r\n * Activate step, alter animation name based on the index.\r\n */\n activate: function activate(oldIndex, index) {\n this.transitionName = index < oldIndex ? this.$parent.vertical ? 'slide-down' : 'slide-next' : this.$parent.vertical ? 'slide-up' : 'slide-prev';\n this.isActive = true;\n },\n\n /**\r\n * Deactivate step, alter animation name based on the index.\r\n */\n deactivate: function deactivate(oldIndex, index) {\n this.transitionName = index < oldIndex ? this.$parent.vertical ? 'slide-down' : 'slide-next' : this.$parent.vertical ? 'slide-up' : 'slide-prev';\n this.isActive = false;\n }\n },\n created: function created() {\n if (!this.$parent.$data._isSteps) {\n this.$destroy();\n throw new Error('You should wrap bStepItem on a bSteps');\n }\n\n this.$parent.refreshSlots();\n },\n beforeDestroy: function beforeDestroy() {\n this.$parent.refreshSlots();\n },\n render: function render(createElement) {\n var _this = this;\n\n // if destroy apply v-if\n if (this.$parent.destroyOnHide) {\n if (!this.isActive || !this.visible) {\n return;\n }\n }\n\n var vnode = createElement('div', {\n directives: [{\n name: 'show',\n value: this.isActive && this.visible\n }],\n attrs: {\n 'class': 'step-item'\n }\n }, this.$slots.default); // check animated prop\n\n if (this.$parent.animated) {\n return createElement('transition', {\n props: {\n 'name': this.transitionName\n },\n on: {\n 'before-enter': function beforeEnter() {\n _this.$parent.isTransitioning = true;\n },\n 'after-enter': function afterEnter() {\n _this.$parent.isTransitioning = false;\n }\n }\n }, [vnode]);\n }\n\n return vnode;\n }\n};\n\n/* script */\nconst __vue_script__$1 = script$1;\n\n/* template */\n\n /* style */\n const __vue_inject_styles__$1 = undefined;\n /* scoped */\n const __vue_scope_id__$1 = undefined;\n /* module identifier */\n const __vue_module_identifier__$1 = undefined;\n /* functional template */\n const __vue_is_functional_template__$1 = undefined;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var StepItem = __vue_normalize__(\n {},\n __vue_inject_styles__$1,\n __vue_script__$1,\n __vue_scope_id__$1,\n __vue_is_functional_template__$1,\n __vue_module_identifier__$1,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Steps);\n registerComponent(Vue, StepItem);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { StepItem as BStepItem, Steps as BSteps };\n","var SlotComponent = {\n name: 'BSlotComponent',\n props: {\n component: {\n type: Object,\n required: true\n },\n name: {\n type: String,\n default: 'default'\n },\n scoped: {\n type: Boolean\n },\n props: {\n type: Object\n },\n tag: {\n type: String,\n default: 'div'\n },\n event: {\n type: String,\n default: 'hook:updated'\n }\n },\n methods: {\n refresh: function refresh() {\n this.$forceUpdate();\n },\n isVueComponent: function isVueComponent() {\n return this.component && this.component._isVue;\n }\n },\n created: function created() {\n if (this.isVueComponent()) {\n this.component.$on(this.event, this.refresh);\n }\n },\n beforeDestroy: function beforeDestroy() {\n if (this.isVueComponent()) {\n this.component.$off(this.event, this.refresh);\n }\n },\n render: function render(createElement) {\n if (this.isVueComponent()) {\n return createElement(this.tag, {}, this.scoped ? this.component.$scopedSlots[this.name](this.props) : this.component.$slots[this.name]);\n }\n }\n};\n\nexport { SlotComponent as S };\n","import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar script = {\n name: 'BSwitch',\n props: {\n value: [String, Number, Boolean, Function, Object, Array, Date],\n nativeValue: [String, Number, Boolean, Function, Object, Array, Date],\n disabled: Boolean,\n type: String,\n passiveType: String,\n name: String,\n required: Boolean,\n size: String,\n trueValue: {\n type: [String, Number, Boolean, Function, Object, Array, Date],\n default: true\n },\n falseValue: {\n type: [String, Number, Boolean, Function, Object, Array, Date],\n default: false\n },\n rounded: {\n type: Boolean,\n default: true\n },\n outlined: {\n type: Boolean,\n default: false\n }\n },\n data: function data() {\n return {\n newValue: this.value,\n isMouseDown: false\n };\n },\n computed: {\n computedValue: {\n get: function get() {\n return this.newValue;\n },\n set: function set(value) {\n this.newValue = value;\n this.$emit('input', value);\n }\n },\n newClass: function newClass() {\n return [this.size, {\n 'is-disabled': this.disabled,\n 'is-rounded': this.rounded,\n 'is-outlined': this.outlined\n }];\n }\n },\n watch: {\n /**\r\n * When v-model change, set internal value.\r\n */\n value: function value(_value) {\n this.newValue = _value;\n }\n },\n methods: {\n focus: function focus() {\n // MacOS FireFox and Safari do not focus when clicked\n this.$refs.input.focus();\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{ref:\"label\",staticClass:\"switch\",class:_vm.newClass,attrs:{\"disabled\":_vm.disabled},on:{\"click\":_vm.focus,\"keydown\":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }$event.preventDefault();_vm.$refs.label.click();},\"mousedown\":function($event){_vm.isMouseDown = true;},\"mouseup\":function($event){_vm.isMouseDown = false;},\"mouseout\":function($event){_vm.isMouseDown = false;},\"blur\":function($event){_vm.isMouseDown = false;}}},[_c('input',{directives:[{name:\"model\",rawName:\"v-model\",value:(_vm.computedValue),expression:\"computedValue\"}],ref:\"input\",attrs:{\"type\":\"checkbox\",\"disabled\":_vm.disabled,\"name\":_vm.name,\"required\":_vm.required,\"true-value\":_vm.trueValue,\"false-value\":_vm.falseValue},domProps:{\"value\":_vm.nativeValue,\"checked\":Array.isArray(_vm.computedValue)?_vm._i(_vm.computedValue,_vm.nativeValue)>-1:_vm._q(_vm.computedValue,_vm.trueValue)},on:{\"click\":function($event){$event.stopPropagation();},\"change\":function($event){var $$a=_vm.computedValue,$$el=$event.target,$$c=$$el.checked?(_vm.trueValue):(_vm.falseValue);if(Array.isArray($$a)){var $$v=_vm.nativeValue,$$i=_vm._i($$a,$$v);if($$el.checked){$$i<0&&(_vm.computedValue=$$a.concat([$$v]));}else{$$i>-1&&(_vm.computedValue=$$a.slice(0,$$i).concat($$a.slice($$i+1)));}}else{_vm.computedValue=$$c;}}}}),_vm._v(\" \"),_c('span',{staticClass:\"check\",class:[\r\n { 'is-elastic': _vm.isMouseDown && !_vm.disabled },\r\n (_vm.passiveType &&(_vm.passiveType + \"-passive\")),\r\n _vm.type]}),_vm._v(\" \"),_c('span',{staticClass:\"control-label\"},[_vm._t(\"default\")],2)])};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Switch = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Switch);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Switch as BSwitch };\n","import { _ as _defineProperty, d as _toConsumableArray } from './chunk-1fafdf15.js';\nimport { getValueByPath, indexOf, multiColumnSort } from './helpers.js';\nimport './chunk-6985c8ce.js';\nimport './chunk-d0a313ea.js';\nimport { I as Icon } from './chunk-cdfca85b.js';\nimport { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport { I as Input } from './chunk-d1591eb8.js';\nimport './chunk-2793447b.js';\nimport { C as Checkbox } from './chunk-7bdbd626.js';\nimport { S as Select } from './chunk-77ffdf8b.js';\nimport { P as Pagination } from './chunk-bd608559.js';\nimport { S as SlotComponent } from './chunk-0e3f4fb5.js';\n\nvar _components;\nvar script = {\n name: 'BTableMobileSort',\n components: (_components = {}, _defineProperty(_components, Select.name, Select), _defineProperty(_components, Icon.name, Icon), _components),\n props: {\n currentSortColumn: Object,\n sortMultipleData: Array,\n isAsc: Boolean,\n columns: Array,\n placeholder: String,\n iconPack: String,\n sortIcon: {\n type: String,\n default: 'arrow-up'\n },\n sortIconSize: {\n type: String,\n default: 'is-small'\n },\n sortMultiple: {\n type: Boolean,\n default: false\n }\n },\n data: function data() {\n return {\n sortMultipleSelect: '',\n mobileSort: this.currentSortColumn,\n defaultEvent: {\n shiftKey: true,\n altKey: true,\n ctrlKey: true\n },\n ignoreSort: false\n };\n },\n computed: {\n showPlaceholder: function showPlaceholder() {\n var _this = this;\n\n return !this.columns || !this.columns.some(function (column) {\n return column === _this.mobileSort;\n });\n }\n },\n watch: {\n sortMultipleSelect: function sortMultipleSelect(column) {\n if (this.ignoreSort) {\n this.ignoreSort = false;\n } else {\n this.$emit('sort', column, this.defaultEvent);\n }\n },\n mobileSort: function mobileSort(column) {\n if (this.currentSortColumn === column) return;\n this.$emit('sort', column, this.defaultEvent);\n },\n currentSortColumn: function currentSortColumn(column) {\n this.mobileSort = column;\n }\n },\n methods: {\n removePriority: function removePriority() {\n var _this2 = this;\n\n this.$emit('removePriority', this.sortMultipleSelect); // ignore the watcher to sort when we just change whats displayed in the select\n // otherwise the direction will be flipped\n // The sort event is already triggered by the emit\n\n this.ignoreSort = true; // Select one of the other options when we reset one\n\n var remainingFields = this.sortMultipleData.filter(function (data) {\n return data.field !== _this2.sortMultipleSelect.field;\n }).map(function (data) {\n return data.field;\n });\n this.sortMultipleSelect = this.columns.filter(function (column) {\n return remainingFields.includes(column.field);\n })[0];\n },\n getSortingObjectOfColumn: function getSortingObjectOfColumn(column) {\n return this.sortMultipleData.filter(function (i) {\n return i.field === column.field;\n })[0];\n },\n columnIsDesc: function columnIsDesc(column) {\n var sortingObject = this.getSortingObjectOfColumn(column);\n\n if (sortingObject) {\n return !!(sortingObject.order && sortingObject.order === 'desc');\n }\n\n return true;\n },\n getLabel: function getLabel(column) {\n var sortingObject = this.getSortingObjectOfColumn(column);\n\n if (sortingObject) {\n return column.label + '(' + (this.sortMultipleData.indexOf(sortingObject) + 1) + ')';\n }\n\n return column.label;\n },\n sort: function sort() {\n this.$emit('sort', this.sortMultiple ? this.sortMultipleSelect : this.mobileSort, this.defaultEvent);\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"field table-mobile-sort\"},[_c('div',{staticClass:\"field has-addons\"},[(_vm.sortMultiple)?_c('b-select',{attrs:{\"expanded\":\"\"},model:{value:(_vm.sortMultipleSelect),callback:function ($$v) {_vm.sortMultipleSelect=$$v;},expression:\"sortMultipleSelect\"}},_vm._l((_vm.columns),function(column,index){return (column.sortable)?_c('option',{key:index,domProps:{\"value\":column}},[_vm._v(\"\\r\\n \"+_vm._s(_vm.getLabel(column))+\"\\r\\n \"),(_vm.getSortingObjectOfColumn(column))?[(_vm.columnIsDesc(column))?[_vm._v(\"\\r\\n ↓\\r\\n \")]:[_vm._v(\"\\r\\n ↑\\r\\n \")]]:_vm._e()],2):_vm._e()})):_c('b-select',{attrs:{\"expanded\":\"\"},model:{value:(_vm.mobileSort),callback:function ($$v) {_vm.mobileSort=$$v;},expression:\"mobileSort\"}},[(_vm.placeholder)?[_c('option',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.showPlaceholder),expression:\"showPlaceholder\"}],attrs:{\"selected\":\"\",\"disabled\":\"\",\"hidden\":\"\"},domProps:{\"value\":{}}},[_vm._v(\"\\r\\n \"+_vm._s(_vm.placeholder)+\"\\r\\n \")])]:_vm._e(),_vm._v(\" \"),_vm._l((_vm.columns),function(column,index){return (column.sortable)?_c('option',{key:index,domProps:{\"value\":column}},[_vm._v(\"\\r\\n \"+_vm._s(column.label)+\"\\r\\n \")]):_vm._e()})],2),_vm._v(\" \"),_c('div',{staticClass:\"control\"},[(_vm.sortMultiple && _vm.sortMultipleData.length > 0)?[_c('button',{staticClass:\"button is-primary\",on:{\"click\":_vm.sort}},[_c('b-icon',{class:{ 'is-desc': _vm.columnIsDesc(_vm.sortMultipleSelect) },attrs:{\"icon\":_vm.sortIcon,\"pack\":_vm.iconPack,\"size\":_vm.sortIconSize,\"both\":\"\"}})],1),_vm._v(\" \"),_c('button',{staticClass:\"button is-primary\",on:{\"click\":_vm.removePriority}},[_c('b-icon',{attrs:{\"icon\":\"delete\",\"size\":_vm.sortIconSize,\"both\":\"\"}})],1)]:(!_vm.sortMultiple)?_c('button',{staticClass:\"button is-primary\",on:{\"click\":_vm.sort}},[_c('b-icon',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.currentSortColumn === _vm.mobileSort),expression:\"currentSortColumn === mobileSort\"}],class:{ 'is-desc': !_vm.isAsc },attrs:{\"icon\":_vm.sortIcon,\"pack\":_vm.iconPack,\"size\":_vm.sortIconSize,\"both\":\"\"}})],1):_vm._e()],2)],1)])};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var TableMobileSort = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar script$1 = {\n name: 'BTableColumn',\n props: {\n label: String,\n customKey: [String, Number],\n field: String,\n meta: [String, Number, Boolean, Function, Object, Array],\n width: [Number, String],\n numeric: Boolean,\n centered: Boolean,\n searchable: Boolean,\n sortable: Boolean,\n visible: {\n type: Boolean,\n default: true\n },\n subheading: [String, Number],\n customSort: Function,\n sticky: Boolean,\n headerSelectable: {\n type: Boolean,\n default: true\n },\n headerClass: String,\n cellClass: String,\n internal: Boolean // Used internally by Table\n\n },\n data: function data() {\n return {\n newKey: this.customKey || this.label,\n _isTableColumn: true\n };\n },\n computed: {\n rootClasses: function rootClasses() {\n return [this.cellClass, {\n 'has-text-right': this.numeric && !this.centered,\n 'has-text-centered': this.centered,\n 'is-sticky': this.sticky\n }];\n }\n },\n beforeMount: function beforeMount() {\n var _this = this;\n\n if (!this.$parent.$data._isTable) {\n this.$destroy();\n throw new Error('You should wrap bTableColumn on a bTable');\n }\n\n if (this.internal) return; // Since we're using scoped prop the columns gonna be multiplied,\n // this finds when to stop based on the newKey property.\n\n var repeated = this.$parent.newColumns.some(function (column) {\n return column.newKey === _this.newKey;\n });\n !repeated && this.$parent.newColumns.push(this);\n },\n beforeDestroy: function beforeDestroy() {\n if (!this.$parent.visibleData.length) return;\n if (this.$parent.newColumns.length !== 1) return;\n\n if (this.$parent.newColumns.length) {\n var index = this.$parent.newColumns.map(function (column) {\n return column.newKey;\n }).indexOf(this.newKey);\n\n if (index >= 0) {\n this.$parent.newColumns.splice(index, 1);\n }\n }\n }\n};\n\n/* script */\nconst __vue_script__$1 = script$1;\n\n/* template */\nvar __vue_render__$1 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.visible)?_c('td',{class:_vm.rootClasses,attrs:{\"data-label\":_vm.label}},[_vm._t(\"default\")],2):_vm._e()};\nvar __vue_staticRenderFns__$1 = [];\n\n /* style */\n const __vue_inject_styles__$1 = undefined;\n /* scoped */\n const __vue_scope_id__$1 = undefined;\n /* module identifier */\n const __vue_module_identifier__$1 = undefined;\n /* functional template */\n const __vue_is_functional_template__$1 = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var TableColumn = __vue_normalize__(\n { render: __vue_render__$1, staticRenderFns: __vue_staticRenderFns__$1 },\n __vue_inject_styles__$1,\n __vue_script__$1,\n __vue_scope_id__$1,\n __vue_is_functional_template__$1,\n __vue_module_identifier__$1,\n undefined,\n undefined\n );\n\nvar _components$1;\nvar script$2 = {\n name: 'BTable',\n components: (_components$1 = {}, _defineProperty(_components$1, Checkbox.name, Checkbox), _defineProperty(_components$1, Icon.name, Icon), _defineProperty(_components$1, Input.name, Input), _defineProperty(_components$1, Pagination.name, Pagination), _defineProperty(_components$1, SlotComponent.name, SlotComponent), _defineProperty(_components$1, TableMobileSort.name, TableMobileSort), _defineProperty(_components$1, TableColumn.name, TableColumn), _components$1),\n props: {\n data: {\n type: Array,\n default: function _default() {\n return [];\n }\n },\n columns: {\n type: Array,\n default: function _default() {\n return [];\n }\n },\n bordered: Boolean,\n striped: Boolean,\n narrowed: Boolean,\n hoverable: Boolean,\n loading: Boolean,\n detailed: Boolean,\n checkable: Boolean,\n headerCheckable: {\n type: Boolean,\n default: true\n },\n checkboxPosition: {\n type: String,\n default: 'left',\n validator: function validator(value) {\n return ['left', 'right'].indexOf(value) >= 0;\n }\n },\n selected: Object,\n isRowSelectable: {\n type: Function,\n default: function _default() {\n return true;\n }\n },\n focusable: Boolean,\n customIsChecked: Function,\n isRowCheckable: {\n type: Function,\n default: function _default() {\n return true;\n }\n },\n checkedRows: {\n type: Array,\n default: function _default() {\n return [];\n }\n },\n mobileCards: {\n type: Boolean,\n default: true\n },\n defaultSort: [String, Array],\n defaultSortDirection: {\n type: String,\n default: 'asc'\n },\n sortIcon: {\n type: String,\n default: 'arrow-up'\n },\n sortIconSize: {\n type: String,\n default: 'is-small'\n },\n sortMultiple: {\n type: Boolean,\n default: false\n },\n sortMultipleData: {\n type: Array,\n default: function _default() {\n return [];\n }\n },\n sortMultipleKey: {\n type: String,\n default: null\n },\n paginated: Boolean,\n currentPage: {\n type: Number,\n default: 1\n },\n perPage: {\n type: [Number, String],\n default: 20\n },\n showDetailIcon: {\n type: Boolean,\n default: true\n },\n paginationSimple: Boolean,\n paginationSize: String,\n paginationPosition: {\n type: String,\n default: 'bottom',\n validator: function validator(value) {\n return ['bottom', 'top', 'both'].indexOf(value) >= 0;\n }\n },\n backendSorting: Boolean,\n backendFiltering: Boolean,\n rowClass: {\n type: Function,\n default: function _default() {\n return '';\n }\n },\n openedDetailed: {\n type: Array,\n default: function _default() {\n return [];\n }\n },\n hasDetailedVisible: {\n type: Function,\n default: function _default() {\n return true;\n }\n },\n detailKey: {\n type: String,\n default: ''\n },\n customDetailRow: {\n type: Boolean,\n default: false\n },\n backendPagination: Boolean,\n total: {\n type: [Number, String],\n default: 0\n },\n iconPack: String,\n mobileSortPlaceholder: String,\n customRowKey: String,\n draggable: {\n type: Boolean,\n default: false\n },\n scrollable: Boolean,\n ariaNextLabel: String,\n ariaPreviousLabel: String,\n ariaPageLabel: String,\n ariaCurrentLabel: String,\n stickyHeader: Boolean,\n height: [Number, String],\n filtersEvent: {\n type: String,\n default: ''\n },\n cardLayout: Boolean\n },\n data: function data() {\n return {\n sortMultipleDataLocal: [],\n getValueByPath: getValueByPath,\n newColumns: _toConsumableArray(this.columns),\n visibleDetailRows: this.openedDetailed,\n newData: this.data,\n newDataTotal: this.backendPagination ? this.total : this.data.length,\n newCheckedRows: _toConsumableArray(this.checkedRows),\n lastCheckedRowIndex: null,\n newCurrentPage: this.currentPage,\n currentSortColumn: {},\n isAsc: true,\n filters: {},\n firstTimeSort: true,\n // Used by first time initSort\n _isTable: true // Used by TableColumn\n\n };\n },\n computed: {\n sortMultipleDataComputed: function sortMultipleDataComputed() {\n return this.backendSorting ? this.sortMultipleData : this.sortMultipleDataLocal;\n },\n tableClasses: function tableClasses() {\n return {\n 'is-bordered': this.bordered,\n 'is-striped': this.striped,\n 'is-narrow': this.narrowed,\n 'is-hoverable': (this.hoverable || this.focusable) && this.visibleData.length\n };\n },\n tableWrapperClasses: function tableWrapperClasses() {\n return {\n 'has-mobile-cards': this.mobileCards,\n 'has-sticky-header': this.stickyHeader,\n 'is-card-list': this.cardLayout,\n 'table-container': this.isScrollable\n };\n },\n rooClasses: function rooClasses() {\n return {\n 'is-loading': this.loading\n };\n },\n\n /**\r\n * Splitted data based on the pagination.\r\n */\n visibleData: function visibleData() {\n if (!this.paginated) return this.newData;\n var currentPage = this.newCurrentPage;\n var perPage = this.perPage;\n\n if (this.newData.length <= perPage) {\n return this.newData;\n } else {\n var start = (currentPage - 1) * perPage;\n var end = parseInt(start, 10) + parseInt(perPage, 10);\n return this.newData.slice(start, end);\n }\n },\n visibleColumns: function visibleColumns() {\n if (!this.newColumns) return this.newColumns;\n return this.newColumns.filter(function (column) {\n return column.visible || column.visible === undefined;\n });\n },\n\n /**\r\n * Check if all rows in the page are checked.\r\n */\n isAllChecked: function isAllChecked() {\n var _this = this;\n\n var validVisibleData = this.visibleData.filter(function (row) {\n return _this.isRowCheckable(row);\n });\n if (validVisibleData.length === 0) return false;\n var isAllChecked = validVisibleData.some(function (currentVisibleRow) {\n return indexOf(_this.newCheckedRows, currentVisibleRow, _this.customIsChecked) < 0;\n });\n return !isAllChecked;\n },\n\n /**\r\n * Check if all rows in the page are checkable.\r\n */\n isAllUncheckable: function isAllUncheckable() {\n var _this2 = this;\n\n var validVisibleData = this.visibleData.filter(function (row) {\n return _this2.isRowCheckable(row);\n });\n return validVisibleData.length === 0;\n },\n\n /**\r\n * Check if has any sortable column.\r\n */\n hasSortablenewColumns: function hasSortablenewColumns() {\n return this.newColumns.some(function (column) {\n return column.sortable;\n });\n },\n\n /**\r\n * Check if has any searchable column.\r\n */\n hasSearchablenewColumns: function hasSearchablenewColumns() {\n return this.newColumns.some(function (column) {\n return column.searchable;\n });\n },\n\n /**\r\n * Check if has any column using subheading.\r\n */\n hasCustomSubheadings: function hasCustomSubheadings() {\n if (this.$scopedSlots && this.$scopedSlots.subheading) return true;\n return this.newColumns.some(function (column) {\n return column.subheading || column.$scopedSlots && column.$scopedSlots.subheading;\n });\n },\n\n /**\r\n * Return total column count based if it's checkable or expanded\r\n */\n columnCount: function columnCount() {\n var count = this.newColumns.length;\n count += this.checkable ? 1 : 0;\n count += this.detailed && this.showDetailIcon ? 1 : 0;\n return count;\n },\n\n /**\r\n * return if detailed row tabled\r\n * will be with chevron column & icon or not\r\n */\n showDetailRowIcon: function showDetailRowIcon() {\n return this.detailed && this.showDetailIcon;\n },\n\n /**\r\n * return if scrollable table\r\n */\n isScrollable: function isScrollable() {\n if (this.scrollable) return true;\n if (!this.newColumns) return false;\n return this.newColumns.some(function (column) {\n return column.sticky;\n });\n }\n },\n watch: {\n /**\r\n * When data prop change:\r\n * 1. Update internal value.\r\n * 2. Filter data if it's not backend-filtered.\r\n * 3. Sort again if it's not backend-sorted.\r\n * 4. Set new total if it's not backend-paginated.\r\n */\n data: function data(value) {\n var _this3 = this;\n\n this.newData = value;\n\n if (!this.backendFiltering) {\n this.newData = value.filter(function (row) {\n return _this3.isRowFiltered(row);\n });\n }\n\n if (!this.backendSorting) {\n this.sort(this.currentSortColumn, true);\n }\n\n if (!this.backendPagination) {\n this.newDataTotal = this.newData.length;\n }\n },\n\n /**\r\n * When Pagination total change, update internal total\r\n * only if it's backend-paginated.\r\n */\n total: function total(newTotal) {\n if (!this.backendPagination) return;\n this.newDataTotal = newTotal;\n },\n\n /**\r\n * When checkedRows prop change, update internal value without\r\n * mutating original data.\r\n */\n checkedRows: function checkedRows(rows) {\n this.newCheckedRows = _toConsumableArray(rows);\n },\n columns: function columns(value) {\n this.newColumns = _toConsumableArray(value);\n },\n newColumns: function newColumns(value) {\n this.checkSort();\n },\n filters: {\n handler: function handler(value) {\n var _this4 = this;\n\n if (this.backendFiltering) {\n this.$emit('filters-change', value);\n } else {\n this.newData = this.data.filter(function (row) {\n return _this4.isRowFiltered(row);\n });\n\n if (!this.backendPagination) {\n this.newDataTotal = this.newData.length;\n }\n\n if (!this.backendSorting) {\n if (this.sortMultiple && this.sortMultipleDataLocal && this.sortMultipleDataLocal.length > 0) {\n this.doSortMultiColumn();\n } else if (Object.keys(this.currentSortColumn).length > 0) {\n this.doSortSingleColumn(this.currentSortColumn);\n }\n }\n }\n },\n deep: true\n },\n\n /**\r\n * When the user wants to control the detailed rows via props.\r\n * Or wants to open the details of certain row with the router for example.\r\n */\n openedDetailed: function openedDetailed(expandedRows) {\n this.visibleDetailRows = expandedRows;\n },\n currentPage: function currentPage(newVal) {\n this.newCurrentPage = newVal;\n }\n },\n methods: {\n onFiltersEvent: function onFiltersEvent(event) {\n this.$emit(\"filters-event-\".concat(this.filtersEvent), {\n event: event,\n filters: this.filters\n });\n },\n findIndexOfSortData: function findIndexOfSortData(column) {\n var sortObj = this.sortMultipleDataComputed.filter(function (i) {\n return i.field === column.field;\n })[0];\n return this.sortMultipleDataComputed.indexOf(sortObj) + 1;\n },\n removeSortingPriority: function removeSortingPriority(column) {\n if (this.backendSorting) {\n this.$emit('sorting-priority-removed', column.field);\n } else {\n this.sortMultipleDataLocal = this.sortMultipleDataLocal.filter(function (priority) {\n return priority.field !== column.field;\n });\n var formattedSortingPriority = this.sortMultipleDataLocal.map(function (i) {\n return (i.order && i.order === 'desc' ? '-' : '') + i.field;\n });\n this.newData = multiColumnSort(this.newData, formattedSortingPriority);\n }\n },\n resetMultiSorting: function resetMultiSorting() {\n this.sortMultipleDataLocal = [];\n this.currentSortColumn = {};\n this.newData = this.data;\n },\n\n /**\r\n * Sort an array by key without mutating original data.\r\n * Call the user sort function if it was passed.\r\n */\n sortBy: function sortBy(array, key, fn, isAsc) {\n var sorted = []; // Sorting without mutating original data\n\n if (fn && typeof fn === 'function') {\n sorted = _toConsumableArray(array).sort(function (a, b) {\n return fn(a, b, isAsc);\n });\n } else {\n sorted = _toConsumableArray(array).sort(function (a, b) {\n // Get nested values from objects\n var newA = getValueByPath(a, key);\n var newB = getValueByPath(b, key); // sort boolean type\n\n if (typeof newA === 'boolean' && typeof newB === 'boolean') {\n return isAsc ? newA - newB : newB - newA;\n }\n\n if (!newA && newA !== 0) return 1;\n if (!newB && newB !== 0) return -1;\n if (newA === newB) return 0;\n newA = typeof newA === 'string' ? newA.toUpperCase() : newA;\n newB = typeof newB === 'string' ? newB.toUpperCase() : newB;\n return isAsc ? newA > newB ? 1 : -1 : newA > newB ? -1 : 1;\n });\n }\n\n return sorted;\n },\n sortMultiColumn: function sortMultiColumn(column) {\n this.currentSortColumn = {};\n\n if (!this.backendSorting) {\n var existingPriority = this.sortMultipleDataLocal.filter(function (i) {\n return i.field === column.field;\n })[0];\n\n if (existingPriority) {\n existingPriority.order = existingPriority.order === 'desc' ? 'asc' : 'desc';\n } else {\n this.sortMultipleDataLocal.push({\n field: column.field,\n order: column.isAsc\n });\n }\n\n this.doSortMultiColumn();\n }\n },\n doSortMultiColumn: function doSortMultiColumn() {\n var formattedSortingPriority = this.sortMultipleDataLocal.map(function (i) {\n return (i.order && i.order === 'desc' ? '-' : '') + i.field;\n });\n this.newData = multiColumnSort(this.newData, formattedSortingPriority);\n },\n\n /**\r\n * Sort the column.\r\n * Toggle current direction on column if it's sortable\r\n * and not just updating the prop.\r\n */\n sort: function sort(column) {\n var updatingData = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n var event = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;\n\n if ( // if backend sorting is enabled, just emit the sort press like usual\n // if the correct key combination isnt pressed, sort like usual\n !this.backendSorting && this.sortMultiple && (this.sortMultipleKey && event[this.sortMultipleKey] || !this.sortMultipleKey)) {\n this.sortMultiColumn(column);\n } else {\n if (!column || !column.sortable) return; // sort multiple is enabled but the correct key combination isnt pressed so reset\n\n if (this.sortMultiple) {\n this.sortMultipleDataLocal = [];\n }\n\n if (!updatingData) {\n this.isAsc = column === this.currentSortColumn ? !this.isAsc : this.defaultSortDirection.toLowerCase() !== 'desc';\n }\n\n if (!this.firstTimeSort) {\n this.$emit('sort', column.field, this.isAsc ? 'asc' : 'desc', event);\n }\n\n if (!this.backendSorting) {\n this.doSortSingleColumn(column);\n }\n\n this.currentSortColumn = column;\n }\n },\n doSortSingleColumn: function doSortSingleColumn(column) {\n this.newData = this.sortBy(this.newData, column.field, column.customSort, this.isAsc);\n },\n\n /**\r\n * Check if the row is checked (is added to the array).\r\n */\n isRowChecked: function isRowChecked(row) {\n return indexOf(this.newCheckedRows, row, this.customIsChecked) >= 0;\n },\n\n /**\r\n * Remove a checked row from the array.\r\n */\n removeCheckedRow: function removeCheckedRow(row) {\n var index = indexOf(this.newCheckedRows, row, this.customIsChecked);\n\n if (index >= 0) {\n this.newCheckedRows.splice(index, 1);\n }\n },\n\n /**\r\n * Header checkbox click listener.\r\n * Add or remove all rows in current page.\r\n */\n checkAll: function checkAll() {\n var _this5 = this;\n\n var isAllChecked = this.isAllChecked;\n this.visibleData.forEach(function (currentRow) {\n if (_this5.isRowCheckable(currentRow)) {\n _this5.removeCheckedRow(currentRow);\n }\n\n if (!isAllChecked) {\n if (_this5.isRowCheckable(currentRow)) {\n _this5.newCheckedRows.push(currentRow);\n }\n }\n });\n this.$emit('check', this.newCheckedRows);\n this.$emit('check-all', this.newCheckedRows); // Emit checked rows to update user variable\n\n this.$emit('update:checkedRows', this.newCheckedRows);\n },\n\n /**\r\n * Row checkbox click listener.\r\n */\n checkRow: function checkRow(row, index, event) {\n if (!this.isRowCheckable(row)) return;\n var lastIndex = this.lastCheckedRowIndex;\n this.lastCheckedRowIndex = index;\n\n if (event.shiftKey && lastIndex !== null && index !== lastIndex) {\n this.shiftCheckRow(row, index, lastIndex);\n } else if (!this.isRowChecked(row)) {\n this.newCheckedRows.push(row);\n } else {\n this.removeCheckedRow(row);\n }\n\n this.$emit('check', this.newCheckedRows, row); // Emit checked rows to update user variable\n\n this.$emit('update:checkedRows', this.newCheckedRows);\n },\n\n /**\r\n * Check row when shift is pressed.\r\n */\n shiftCheckRow: function shiftCheckRow(row, index, lastCheckedRowIndex) {\n var _this6 = this;\n\n // Get the subset of the list between the two indicies\n var subset = this.visibleData.slice(Math.min(index, lastCheckedRowIndex), Math.max(index, lastCheckedRowIndex) + 1); // Determine the operation based on the state of the clicked checkbox\n\n var shouldCheck = !this.isRowChecked(row);\n subset.forEach(function (item) {\n _this6.removeCheckedRow(item);\n\n if (shouldCheck && _this6.isRowCheckable(item)) {\n _this6.newCheckedRows.push(item);\n }\n });\n },\n\n /**\r\n * Row click listener.\r\n * Emit all necessary events.\r\n */\n selectRow: function selectRow(row, index) {\n this.$emit('click', row);\n if (this.selected === row) return;\n if (!this.isRowSelectable(row)) return; // Emit new and old row\n\n this.$emit('select', row, this.selected); // Emit new row to update user variable\n\n this.$emit('update:selected', row);\n },\n\n /**\r\n * Paginator change listener.\r\n */\n pageChanged: function pageChanged(page) {\n this.newCurrentPage = page > 0 ? page : 1;\n this.$emit('page-change', this.newCurrentPage);\n this.$emit('update:currentPage', this.newCurrentPage);\n },\n\n /**\r\n * Toggle to show/hide details slot\r\n */\n toggleDetails: function toggleDetails(obj) {\n var found = this.isVisibleDetailRow(obj);\n\n if (found) {\n this.closeDetailRow(obj);\n this.$emit('details-close', obj);\n } else {\n this.openDetailRow(obj);\n this.$emit('details-open', obj);\n } // Syncs the detailed rows with the parent component\n\n\n this.$emit('update:openedDetailed', this.visibleDetailRows);\n },\n openDetailRow: function openDetailRow(obj) {\n var index = this.handleDetailKey(obj);\n this.visibleDetailRows.push(index);\n },\n closeDetailRow: function closeDetailRow(obj) {\n var index = this.handleDetailKey(obj);\n var i = this.visibleDetailRows.indexOf(index);\n this.visibleDetailRows.splice(i, 1);\n },\n isVisibleDetailRow: function isVisibleDetailRow(obj) {\n var index = this.handleDetailKey(obj);\n var result = this.visibleDetailRows.indexOf(index) >= 0;\n return result;\n },\n isActiveDetailRow: function isActiveDetailRow(row) {\n return this.detailed && !this.customDetailRow && this.isVisibleDetailRow(row);\n },\n isActiveCustomDetailRow: function isActiveCustomDetailRow(row) {\n return this.detailed && this.customDetailRow && this.isVisibleDetailRow(row);\n },\n isRowFiltered: function isRowFiltered(row) {\n for (var key in this.filters) {\n // remove key if empty\n if (!this.filters[key]) {\n delete this.filters[key];\n return true;\n }\n\n var value = this.getValueByPath(row, key);\n if (value == null) return false;\n\n if (Number.isInteger(value)) {\n if (value !== Number(this.filters[key])) return false;\n } else {\n var re = new RegExp(this.filters[key], 'i');\n if (typeof value === 'boolean') value = \"\".concat(value);\n if (!value.match(re)) return false;\n }\n }\n\n return true;\n },\n\n /**\r\n * When the detailKey is defined we use the object[detailKey] as index.\r\n * If not, use the object reference by default.\r\n */\n handleDetailKey: function handleDetailKey(index) {\n var key = this.detailKey;\n return !key.length || !index ? index : index[key];\n },\n checkPredefinedDetailedRows: function checkPredefinedDetailedRows() {\n var defaultExpandedRowsDefined = this.openedDetailed.length > 0;\n\n if (defaultExpandedRowsDefined && !this.detailKey.length) {\n throw new Error('If you set a predefined opened-detailed, you must provide a unique key using the prop \"detail-key\"');\n }\n },\n\n /**\r\n * Call initSort only first time (For example async data).\r\n */\n checkSort: function checkSort() {\n if (this.newColumns.length && this.firstTimeSort) {\n this.initSort();\n this.firstTimeSort = false;\n } else if (this.newColumns.length) {\n if (Object.keys(this.currentSortColumn).length > 0) {\n for (var i = 0; i < this.newColumns.length; i++) {\n if (this.newColumns[i].field === this.currentSortColumn.field) {\n this.currentSortColumn = this.newColumns[i];\n break;\n }\n }\n }\n }\n },\n\n /**\r\n * Check if footer slot has custom content.\r\n */\n hasCustomFooterSlot: function hasCustomFooterSlot() {\n if (this.$slots.footer.length > 1) return true;\n var tag = this.$slots.footer[0].tag;\n if (tag !== 'th' && tag !== 'td') return false;\n return true;\n },\n\n /**\r\n * Check if bottom-left slot exists.\r\n */\n hasBottomLeftSlot: function hasBottomLeftSlot() {\n return typeof this.$slots['bottom-left'] !== 'undefined';\n },\n\n /**\r\n * Table arrow keys listener, change selection.\r\n */\n pressedArrow: function pressedArrow(pos) {\n if (!this.visibleData.length) return;\n var index = this.visibleData.indexOf(this.selected) + pos; // Prevent from going up from first and down from last\n\n index = index < 0 ? 0 : index > this.visibleData.length - 1 ? this.visibleData.length - 1 : index;\n var row = this.visibleData[index];\n\n if (!this.isRowSelectable(row)) {\n var newIndex = null;\n\n if (pos > 0) {\n for (var i = index; i < this.visibleData.length && newIndex === null; i++) {\n if (this.isRowSelectable(this.visibleData[i])) newIndex = i;\n }\n } else {\n for (var _i = index; _i >= 0 && newIndex === null; _i--) {\n if (this.isRowSelectable(this.visibleData[_i])) newIndex = _i;\n }\n }\n\n if (newIndex >= 0) {\n this.selectRow(this.visibleData[newIndex]);\n }\n } else {\n this.selectRow(row);\n }\n },\n\n /**\r\n * Focus table element if has selected prop.\r\n */\n focus: function focus() {\n if (!this.focusable) return;\n this.$el.querySelector('table').focus();\n },\n\n /**\r\n * Initial sorted column based on the default-sort prop.\r\n */\n initSort: function initSort() {\n var _this7 = this;\n\n if (!this.backendSorting) {\n if (this.sortMultiple && this.sortMultipleData) {\n this.sortMultipleData.forEach(function (column) {\n _this7.sortMultiColumn(column);\n });\n } else {\n if (!this.defaultSort) return;\n var sortField = '';\n var sortDirection = this.defaultSortDirection;\n\n if (Array.isArray(this.defaultSort)) {\n sortField = this.defaultSort[0];\n\n if (this.defaultSort[1]) {\n sortDirection = this.defaultSort[1];\n }\n } else {\n sortField = this.defaultSort;\n }\n\n var sortColumn = this.newColumns.filter(function (column) {\n return column.field === sortField;\n })[0];\n\n if (sortColumn) {\n this.isAsc = sortDirection.toLowerCase() !== 'desc';\n this.sort(sortColumn, true);\n }\n }\n }\n },\n\n /**\r\n * Emits drag start event\r\n */\n handleDragStart: function handleDragStart(event, row, index) {\n this.$emit('dragstart', {\n event: event,\n row: row,\n index: index\n });\n },\n\n /**\r\n * Emits drag leave event\r\n */\n handleDragEnd: function handleDragEnd(event, row, index) {\n this.$emit('dragend', {\n event: event,\n row: row,\n index: index\n });\n },\n\n /**\r\n * Emits drop event\r\n */\n handleDrop: function handleDrop(event, row, index) {\n this.$emit('drop', {\n event: event,\n row: row,\n index: index\n });\n },\n\n /**\r\n * Emits drag over event\r\n */\n handleDragOver: function handleDragOver(event, row, index) {\n this.$emit('dragover', {\n event: event,\n row: row,\n index: index\n });\n },\n\n /**\r\n * Emits drag leave event\r\n */\n handleDragLeave: function handleDragLeave(event, row, index) {\n this.$emit('dragleave', {\n event: event,\n row: row,\n index: index\n });\n }\n },\n mounted: function mounted() {\n this.checkPredefinedDetailedRows();\n this.checkSort();\n },\n beforeDestroy: function beforeDestroy() {\n this.newData = [];\n this.newColumns = [];\n }\n};\n\n/* script */\nconst __vue_script__$2 = script$2;\n\n/* template */\nvar __vue_render__$2 = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"b-table\",class:_vm.rooClasses},[(_vm.mobileCards && _vm.hasSortablenewColumns)?_c('b-table-mobile-sort',{attrs:{\"current-sort-column\":_vm.currentSortColumn,\"sort-multiple\":_vm.sortMultiple,\"sort-multiple-data\":_vm.sortMultipleDataComputed,\"is-asc\":_vm.isAsc,\"columns\":_vm.newColumns,\"placeholder\":_vm.mobileSortPlaceholder,\"icon-pack\":_vm.iconPack,\"sort-icon\":_vm.sortIcon,\"sort-icon-size\":_vm.sortIconSize},on:{\"sort\":function (column, event) { return _vm.sort(column, null, event); },\"removePriority\":function (column) { return _vm.removeSortingPriority(column); }}}):_vm._e(),_vm._v(\" \"),(_vm.paginated && (_vm.paginationPosition === 'top' || _vm.paginationPosition === 'both'))?_c('div',{staticClass:\"top level\"},[_c('div',{staticClass:\"level-left\"},[_vm._t(\"top-left\")],2),_vm._v(\" \"),_c('div',{staticClass:\"level-right\"},[(_vm.paginated)?_c('div',{staticClass:\"level-item\"},[_c('b-pagination',{attrs:{\"icon-pack\":_vm.iconPack,\"total\":_vm.newDataTotal,\"per-page\":_vm.perPage,\"simple\":_vm.paginationSimple,\"size\":_vm.paginationSize,\"current\":_vm.newCurrentPage,\"aria-next-label\":_vm.ariaNextLabel,\"aria-previous-label\":_vm.ariaPreviousLabel,\"aria-page-label\":_vm.ariaPageLabel,\"aria-current-label\":_vm.ariaCurrentLabel},on:{\"change\":_vm.pageChanged}})],1):_vm._e()])]):_vm._e(),_vm._v(\" \"),_c('div',{staticClass:\"table-wrapper\",class:_vm.tableWrapperClasses,style:({\r\n height: _vm.height === undefined ? null :\r\n (isNaN(_vm.height) ? _vm.height : _vm.height + 'px')\r\n })},[_c('table',{staticClass:\"table\",class:_vm.tableClasses,attrs:{\"tabindex\":!_vm.focusable ? false : 0},on:{\"keydown\":[function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"up\",38,$event.key,[\"Up\",\"ArrowUp\"])){ return null; }if($event.target !== $event.currentTarget){ return null; }$event.preventDefault();_vm.pressedArrow(-1);},function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"down\",40,$event.key,[\"Down\",\"ArrowDown\"])){ return null; }if($event.target !== $event.currentTarget){ return null; }$event.preventDefault();_vm.pressedArrow(1);}]}},[(_vm.newColumns.length)?_c('thead',[_c('tr',[(_vm.showDetailRowIcon)?_c('th',{attrs:{\"width\":\"40px\"}}):_vm._e(),_vm._v(\" \"),(_vm.checkable && _vm.checkboxPosition === 'left')?_c('th',{staticClass:\"checkbox-cell\"},[(_vm.headerCheckable)?[_c('b-checkbox',{attrs:{\"value\":_vm.isAllChecked,\"disabled\":_vm.isAllUncheckable},nativeOn:{\"change\":function($event){return _vm.checkAll($event)}}})]:_vm._e()],2):_vm._e(),_vm._v(\" \"),_vm._l((_vm.visibleColumns),function(column,index){return _c('th',{key:index,class:[column.headerClass, {\r\n 'is-current-sort': !_vm.sortMultiple && _vm.currentSortColumn === column,\r\n 'is-sortable': column.sortable,\r\n 'is-sticky': column.sticky,\r\n 'is-unselectable': !column.headerSelectable\r\n }],style:({\r\n width: column.width === undefined ? null :\r\n (isNaN(column.width) ? column.width : column.width + 'px')\r\n }),on:{\"click\":function($event){$event.stopPropagation();_vm.sort(column, null, $event);}}},[_c('div',{staticClass:\"th-wrap\",class:{\r\n 'is-numeric': column.numeric,\r\n 'is-centered': column.centered\r\n }},[(column.$scopedSlots && column.$scopedSlots.header)?[_c('b-slot-component',{attrs:{\"component\":column,\"scoped\":true,\"name\":\"header\",\"tag\":\"span\",\"props\":{ column: column, index: index }}})]:(_vm.$scopedSlots.header)?[_vm._t(\"header\",null,{column:column,index:index})]:[_vm._v(_vm._s(column.label))],_vm._v(\" \"),(_vm.sortMultiple &&\r\n _vm.sortMultipleDataComputed &&\r\n _vm.sortMultipleDataComputed.length > 0 &&\r\n _vm.sortMultipleDataComputed.filter(function (i) { return i.field === column.field; }).length > 0)?[_c('b-icon',{class:{\r\n 'is-desc': _vm.sortMultipleDataComputed.filter(function (i) { return i.field === column.field; })[0].order === 'desc'\r\n },attrs:{\"icon\":_vm.sortIcon,\"pack\":_vm.iconPack,\"both\":\"\",\"size\":_vm.sortIconSize}}),_vm._v(\"\\r\\n \"+_vm._s(_vm.findIndexOfSortData(column))+\"\\r\\n \"),_c('button',{staticClass:\"delete is-small multi-sort-cancel-icon\",attrs:{\"type\":\"button\"},on:{\"click\":function($event){$event.stopPropagation();_vm.removeSortingPriority(column);}}})]:(column.sortable && !_vm.sortMultiple)?_c('b-icon',{class:{\r\n 'is-desc': !_vm.isAsc,\r\n 'is-invisible': _vm.currentSortColumn !== column\r\n },attrs:{\"icon\":_vm.sortIcon,\"pack\":_vm.iconPack,\"both\":\"\",\"size\":_vm.sortIconSize}}):_vm._e()],2)])}),_vm._v(\" \"),(_vm.checkable && _vm.checkboxPosition === 'right')?_c('th',{staticClass:\"checkbox-cell\"},[(_vm.headerCheckable)?[_c('b-checkbox',{attrs:{\"value\":_vm.isAllChecked,\"disabled\":_vm.isAllUncheckable},nativeOn:{\"change\":function($event){return _vm.checkAll($event)}}})]:_vm._e()],2):_vm._e()],2),_vm._v(\" \"),(_vm.hasCustomSubheadings)?_c('tr',{staticClass:\"is-subheading\"},[(_vm.showDetailRowIcon)?_c('th',{attrs:{\"width\":\"40px\"}}):_vm._e(),_vm._v(\" \"),(_vm.checkable && _vm.checkboxPosition === 'left')?_c('th'):_vm._e(),_vm._v(\" \"),_vm._l((_vm.visibleColumns),function(column,index){return _c('th',{key:index,style:({\r\n width: column.width === undefined ? null\r\n : (isNaN(column.width) ? column.width : column.width + 'px') })},[_c('div',{staticClass:\"th-wrap\",class:{\r\n 'is-numeric': column.numeric,\r\n 'is-centered': column.centered\r\n }},[(column.$scopedSlots && column.$scopedSlots.subheading)?[_c('b-slot-component',{attrs:{\"component\":column,\"scoped\":true,\"name\":\"subheading\",\"tag\":\"span\",\"props\":{ column: column, index: index }}})]:(_vm.$scopedSlots.subheading)?[_vm._t(\"subheading\",null,{column:column,index:index})]:[_vm._v(_vm._s(column.subheading))]],2)])}),_vm._v(\" \"),(_vm.checkable && _vm.checkboxPosition === 'right')?_c('th'):_vm._e()],2):_vm._e(),_vm._v(\" \"),(_vm.hasSearchablenewColumns)?_c('tr',[(_vm.showDetailRowIcon)?_c('th',{attrs:{\"width\":\"40px\"}}):_vm._e(),_vm._v(\" \"),(_vm.checkable && _vm.checkboxPosition === 'left')?_c('th'):_vm._e(),_vm._v(\" \"),_vm._l((_vm.visibleColumns),function(column,index){return _c('th',{key:index,style:({\r\n width: column.width === undefined ? null\r\n : (isNaN(column.width) ? column.width : column.width + 'px') })},[_c('div',{staticClass:\"th-wrap\"},[(column.searchable)?[(column.$scopedSlots\r\n && column.$scopedSlots.searchable)?[_c('b-slot-component',{attrs:{\"component\":column,\"scoped\":true,\"name\":\"searchable\",\"tag\":\"span\",\"props\":{ column: column, filters: _vm.filters }}})]:_c('b-input',{attrs:{\"type\":column.numeric ? 'number' : 'text'},nativeOn:{\"[filtersEvent]\":function($event){return _vm.onFiltersEvent($event)}},model:{value:(_vm.filters[column.field]),callback:function ($$v) {_vm.$set(_vm.filters, column.field, $$v);},expression:\"filters[column.field]\"}})]:_vm._e()],2)])}),_vm._v(\" \"),(_vm.checkable && _vm.checkboxPosition === 'right')?_c('th'):_vm._e()],2):_vm._e()]):_vm._e(),_vm._v(\" \"),(_vm.visibleData.length)?_c('tbody',[_vm._l((_vm.visibleData),function(row,index){return [_c('tr',{key:_vm.customRowKey ? row[_vm.customRowKey] : index,class:[_vm.rowClass(row, index), {\r\n 'is-selected': row === _vm.selected,\r\n 'is-checked': _vm.isRowChecked(row),\r\n }],attrs:{\"draggable\":_vm.draggable},on:{\"click\":function($event){_vm.selectRow(row);},\"dblclick\":function($event){_vm.$emit('dblclick', row);},\"mouseenter\":function($event){_vm.$listeners.mouseenter ? _vm.$emit('mouseenter', row) : null;},\"mouseleave\":function($event){_vm.$listeners.mouseleave ? _vm.$emit('mouseleave', row) : null;},\"contextmenu\":function($event){_vm.$emit('contextmenu', row, $event);},\"dragstart\":function($event){_vm.handleDragStart($event, row, index);},\"dragend\":function($event){_vm.handleDragEnd($event, row, index);},\"drop\":function($event){_vm.handleDrop($event, row, index);},\"dragover\":function($event){_vm.handleDragOver($event, row, index);},\"dragleave\":function($event){_vm.handleDragLeave($event, row, index);}}},[(_vm.showDetailRowIcon)?_c('td',{staticClass:\"chevron-cell\"},[(_vm.hasDetailedVisible(row))?_c('a',{attrs:{\"role\":\"button\"},on:{\"click\":function($event){$event.stopPropagation();_vm.toggleDetails(row);}}},[_c('b-icon',{class:{'is-expanded': _vm.isVisibleDetailRow(row)},attrs:{\"icon\":\"chevron-right\",\"pack\":_vm.iconPack,\"both\":\"\"}})],1):_vm._e()]):_vm._e(),_vm._v(\" \"),(_vm.checkable && _vm.checkboxPosition === 'left')?_c('td',{staticClass:\"checkbox-cell\"},[_c('b-checkbox',{attrs:{\"disabled\":!_vm.isRowCheckable(row),\"value\":_vm.isRowChecked(row)},nativeOn:{\"click\":function($event){$event.preventDefault();$event.stopPropagation();_vm.checkRow(row, index, $event);}}})],1):_vm._e(),_vm._v(\" \"),(_vm.$scopedSlots.default)?_vm._t(\"default\",null,{row:row,index:index}):_vm._l((_vm.newColumns),function(column){return _c('BTableColumn',_vm._b({key:column.customKey || column.label,attrs:{\"internal\":\"\"}},'BTableColumn',column,false),[(column.renderHtml)?_c('span',{domProps:{\"innerHTML\":_vm._s(_vm.getValueByPath(row, column.field))}}):[_vm._v(\"\\r\\n \"+_vm._s(_vm.getValueByPath(row, column.field))+\"\\r\\n \")]],2)}),_vm._v(\" \"),(_vm.checkable && _vm.checkboxPosition === 'right')?_c('td',{staticClass:\"checkbox-cell\"},[_c('b-checkbox',{attrs:{\"disabled\":!_vm.isRowCheckable(row),\"value\":_vm.isRowChecked(row)},nativeOn:{\"click\":function($event){$event.preventDefault();$event.stopPropagation();_vm.checkRow(row, index, $event);}}})],1):_vm._e()],2),_vm._v(\" \"),(_vm.isActiveDetailRow(row))?_c('tr',{staticClass:\"detail\"},[_c('td',{attrs:{\"colspan\":_vm.columnCount}},[_c('div',{staticClass:\"detail-container\"},[_vm._t(\"detail\",null,{row:row,index:index})],2)])]):_vm._e(),_vm._v(\" \"),(_vm.isActiveCustomDetailRow(row))?_vm._t(\"detail\",null,{row:row,index:index}):_vm._e()]})],2):_c('tbody',[_c('tr',{staticClass:\"is-empty\"},[_c('td',{attrs:{\"colspan\":_vm.columnCount}},[_vm._t(\"empty\")],2)])]),_vm._v(\" \"),(_vm.$slots.footer !== undefined)?_c('tfoot',[_c('tr',{staticClass:\"table-footer\"},[(_vm.hasCustomFooterSlot())?_vm._t(\"footer\"):_c('th',{attrs:{\"colspan\":_vm.columnCount}},[_vm._t(\"footer\")],2)],2)]):_vm._e()])]),_vm._v(\" \"),((_vm.checkable && _vm.hasBottomLeftSlot()) ||\r\n (_vm.paginated && (_vm.paginationPosition === 'bottom' || _vm.paginationPosition === 'both')))?_c('div',{staticClass:\"level\"},[_c('div',{staticClass:\"level-left\"},[_vm._t(\"bottom-left\")],2),_vm._v(\" \"),_c('div',{staticClass:\"level-right\"},[(_vm.paginated)?_c('div',{staticClass:\"level-item\"},[_c('b-pagination',{attrs:{\"icon-pack\":_vm.iconPack,\"total\":_vm.newDataTotal,\"per-page\":_vm.perPage,\"simple\":_vm.paginationSimple,\"size\":_vm.paginationSize,\"current\":_vm.newCurrentPage,\"aria-next-label\":_vm.ariaNextLabel,\"aria-previous-label\":_vm.ariaPreviousLabel,\"aria-page-label\":_vm.ariaPageLabel,\"aria-current-label\":_vm.ariaCurrentLabel},on:{\"change\":_vm.pageChanged}})],1):_vm._e()])]):_vm._e()],1)};\nvar __vue_staticRenderFns__$2 = [];\n\n /* style */\n const __vue_inject_styles__$2 = undefined;\n /* scoped */\n const __vue_scope_id__$2 = undefined;\n /* module identifier */\n const __vue_module_identifier__$2 = undefined;\n /* functional template */\n const __vue_is_functional_template__$2 = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Table = __vue_normalize__(\n { render: __vue_render__$2, staticRenderFns: __vue_staticRenderFns__$2 },\n __vue_inject_styles__$2,\n __vue_script__$2,\n __vue_scope_id__$2,\n __vue_is_functional_template__$2,\n __vue_module_identifier__$2,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Table);\n registerComponent(Vue, TableColumn);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Table as BTable, TableColumn as BTableColumn };\n","import { _ as _defineProperty } from './chunk-1fafdf15.js';\nimport './helpers.js';\nimport { c as config } from './chunk-6985c8ce.js';\nimport { I as Icon } from './chunk-cdfca85b.js';\nimport { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport { S as SlotComponent } from './chunk-0e3f4fb5.js';\n\nvar _components;\nvar script = {\n name: 'BTabs',\n components: (_components = {}, _defineProperty(_components, Icon.name, Icon), _defineProperty(_components, SlotComponent.name, SlotComponent), _components),\n props: {\n value: [Number, String],\n expanded: Boolean,\n type: String,\n size: String,\n position: String,\n animated: {\n type: Boolean,\n default: function _default() {\n return config.defaultTabsAnimated;\n }\n },\n destroyOnHide: {\n type: Boolean,\n default: false\n },\n vertical: Boolean,\n multiline: Boolean\n },\n data: function data() {\n return {\n activeTab: 0,\n defaultSlots: [],\n contentHeight: 0,\n isTransitioning: false,\n _isTabs: true // Used internally by TabItem\n\n };\n },\n computed: {\n mainClasses: function mainClasses() {\n return _defineProperty({\n 'is-fullwidth': this.expanded,\n 'is-vertical': this.vertical,\n 'is-multiline': this.multiline\n }, this.position, this.position && this.vertical);\n },\n navClasses: function navClasses() {\n var _ref2;\n\n return [this.type, this.size, (_ref2 = {}, _defineProperty(_ref2, this.position, this.position && !this.vertical), _defineProperty(_ref2, 'is-fullwidth', this.expanded), _defineProperty(_ref2, 'is-toggle-rounded is-toggle', this.type === 'is-toggle-rounded'), _ref2)];\n },\n tabItems: function tabItems() {\n return this.defaultSlots.filter(function (vnode) {\n return vnode.componentInstance && vnode.componentInstance.$data && vnode.componentInstance.$data._isTabItem;\n }).map(function (vnode) {\n return vnode.componentInstance;\n });\n }\n },\n watch: {\n /**\r\n * When v-model is changed set the new active tab.\r\n */\n value: function value(_value) {\n var index = this.getIndexByValue(_value, _value);\n this.changeTab(index);\n },\n\n /**\r\n * When tab-items are updated, set active one.\r\n */\n tabItems: function tabItems() {\n var _this = this;\n\n if (this.activeTab < this.tabItems.length) {\n var previous = this.activeTab;\n this.tabItems.map(function (tab, idx) {\n if (tab.isActive) {\n previous = idx;\n\n if (previous < _this.tabItems.length) {\n _this.tabItems[previous].isActive = false;\n }\n }\n });\n this.tabItems[this.activeTab].isActive = true;\n } else if (this.activeTab > 0) {\n this.changeTab(this.activeTab - 1);\n }\n }\n },\n methods: {\n /**\r\n * Change the active tab and emit change event.\r\n */\n changeTab: function changeTab(newIndex) {\n if (this.activeTab === newIndex || this.tabItems[newIndex] === undefined) return;\n\n if (this.activeTab < this.tabItems.length) {\n this.tabItems[this.activeTab].deactivate(this.activeTab, newIndex);\n }\n\n this.tabItems[newIndex].activate(this.activeTab, newIndex);\n this.activeTab = newIndex;\n this.$emit('change', this.getValueByIndex(newIndex));\n },\n\n /**\r\n * Tab click listener, emit input event and change active tab.\r\n */\n tabClick: function tabClick(index) {\n if (this.activeTab === index) return;\n this.$emit('input', this.getValueByIndex(index));\n this.changeTab(index);\n },\n refreshSlots: function refreshSlots() {\n this.defaultSlots = this.$slots.default || [];\n },\n getIndexByValue: function getIndexByValue(value) {\n var index = this.tabItems.map(function (t) {\n return t.$options.propsData ? t.$options.propsData.value : undefined;\n }).indexOf(value);\n return index >= 0 ? index : value;\n },\n getValueByIndex: function getValueByIndex(index) {\n var propsData = this.tabItems[index].$options.propsData;\n return propsData && propsData.value ? propsData.value : index;\n }\n },\n mounted: function mounted() {\n this.activeTab = this.getIndexByValue(this.value || 0);\n\n if (this.activeTab < this.tabItems.length) {\n this.tabItems[this.activeTab].isActive = true;\n }\n\n this.refreshSlots();\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"b-tabs\",class:_vm.mainClasses},[_c('nav',{staticClass:\"tabs\",class:_vm.navClasses},[_c('ul',_vm._l((_vm.tabItems),function(tabItem,index){return _c('li',{directives:[{name:\"show\",rawName:\"v-show\",value:(tabItem.visible),expression:\"tabItem.visible\"}],key:index,class:{ 'is-active': _vm.activeTab === index, 'is-disabled': tabItem.disabled }},[(tabItem.$slots.header)?_c('b-slot-component',{attrs:{\"component\":tabItem,\"name\":\"header\",\"tag\":\"a\"},nativeOn:{\"click\":function($event){_vm.tabClick(index);}}}):_c('a',{on:{\"click\":function($event){_vm.tabClick(index);}}},[(tabItem.icon)?_c('b-icon',{attrs:{\"icon\":tabItem.icon,\"pack\":tabItem.iconPack,\"size\":_vm.size}}):_vm._e(),_vm._v(\" \"),_c('span',[_vm._v(_vm._s(tabItem.label))])],1)],1)}))]),_vm._v(\" \"),_c('section',{staticClass:\"tab-content\",class:{'is-transitioning': _vm.isTransitioning}},[_vm._t(\"default\")],2)])};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Tabs = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar script$1 = {\n name: 'BTabItem',\n props: {\n label: String,\n icon: String,\n iconPack: String,\n disabled: Boolean,\n visible: {\n type: Boolean,\n default: true\n },\n value: [String, Number]\n },\n data: function data() {\n return {\n isActive: false,\n transitionName: null,\n _isTabItem: true // Used internally by Tab\n\n };\n },\n methods: {\n /**\r\n * Activate tab, alter animation name based on the index.\r\n */\n activate: function activate(oldIndex, index) {\n this.transitionName = index < oldIndex ? this.$parent.vertical ? 'slide-down' : 'slide-next' : this.$parent.vertical ? 'slide-up' : 'slide-prev';\n this.isActive = true;\n },\n\n /**\r\n * Deactivate tab, alter animation name based on the index.\r\n */\n deactivate: function deactivate(oldIndex, index) {\n this.transitionName = index < oldIndex ? this.$parent.vertical ? 'slide-down' : 'slide-next' : this.$parent.vertical ? 'slide-up' : 'slide-prev';\n this.isActive = false;\n }\n },\n created: function created() {\n if (!this.$parent.$data._isTabs) {\n this.$destroy();\n throw new Error('You should wrap bTabItem on a bTabs');\n }\n\n this.$parent.refreshSlots();\n },\n beforeDestroy: function beforeDestroy() {\n this.$parent.refreshSlots();\n },\n render: function render(createElement) {\n var _this = this;\n\n // if destroy apply v-if\n if (this.$parent.destroyOnHide) {\n if (!this.isActive || !this.visible) {\n return;\n }\n }\n\n var vnode = createElement('div', {\n directives: [{\n name: 'show',\n value: this.isActive && this.visible\n }],\n class: 'tab-item'\n }, this.$slots.default); // check animated prop\n\n if (this.$parent.animated) {\n return createElement('transition', {\n props: {\n 'name': this.transitionName\n },\n on: {\n 'before-enter': function beforeEnter() {\n _this.$parent.isTransitioning = true;\n },\n 'after-enter': function afterEnter() {\n _this.$parent.isTransitioning = false;\n }\n }\n }, [vnode]);\n }\n\n return vnode;\n }\n};\n\n/* script */\nconst __vue_script__$1 = script$1;\n\n/* template */\n\n /* style */\n const __vue_inject_styles__$1 = undefined;\n /* scoped */\n const __vue_scope_id__$1 = undefined;\n /* module identifier */\n const __vue_module_identifier__$1 = undefined;\n /* functional template */\n const __vue_is_functional_template__$1 = undefined;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var TabItem = __vue_normalize__(\n {},\n __vue_inject_styles__$1,\n __vue_script__$1,\n __vue_scope_id__$1,\n __vue_is_functional_template__$1,\n __vue_module_identifier__$1,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Tabs);\n registerComponent(Vue, TabItem);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { TabItem as BTabItem, Tabs as BTabs };\n","import { _ as __vue_normalize__ } from './chunk-cca88db8.js';\n\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar script = {\n name: 'BTag',\n props: {\n attached: Boolean,\n closable: Boolean,\n type: String,\n size: String,\n rounded: Boolean,\n disabled: Boolean,\n ellipsis: Boolean,\n tabstop: {\n type: Boolean,\n default: true\n },\n ariaCloseLabel: String,\n closeType: String\n },\n methods: {\n /**\r\n * Emit close event when delete button is clicked\r\n * or delete key is pressed.\r\n */\n close: function close(event) {\n if (this.disabled) return;\n this.$emit('close', event);\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.attached && _vm.closable)?_c('div',{staticClass:\"tags has-addons\"},[_c('span',{staticClass:\"tag\",class:[_vm.type, _vm.size, { 'is-rounded': _vm.rounded }]},[_c('span',{class:{ 'has-ellipsis': _vm.ellipsis }},[_vm._t(\"default\")],2)]),_vm._v(\" \"),_c('a',{staticClass:\"tag is-delete\",class:[_vm.size, _vm.closeType, { 'is-rounded': _vm.rounded }],attrs:{\"role\":\"button\",\"aria-label\":_vm.ariaCloseLabel,\"tabindex\":_vm.tabstop ? 0 : false,\"disabled\":_vm.disabled},on:{\"click\":_vm.close,\"keyup\":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"delete\",[8,46],$event.key,[\"Backspace\",\"Delete\",\"Del\"])){ return null; }$event.preventDefault();return _vm.close($event)}}})]):_c('span',{staticClass:\"tag\",class:[_vm.type, _vm.size, { 'is-rounded': _vm.rounded }]},[_c('span',{class:{ 'has-ellipsis': _vm.ellipsis }},[_vm._t(\"default\")],2),_vm._v(\" \"),(_vm.closable)?_c('a',{staticClass:\"delete is-small\",class:_vm.closeType,attrs:{\"role\":\"button\",\"aria-label\":_vm.ariaCloseLabel,\"disabled\":_vm.disabled,\"tabindex\":_vm.tabstop ? 0 : false},on:{\"click\":_vm.close,\"keyup\":function($event){if(!('button' in $event)&&_vm._k($event.keyCode,\"delete\",[8,46],$event.key,[\"Backspace\",\"Delete\",\"Del\"])){ return null; }$event.preventDefault();return _vm.close($event)}}}):_vm._e()])};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Tag = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nexport { Tag as T };\n","import { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport { T as Tag } from './chunk-7292bea2.js';\nexport { T as BTag } from './chunk-7292bea2.js';\n\n//\n//\n//\n//\n//\n//\nvar script = {\n name: 'BTaglist',\n props: {\n attached: Boolean\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"tags\",class:{ 'has-addons': _vm.attached }},[_vm._t(\"default\")],2)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Taglist = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Tag);\n registerComponent(Vue, Taglist);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Taglist as BTaglist };\n","import { _ as _defineProperty, b as _typeof } from './chunk-1fafdf15.js';\nimport { getValueByPath } from './helpers.js';\nimport { c as config } from './chunk-6985c8ce.js';\nimport { F as FormElementMixin } from './chunk-d0a313ea.js';\nimport './chunk-cdfca85b.js';\nimport { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport './chunk-d1591eb8.js';\nimport { A as Autocomplete } from './chunk-3fcea532.js';\nimport { T as Tag } from './chunk-7292bea2.js';\n\nvar _components;\nvar script = {\n name: 'BTaginput',\n components: (_components = {}, _defineProperty(_components, Autocomplete.name, Autocomplete), _defineProperty(_components, Tag.name, Tag), _components),\n mixins: [FormElementMixin],\n inheritAttrs: false,\n props: {\n value: {\n type: Array,\n default: function _default() {\n return [];\n }\n },\n data: {\n type: Array,\n default: function _default() {\n return [];\n }\n },\n type: String,\n rounded: {\n type: Boolean,\n default: false\n },\n attached: {\n type: Boolean,\n default: false\n },\n maxtags: {\n type: [Number, String],\n required: false\n },\n hasCounter: {\n type: Boolean,\n default: function _default() {\n return config.defaultTaginputHasCounter;\n }\n },\n field: {\n type: String,\n default: 'value'\n },\n autocomplete: Boolean,\n nativeAutocomplete: String,\n openOnFocus: Boolean,\n disabled: Boolean,\n ellipsis: Boolean,\n closable: {\n type: Boolean,\n default: true\n },\n confirmKeyCodes: {\n type: Array,\n default: function _default() {\n return [13, 188];\n }\n },\n removeOnKeys: {\n type: Array,\n default: function _default() {\n return [8];\n }\n },\n allowNew: Boolean,\n onPasteSeparators: {\n type: Array,\n default: function _default() {\n return [','];\n }\n },\n beforeAdding: {\n type: Function,\n default: function _default() {\n return true;\n }\n },\n allowDuplicates: {\n type: Boolean,\n default: false\n },\n checkInfiniteScroll: {\n type: Boolean,\n default: false\n },\n appendToBody: Boolean\n },\n data: function data() {\n return {\n tags: Array.isArray(this.value) ? this.value.slice(0) : this.value || [],\n newTag: '',\n _elementRef: 'input',\n _isTaginput: true\n };\n },\n computed: {\n rootClasses: function rootClasses() {\n return {\n 'is-expanded': this.expanded\n };\n },\n containerClasses: function containerClasses() {\n return {\n 'is-focused': this.isFocused,\n 'is-focusable': this.hasInput\n };\n },\n valueLength: function valueLength() {\n return this.newTag.trim().length;\n },\n defaultSlotName: function defaultSlotName() {\n return this.hasDefaultSlot ? 'default' : 'dontrender';\n },\n emptySlotName: function emptySlotName() {\n return this.hasEmptySlot ? 'empty' : 'dontrender';\n },\n headerSlotName: function headerSlotName() {\n return this.hasHeaderSlot ? 'header' : 'dontrender';\n },\n footerSlotName: function footerSlotName() {\n return this.hasFooterSlot ? 'footer' : 'dontrender';\n },\n hasDefaultSlot: function hasDefaultSlot() {\n return !!this.$scopedSlots.default;\n },\n hasEmptySlot: function hasEmptySlot() {\n return !!this.$slots.empty;\n },\n hasHeaderSlot: function hasHeaderSlot() {\n return !!this.$slots.header;\n },\n hasFooterSlot: function hasFooterSlot() {\n return !!this.$slots.footer;\n },\n\n /**\r\n * Show the input field if a maxtags hasn't been set or reached.\r\n */\n hasInput: function hasInput() {\n return this.maxtags == null || this.tagsLength < this.maxtags;\n },\n tagsLength: function tagsLength() {\n return this.tags.length;\n },\n\n /**\r\n * If Taginput has onPasteSeparators prop,\r\n * returning new RegExp used to split pasted string.\r\n */\n separatorsAsRegExp: function separatorsAsRegExp() {\n var sep = this.onPasteSeparators;\n return sep.length ? new RegExp(sep.map(function (s) {\n return s ? s.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&') : null;\n }).join('|'), 'g') : null;\n }\n },\n watch: {\n /**\r\n * When v-model is changed set internal value.\r\n */\n value: function value(_value) {\n this.tags = Array.isArray(_value) ? _value.slice(0) : _value || [];\n },\n hasInput: function hasInput() {\n if (!this.hasInput) this.onBlur();\n }\n },\n methods: {\n addTag: function addTag(tag) {\n var tagToAdd = tag || this.newTag.trim();\n\n if (tagToAdd) {\n if (!this.autocomplete) {\n var reg = this.separatorsAsRegExp;\n\n if (reg && tagToAdd.match(reg)) {\n tagToAdd.split(reg).map(function (t) {\n return t.trim();\n }).filter(function (t) {\n return t.length !== 0;\n }).map(this.addTag);\n return;\n }\n } // Remove the tag input previously added (if not allowDuplicates).\n\n\n if (!this.allowDuplicates) {\n var index = this.tags.indexOf(tagToAdd);\n\n if (index >= 0) {\n this.tags.splice(index, 1);\n return;\n }\n } // Add the tag input if it is not blank\n // or previously added (if not allowDuplicates).\n\n\n var add = !this.allowDuplicates ? this.tags.indexOf(tagToAdd) === -1 : true;\n\n if (add && this.beforeAdding(tagToAdd)) {\n this.tags.push(tagToAdd);\n this.$emit('input', this.tags);\n this.$emit('add', tagToAdd);\n }\n }\n\n this.newTag = '';\n },\n getNormalizedTagText: function getNormalizedTagText(tag) {\n if (_typeof(tag) === 'object') {\n return getValueByPath(tag, this.field);\n }\n\n return tag;\n },\n customOnBlur: function customOnBlur(event) {\n // Add tag on-blur if not select only\n if (!this.autocomplete) this.addTag();\n this.onBlur(event);\n },\n onSelect: function onSelect(option) {\n var _this = this;\n\n if (!option) return;\n this.addTag(option);\n this.$nextTick(function () {\n _this.newTag = '';\n });\n },\n removeTag: function removeTag(index, event) {\n var tag = this.tags.splice(index, 1)[0];\n this.$emit('input', this.tags);\n this.$emit('remove', tag);\n if (event) event.stopPropagation();\n\n if (this.openOnFocus && this.$refs.autocomplete) {\n this.$refs.autocomplete.focus();\n }\n\n return tag;\n },\n removeLastTag: function removeLastTag() {\n if (this.tagsLength > 0) {\n this.removeTag(this.tagsLength - 1);\n }\n },\n keydown: function keydown(event) {\n if (this.removeOnKeys.indexOf(event.keyCode) !== -1 && !this.newTag.length) {\n this.removeLastTag();\n } // Stop if is to accept select only\n\n\n if (this.autocomplete && !this.allowNew) return;\n\n if (this.confirmKeyCodes.indexOf(event.keyCode) >= 0) {\n event.preventDefault();\n this.addTag();\n }\n },\n onTyping: function onTyping(event) {\n this.$emit('typing', event.trim());\n },\n emitInfiniteScroll: function emitInfiniteScroll() {\n this.$emit('infinite-scroll');\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"taginput control\",class:_vm.rootClasses},[_c('div',{staticClass:\"taginput-container\",class:[_vm.statusType, _vm.size, _vm.containerClasses],attrs:{\"disabled\":_vm.disabled},on:{\"click\":function($event){_vm.hasInput && _vm.focus($event);}}},[_vm._t(\"selected\",_vm._l((_vm.tags),function(tag,index){return _c('b-tag',{key:_vm.getNormalizedTagText(tag) + index,attrs:{\"type\":_vm.type,\"size\":_vm.size,\"rounded\":_vm.rounded,\"attached\":_vm.attached,\"tabstop\":false,\"disabled\":_vm.disabled,\"ellipsis\":_vm.ellipsis,\"closable\":_vm.closable,\"title\":_vm.ellipsis && _vm.getNormalizedTagText(tag)},on:{\"close\":function($event){_vm.removeTag(index, $event);}}},[_vm._t(\"tag\",[_vm._v(\"\\r\\n \"+_vm._s(_vm.getNormalizedTagText(tag))+\"\\r\\n \")],{tag:tag})],2)}),{tags:_vm.tags}),_vm._v(\" \"),(_vm.hasInput)?_c('b-autocomplete',_vm._b({ref:\"autocomplete\",attrs:{\"data\":_vm.data,\"field\":_vm.field,\"icon\":_vm.icon,\"icon-pack\":_vm.iconPack,\"maxlength\":_vm.maxlength,\"has-counter\":false,\"size\":_vm.size,\"disabled\":_vm.disabled,\"loading\":_vm.loading,\"autocomplete\":_vm.nativeAutocomplete,\"open-on-focus\":_vm.openOnFocus,\"keep-open\":_vm.openOnFocus,\"keep-first\":!_vm.allowNew,\"use-html5-validation\":_vm.useHtml5Validation,\"check-infinite-scroll\":_vm.checkInfiniteScroll,\"append-to-body\":_vm.appendToBody},on:{\"typing\":_vm.onTyping,\"focus\":_vm.onFocus,\"blur\":_vm.customOnBlur,\"select\":_vm.onSelect,\"infinite-scroll\":_vm.emitInfiniteScroll},nativeOn:{\"keydown\":function($event){return _vm.keydown($event)}},scopedSlots:_vm._u([{key:_vm.defaultSlotName,fn:function(props){return [_vm._t(\"default\",null,{option:props.option,index:props.index})]}}]),model:{value:(_vm.newTag),callback:function ($$v) {_vm.newTag=$$v;},expression:\"newTag\"}},'b-autocomplete',_vm.$attrs,false),[_c('template',{slot:_vm.headerSlotName},[_vm._t(\"header\")],2),_vm._v(\" \"),_c('template',{slot:_vm.emptySlotName},[_vm._t(\"empty\")],2),_vm._v(\" \"),_c('template',{slot:_vm.footerSlotName},[_vm._t(\"footer\")],2)],2):_vm._e()],2),_vm._v(\" \"),(_vm.hasCounter && (_vm.maxtags || _vm.maxlength))?_c('small',{staticClass:\"help counter\"},[(_vm.maxlength && _vm.valueLength > 0)?[_vm._v(\"\\r\\n \"+_vm._s(_vm.valueLength)+\" / \"+_vm._s(_vm.maxlength)+\"\\r\\n \")]:(_vm.maxtags)?[_vm._v(\"\\r\\n \"+_vm._s(_vm.tagsLength)+\" / \"+_vm._s(_vm.maxtags)+\"\\r\\n \")]:_vm._e()],2):_vm._e()])};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Taginput = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Taginput);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Taginput as BTaginput };\n","import './chunk-1fafdf15.js';\nimport './helpers.js';\nimport './chunk-6985c8ce.js';\nimport './chunk-d0a313ea.js';\nimport './chunk-cdfca85b.js';\nimport { r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport './chunk-d1591eb8.js';\nimport './chunk-1196ee55.js';\nimport './chunk-42f463e6.js';\nimport './chunk-4d76806f.js';\nimport './chunk-eb60b35a.js';\nimport './chunk-77ffdf8b.js';\nimport { T as Timepicker } from './chunk-a684d1f3.js';\nexport { T as BTimepicker } from './chunk-a684d1f3.js';\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Timepicker);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\n","import './chunk-1fafdf15.js';\nimport { merge } from './helpers.js';\nimport { c as config, V as VueInstance } from './chunk-6985c8ce.js';\nimport { _ as __vue_normalize__, a as registerComponentProgrammatic, u as use } from './chunk-cca88db8.js';\nimport { N as NoticeMixin } from './chunk-53640c15.js';\n\n//\nvar script = {\n name: 'BToast',\n mixins: [NoticeMixin],\n data: function data() {\n return {\n newDuration: this.duration || config.defaultToastDuration\n };\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('transition',{attrs:{\"enter-active-class\":_vm.transition.enter,\"leave-active-class\":_vm.transition.leave}},[_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.isActive),expression:\"isActive\"}],staticClass:\"toast\",class:[_vm.type, _vm.position],attrs:{\"aria-hidden\":!_vm.isActive,\"role\":\"alert\"}},[_c('div',{domProps:{\"innerHTML\":_vm._s(_vm.message)}})])])};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Toast = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar localVueInstance;\nvar ToastProgrammatic = {\n open: function open(params) {\n var parent;\n\n if (typeof params === 'string') {\n params = {\n message: params\n };\n }\n\n var defaultParam = {\n position: config.defaultToastPosition || 'is-top'\n };\n\n if (params.parent) {\n parent = params.parent;\n delete params.parent;\n }\n\n var propsData = merge(defaultParam, params);\n var vm = typeof window !== 'undefined' && window.Vue ? window.Vue : localVueInstance || VueInstance;\n var ToastComponent = vm.extend(Toast);\n return new ToastComponent({\n parent: parent,\n el: document.createElement('div'),\n propsData: propsData\n });\n }\n};\nvar Plugin = {\n install: function install(Vue) {\n localVueInstance = Vue;\n registerComponentProgrammatic(Vue, 'toast', ToastProgrammatic);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Toast as BToast, ToastProgrammatic };\n","import './chunk-6985c8ce.js';\nimport { r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport { T as Tooltip } from './chunk-9ec85033.js';\nexport { T as BTooltip } from './chunk-9ec85033.js';\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Tooltip);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\n","import './chunk-6985c8ce.js';\nimport { F as FormElementMixin } from './chunk-d0a313ea.js';\nimport { _ as __vue_normalize__, r as registerComponent, u as use } from './chunk-cca88db8.js';\nimport { F as File } from './chunk-b9bdb0e4.js';\n\n//\nvar script = {\n name: 'BUpload',\n mixins: [FormElementMixin],\n inheritAttrs: false,\n props: {\n value: {\n type: [Object, Function, File, Array]\n },\n multiple: Boolean,\n disabled: Boolean,\n accept: String,\n dragDrop: Boolean,\n type: {\n type: String,\n default: 'is-primary'\n },\n native: {\n type: Boolean,\n default: false\n },\n expanded: {\n type: Boolean,\n default: false\n }\n },\n data: function data() {\n return {\n newValue: this.value,\n dragDropFocus: false,\n _elementRef: 'input'\n };\n },\n watch: {\n /**\r\n * When v-model is changed:\r\n * 1. Get value from input file\r\n * 2. Set internal value.\r\n * 3. Reset input value if array is empty or when input file is not found in newValue\r\n * 4. If it's invalid, validate again.\r\n */\n value: function value(_value) {\n var inputFiles = this.$refs.input.files;\n this.newValue = _value;\n\n if (!this.newValue || Array.isArray(this.newValue) && this.newValue.length === 0 || !inputFiles[0] || Array.isArray(this.newValue) && !this.newValue.some(function (a) {\n return a.name === inputFiles[0].name;\n })) {\n this.$refs.input.value = null;\n }\n\n !this.isValid && !this.dragDrop && this.checkHtml5Validity();\n }\n },\n methods: {\n /**\r\n * Listen change event on input type 'file',\r\n * emit 'input' event and validate\r\n */\n onFileChange: function onFileChange(event) {\n if (this.disabled || this.loading) return;\n\n if (this.dragDrop) {\n this.updateDragDropFocus(false);\n }\n\n var value = event.target.files || event.dataTransfer.files;\n\n if (value.length === 0) {\n if (!this.newValue) {\n return;\n }\n\n if (this.native) {\n this.newValue = null;\n }\n } else if (!this.multiple) {\n // only one element in case drag drop mode and isn't multiple\n if (this.dragDrop && value.length !== 1) return;else {\n var file = value[0];\n\n if (this.checkType(file)) {\n this.newValue = file;\n } else if (this.newValue) {\n this.newValue = null;\n } else {\n return;\n }\n }\n } else {\n // always new values if native or undefined local\n var newValues = false;\n\n if (this.native || !this.newValue) {\n this.newValue = [];\n newValues = true;\n }\n\n for (var i = 0; i < value.length; i++) {\n var _file = value[i];\n\n if (this.checkType(_file)) {\n this.newValue.push(_file);\n newValues = true;\n }\n }\n\n if (!newValues) {\n return;\n }\n }\n\n this.$emit('input', this.newValue);\n !this.dragDrop && this.checkHtml5Validity();\n },\n\n /**\r\n * Listen drag-drop to update internal variable\r\n */\n updateDragDropFocus: function updateDragDropFocus(focus) {\n if (!this.disabled && !this.loading) {\n this.dragDropFocus = focus;\n }\n },\n\n /**\r\n * Check mime type of file\r\n */\n checkType: function checkType(file) {\n if (!this.accept) return true;\n var types = this.accept.split(',');\n if (types.length === 0) return true;\n var valid = false;\n\n for (var i = 0; i < types.length && !valid; i++) {\n var type = types[i].trim();\n\n if (type) {\n if (type.substring(0, 1) === '.') {\n // check extension\n var extIndex = file.name.lastIndexOf('.');\n var extension = extIndex >= 0 ? file.name.substring(extIndex) : '';\n\n if (extension.toLowerCase() === type.toLowerCase()) {\n valid = true;\n }\n } else {\n // check mime type\n if (file.type.match(type)) {\n valid = true;\n }\n }\n }\n }\n\n return valid;\n }\n }\n};\n\n/* script */\nconst __vue_script__ = script;\n\n/* template */\nvar __vue_render__ = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('label',{staticClass:\"upload control\",class:{'is-expanded' : _vm.expanded}},[(!_vm.dragDrop)?[_vm._t(\"default\")]:_c('div',{staticClass:\"upload-draggable\",class:[_vm.type, {\r\n 'is-loading': _vm.loading,\r\n 'is-disabled': _vm.disabled,\r\n 'is-hovered': _vm.dragDropFocus,\r\n 'is-expanded': _vm.expanded,\r\n }],on:{\"dragover\":function($event){$event.preventDefault();_vm.updateDragDropFocus(true);},\"dragleave\":function($event){$event.preventDefault();_vm.updateDragDropFocus(false);},\"dragenter\":function($event){$event.preventDefault();_vm.updateDragDropFocus(true);},\"drop\":function($event){$event.preventDefault();return _vm.onFileChange($event)}}},[_vm._t(\"default\")],2),_vm._v(\" \"),_c('input',_vm._b({ref:\"input\",attrs:{\"type\":\"file\",\"multiple\":_vm.multiple,\"accept\":_vm.accept,\"disabled\":_vm.disabled},on:{\"change\":_vm.onFileChange}},'input',_vm.$attrs,false))],2)};\nvar __vue_staticRenderFns__ = [];\n\n /* style */\n const __vue_inject_styles__ = undefined;\n /* scoped */\n const __vue_scope_id__ = undefined;\n /* module identifier */\n const __vue_module_identifier__ = undefined;\n /* functional template */\n const __vue_is_functional_template__ = false;\n /* style inject */\n \n /* style inject SSR */\n \n\n \n var Upload = __vue_normalize__(\n { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },\n __vue_inject_styles__,\n __vue_script__,\n __vue_scope_id__,\n __vue_is_functional_template__,\n __vue_module_identifier__,\n undefined,\n undefined\n );\n\nvar Plugin = {\n install: function install(Vue) {\n registerComponent(Vue, Upload);\n }\n};\nuse(Plugin);\n\nexport default Plugin;\nexport { Upload as BUpload };\n","import './chunk-1fafdf15.js';\nimport { merge } from './helpers.js';\nexport { createAbsoluteElement, createNewEvent, escapeRegExpChars, getValueByPath, indexOf, isMobile, merge, multiColumnSort, removeElement, sign } from './helpers.js';\nimport { c as config, s as setOptions, a as setVueInstance } from './chunk-6985c8ce.js';\nimport './chunk-d0a313ea.js';\nimport './chunk-cdfca85b.js';\nimport { a as registerComponentProgrammatic, u as use } from './chunk-cca88db8.js';\nimport './chunk-d1591eb8.js';\nimport './chunk-3fcea532.js';\nimport Plugin from './autocomplete.js';\nexport { default as Autocomplete } from './autocomplete.js';\nimport Plugin$1 from './button.js';\nexport { default as Button } from './button.js';\nimport Plugin$2 from './carousel.js';\nexport { default as Carousel } from './carousel.js';\nimport './chunk-2793447b.js';\nimport './chunk-7bdbd626.js';\nimport Plugin$3 from './checkbox.js';\nexport { default as Checkbox } from './checkbox.js';\nimport Plugin$5 from './collapse.js';\nexport { default as Collapse } from './collapse.js';\nimport './chunk-1196ee55.js';\nimport './chunk-42f463e6.js';\nimport './chunk-4d76806f.js';\nimport './chunk-eb60b35a.js';\nimport Plugin$4 from './clockpicker.js';\nexport { default as Clockpicker } from './clockpicker.js';\nimport './chunk-77ffdf8b.js';\nimport './chunk-66a4ceca.js';\nimport Plugin$6 from './datepicker.js';\nexport { default as Datepicker } from './datepicker.js';\nimport './chunk-a684d1f3.js';\nimport Plugin$7 from './datetimepicker.js';\nexport { default as Datetimepicker } from './datetimepicker.js';\nimport './chunk-0cb0546b.js';\nimport Plugin$8 from './dialog.js';\nexport { default as Dialog, DialogProgrammatic } from './dialog.js';\nimport Plugin$9 from './dropdown.js';\nexport { default as Dropdown } from './dropdown.js';\nimport Plugin$a from './field.js';\nexport { default as Field } from './field.js';\nimport Plugin$b from './icon.js';\nexport { default as Icon } from './icon.js';\nimport Plugin$c from './input.js';\nexport { default as Input } from './input.js';\nimport './chunk-b9bdb0e4.js';\nimport Plugin$d from './loading.js';\nexport { default as Loading, LoadingProgrammatic } from './loading.js';\nimport Plugin$e from './menu.js';\nexport { default as Menu } from './menu.js';\nimport './chunk-0e26d208.js';\nimport Plugin$f from './message.js';\nexport { default as Message } from './message.js';\nimport Plugin$g from './modal.js';\nexport { default as Modal, ModalProgrammatic } from './modal.js';\nimport Plugin$i from './notification.js';\nexport { default as Notification, NotificationProgrammatic } from './notification.js';\nimport './chunk-53640c15.js';\nimport Plugin$h from './navbar.js';\nexport { default as Navbar } from './navbar.js';\nimport Plugin$j from './numberinput.js';\nexport { default as Numberinput } from './numberinput.js';\nimport './chunk-bd608559.js';\nimport Plugin$k from './pagination.js';\nexport { default as Pagination } from './pagination.js';\nimport Plugin$l from './progress.js';\nexport { default as Progress } from './progress.js';\nimport Plugin$m from './radio.js';\nexport { default as Radio } from './radio.js';\nimport Plugin$n from './rate.js';\nexport { default as Rate } from './rate.js';\nimport Plugin$o from './select.js';\nexport { default as Select } from './select.js';\nimport Plugin$p from './skeleton.js';\nexport { default as Skeleton } from './skeleton.js';\nimport Plugin$q from './sidebar.js';\nexport { default as Sidebar } from './sidebar.js';\nimport './chunk-9ec85033.js';\nimport Plugin$r from './slider.js';\nexport { default as Slider } from './slider.js';\nimport Plugin$s from './snackbar.js';\nexport { default as Snackbar, SnackbarProgrammatic } from './snackbar.js';\nimport './chunk-0e3f4fb5.js';\nimport Plugin$t from './steps.js';\nexport { default as Steps } from './steps.js';\nimport Plugin$u from './switch.js';\nexport { default as Switch } from './switch.js';\nimport Plugin$v from './table.js';\nexport { default as Table } from './table.js';\nimport Plugin$w from './tabs.js';\nexport { default as Tabs } from './tabs.js';\nimport './chunk-7292bea2.js';\nimport Plugin$x from './tag.js';\nexport { default as Tag } from './tag.js';\nimport Plugin$y from './taginput.js';\nexport { default as Taginput } from './taginput.js';\nimport Plugin$z from './timepicker.js';\nexport { default as Timepicker } from './timepicker.js';\nimport Plugin$A from './toast.js';\nexport { default as Toast, ToastProgrammatic } from './toast.js';\nimport Plugin$B from './tooltip.js';\nexport { default as Tooltip } from './tooltip.js';\nimport Plugin$C from './upload.js';\nexport { default as Upload } from './upload.js';\n\n\n\nvar components = /*#__PURE__*/Object.freeze({\n Autocomplete: Plugin,\n Button: Plugin$1,\n Carousel: Plugin$2,\n Checkbox: Plugin$3,\n Clockpicker: Plugin$4,\n Collapse: Plugin$5,\n Datepicker: Plugin$6,\n Datetimepicker: Plugin$7,\n Dialog: Plugin$8,\n Dropdown: Plugin$9,\n Field: Plugin$a,\n Icon: Plugin$b,\n Input: Plugin$c,\n Loading: Plugin$d,\n Menu: Plugin$e,\n Message: Plugin$f,\n Modal: Plugin$g,\n Navbar: Plugin$h,\n Notification: Plugin$i,\n Numberinput: Plugin$j,\n Pagination: Plugin$k,\n Progress: Plugin$l,\n Radio: Plugin$m,\n Rate: Plugin$n,\n Select: Plugin$o,\n Skeleton: Plugin$p,\n Sidebar: Plugin$q,\n Slider: Plugin$r,\n Snackbar: Plugin$s,\n Steps: Plugin$t,\n Switch: Plugin$u,\n Table: Plugin$v,\n Tabs: Plugin$w,\n Tag: Plugin$x,\n Taginput: Plugin$y,\n Timepicker: Plugin$z,\n Toast: Plugin$A,\n Tooltip: Plugin$B,\n Upload: Plugin$C\n});\n\nvar ConfigComponent = {\n getOptions: function getOptions() {\n return config;\n },\n setOptions: function setOptions$1(options) {\n setOptions(merge(config, options, true));\n }\n};\n\nvar Buefy = {\n install: function install(Vue) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n setVueInstance(Vue); // Options\n\n setOptions(merge(config, options, true)); // Components\n\n for (var componentKey in components) {\n Vue.use(components[componentKey]);\n } // Config component\n\n\n registerComponentProgrammatic(Vue, 'config', ConfigComponent);\n }\n};\nuse(Buefy);\n\nexport default Buefy;\nexport { ConfigComponent as ConfigProgrammatic };\n","/*!\n * The buffer module from node.js, for the browser.\n *\n * @author Feross Aboukhadijeh \n * @license MIT\n */\n/* eslint-disable no-proto */\n\n'use strict'\n\nconst base64 = require('base64-js')\nconst ieee754 = require('ieee754')\nconst customInspectSymbol =\n (typeof Symbol === 'function' && typeof Symbol['for'] === 'function') // eslint-disable-line dot-notation\n ? Symbol['for']('nodejs.util.inspect.custom') // eslint-disable-line dot-notation\n : null\n\nexports.Buffer = Buffer\nexports.SlowBuffer = SlowBuffer\nexports.INSPECT_MAX_BYTES = 50\n\nconst K_MAX_LENGTH = 0x7fffffff\nexports.kMaxLength = K_MAX_LENGTH\n\n/**\n * If `Buffer.TYPED_ARRAY_SUPPORT`:\n * === true Use Uint8Array implementation (fastest)\n * === false Print warning and recommend using `buffer` v4.x which has an Object\n * implementation (most compatible, even IE6)\n *\n * Browsers that support typed arrays are IE 10+, Firefox 4+, Chrome 7+, Safari 5.1+,\n * Opera 11.6+, iOS 4.2+.\n *\n * We report that the browser does not support typed arrays if the are not subclassable\n * using __proto__. Firefox 4-29 lacks support for adding new properties to `Uint8Array`\n * (See: https://bugzilla.mozilla.org/show_bug.cgi?id=695438). IE 10 lacks support\n * for __proto__ and has a buggy typed array implementation.\n */\nBuffer.TYPED_ARRAY_SUPPORT = typedArraySupport()\n\nif (!Buffer.TYPED_ARRAY_SUPPORT && typeof console !== 'undefined' &&\n typeof console.error === 'function') {\n console.error(\n 'This browser lacks typed array (Uint8Array) support which is required by ' +\n '`buffer` v5.x. Use `buffer` v4.x if you require old browser support.'\n )\n}\n\nfunction typedArraySupport () {\n // Can typed array instances can be augmented?\n try {\n const arr = new Uint8Array(1)\n const proto = { foo: function () { return 42 } }\n Object.setPrototypeOf(proto, Uint8Array.prototype)\n Object.setPrototypeOf(arr, proto)\n return arr.foo() === 42\n } catch (e) {\n return false\n }\n}\n\nObject.defineProperty(Buffer.prototype, 'parent', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.buffer\n }\n})\n\nObject.defineProperty(Buffer.prototype, 'offset', {\n enumerable: true,\n get: function () {\n if (!Buffer.isBuffer(this)) return undefined\n return this.byteOffset\n }\n})\n\nfunction createBuffer (length) {\n if (length > K_MAX_LENGTH) {\n throw new RangeError('The value \"' + length + '\" is invalid for option \"size\"')\n }\n // Return an augmented `Uint8Array` instance\n const buf = new Uint8Array(length)\n Object.setPrototypeOf(buf, Buffer.prototype)\n return buf\n}\n\n/**\n * The Buffer constructor returns instances of `Uint8Array` that have their\n * prototype changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of\n * `Uint8Array`, so the returned instances will have all the node `Buffer` methods\n * and the `Uint8Array` methods. Square bracket notation works as expected -- it\n * returns a single octet.\n *\n * The `Uint8Array` prototype remains unmodified.\n */\n\nfunction Buffer (arg, encodingOrOffset, length) {\n // Common case.\n if (typeof arg === 'number') {\n if (typeof encodingOrOffset === 'string') {\n throw new TypeError(\n 'The \"string\" argument must be of type string. Received type number'\n )\n }\n return allocUnsafe(arg)\n }\n return from(arg, encodingOrOffset, length)\n}\n\nBuffer.poolSize = 8192 // not used by this implementation\n\nfunction from (value, encodingOrOffset, length) {\n if (typeof value === 'string') {\n return fromString(value, encodingOrOffset)\n }\n\n if (ArrayBuffer.isView(value)) {\n return fromArrayView(value)\n }\n\n if (value == null) {\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n }\n\n if (isInstance(value, ArrayBuffer) ||\n (value && isInstance(value.buffer, ArrayBuffer))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof SharedArrayBuffer !== 'undefined' &&\n (isInstance(value, SharedArrayBuffer) ||\n (value && isInstance(value.buffer, SharedArrayBuffer)))) {\n return fromArrayBuffer(value, encodingOrOffset, length)\n }\n\n if (typeof value === 'number') {\n throw new TypeError(\n 'The \"value\" argument must not be of type number. Received type number'\n )\n }\n\n const valueOf = value.valueOf && value.valueOf()\n if (valueOf != null && valueOf !== value) {\n return Buffer.from(valueOf, encodingOrOffset, length)\n }\n\n const b = fromObject(value)\n if (b) return b\n\n if (typeof Symbol !== 'undefined' && Symbol.toPrimitive != null &&\n typeof value[Symbol.toPrimitive] === 'function') {\n return Buffer.from(value[Symbol.toPrimitive]('string'), encodingOrOffset, length)\n }\n\n throw new TypeError(\n 'The first argument must be one of type string, Buffer, ArrayBuffer, Array, ' +\n 'or Array-like Object. Received type ' + (typeof value)\n )\n}\n\n/**\n * Functionally equivalent to Buffer(arg, encoding) but throws a TypeError\n * if value is a number.\n * Buffer.from(str[, encoding])\n * Buffer.from(array)\n * Buffer.from(buffer)\n * Buffer.from(arrayBuffer[, byteOffset[, length]])\n **/\nBuffer.from = function (value, encodingOrOffset, length) {\n return from(value, encodingOrOffset, length)\n}\n\n// Note: Change prototype *after* Buffer.from is defined to workaround Chrome bug:\n// https://github.com/feross/buffer/pull/148\nObject.setPrototypeOf(Buffer.prototype, Uint8Array.prototype)\nObject.setPrototypeOf(Buffer, Uint8Array)\n\nfunction assertSize (size) {\n if (typeof size !== 'number') {\n throw new TypeError('\"size\" argument must be of type number')\n } else if (size < 0) {\n throw new RangeError('The value \"' + size + '\" is invalid for option \"size\"')\n }\n}\n\nfunction alloc (size, fill, encoding) {\n assertSize(size)\n if (size <= 0) {\n return createBuffer(size)\n }\n if (fill !== undefined) {\n // Only pay attention to encoding if it's a string. This\n // prevents accidentally sending in a number that would\n // be interpreted as a start offset.\n return typeof encoding === 'string'\n ? createBuffer(size).fill(fill, encoding)\n : createBuffer(size).fill(fill)\n }\n return createBuffer(size)\n}\n\n/**\n * Creates a new filled Buffer instance.\n * alloc(size[, fill[, encoding]])\n **/\nBuffer.alloc = function (size, fill, encoding) {\n return alloc(size, fill, encoding)\n}\n\nfunction allocUnsafe (size) {\n assertSize(size)\n return createBuffer(size < 0 ? 0 : checked(size) | 0)\n}\n\n/**\n * Equivalent to Buffer(num), by default creates a non-zero-filled Buffer instance.\n * */\nBuffer.allocUnsafe = function (size) {\n return allocUnsafe(size)\n}\n/**\n * Equivalent to SlowBuffer(num), by default creates a non-zero-filled Buffer instance.\n */\nBuffer.allocUnsafeSlow = function (size) {\n return allocUnsafe(size)\n}\n\nfunction fromString (string, encoding) {\n if (typeof encoding !== 'string' || encoding === '') {\n encoding = 'utf8'\n }\n\n if (!Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n\n const length = byteLength(string, encoding) | 0\n let buf = createBuffer(length)\n\n const actual = buf.write(string, encoding)\n\n if (actual !== length) {\n // Writing a hex string, for example, that contains invalid characters will\n // cause everything after the first invalid character to be ignored. (e.g.\n // 'abxxcd' will be treated as 'ab')\n buf = buf.slice(0, actual)\n }\n\n return buf\n}\n\nfunction fromArrayLike (array) {\n const length = array.length < 0 ? 0 : checked(array.length) | 0\n const buf = createBuffer(length)\n for (let i = 0; i < length; i += 1) {\n buf[i] = array[i] & 255\n }\n return buf\n}\n\nfunction fromArrayView (arrayView) {\n if (isInstance(arrayView, Uint8Array)) {\n const copy = new Uint8Array(arrayView)\n return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength)\n }\n return fromArrayLike(arrayView)\n}\n\nfunction fromArrayBuffer (array, byteOffset, length) {\n if (byteOffset < 0 || array.byteLength < byteOffset) {\n throw new RangeError('\"offset\" is outside of buffer bounds')\n }\n\n if (array.byteLength < byteOffset + (length || 0)) {\n throw new RangeError('\"length\" is outside of buffer bounds')\n }\n\n let buf\n if (byteOffset === undefined && length === undefined) {\n buf = new Uint8Array(array)\n } else if (length === undefined) {\n buf = new Uint8Array(array, byteOffset)\n } else {\n buf = new Uint8Array(array, byteOffset, length)\n }\n\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(buf, Buffer.prototype)\n\n return buf\n}\n\nfunction fromObject (obj) {\n if (Buffer.isBuffer(obj)) {\n const len = checked(obj.length) | 0\n const buf = createBuffer(len)\n\n if (buf.length === 0) {\n return buf\n }\n\n obj.copy(buf, 0, 0, len)\n return buf\n }\n\n if (obj.length !== undefined) {\n if (typeof obj.length !== 'number' || numberIsNaN(obj.length)) {\n return createBuffer(0)\n }\n return fromArrayLike(obj)\n }\n\n if (obj.type === 'Buffer' && Array.isArray(obj.data)) {\n return fromArrayLike(obj.data)\n }\n}\n\nfunction checked (length) {\n // Note: cannot use `length < K_MAX_LENGTH` here because that fails when\n // length is NaN (which is otherwise coerced to zero.)\n if (length >= K_MAX_LENGTH) {\n throw new RangeError('Attempt to allocate Buffer larger than maximum ' +\n 'size: 0x' + K_MAX_LENGTH.toString(16) + ' bytes')\n }\n return length | 0\n}\n\nfunction SlowBuffer (length) {\n if (+length != length) { // eslint-disable-line eqeqeq\n length = 0\n }\n return Buffer.alloc(+length)\n}\n\nBuffer.isBuffer = function isBuffer (b) {\n return b != null && b._isBuffer === true &&\n b !== Buffer.prototype // so Buffer.isBuffer(Buffer.prototype) will be false\n}\n\nBuffer.compare = function compare (a, b) {\n if (isInstance(a, Uint8Array)) a = Buffer.from(a, a.offset, a.byteLength)\n if (isInstance(b, Uint8Array)) b = Buffer.from(b, b.offset, b.byteLength)\n if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) {\n throw new TypeError(\n 'The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array'\n )\n }\n\n if (a === b) return 0\n\n let x = a.length\n let y = b.length\n\n for (let i = 0, len = Math.min(x, y); i < len; ++i) {\n if (a[i] !== b[i]) {\n x = a[i]\n y = b[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\nBuffer.isEncoding = function isEncoding (encoding) {\n switch (String(encoding).toLowerCase()) {\n case 'hex':\n case 'utf8':\n case 'utf-8':\n case 'ascii':\n case 'latin1':\n case 'binary':\n case 'base64':\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return true\n default:\n return false\n }\n}\n\nBuffer.concat = function concat (list, length) {\n if (!Array.isArray(list)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n }\n\n if (list.length === 0) {\n return Buffer.alloc(0)\n }\n\n let i\n if (length === undefined) {\n length = 0\n for (i = 0; i < list.length; ++i) {\n length += list[i].length\n }\n }\n\n const buffer = Buffer.allocUnsafe(length)\n let pos = 0\n for (i = 0; i < list.length; ++i) {\n let buf = list[i]\n if (isInstance(buf, Uint8Array)) {\n if (pos + buf.length > buffer.length) {\n if (!Buffer.isBuffer(buf)) buf = Buffer.from(buf)\n buf.copy(buffer, pos)\n } else {\n Uint8Array.prototype.set.call(\n buffer,\n buf,\n pos\n )\n }\n } else if (!Buffer.isBuffer(buf)) {\n throw new TypeError('\"list\" argument must be an Array of Buffers')\n } else {\n buf.copy(buffer, pos)\n }\n pos += buf.length\n }\n return buffer\n}\n\nfunction byteLength (string, encoding) {\n if (Buffer.isBuffer(string)) {\n return string.length\n }\n if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {\n return string.byteLength\n }\n if (typeof string !== 'string') {\n throw new TypeError(\n 'The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. ' +\n 'Received type ' + typeof string\n )\n }\n\n const len = string.length\n const mustMatch = (arguments.length > 2 && arguments[2] === true)\n if (!mustMatch && len === 0) return 0\n\n // Use a for loop to avoid recursion\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'ascii':\n case 'latin1':\n case 'binary':\n return len\n case 'utf8':\n case 'utf-8':\n return utf8ToBytes(string).length\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return len * 2\n case 'hex':\n return len >>> 1\n case 'base64':\n return base64ToBytes(string).length\n default:\n if (loweredCase) {\n return mustMatch ? -1 : utf8ToBytes(string).length // assume utf8\n }\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\nBuffer.byteLength = byteLength\n\nfunction slowToString (encoding, start, end) {\n let loweredCase = false\n\n // No need to verify that \"this.length <= MAX_UINT32\" since it's a read-only\n // property of a typed array.\n\n // This behaves neither like String nor Uint8Array in that we set start/end\n // to their upper/lower bounds if the value passed is out of range.\n // undefined is handled specially as per ECMA-262 6th Edition,\n // Section 13.3.3.7 Runtime Semantics: KeyedBindingInitialization.\n if (start === undefined || start < 0) {\n start = 0\n }\n // Return early if start > this.length. Done here to prevent potential uint32\n // coercion fail below.\n if (start > this.length) {\n return ''\n }\n\n if (end === undefined || end > this.length) {\n end = this.length\n }\n\n if (end <= 0) {\n return ''\n }\n\n // Force coercion to uint32. This will also coerce falsey/NaN values to 0.\n end >>>= 0\n start >>>= 0\n\n if (end <= start) {\n return ''\n }\n\n if (!encoding) encoding = 'utf8'\n\n while (true) {\n switch (encoding) {\n case 'hex':\n return hexSlice(this, start, end)\n\n case 'utf8':\n case 'utf-8':\n return utf8Slice(this, start, end)\n\n case 'ascii':\n return asciiSlice(this, start, end)\n\n case 'latin1':\n case 'binary':\n return latin1Slice(this, start, end)\n\n case 'base64':\n return base64Slice(this, start, end)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return utf16leSlice(this, start, end)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = (encoding + '').toLowerCase()\n loweredCase = true\n }\n }\n}\n\n// This property is used by `Buffer.isBuffer` (and the `is-buffer` npm package)\n// to detect a Buffer instance. It's not possible to use `instanceof Buffer`\n// reliably in a browserify context because there could be multiple different\n// copies of the 'buffer' package in use. This method works even for Buffer\n// instances that were created from another copy of the `buffer` package.\n// See: https://github.com/feross/buffer/issues/154\nBuffer.prototype._isBuffer = true\n\nfunction swap (b, n, m) {\n const i = b[n]\n b[n] = b[m]\n b[m] = i\n}\n\nBuffer.prototype.swap16 = function swap16 () {\n const len = this.length\n if (len % 2 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 16-bits')\n }\n for (let i = 0; i < len; i += 2) {\n swap(this, i, i + 1)\n }\n return this\n}\n\nBuffer.prototype.swap32 = function swap32 () {\n const len = this.length\n if (len % 4 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 32-bits')\n }\n for (let i = 0; i < len; i += 4) {\n swap(this, i, i + 3)\n swap(this, i + 1, i + 2)\n }\n return this\n}\n\nBuffer.prototype.swap64 = function swap64 () {\n const len = this.length\n if (len % 8 !== 0) {\n throw new RangeError('Buffer size must be a multiple of 64-bits')\n }\n for (let i = 0; i < len; i += 8) {\n swap(this, i, i + 7)\n swap(this, i + 1, i + 6)\n swap(this, i + 2, i + 5)\n swap(this, i + 3, i + 4)\n }\n return this\n}\n\nBuffer.prototype.toString = function toString () {\n const length = this.length\n if (length === 0) return ''\n if (arguments.length === 0) return utf8Slice(this, 0, length)\n return slowToString.apply(this, arguments)\n}\n\nBuffer.prototype.toLocaleString = Buffer.prototype.toString\n\nBuffer.prototype.equals = function equals (b) {\n if (!Buffer.isBuffer(b)) throw new TypeError('Argument must be a Buffer')\n if (this === b) return true\n return Buffer.compare(this, b) === 0\n}\n\nBuffer.prototype.inspect = function inspect () {\n let str = ''\n const max = exports.INSPECT_MAX_BYTES\n str = this.toString('hex', 0, max).replace(/(.{2})/g, '$1 ').trim()\n if (this.length > max) str += ' ... '\n return ''\n}\nif (customInspectSymbol) {\n Buffer.prototype[customInspectSymbol] = Buffer.prototype.inspect\n}\n\nBuffer.prototype.compare = function compare (target, start, end, thisStart, thisEnd) {\n if (isInstance(target, Uint8Array)) {\n target = Buffer.from(target, target.offset, target.byteLength)\n }\n if (!Buffer.isBuffer(target)) {\n throw new TypeError(\n 'The \"target\" argument must be one of type Buffer or Uint8Array. ' +\n 'Received type ' + (typeof target)\n )\n }\n\n if (start === undefined) {\n start = 0\n }\n if (end === undefined) {\n end = target ? target.length : 0\n }\n if (thisStart === undefined) {\n thisStart = 0\n }\n if (thisEnd === undefined) {\n thisEnd = this.length\n }\n\n if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {\n throw new RangeError('out of range index')\n }\n\n if (thisStart >= thisEnd && start >= end) {\n return 0\n }\n if (thisStart >= thisEnd) {\n return -1\n }\n if (start >= end) {\n return 1\n }\n\n start >>>= 0\n end >>>= 0\n thisStart >>>= 0\n thisEnd >>>= 0\n\n if (this === target) return 0\n\n let x = thisEnd - thisStart\n let y = end - start\n const len = Math.min(x, y)\n\n const thisCopy = this.slice(thisStart, thisEnd)\n const targetCopy = target.slice(start, end)\n\n for (let i = 0; i < len; ++i) {\n if (thisCopy[i] !== targetCopy[i]) {\n x = thisCopy[i]\n y = targetCopy[i]\n break\n }\n }\n\n if (x < y) return -1\n if (y < x) return 1\n return 0\n}\n\n// Finds either the first index of `val` in `buffer` at offset >= `byteOffset`,\n// OR the last index of `val` in `buffer` at offset <= `byteOffset`.\n//\n// Arguments:\n// - buffer - a Buffer to search\n// - val - a string, Buffer, or number\n// - byteOffset - an index into `buffer`; will be clamped to an int32\n// - encoding - an optional encoding, relevant is val is a string\n// - dir - true for indexOf, false for lastIndexOf\nfunction bidirectionalIndexOf (buffer, val, byteOffset, encoding, dir) {\n // Empty buffer means no match\n if (buffer.length === 0) return -1\n\n // Normalize byteOffset\n if (typeof byteOffset === 'string') {\n encoding = byteOffset\n byteOffset = 0\n } else if (byteOffset > 0x7fffffff) {\n byteOffset = 0x7fffffff\n } else if (byteOffset < -0x80000000) {\n byteOffset = -0x80000000\n }\n byteOffset = +byteOffset // Coerce to Number.\n if (numberIsNaN(byteOffset)) {\n // byteOffset: it it's undefined, null, NaN, \"foo\", etc, search whole buffer\n byteOffset = dir ? 0 : (buffer.length - 1)\n }\n\n // Normalize byteOffset: negative offsets start from the end of the buffer\n if (byteOffset < 0) byteOffset = buffer.length + byteOffset\n if (byteOffset >= buffer.length) {\n if (dir) return -1\n else byteOffset = buffer.length - 1\n } else if (byteOffset < 0) {\n if (dir) byteOffset = 0\n else return -1\n }\n\n // Normalize val\n if (typeof val === 'string') {\n val = Buffer.from(val, encoding)\n }\n\n // Finally, search either indexOf (if dir is true) or lastIndexOf\n if (Buffer.isBuffer(val)) {\n // Special case: looking for empty string/buffer always fails\n if (val.length === 0) {\n return -1\n }\n return arrayIndexOf(buffer, val, byteOffset, encoding, dir)\n } else if (typeof val === 'number') {\n val = val & 0xFF // Search for a byte value [0-255]\n if (typeof Uint8Array.prototype.indexOf === 'function') {\n if (dir) {\n return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset)\n } else {\n return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset)\n }\n }\n return arrayIndexOf(buffer, [val], byteOffset, encoding, dir)\n }\n\n throw new TypeError('val must be string, number or Buffer')\n}\n\nfunction arrayIndexOf (arr, val, byteOffset, encoding, dir) {\n let indexSize = 1\n let arrLength = arr.length\n let valLength = val.length\n\n if (encoding !== undefined) {\n encoding = String(encoding).toLowerCase()\n if (encoding === 'ucs2' || encoding === 'ucs-2' ||\n encoding === 'utf16le' || encoding === 'utf-16le') {\n if (arr.length < 2 || val.length < 2) {\n return -1\n }\n indexSize = 2\n arrLength /= 2\n valLength /= 2\n byteOffset /= 2\n }\n }\n\n function read (buf, i) {\n if (indexSize === 1) {\n return buf[i]\n } else {\n return buf.readUInt16BE(i * indexSize)\n }\n }\n\n let i\n if (dir) {\n let foundIndex = -1\n for (i = byteOffset; i < arrLength; i++) {\n if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {\n if (foundIndex === -1) foundIndex = i\n if (i - foundIndex + 1 === valLength) return foundIndex * indexSize\n } else {\n if (foundIndex !== -1) i -= i - foundIndex\n foundIndex = -1\n }\n }\n } else {\n if (byteOffset + valLength > arrLength) byteOffset = arrLength - valLength\n for (i = byteOffset; i >= 0; i--) {\n let found = true\n for (let j = 0; j < valLength; j++) {\n if (read(arr, i + j) !== read(val, j)) {\n found = false\n break\n }\n }\n if (found) return i\n }\n }\n\n return -1\n}\n\nBuffer.prototype.includes = function includes (val, byteOffset, encoding) {\n return this.indexOf(val, byteOffset, encoding) !== -1\n}\n\nBuffer.prototype.indexOf = function indexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, true)\n}\n\nBuffer.prototype.lastIndexOf = function lastIndexOf (val, byteOffset, encoding) {\n return bidirectionalIndexOf(this, val, byteOffset, encoding, false)\n}\n\nfunction hexWrite (buf, string, offset, length) {\n offset = Number(offset) || 0\n const remaining = buf.length - offset\n if (!length) {\n length = remaining\n } else {\n length = Number(length)\n if (length > remaining) {\n length = remaining\n }\n }\n\n const strLen = string.length\n\n if (length > strLen / 2) {\n length = strLen / 2\n }\n let i\n for (i = 0; i < length; ++i) {\n const parsed = parseInt(string.substr(i * 2, 2), 16)\n if (numberIsNaN(parsed)) return i\n buf[offset + i] = parsed\n }\n return i\n}\n\nfunction utf8Write (buf, string, offset, length) {\n return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nfunction asciiWrite (buf, string, offset, length) {\n return blitBuffer(asciiToBytes(string), buf, offset, length)\n}\n\nfunction base64Write (buf, string, offset, length) {\n return blitBuffer(base64ToBytes(string), buf, offset, length)\n}\n\nfunction ucs2Write (buf, string, offset, length) {\n return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length)\n}\n\nBuffer.prototype.write = function write (string, offset, length, encoding) {\n // Buffer#write(string)\n if (offset === undefined) {\n encoding = 'utf8'\n length = this.length\n offset = 0\n // Buffer#write(string, encoding)\n } else if (length === undefined && typeof offset === 'string') {\n encoding = offset\n length = this.length\n offset = 0\n // Buffer#write(string, offset[, length][, encoding])\n } else if (isFinite(offset)) {\n offset = offset >>> 0\n if (isFinite(length)) {\n length = length >>> 0\n if (encoding === undefined) encoding = 'utf8'\n } else {\n encoding = length\n length = undefined\n }\n } else {\n throw new Error(\n 'Buffer.write(string, encoding, offset[, length]) is no longer supported'\n )\n }\n\n const remaining = this.length - offset\n if (length === undefined || length > remaining) length = remaining\n\n if ((string.length > 0 && (length < 0 || offset < 0)) || offset > this.length) {\n throw new RangeError('Attempt to write outside buffer bounds')\n }\n\n if (!encoding) encoding = 'utf8'\n\n let loweredCase = false\n for (;;) {\n switch (encoding) {\n case 'hex':\n return hexWrite(this, string, offset, length)\n\n case 'utf8':\n case 'utf-8':\n return utf8Write(this, string, offset, length)\n\n case 'ascii':\n case 'latin1':\n case 'binary':\n return asciiWrite(this, string, offset, length)\n\n case 'base64':\n // Warning: maxLength not taken into account in base64Write\n return base64Write(this, string, offset, length)\n\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return ucs2Write(this, string, offset, length)\n\n default:\n if (loweredCase) throw new TypeError('Unknown encoding: ' + encoding)\n encoding = ('' + encoding).toLowerCase()\n loweredCase = true\n }\n }\n}\n\nBuffer.prototype.toJSON = function toJSON () {\n return {\n type: 'Buffer',\n data: Array.prototype.slice.call(this._arr || this, 0)\n }\n}\n\nfunction base64Slice (buf, start, end) {\n if (start === 0 && end === buf.length) {\n return base64.fromByteArray(buf)\n } else {\n return base64.fromByteArray(buf.slice(start, end))\n }\n}\n\nfunction utf8Slice (buf, start, end) {\n end = Math.min(buf.length, end)\n const res = []\n\n let i = start\n while (i < end) {\n const firstByte = buf[i]\n let codePoint = null\n let bytesPerSequence = (firstByte > 0xEF)\n ? 4\n : (firstByte > 0xDF)\n ? 3\n : (firstByte > 0xBF)\n ? 2\n : 1\n\n if (i + bytesPerSequence <= end) {\n let secondByte, thirdByte, fourthByte, tempCodePoint\n\n switch (bytesPerSequence) {\n case 1:\n if (firstByte < 0x80) {\n codePoint = firstByte\n }\n break\n case 2:\n secondByte = buf[i + 1]\n if ((secondByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0x1F) << 0x6 | (secondByte & 0x3F)\n if (tempCodePoint > 0x7F) {\n codePoint = tempCodePoint\n }\n }\n break\n case 3:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0xC | (secondByte & 0x3F) << 0x6 | (thirdByte & 0x3F)\n if (tempCodePoint > 0x7FF && (tempCodePoint < 0xD800 || tempCodePoint > 0xDFFF)) {\n codePoint = tempCodePoint\n }\n }\n break\n case 4:\n secondByte = buf[i + 1]\n thirdByte = buf[i + 2]\n fourthByte = buf[i + 3]\n if ((secondByte & 0xC0) === 0x80 && (thirdByte & 0xC0) === 0x80 && (fourthByte & 0xC0) === 0x80) {\n tempCodePoint = (firstByte & 0xF) << 0x12 | (secondByte & 0x3F) << 0xC | (thirdByte & 0x3F) << 0x6 | (fourthByte & 0x3F)\n if (tempCodePoint > 0xFFFF && tempCodePoint < 0x110000) {\n codePoint = tempCodePoint\n }\n }\n }\n }\n\n if (codePoint === null) {\n // we did not generate a valid codePoint so insert a\n // replacement char (U+FFFD) and advance only 1 byte\n codePoint = 0xFFFD\n bytesPerSequence = 1\n } else if (codePoint > 0xFFFF) {\n // encode to utf16 (surrogate pair dance)\n codePoint -= 0x10000\n res.push(codePoint >>> 10 & 0x3FF | 0xD800)\n codePoint = 0xDC00 | codePoint & 0x3FF\n }\n\n res.push(codePoint)\n i += bytesPerSequence\n }\n\n return decodeCodePointsArray(res)\n}\n\n// Based on http://stackoverflow.com/a/22747272/680742, the browser with\n// the lowest limit is Chrome, with 0x10000 args.\n// We go 1 magnitude less, for safety\nconst MAX_ARGUMENTS_LENGTH = 0x1000\n\nfunction decodeCodePointsArray (codePoints) {\n const len = codePoints.length\n if (len <= MAX_ARGUMENTS_LENGTH) {\n return String.fromCharCode.apply(String, codePoints) // avoid extra slice()\n }\n\n // Decode in chunks to avoid \"call stack size exceeded\".\n let res = ''\n let i = 0\n while (i < len) {\n res += String.fromCharCode.apply(\n String,\n codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH)\n )\n }\n return res\n}\n\nfunction asciiSlice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i] & 0x7F)\n }\n return ret\n}\n\nfunction latin1Slice (buf, start, end) {\n let ret = ''\n end = Math.min(buf.length, end)\n\n for (let i = start; i < end; ++i) {\n ret += String.fromCharCode(buf[i])\n }\n return ret\n}\n\nfunction hexSlice (buf, start, end) {\n const len = buf.length\n\n if (!start || start < 0) start = 0\n if (!end || end < 0 || end > len) end = len\n\n let out = ''\n for (let i = start; i < end; ++i) {\n out += hexSliceLookupTable[buf[i]]\n }\n return out\n}\n\nfunction utf16leSlice (buf, start, end) {\n const bytes = buf.slice(start, end)\n let res = ''\n // If bytes.length is odd, the last 8 bits must be ignored (same as node.js)\n for (let i = 0; i < bytes.length - 1; i += 2) {\n res += String.fromCharCode(bytes[i] + (bytes[i + 1] * 256))\n }\n return res\n}\n\nBuffer.prototype.slice = function slice (start, end) {\n const len = this.length\n start = ~~start\n end = end === undefined ? len : ~~end\n\n if (start < 0) {\n start += len\n if (start < 0) start = 0\n } else if (start > len) {\n start = len\n }\n\n if (end < 0) {\n end += len\n if (end < 0) end = 0\n } else if (end > len) {\n end = len\n }\n\n if (end < start) end = start\n\n const newBuf = this.subarray(start, end)\n // Return an augmented `Uint8Array` instance\n Object.setPrototypeOf(newBuf, Buffer.prototype)\n\n return newBuf\n}\n\n/*\n * Need to make sure that buffer isn't trying to write out of bounds.\n */\nfunction checkOffset (offset, ext, length) {\n if ((offset % 1) !== 0 || offset < 0) throw new RangeError('offset is not uint')\n if (offset + ext > length) throw new RangeError('Trying to access beyond buffer length')\n}\n\nBuffer.prototype.readUintLE =\nBuffer.prototype.readUIntLE = function readUIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUintBE =\nBuffer.prototype.readUIntBE = function readUIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n checkOffset(offset, byteLength, this.length)\n }\n\n let val = this[offset + --byteLength]\n let mul = 1\n while (byteLength > 0 && (mul *= 0x100)) {\n val += this[offset + --byteLength] * mul\n }\n\n return val\n}\n\nBuffer.prototype.readUint8 =\nBuffer.prototype.readUInt8 = function readUInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n return this[offset]\n}\n\nBuffer.prototype.readUint16LE =\nBuffer.prototype.readUInt16LE = function readUInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return this[offset] | (this[offset + 1] << 8)\n}\n\nBuffer.prototype.readUint16BE =\nBuffer.prototype.readUInt16BE = function readUInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n return (this[offset] << 8) | this[offset + 1]\n}\n\nBuffer.prototype.readUint32LE =\nBuffer.prototype.readUInt32LE = function readUInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return ((this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16)) +\n (this[offset + 3] * 0x1000000)\n}\n\nBuffer.prototype.readUint32BE =\nBuffer.prototype.readUInt32BE = function readUInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] * 0x1000000) +\n ((this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n this[offset + 3])\n}\n\nBuffer.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const lo = first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24\n\n const hi = this[++offset] +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n last * 2 ** 24\n\n return BigInt(lo) + (BigInt(hi) << BigInt(32))\n})\n\nBuffer.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const hi = first * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n const lo = this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last\n\n return (BigInt(hi) << BigInt(32)) + BigInt(lo)\n})\n\nBuffer.prototype.readIntLE = function readIntLE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let val = this[offset]\n let mul = 1\n let i = 0\n while (++i < byteLength && (mul *= 0x100)) {\n val += this[offset + i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readIntBE = function readIntBE (offset, byteLength, noAssert) {\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) checkOffset(offset, byteLength, this.length)\n\n let i = byteLength\n let mul = 1\n let val = this[offset + --i]\n while (i > 0 && (mul *= 0x100)) {\n val += this[offset + --i] * mul\n }\n mul *= 0x80\n\n if (val >= mul) val -= Math.pow(2, 8 * byteLength)\n\n return val\n}\n\nBuffer.prototype.readInt8 = function readInt8 (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 1, this.length)\n if (!(this[offset] & 0x80)) return (this[offset])\n return ((0xff - this[offset] + 1) * -1)\n}\n\nBuffer.prototype.readInt16LE = function readInt16LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset] | (this[offset + 1] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt16BE = function readInt16BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 2, this.length)\n const val = this[offset + 1] | (this[offset] << 8)\n return (val & 0x8000) ? val | 0xFFFF0000 : val\n}\n\nBuffer.prototype.readInt32LE = function readInt32LE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset]) |\n (this[offset + 1] << 8) |\n (this[offset + 2] << 16) |\n (this[offset + 3] << 24)\n}\n\nBuffer.prototype.readInt32BE = function readInt32BE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n\n return (this[offset] << 24) |\n (this[offset + 1] << 16) |\n (this[offset + 2] << 8) |\n (this[offset + 3])\n}\n\nBuffer.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = this[offset + 4] +\n this[offset + 5] * 2 ** 8 +\n this[offset + 6] * 2 ** 16 +\n (last << 24) // Overflow\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(first +\n this[++offset] * 2 ** 8 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 24)\n})\n\nBuffer.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE (offset) {\n offset = offset >>> 0\n validateNumber(offset, 'offset')\n const first = this[offset]\n const last = this[offset + 7]\n if (first === undefined || last === undefined) {\n boundsError(offset, this.length - 8)\n }\n\n const val = (first << 24) + // Overflow\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n this[++offset]\n\n return (BigInt(val) << BigInt(32)) +\n BigInt(this[++offset] * 2 ** 24 +\n this[++offset] * 2 ** 16 +\n this[++offset] * 2 ** 8 +\n last)\n})\n\nBuffer.prototype.readFloatLE = function readFloatLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, true, 23, 4)\n}\n\nBuffer.prototype.readFloatBE = function readFloatBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 4, this.length)\n return ieee754.read(this, offset, false, 23, 4)\n}\n\nBuffer.prototype.readDoubleLE = function readDoubleLE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, true, 52, 8)\n}\n\nBuffer.prototype.readDoubleBE = function readDoubleBE (offset, noAssert) {\n offset = offset >>> 0\n if (!noAssert) checkOffset(offset, 8, this.length)\n return ieee754.read(this, offset, false, 52, 8)\n}\n\nfunction checkInt (buf, value, offset, ext, max, min) {\n if (!Buffer.isBuffer(buf)) throw new TypeError('\"buffer\" argument must be a Buffer instance')\n if (value > max || value < min) throw new RangeError('\"value\" argument is out of bounds')\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n}\n\nBuffer.prototype.writeUintLE =\nBuffer.prototype.writeUIntLE = function writeUIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let mul = 1\n let i = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUintBE =\nBuffer.prototype.writeUIntBE = function writeUIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n byteLength = byteLength >>> 0\n if (!noAssert) {\n const maxBytes = Math.pow(2, 8 * byteLength) - 1\n checkInt(this, value, offset, byteLength, maxBytes, 0)\n }\n\n let i = byteLength - 1\n let mul = 1\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n this[offset + i] = (value / mul) & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeUint8 =\nBuffer.prototype.writeUInt8 = function writeUInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0xff, 0)\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeUint16LE =\nBuffer.prototype.writeUInt16LE = function writeUInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeUint16BE =\nBuffer.prototype.writeUInt16BE = function writeUInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0xffff, 0)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeUint32LE =\nBuffer.prototype.writeUInt32LE = function writeUInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset + 3] = (value >>> 24)\n this[offset + 2] = (value >>> 16)\n this[offset + 1] = (value >>> 8)\n this[offset] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeUint32BE =\nBuffer.prototype.writeUInt32BE = function writeUInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0xffffffff, 0)\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nfunction wrtBigUInt64LE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n lo = lo >> 8\n buf[offset++] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n hi = hi >> 8\n buf[offset++] = hi\n return offset\n}\n\nfunction wrtBigUInt64BE (buf, value, offset, min, max) {\n checkIntBI(value, min, max, buf, offset, 7)\n\n let lo = Number(value & BigInt(0xffffffff))\n buf[offset + 7] = lo\n lo = lo >> 8\n buf[offset + 6] = lo\n lo = lo >> 8\n buf[offset + 5] = lo\n lo = lo >> 8\n buf[offset + 4] = lo\n let hi = Number(value >> BigInt(32) & BigInt(0xffffffff))\n buf[offset + 3] = hi\n hi = hi >> 8\n buf[offset + 2] = hi\n hi = hi >> 8\n buf[offset + 1] = hi\n hi = hi >> 8\n buf[offset] = hi\n return offset + 8\n}\n\nBuffer.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt('0xffffffffffffffff'))\n})\n\nBuffer.prototype.writeIntLE = function writeIntLE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = 0\n let mul = 1\n let sub = 0\n this[offset] = value & 0xFF\n while (++i < byteLength && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeIntBE = function writeIntBE (value, offset, byteLength, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n const limit = Math.pow(2, (8 * byteLength) - 1)\n\n checkInt(this, value, offset, byteLength, limit - 1, -limit)\n }\n\n let i = byteLength - 1\n let mul = 1\n let sub = 0\n this[offset + i] = value & 0xFF\n while (--i >= 0 && (mul *= 0x100)) {\n if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {\n sub = 1\n }\n this[offset + i] = ((value / mul) >> 0) - sub & 0xFF\n }\n\n return offset + byteLength\n}\n\nBuffer.prototype.writeInt8 = function writeInt8 (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 1, 0x7f, -0x80)\n if (value < 0) value = 0xff + value + 1\n this[offset] = (value & 0xff)\n return offset + 1\n}\n\nBuffer.prototype.writeInt16LE = function writeInt16LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n return offset + 2\n}\n\nBuffer.prototype.writeInt16BE = function writeInt16BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 2, 0x7fff, -0x8000)\n this[offset] = (value >>> 8)\n this[offset + 1] = (value & 0xff)\n return offset + 2\n}\n\nBuffer.prototype.writeInt32LE = function writeInt32LE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n this[offset] = (value & 0xff)\n this[offset + 1] = (value >>> 8)\n this[offset + 2] = (value >>> 16)\n this[offset + 3] = (value >>> 24)\n return offset + 4\n}\n\nBuffer.prototype.writeInt32BE = function writeInt32BE (value, offset, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) checkInt(this, value, offset, 4, 0x7fffffff, -0x80000000)\n if (value < 0) value = 0xffffffff + value + 1\n this[offset] = (value >>> 24)\n this[offset + 1] = (value >>> 16)\n this[offset + 2] = (value >>> 8)\n this[offset + 3] = (value & 0xff)\n return offset + 4\n}\n\nBuffer.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE (value, offset = 0) {\n return wrtBigUInt64LE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nBuffer.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE (value, offset = 0) {\n return wrtBigUInt64BE(this, value, offset, -BigInt('0x8000000000000000'), BigInt('0x7fffffffffffffff'))\n})\n\nfunction checkIEEE754 (buf, value, offset, ext, max, min) {\n if (offset + ext > buf.length) throw new RangeError('Index out of range')\n if (offset < 0) throw new RangeError('Index out of range')\n}\n\nfunction writeFloat (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 4, 3.4028234663852886e+38, -3.4028234663852886e+38)\n }\n ieee754.write(buf, value, offset, littleEndian, 23, 4)\n return offset + 4\n}\n\nBuffer.prototype.writeFloatLE = function writeFloatLE (value, offset, noAssert) {\n return writeFloat(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeFloatBE = function writeFloatBE (value, offset, noAssert) {\n return writeFloat(this, value, offset, false, noAssert)\n}\n\nfunction writeDouble (buf, value, offset, littleEndian, noAssert) {\n value = +value\n offset = offset >>> 0\n if (!noAssert) {\n checkIEEE754(buf, value, offset, 8, 1.7976931348623157E+308, -1.7976931348623157E+308)\n }\n ieee754.write(buf, value, offset, littleEndian, 52, 8)\n return offset + 8\n}\n\nBuffer.prototype.writeDoubleLE = function writeDoubleLE (value, offset, noAssert) {\n return writeDouble(this, value, offset, true, noAssert)\n}\n\nBuffer.prototype.writeDoubleBE = function writeDoubleBE (value, offset, noAssert) {\n return writeDouble(this, value, offset, false, noAssert)\n}\n\n// copy(targetBuffer, targetStart=0, sourceStart=0, sourceEnd=buffer.length)\nBuffer.prototype.copy = function copy (target, targetStart, start, end) {\n if (!Buffer.isBuffer(target)) throw new TypeError('argument should be a Buffer')\n if (!start) start = 0\n if (!end && end !== 0) end = this.length\n if (targetStart >= target.length) targetStart = target.length\n if (!targetStart) targetStart = 0\n if (end > 0 && end < start) end = start\n\n // Copy 0 bytes; we're done\n if (end === start) return 0\n if (target.length === 0 || this.length === 0) return 0\n\n // Fatal error conditions\n if (targetStart < 0) {\n throw new RangeError('targetStart out of bounds')\n }\n if (start < 0 || start >= this.length) throw new RangeError('Index out of range')\n if (end < 0) throw new RangeError('sourceEnd out of bounds')\n\n // Are we oob?\n if (end > this.length) end = this.length\n if (target.length - targetStart < end - start) {\n end = target.length - targetStart + start\n }\n\n const len = end - start\n\n if (this === target && typeof Uint8Array.prototype.copyWithin === 'function') {\n // Use built-in when available, missing from IE11\n this.copyWithin(targetStart, start, end)\n } else {\n Uint8Array.prototype.set.call(\n target,\n this.subarray(start, end),\n targetStart\n )\n }\n\n return len\n}\n\n// Usage:\n// buffer.fill(number[, offset[, end]])\n// buffer.fill(buffer[, offset[, end]])\n// buffer.fill(string[, offset[, end]][, encoding])\nBuffer.prototype.fill = function fill (val, start, end, encoding) {\n // Handle string cases:\n if (typeof val === 'string') {\n if (typeof start === 'string') {\n encoding = start\n start = 0\n end = this.length\n } else if (typeof end === 'string') {\n encoding = end\n end = this.length\n }\n if (encoding !== undefined && typeof encoding !== 'string') {\n throw new TypeError('encoding must be a string')\n }\n if (typeof encoding === 'string' && !Buffer.isEncoding(encoding)) {\n throw new TypeError('Unknown encoding: ' + encoding)\n }\n if (val.length === 1) {\n const code = val.charCodeAt(0)\n if ((encoding === 'utf8' && code < 128) ||\n encoding === 'latin1') {\n // Fast path: If `val` fits into a single byte, use that numeric value.\n val = code\n }\n }\n } else if (typeof val === 'number') {\n val = val & 255\n } else if (typeof val === 'boolean') {\n val = Number(val)\n }\n\n // Invalid ranges are not set to a default, so can range check early.\n if (start < 0 || this.length < start || this.length < end) {\n throw new RangeError('Out of range index')\n }\n\n if (end <= start) {\n return this\n }\n\n start = start >>> 0\n end = end === undefined ? this.length : end >>> 0\n\n if (!val) val = 0\n\n let i\n if (typeof val === 'number') {\n for (i = start; i < end; ++i) {\n this[i] = val\n }\n } else {\n const bytes = Buffer.isBuffer(val)\n ? val\n : Buffer.from(val, encoding)\n const len = bytes.length\n if (len === 0) {\n throw new TypeError('The value \"' + val +\n '\" is invalid for argument \"value\"')\n }\n for (i = 0; i < end - start; ++i) {\n this[i + start] = bytes[i % len]\n }\n }\n\n return this\n}\n\n// CUSTOM ERRORS\n// =============\n\n// Simplified versions from Node, changed for Buffer-only usage\nconst errors = {}\nfunction E (sym, getMessage, Base) {\n errors[sym] = class NodeError extends Base {\n constructor () {\n super()\n\n Object.defineProperty(this, 'message', {\n value: getMessage.apply(this, arguments),\n writable: true,\n configurable: true\n })\n\n // Add the error code to the name to include it in the stack trace.\n this.name = `${this.name} [${sym}]`\n // Access the stack to generate the error message including the error code\n // from the name.\n this.stack // eslint-disable-line no-unused-expressions\n // Reset the name to the actual name.\n delete this.name\n }\n\n get code () {\n return sym\n }\n\n set code (value) {\n Object.defineProperty(this, 'code', {\n configurable: true,\n enumerable: true,\n value,\n writable: true\n })\n }\n\n toString () {\n return `${this.name} [${sym}]: ${this.message}`\n }\n }\n}\n\nE('ERR_BUFFER_OUT_OF_BOUNDS',\n function (name) {\n if (name) {\n return `${name} is outside of buffer bounds`\n }\n\n return 'Attempt to access memory outside buffer bounds'\n }, RangeError)\nE('ERR_INVALID_ARG_TYPE',\n function (name, actual) {\n return `The \"${name}\" argument must be of type number. Received type ${typeof actual}`\n }, TypeError)\nE('ERR_OUT_OF_RANGE',\n function (str, range, input) {\n let msg = `The value of \"${str}\" is out of range.`\n let received = input\n if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {\n received = addNumericalSeparator(String(input))\n } else if (typeof input === 'bigint') {\n received = String(input)\n if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {\n received = addNumericalSeparator(received)\n }\n received += 'n'\n }\n msg += ` It must be ${range}. Received ${received}`\n return msg\n }, RangeError)\n\nfunction addNumericalSeparator (val) {\n let res = ''\n let i = val.length\n const start = val[0] === '-' ? 1 : 0\n for (; i >= start + 4; i -= 3) {\n res = `_${val.slice(i - 3, i)}${res}`\n }\n return `${val.slice(0, i)}${res}`\n}\n\n// CHECK FUNCTIONS\n// ===============\n\nfunction checkBounds (buf, offset, byteLength) {\n validateNumber(offset, 'offset')\n if (buf[offset] === undefined || buf[offset + byteLength] === undefined) {\n boundsError(offset, buf.length - (byteLength + 1))\n }\n}\n\nfunction checkIntBI (value, min, max, buf, offset, byteLength) {\n if (value > max || value < min) {\n const n = typeof min === 'bigint' ? 'n' : ''\n let range\n if (byteLength > 3) {\n if (min === 0 || min === BigInt(0)) {\n range = `>= 0${n} and < 2${n} ** ${(byteLength + 1) * 8}${n}`\n } else {\n range = `>= -(2${n} ** ${(byteLength + 1) * 8 - 1}${n}) and < 2 ** ` +\n `${(byteLength + 1) * 8 - 1}${n}`\n }\n } else {\n range = `>= ${min}${n} and <= ${max}${n}`\n }\n throw new errors.ERR_OUT_OF_RANGE('value', range, value)\n }\n checkBounds(buf, offset, byteLength)\n}\n\nfunction validateNumber (value, name) {\n if (typeof value !== 'number') {\n throw new errors.ERR_INVALID_ARG_TYPE(name, 'number', value)\n }\n}\n\nfunction boundsError (value, length, type) {\n if (Math.floor(value) !== value) {\n validateNumber(value, type)\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset', 'an integer', value)\n }\n\n if (length < 0) {\n throw new errors.ERR_BUFFER_OUT_OF_BOUNDS()\n }\n\n throw new errors.ERR_OUT_OF_RANGE(type || 'offset',\n `>= ${type ? 1 : 0} and <= ${length}`,\n value)\n}\n\n// HELPER FUNCTIONS\n// ================\n\nconst INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g\n\nfunction base64clean (str) {\n // Node takes equal signs as end of the Base64 encoding\n str = str.split('=')[0]\n // Node strips out invalid characters like \\n and \\t from the string, base64-js does not\n str = str.trim().replace(INVALID_BASE64_RE, '')\n // Node converts strings with length < 2 to ''\n if (str.length < 2) return ''\n // Node allows for non-padded base64 strings (missing trailing ===), base64-js does not\n while (str.length % 4 !== 0) {\n str = str + '='\n }\n return str\n}\n\nfunction utf8ToBytes (string, units) {\n units = units || Infinity\n let codePoint\n const length = string.length\n let leadSurrogate = null\n const bytes = []\n\n for (let i = 0; i < length; ++i) {\n codePoint = string.charCodeAt(i)\n\n // is surrogate component\n if (codePoint > 0xD7FF && codePoint < 0xE000) {\n // last char was a lead\n if (!leadSurrogate) {\n // no lead yet\n if (codePoint > 0xDBFF) {\n // unexpected trail\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n } else if (i + 1 === length) {\n // unpaired lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n continue\n }\n\n // valid lead\n leadSurrogate = codePoint\n\n continue\n }\n\n // 2 leads in a row\n if (codePoint < 0xDC00) {\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n leadSurrogate = codePoint\n continue\n }\n\n // valid surrogate pair\n codePoint = (leadSurrogate - 0xD800 << 10 | codePoint - 0xDC00) + 0x10000\n } else if (leadSurrogate) {\n // valid bmp char, but last char was a lead\n if ((units -= 3) > -1) bytes.push(0xEF, 0xBF, 0xBD)\n }\n\n leadSurrogate = null\n\n // encode utf8\n if (codePoint < 0x80) {\n if ((units -= 1) < 0) break\n bytes.push(codePoint)\n } else if (codePoint < 0x800) {\n if ((units -= 2) < 0) break\n bytes.push(\n codePoint >> 0x6 | 0xC0,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x10000) {\n if ((units -= 3) < 0) break\n bytes.push(\n codePoint >> 0xC | 0xE0,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else if (codePoint < 0x110000) {\n if ((units -= 4) < 0) break\n bytes.push(\n codePoint >> 0x12 | 0xF0,\n codePoint >> 0xC & 0x3F | 0x80,\n codePoint >> 0x6 & 0x3F | 0x80,\n codePoint & 0x3F | 0x80\n )\n } else {\n throw new Error('Invalid code point')\n }\n }\n\n return bytes\n}\n\nfunction asciiToBytes (str) {\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n // Node's code seems to be doing this and not & 0x7F..\n byteArray.push(str.charCodeAt(i) & 0xFF)\n }\n return byteArray\n}\n\nfunction utf16leToBytes (str, units) {\n let c, hi, lo\n const byteArray = []\n for (let i = 0; i < str.length; ++i) {\n if ((units -= 2) < 0) break\n\n c = str.charCodeAt(i)\n hi = c >> 8\n lo = c % 256\n byteArray.push(lo)\n byteArray.push(hi)\n }\n\n return byteArray\n}\n\nfunction base64ToBytes (str) {\n return base64.toByteArray(base64clean(str))\n}\n\nfunction blitBuffer (src, dst, offset, length) {\n let i\n for (i = 0; i < length; ++i) {\n if ((i + offset >= dst.length) || (i >= src.length)) break\n dst[i + offset] = src[i]\n }\n return i\n}\n\n// ArrayBuffer or Uint8Array objects from other contexts (i.e. iframes) do not pass\n// the `instanceof` check but they should be treated as of that type.\n// See: https://github.com/feross/buffer/issues/166\nfunction isInstance (obj, type) {\n return obj instanceof type ||\n (obj != null && obj.constructor != null && obj.constructor.name != null &&\n obj.constructor.name === type.name)\n}\nfunction numberIsNaN (obj) {\n // For IE11 support\n return obj !== obj // eslint-disable-line no-self-compare\n}\n\n// Create lookup table for `toString('hex')`\n// See: https://github.com/feross/buffer/issues/219\nconst hexSliceLookupTable = (function () {\n const alphabet = '0123456789abcdef'\n const table = new Array(256)\n for (let i = 0; i < 16; ++i) {\n const i16 = i * 16\n for (let j = 0; j < 16; ++j) {\n table[i16 + j] = alphabet[i] + alphabet[j]\n }\n }\n return table\n})()\n\n// Return not function with Error if BigInt not supported\nfunction defineBigIntMethod (fn) {\n return typeof BigInt === 'undefined' ? BufferBigIntNotDefined : fn\n}\n\nfunction BufferBigIntNotDefined () {\n throw new Error('BigInt not supported')\n}\n","module.exports = {\n \"100\": \"Continue\",\n \"101\": \"Switching Protocols\",\n \"102\": \"Processing\",\n \"200\": \"OK\",\n \"201\": \"Created\",\n \"202\": \"Accepted\",\n \"203\": \"Non-Authoritative Information\",\n \"204\": \"No Content\",\n \"205\": \"Reset Content\",\n \"206\": \"Partial Content\",\n \"207\": \"Multi-Status\",\n \"208\": \"Already Reported\",\n \"226\": \"IM Used\",\n \"300\": \"Multiple Choices\",\n \"301\": \"Moved Permanently\",\n \"302\": \"Found\",\n \"303\": \"See Other\",\n \"304\": \"Not Modified\",\n \"305\": \"Use Proxy\",\n \"307\": \"Temporary Redirect\",\n \"308\": \"Permanent Redirect\",\n \"400\": \"Bad Request\",\n \"401\": \"Unauthorized\",\n \"402\": \"Payment Required\",\n \"403\": \"Forbidden\",\n \"404\": \"Not Found\",\n \"405\": \"Method Not Allowed\",\n \"406\": \"Not Acceptable\",\n \"407\": \"Proxy Authentication Required\",\n \"408\": \"Request Timeout\",\n \"409\": \"Conflict\",\n \"410\": \"Gone\",\n \"411\": \"Length Required\",\n \"412\": \"Precondition Failed\",\n \"413\": \"Payload Too Large\",\n \"414\": \"URI Too Long\",\n \"415\": \"Unsupported Media Type\",\n \"416\": \"Range Not Satisfiable\",\n \"417\": \"Expectation Failed\",\n \"418\": \"I'm a teapot\",\n \"421\": \"Misdirected Request\",\n \"422\": \"Unprocessable Entity\",\n \"423\": \"Locked\",\n \"424\": \"Failed Dependency\",\n \"425\": \"Unordered Collection\",\n \"426\": \"Upgrade Required\",\n \"428\": \"Precondition Required\",\n \"429\": \"Too Many Requests\",\n \"431\": \"Request Header Fields Too Large\",\n \"451\": \"Unavailable For Legal Reasons\",\n \"500\": \"Internal Server Error\",\n \"501\": \"Not Implemented\",\n \"502\": \"Bad Gateway\",\n \"503\": \"Service Unavailable\",\n \"504\": \"Gateway Timeout\",\n \"505\": \"HTTP Version Not Supported\",\n \"506\": \"Variant Also Negotiates\",\n \"507\": \"Insufficient Storage\",\n \"508\": \"Loop Detected\",\n \"509\": \"Bandwidth Limit Exceeded\",\n \"510\": \"Not Extended\",\n \"511\": \"Network Authentication Required\"\n}\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar callBind = require('./');\n\nvar $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));\n\nmodule.exports = function callBoundIntrinsic(name, allowMissing) {\n\tvar intrinsic = GetIntrinsic(name, !!allowMissing);\n\tif (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {\n\t\treturn callBind(intrinsic);\n\t}\n\treturn intrinsic;\n};\n","'use strict';\n\nvar bind = require('function-bind');\nvar GetIntrinsic = require('get-intrinsic');\nvar setFunctionLength = require('set-function-length');\n\nvar $TypeError = require('es-errors/type');\nvar $apply = GetIntrinsic('%Function.prototype.apply%');\nvar $call = GetIntrinsic('%Function.prototype.call%');\nvar $reflectApply = GetIntrinsic('%Reflect.apply%', true) || bind.call($call, $apply);\n\nvar $defineProperty = require('es-define-property');\nvar $max = GetIntrinsic('%Math.max%');\n\nmodule.exports = function callBind(originalFunction) {\n\tif (typeof originalFunction !== 'function') {\n\t\tthrow new $TypeError('a function is required');\n\t}\n\tvar func = $reflectApply(bind, $call, arguments);\n\treturn setFunctionLength(\n\t\tfunc,\n\t\t1 + $max(0, originalFunction.length - (arguments.length - 1)),\n\t\ttrue\n\t);\n};\n\nvar applyBind = function applyBind() {\n\treturn $reflectApply(bind, $apply, arguments);\n};\n\nif ($defineProperty) {\n\t$defineProperty(module.exports, 'apply', { value: applyBind });\n} else {\n\tmodule.exports.apply = applyBind;\n}\n","/*global window, global*/\nvar util = require(\"util\")\nvar assert = require(\"assert\")\nfunction now() { return new Date().getTime() }\n\nvar slice = Array.prototype.slice\nvar console\nvar times = {}\n\nif (typeof global !== \"undefined\" && global.console) {\n console = global.console\n} else if (typeof window !== \"undefined\" && window.console) {\n console = window.console\n} else {\n console = {}\n}\n\nvar functions = [\n [log, \"log\"],\n [info, \"info\"],\n [warn, \"warn\"],\n [error, \"error\"],\n [time, \"time\"],\n [timeEnd, \"timeEnd\"],\n [trace, \"trace\"],\n [dir, \"dir\"],\n [consoleAssert, \"assert\"]\n]\n\nfor (var i = 0; i < functions.length; i++) {\n var tuple = functions[i]\n var f = tuple[0]\n var name = tuple[1]\n\n if (!console[name]) {\n console[name] = f\n }\n}\n\nmodule.exports = console\n\nfunction log() {}\n\nfunction info() {\n console.log.apply(console, arguments)\n}\n\nfunction warn() {\n console.log.apply(console, arguments)\n}\n\nfunction error() {\n console.warn.apply(console, arguments)\n}\n\nfunction time(label) {\n times[label] = now()\n}\n\nfunction timeEnd(label) {\n var time = times[label]\n if (!time) {\n throw new Error(\"No such label: \" + label)\n }\n\n delete times[label]\n var duration = now() - time\n console.log(label + \": \" + duration + \"ms\")\n}\n\nfunction trace() {\n var err = new Error()\n err.name = \"Trace\"\n err.message = util.format.apply(null, arguments)\n console.error(err.stack)\n}\n\nfunction dir(object) {\n console.log(util.inspect(object) + \"\\n\")\n}\n\nfunction consoleAssert(expression) {\n if (!expression) {\n var arr = slice.call(arguments, 1)\n assert.ok(false, util.format.apply(null, arr))\n }\n}\n","'use strict';\n\nvar $defineProperty = require('es-define-property');\n\nvar $SyntaxError = require('es-errors/syntax');\nvar $TypeError = require('es-errors/type');\n\nvar gopd = require('gopd');\n\n/** @type {import('.')} */\nmodule.exports = function defineDataProperty(\n\tobj,\n\tproperty,\n\tvalue\n) {\n\tif (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {\n\t\tthrow new $TypeError('`obj` must be an object or a function`');\n\t}\n\tif (typeof property !== 'string' && typeof property !== 'symbol') {\n\t\tthrow new $TypeError('`property` must be a string or a symbol`');\n\t}\n\tif (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {\n\t\tthrow new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');\n\t}\n\tif (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {\n\t\tthrow new $TypeError('`nonWritable`, if provided, must be a boolean or null');\n\t}\n\tif (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {\n\t\tthrow new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');\n\t}\n\tif (arguments.length > 6 && typeof arguments[6] !== 'boolean') {\n\t\tthrow new $TypeError('`loose`, if provided, must be a boolean');\n\t}\n\n\tvar nonEnumerable = arguments.length > 3 ? arguments[3] : null;\n\tvar nonWritable = arguments.length > 4 ? arguments[4] : null;\n\tvar nonConfigurable = arguments.length > 5 ? arguments[5] : null;\n\tvar loose = arguments.length > 6 ? arguments[6] : false;\n\n\t/* @type {false | TypedPropertyDescriptor} */\n\tvar desc = !!gopd && gopd(obj, property);\n\n\tif ($defineProperty) {\n\t\t$defineProperty(obj, property, {\n\t\t\tconfigurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,\n\t\t\tenumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,\n\t\t\tvalue: value,\n\t\t\twritable: nonWritable === null && desc ? desc.writable : !nonWritable\n\t\t});\n\t} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {\n\t\t// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable\n\t\tobj[property] = value; // eslint-disable-line no-param-reassign\n\t} else {\n\t\tthrow new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');\n\t}\n};\n","'use strict';\n\nvar keys = require('object-keys');\nvar hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';\n\nvar toStr = Object.prototype.toString;\nvar concat = Array.prototype.concat;\nvar defineDataProperty = require('define-data-property');\n\nvar isFunction = function (fn) {\n\treturn typeof fn === 'function' && toStr.call(fn) === '[object Function]';\n};\n\nvar supportsDescriptors = require('has-property-descriptors')();\n\nvar defineProperty = function (object, name, value, predicate) {\n\tif (name in object) {\n\t\tif (predicate === true) {\n\t\t\tif (object[name] === value) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t} else if (!isFunction(predicate) || !predicate()) {\n\t\t\treturn;\n\t\t}\n\t}\n\n\tif (supportsDescriptors) {\n\t\tdefineDataProperty(object, name, value, true);\n\t} else {\n\t\tdefineDataProperty(object, name, value);\n\t}\n};\n\nvar defineProperties = function (object, map) {\n\tvar predicates = arguments.length > 2 ? arguments[2] : {};\n\tvar props = keys(map);\n\tif (hasSymbols) {\n\t\tprops = concat.call(props, Object.getOwnPropertySymbols(map));\n\t}\n\tfor (var i = 0; i < props.length; i += 1) {\n\t\tdefineProperty(object, props[i], map[props[i]], predicates[props[i]]);\n\t}\n};\n\ndefineProperties.supportsDescriptors = !!supportsDescriptors;\n\nmodule.exports = defineProperties;\n","/* ========================================================================== \n * dexie-observable.js\n * ==========================================================================\n *\n * Dexie addon for observing database changes not just on local db instance\n * but also on other instances, tabs and windows.\n *\n * Comprises a base framework for dexie-syncable.js\n *\n * By David Fahlander, david.fahlander@gmail.com,\n * Nikolas Poniros, https://github.com/nponiros\n *\n * ==========================================================================\n *\n * Version {version}, {date}\n *\n * http://dexie.org\n *\n * Apache License Version 2.0, January 2004, http://www.apache.org/licenses/\n * \n */\n\nimport Dexie from 'dexie';\n\nfunction nop() { }\nfunction promisableChain(f1, f2) {\n if (f1 === nop)\n return f2;\n return function () {\n var res = f1.apply(this, arguments);\n if (res && typeof res.then === 'function') {\n var thiz = this, args = arguments;\n return res.then(function () {\n return f2.apply(thiz, args);\n });\n }\n return f2.apply(this, arguments);\n };\n}\nfunction createUUID() {\n // Decent solution from http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript\n var d = Date.now();\n var uuid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {\n var r = (d + Math.random() * 16) % 16 | 0;\n d = Math.floor(d / 16);\n return (c === 'x' ? r : (r & 0x7 | 0x8)).toString(16);\n });\n return uuid;\n}\n\nfunction initOverrideCreateTransaction(db, wakeupObservers) {\n return function overrideCreateTransaction(origFunc) {\n return function (mode, storenames, dbschema, parent) {\n if (db.dynamicallyOpened())\n return origFunc.apply(this, arguments); // Don't observe dynamically opened databases.\n var addChanges = false;\n if (mode === 'readwrite' && storenames.some(function (storeName) {\n return dbschema[storeName] && dbschema[storeName].observable;\n })) {\n // At least one included store is a observable store. Make sure to also include the _changes store.\n addChanges = true;\n storenames = storenames.slice(0); // Clone\n if (storenames.indexOf(\"_changes\") === -1)\n storenames.push(\"_changes\"); // Otherwise, firefox will hang... (I've reported the bug to Mozilla@Bugzilla)\n }\n // Call original db._createTransaction()\n var trans = origFunc.call(this, mode, storenames, dbschema, parent);\n // If this transaction is bound to any observable table, make sure to add changes when transaction completes.\n if (addChanges) {\n trans._lastWrittenRevision = 0;\n trans.on('complete', function () {\n if (trans._lastWrittenRevision) {\n // Changes were written in this transaction.\n if (!parent) {\n // This is root-level transaction, i.e. a physical commit has happened.\n // Delay-trigger a wakeup call:\n if (wakeupObservers.timeoutHandle)\n clearTimeout(wakeupObservers.timeoutHandle);\n wakeupObservers.timeoutHandle = setTimeout(function () {\n delete wakeupObservers.timeoutHandle;\n wakeupObservers(trans._lastWrittenRevision);\n }, 25);\n }\n else {\n // This is just a virtual commit of a sub transaction.\n // Wait with waking up observers until root transaction has committed.\n // Make sure to mark root transaction so that it will wakeup observers upon commit.\n var rootTransaction = (function findRootTransaction(trans) {\n return trans.parent ? findRootTransaction(trans.parent) : trans;\n })(parent);\n rootTransaction._lastWrittenRevision = Math.max(trans._lastWrittenRevision, rootTransaction.lastWrittenRevision || 0);\n }\n }\n });\n // Derive \"source\" property from parent transaction by default\n if (trans.parent && trans.parent.source)\n trans.source = trans.parent.source;\n }\n return trans;\n };\n };\n}\n\nfunction initWakeupObservers(db, Observable, localStorage) {\n return function wakeupObservers(lastWrittenRevision) {\n // Make sure Observable.latestRevision[db.name] is still below our value, now when some time has elapsed and other db instances in same window possibly could have made changes too.\n if (Observable.latestRevision[db.name] < lastWrittenRevision) {\n // Set the static property lastRevision[db.name] to the revision of the last written change.\n Observable.latestRevision[db.name] = lastWrittenRevision;\n // Wakeup ourselves, and any other db instances on this window:\n Dexie.ignoreTransaction(function () {\n Observable.on('latestRevisionIncremented').fire(db.name, lastWrittenRevision);\n });\n // Observable.on.latestRevisionIncremented will only wakeup db's in current window.\n // We need a storage event to wakeup other windwos.\n // Since indexedDB lacks storage events, let's use the storage event from WebStorage just for\n // the purpose to wakeup db instances in other windows.\n if (localStorage)\n localStorage.setItem('Dexie.Observable/latestRevision/' + db.name, lastWrittenRevision); // In IE, this will also wakeup our own window. However, onLatestRevisionIncremented will work around this by only running once per revision id.\n }\n };\n}\n\n// Change Types\nvar CREATE = 1;\nvar UPDATE = 2;\nvar DELETE = 3;\n\nfunction initCreatingHook(db, table) {\n return function creatingHook(primKey, obj, trans) {\n /// \n var rv = undefined;\n if (primKey === undefined && table.schema.primKey.uuid) {\n primKey = rv = createUUID();\n if (table.schema.primKey.keyPath) {\n Dexie.setByKeyPath(obj, table.schema.primKey.keyPath, primKey);\n }\n }\n var change = {\n source: trans.source || null,\n table: table.name,\n key: primKey === undefined ? null : primKey,\n type: CREATE,\n obj: obj\n };\n var promise = db._changes.add(change).then(function (rev) {\n trans._lastWrittenRevision = Math.max(trans._lastWrittenRevision, rev);\n return rev;\n });\n // Wait for onsuccess so that we have the primKey if it is auto-incremented and update the change item if so.\n this.onsuccess = function (resultKey) {\n if (primKey != resultKey)\n promise._then(function () {\n change.key = resultKey;\n db._changes.put(change);\n });\n };\n this.onerror = function () {\n // If the main operation fails, make sure to regret the change\n promise._then(function (rev) {\n // Will only happen if app code catches the main operation error to prohibit transaction from aborting.\n db._changes.delete(rev);\n });\n };\n return rv;\n };\n}\n\nfunction initUpdatingHook(db, tableName) {\n return function updatingHook(mods, primKey, oldObj, trans) {\n /// \n // mods may contain property paths with undefined as value if the property\n // is being deleted. Since we cannot persist undefined we need to act\n // like those changes is setting the value to null instead.\n var modsWithoutUndefined = {};\n // As of current Dexie version (1.0.3) hook may be called even if it wouldn't really change.\n // Therefore we may do that kind of optimization here - to not add change entries if\n // there's nothing to change.\n var anythingChanged = false;\n var newObj = Dexie.deepClone(oldObj);\n for (var propPath in mods) {\n var mod = mods[propPath];\n if (typeof mod === 'undefined') {\n Dexie.delByKeyPath(newObj, propPath);\n modsWithoutUndefined[propPath] = null; // Null is as close we could come to deleting a property when not allowing undefined.\n anythingChanged = true;\n }\n else {\n var currentValue = Dexie.getByKeyPath(oldObj, propPath);\n if (mod !== currentValue && JSON.stringify(mod) !== JSON.stringify(currentValue)) {\n Dexie.setByKeyPath(newObj, propPath, mod);\n modsWithoutUndefined[propPath] = mod;\n anythingChanged = true;\n }\n }\n }\n if (anythingChanged) {\n var change = {\n source: trans.source || null,\n table: tableName,\n key: primKey,\n type: UPDATE,\n mods: modsWithoutUndefined,\n oldObj: oldObj,\n obj: newObj\n };\n var promise = db._changes.add(change); // Just so we get the correct revision order of the update...\n this.onsuccess = function () {\n promise._then(function (rev) {\n trans._lastWrittenRevision = Math.max(trans._lastWrittenRevision, rev);\n });\n };\n this.onerror = function () {\n // If the main operation fails, make sure to regret the change.\n promise._then(function (rev) {\n // Will only happen if app code catches the main operation error to prohibit transaction from aborting.\n db._changes.delete(rev);\n });\n };\n }\n };\n}\n\nfunction initDeletingHook(db, tableName) {\n return function deletingHook(primKey, obj, trans) {\n /// \n var promise = db._changes.add({\n source: trans.source || null,\n table: tableName,\n key: primKey,\n type: DELETE,\n oldObj: obj\n }).then(function (rev) {\n trans._lastWrittenRevision = Math.max(trans._lastWrittenRevision, rev);\n return rev;\n })\n .catch(function (e) {\n console.log(obj);\n console.log(e.stack);\n });\n this.onerror = function () {\n // If the main operation fails, make sure to regret the change.\n // Using _then because if promise is already fullfilled, the standard then() would\n // do setTimeout() and we would loose the transaction.\n promise._then(function (rev) {\n // Will only happen if app code catches the main operation error to prohibit transaction from aborting.\n db._changes.delete(rev);\n });\n };\n };\n}\n\nfunction initCrudMonitor(db) {\n //\n // The Creating/Updating/Deleting hook will make sure any change is stored to the changes table\n //\n return function crudMonitor(table) {\n /// \n if (table.hook._observing)\n return;\n table.hook._observing = true;\n var tableName = table.name;\n table.hook('creating').subscribe(initCreatingHook(db, table));\n table.hook('updating').subscribe(initUpdatingHook(db, tableName));\n table.hook('deleting').subscribe(initDeletingHook(db, tableName));\n };\n}\n\nfunction initOnStorage(Observable) {\n return function onStorage(event) {\n // We use the onstorage event to trigger onLatestRevisionIncremented since we will wake up when other windows modify the DB as well!\n if (event.key.indexOf(\"Dexie.Observable/\") === 0) { // For example \"Dexie.Observable/latestRevision/FriendsDB\"\n var parts = event.key.split('/');\n var prop = parts[1];\n var dbname = parts[2];\n if (prop === 'latestRevision') {\n var rev = parseInt(event.newValue, 10);\n if (!isNaN(rev) && rev > Observable.latestRevision[dbname]) {\n Observable.latestRevision[dbname] = rev;\n Dexie.ignoreTransaction(function () {\n Observable.on('latestRevisionIncremented').fire(dbname, rev);\n });\n }\n }\n else if (prop.indexOf(\"deadnode:\") === 0) {\n var nodeID = parseInt(prop.split(':')[1], 10);\n if (event.newValue) {\n Observable.on.suicideNurseCall.fire(dbname, nodeID);\n }\n }\n else if (prop === 'intercomm') {\n if (event.newValue) {\n Observable.on.intercomm.fire(dbname);\n }\n }\n }\n };\n}\n\nfunction initOverrideOpen(db, SyncNode, crudMonitor) {\n return function overrideOpen(origOpen) {\n return function () {\n //\n // Make sure to subscribe to \"creating\", \"updating\" and \"deleting\" hooks for all observable tables that were created in the stores() method.\n //\n Object.keys(db._allTables).forEach(function (tableName) {\n var table = db._allTables[tableName];\n if (table.schema.observable) {\n crudMonitor(table);\n }\n if (table.name === \"_syncNodes\") {\n table.mapToClass(SyncNode);\n }\n });\n return origOpen.apply(this, arguments);\n };\n };\n}\n\nvar Promise = Dexie.Promise;\nfunction initIntercomm(db, Observable, SyncNode, mySyncNode, localStorage) {\n //\n // Intercommunication between nodes\n //\n // Enable inter-process communication between browser windows using localStorage storage event (is registered in Dexie.Observable)\n var requestsWaitingForReply = {};\n /**\n * @param {string} type Type of message\n * @param message Message to send\n * @param {number} destinationNode ID of destination node\n * @param {{wantReply: boolean, isFailure: boolean, requestId: number}} options If {wantReply: true}, the returned promise will complete with the reply from remote. Otherwise it will complete when message has been successfully sent.\n */\n db.observable.sendMessage = function (type, message, destinationNode, options) {\n /// Type of message\n /// Message to send\n /// ID of destination node\n /// {wantReply: Boolean, isFailure: Boolean, requestId: Number}. If wantReply, the returned promise will complete with the reply from remote. Otherwise it will complete when message has been successfully sent.\n options = options || {};\n if (!mySyncNode.node)\n return options.wantReply ?\n Promise.reject(new Dexie.DatabaseClosedError()) :\n Promise.resolve(); // If caller doesn't want a reply, it won't catch errors either.\n var msg = { message: message, destinationNode: destinationNode, sender: mySyncNode.node.id, type: type };\n Dexie.extend(msg, options); // wantReply: wantReply, success: !isFailure, requestId: ...\n return Dexie.ignoreTransaction(function () {\n var tables = [\"_intercomm\"];\n if (options.wantReply)\n tables.push(\"_syncNodes\"); // If caller wants a reply, include \"_syncNodes\" in transaction to check that there's a receiver there. Otherwise, new master will get it.\n var promise = db.transaction('rw', tables, function () {\n if (options.wantReply) {\n // Check that there is a receiver there to take the request.\n return db._syncNodes.where('id').equals(destinationNode).count(function (receiverAlive) {\n if (receiverAlive)\n return db._intercomm.add(msg);\n else // If we couldn't find a node -> send to master\n return db._syncNodes.where('isMaster').above(0).first(function (masterNode) {\n msg.destinationNode = masterNode.id;\n return db._intercomm.add(msg);\n });\n });\n }\n else {\n // If caller doesn't need a response, we don't have to make sure that it gets one.\n return db._intercomm.add(msg);\n }\n }).then(function (messageId) {\n var rv = null;\n if (options.wantReply) {\n rv = new Promise(function (resolve, reject) {\n requestsWaitingForReply[messageId.toString()] = { resolve: resolve, reject: reject };\n });\n }\n if (localStorage) {\n localStorage.setItem(\"Dexie.Observable/intercomm/\" + db.name, messageId.toString());\n }\n Observable.on.intercomm.fire(db.name);\n return rv;\n });\n if (!options.wantReply) {\n promise.catch(function () {\n });\n return;\n }\n else {\n // Forward rejection to caller if it waits for reply.\n return promise;\n }\n });\n };\n // Send a message to all local _syncNodes\n db.observable.broadcastMessage = function (type, message, bIncludeSelf) {\n if (!mySyncNode.node)\n return;\n var mySyncNodeId = mySyncNode.node.id;\n Dexie.ignoreTransaction(function () {\n db._syncNodes.toArray(function (nodes) {\n return Promise.all(nodes\n .filter(function (node) { return node.type === 'local' && (bIncludeSelf || node.id !== mySyncNodeId); })\n .map(function (node) { return db.observable.sendMessage(type, message, node.id); }));\n }).catch(function () {\n });\n });\n };\n function consumeIntercommMessages() {\n // Check if we got messages:\n if (!mySyncNode.node)\n return Promise.reject(new Dexie.DatabaseClosedError());\n return Dexie.ignoreTransaction(function () {\n return db.transaction('rw', '_intercomm', function () {\n return db._intercomm.where({ destinationNode: mySyncNode.node.id }).toArray(function (messages) {\n messages.forEach(function (msg) { return consumeMessage(msg); });\n return db._intercomm.where('id').anyOf(messages.map(function (msg) { return msg.id; })).delete();\n });\n });\n });\n }\n function consumeMessage(msg) {\n if (msg.type === 'response') {\n // This is a response. Lookup pending request and fulfill its promise.\n var request = requestsWaitingForReply[msg.requestId.toString()];\n if (request) {\n if (msg.isFailure) {\n request.reject(msg.message.error);\n }\n else {\n request.resolve(msg.message.result);\n }\n delete requestsWaitingForReply[msg.requestId.toString()];\n }\n }\n else {\n // This is a message or request. Fire the event and add an API for the subscriber to use if reply is requested\n msg.resolve = function (result) {\n db.observable.sendMessage('response', { result: result }, msg.sender, { requestId: msg.id });\n };\n msg.reject = function (error) {\n db.observable.sendMessage('response', { error: error.toString() }, msg.sender, { isFailure: true, requestId: msg.id });\n };\n db.on.message.fire(msg);\n }\n }\n // Listener for 'intercomm' events\n // Gets fired when we get a 'storage' event from local storage or when sendMessage is called\n // 'storage' is used to communicate between tabs (sendMessage changes the localStorage to trigger the event)\n // sendMessage is used to communicate in the same tab and to trigger a storage event\n function onIntercomm(dbname) {\n // When storage event trigger us to check\n if (dbname === db.name) {\n consumeIntercommMessages().catch('DatabaseClosedError', function () { });\n }\n }\n return {\n onIntercomm: onIntercomm,\n consumeIntercommMessages: consumeIntercommMessages\n };\n}\n\nfunction overrideParseStoresSpec(origFunc) {\n return function (stores, dbSchema) {\n // Create the _changes and _syncNodes tables\n stores[\"_changes\"] = \"++rev\";\n stores[\"_syncNodes\"] = \"++id,myRevision,lastHeartBeat,&url,isMaster,type,status\";\n stores[\"_intercomm\"] = \"++id,destinationNode\";\n stores[\"_uncommittedChanges\"] = \"++id,node\"; // For remote syncing when server returns a partial result.\n // Call default implementation. Will populate the dbSchema structures.\n origFunc.call(this, stores, dbSchema);\n // Allow UUID primary keys using $$ prefix on primary key or indexes\n Object.keys(dbSchema).forEach(function (tableName) {\n var schema = dbSchema[tableName];\n if (schema.primKey.name.indexOf('$$') === 0) {\n schema.primKey.uuid = true;\n schema.primKey.name = schema.primKey.name.substr(2);\n schema.primKey.keyPath = schema.primKey.keyPath.substr(2);\n }\n });\n // Now mark all observable tables\n Object.keys(dbSchema).forEach(function (tableName) {\n // Marked observable tables with \"observable\" in their TableSchema.\n if (tableName.indexOf('_') !== 0 && tableName.indexOf('$') !== 0) {\n dbSchema[tableName].observable = true;\n }\n });\n };\n}\n\nfunction deleteOldChanges(db) {\n // This is a background job and should never be done within\n // a caller's transaction. Use Dexie.ignoreTransaction() to ensure that.\n // We should not return the Promise but catch it ourselves instead.\n // To prohibit starving the database we want to lock transactions as short as possible\n // and since we're not in a hurry, we could do this job in chunks and reschedule a\n // continuation every 500 ms.\n var CHUNK_SIZE = 100;\n Dexie.ignoreTransaction(function () {\n return db._syncNodes.orderBy(\"myRevision\").first(function (oldestNode) {\n return db._changes\n .where(\"rev\").below(oldestNode.myRevision)\n .limit(CHUNK_SIZE)\n .primaryKeys();\n }).then(function (keysToDelete) {\n if (keysToDelete.length === 0)\n return; // Done.\n return db._changes.bulkDelete(keysToDelete).then(function () {\n // If not done garbage collecting, reschedule a continuation of it until done.\n if (keysToDelete.length === CHUNK_SIZE) {\n // Limit reached. Changes are there are more job to do. Schedule again:\n setTimeout(function () { return db.isOpen() && deleteOldChanges(db); }, 500);\n }\n });\n });\n }).catch(function () {\n // The operation is not crucial. A failure could almost only be due to that database has been closed.\n // No need to log this.\n });\n}\n\n/* ==========================================================================\n * dexie-observable.js\n * ==========================================================================\n *\n * Dexie addon for observing database changes not just on local db instance\n * but also on other instances, tabs and windows.\n *\n * Comprises a base framework for dexie-syncable.js\n *\n * By David Fahlander, david.fahlander@gmail.com,\n * Nikolas Poniros, https://github.com/nponiros\n *\n * ==========================================================================\n *\n * Version {version}, {date}\n *\n * http://dexie.org\n *\n * Apache License Version 2.0, January 2004, http://www.apache.org/licenses/\n *\n */\nvar global = self;\n/** class DatabaseChange\n *\n * Object contained by the _changes table.\n */\nvar DatabaseChange = Dexie.defineClass({\n rev: Number,\n source: String,\n table: String,\n key: Object,\n type: Number,\n obj: Object,\n mods: Object,\n oldObj: Object // DELETE: oldObj contains the object deleted. UPDATE: oldObj contains the old object before updates applied.\n});\n// Import some usable helper functions\nvar override = Dexie.override;\nvar Promise$1 = Dexie.Promise;\nvar browserIsShuttingDown = false;\nfunction Observable(db) {\n /// \n /// Extension to Dexie providing Syncronization capabilities to Dexie.\n /// \n /// \n var NODE_TIMEOUT = 20000, // 20 seconds before local db instances are timed out. This is so that old changes can be deleted when not needed and to garbage collect old _syncNodes objects.\n HIBERNATE_GRACE_PERIOD = 20000, // 20 seconds\n // LOCAL_POLL: The time to wait before polling local db for changes and cleaning up old nodes. \n // Polling for changes is a fallback only needed in certain circomstances (when the onstorage event doesnt reach all listeners - when different browser windows doesnt share the same process)\n LOCAL_POLL = 500, // 500 ms. In real-world there will be this value + the time it takes to poll(). A small value is needed in Workers where we cannot rely on storage event.\n HEARTBEAT_INTERVAL = NODE_TIMEOUT - 5000;\n var localStorage = Observable.localStorageImpl;\n /** class SyncNode\n *\n * Object contained in the _syncNodes table.\n */\n var SyncNode = Dexie.defineClass({\n //id: Number,\n myRevision: Number,\n type: String,\n lastHeartBeat: Number,\n deleteTimeStamp: Number,\n url: String,\n isMaster: Number,\n // Below properties should be extended in Dexie.Syncable. Not here. They apply to remote nodes only (type == \"remote\"):\n syncProtocol: String,\n syncContext: null,\n syncOptions: Object,\n connected: false,\n status: Number,\n appliedRemoteRevision: null,\n remoteBaseRevisions: [{ local: Number, remote: null }],\n dbUploadState: {\n tablesToUpload: [String],\n currentTable: String,\n currentKey: null,\n localBaseRevision: Number\n }\n });\n db.observable = {};\n db.observable.SyncNode = SyncNode;\n var wakeupObservers = initWakeupObservers(db, Observable, localStorage);\n var overrideCreateTransaction = initOverrideCreateTransaction(db, wakeupObservers);\n var crudMonitor = initCrudMonitor(db);\n var overrideOpen = initOverrideOpen(db, SyncNode, crudMonitor);\n var mySyncNode = { node: null };\n var intercomm = initIntercomm(db, Observable, SyncNode, mySyncNode, localStorage);\n var onIntercomm = intercomm.onIntercomm;\n var consumeIntercommMessages = intercomm.consumeIntercommMessages;\n // Allow other addons to access the local sync node. May be needed by Dexie.Syncable.\n Object.defineProperty(db, \"_localSyncNode\", {\n get: function () { return mySyncNode.node; }\n });\n var pollHandle = null, heartbeatHandle = null;\n if (Dexie.fake) {\n // This code will never run.\n // It's here just to enable auto-complete in visual studio - helps a lot when writing code.\n db.version(1).stores({\n _syncNodes: \"++id,myRevision,lastHeartBeat\",\n _changes: \"++rev\",\n _intercomm: \"++id,destinationNode\",\n _uncommittedChanges: \"++id,node\"\n });\n db._syncNodes.mapToClass(SyncNode);\n db._changes.mapToClass(DatabaseChange);\n mySyncNode.node = new SyncNode({\n myRevision: 0,\n type: \"local\",\n lastHeartBeat: Date.now(),\n deleteTimeStamp: null\n });\n }\n //\n // Override parsing the stores to add \"_changes\" and \"_syncNodes\" tables.\n // It also adds UUID support for the primary key and sets tables as observable tables.\n //\n db.Version.prototype._parseStoresSpec = override(db.Version.prototype._parseStoresSpec, overrideParseStoresSpec);\n // changes event on db:\n db.on.addEventType({\n changes: 'asap',\n cleanup: [promisableChain, nop],\n message: 'asap'\n });\n //\n // Override transaction creation to always include the \"_changes\" store when any observable store is involved.\n //\n db._createTransaction = override(db._createTransaction, overrideCreateTransaction);\n // If Observable.latestRevsion[db.name] is undefined, set it to 0 so that comparing against it always works.\n // You might think that it will always be undefined before this call, but in case another Dexie instance in the same\n // window with the same database name has been created already, this static property will already be set correctly.\n Observable.latestRevision[db.name] = Observable.latestRevision[db.name] || 0;\n //\n // Override open to setup hooks for db changes and map the _syncNodes table to class\n //\n db.open = override(db.open, overrideOpen);\n db.close = override(db.close, function (origClose) {\n return function () {\n if (db.dynamicallyOpened())\n return origClose.apply(this, arguments); // Don't observe dynamically opened databases.\n // Teardown our framework.\n if (wakeupObservers.timeoutHandle) {\n clearTimeout(wakeupObservers.timeoutHandle);\n delete wakeupObservers.timeoutHandle;\n }\n Observable.on('latestRevisionIncremented').unsubscribe(onLatestRevisionIncremented);\n Observable.on('suicideNurseCall').unsubscribe(onSuicide);\n Observable.on('intercomm').unsubscribe(onIntercomm);\n Observable.on('beforeunload').unsubscribe(onBeforeUnload);\n // Inform other db instances in same window that we are dying:\n if (mySyncNode.node && mySyncNode.node.id) {\n Observable.on.suicideNurseCall.fire(db.name, mySyncNode.node.id);\n // Inform other windows as well:\n if (localStorage) {\n localStorage.setItem('Dexie.Observable/deadnode:' + mySyncNode.node.id.toString() + '/' + db.name, \"dead\"); // In IE, this will also wakeup our own window. cleanup() may trigger twice per other db instance. But that doesnt to anything.\n }\n mySyncNode.node.deleteTimeStamp = 1; // One millisecond after 1970. Makes it occur in the past but still keeps it truthy.\n mySyncNode.node.lastHeartBeat = 0;\n db._syncNodes.put(mySyncNode.node); // This async operation may be cancelled since the browser is closing down now.\n mySyncNode.node = null;\n }\n if (pollHandle)\n clearTimeout(pollHandle);\n pollHandle = null;\n if (heartbeatHandle)\n clearTimeout(heartbeatHandle);\n heartbeatHandle = null;\n return origClose.apply(this, arguments);\n };\n });\n // Override Dexie.delete() in order to delete Observable.latestRevision[db.name].\n db.delete = override(db.delete, function (origDelete) {\n return function () {\n return origDelete.apply(this, arguments).then(function (result) {\n // Reset Observable.latestRevision[db.name]\n Observable.latestRevision[db.name] = 0;\n return result;\n });\n };\n });\n // When db opens, make sure to start monitor any changes before other db operations will start.\n db.on(\"ready\", function startObserving() {\n if (db.dynamicallyOpened())\n return db; // Don't observe dynamically opened databases.\n return db.table(\"_changes\").orderBy(\"rev\").last(function (lastChange) {\n // Since startObserving() is called before database open() method, this will be the first database operation enqueued to db.\n // Therefore we know that the retrieved value will be This query will\n var latestRevision = (lastChange ? lastChange.rev : 0);\n mySyncNode.node = new SyncNode({\n myRevision: latestRevision,\n type: \"local\",\n lastHeartBeat: Date.now(),\n deleteTimeStamp: null,\n isMaster: 0\n });\n if (Observable.latestRevision[db.name] < latestRevision) {\n // Side track . For correctness whenever setting Observable.latestRevision[db.name] we must make sure the event is fired if increased:\n // There are other db instances in same window that hasnt yet been informed about a new revision\n Observable.latestRevision[db.name] = latestRevision;\n Dexie.ignoreTransaction(function () {\n Observable.on.latestRevisionIncremented.fire(latestRevision);\n });\n }\n // Add new sync node or if this is a reopening of the database after a close() call, update it.\n return db.transaction('rw', '_syncNodes', function () {\n return db._syncNodes\n .where('isMaster').equals(1)\n .first(function (currentMaster) {\n if (!currentMaster) {\n // There's no master. We must be the master\n mySyncNode.node.isMaster = 1;\n }\n else if (currentMaster.lastHeartBeat < Date.now() - NODE_TIMEOUT) {\n // Master have been inactive for too long\n // Take over mastership\n mySyncNode.node.isMaster = 1;\n currentMaster.isMaster = 0;\n return db._syncNodes.put(currentMaster);\n }\n }).then(function () {\n // Add our node to DB and start subscribing to events\n return db._syncNodes.add(mySyncNode.node).then(function () {\n Observable.on('latestRevisionIncremented', onLatestRevisionIncremented); // Wakeup when a new revision is available.\n Observable.on('beforeunload', onBeforeUnload);\n Observable.on('suicideNurseCall', onSuicide);\n Observable.on('intercomm', onIntercomm);\n // Start polling for changes and do cleanups:\n pollHandle = setTimeout(poll, LOCAL_POLL);\n // Start heartbeat\n heartbeatHandle = setTimeout(heartbeat, HEARTBEAT_INTERVAL);\n });\n });\n }).then(function () {\n cleanup();\n });\n });\n }, true); // True means the on(ready) event will survive a db reopening (db.close() / db.open()).\n var handledRevision = 0;\n function onLatestRevisionIncremented(dbname, latestRevision) {\n if (dbname === db.name) {\n if (handledRevision >= latestRevision)\n return; // Make sure to only run once per revision. (Workaround for IE triggering storage event on same window)\n handledRevision = latestRevision;\n Dexie.vip(function () {\n readChanges(latestRevision).catch('DatabaseClosedError', function () {\n // Handle database closed error gracefully while reading changes.\n // Don't trigger 'unhandledrejection'.\n // Even though we intercept the close() method, it might be called when in the middle of\n // reading changes and then that flow will cancel with DatabaseClosedError.\n });\n });\n }\n }\n function readChanges(latestRevision, recursion, wasPartial) {\n // Whenever changes are read, fire db.on(\"changes\") with the array of changes. Eventually, limit the array to 1000 entries or so (an entire database is\n // downloaded from server AFTER we are initiated. For example, if first sync call fails, then after a while we get reconnected. However, that scenario\n // should be handled in case database is totally empty we should fail if sync is not available)\n if (!recursion && readChanges.ongoingOperation) {\n // We are already reading changes. Prohibit a parallell execution of this which would lead to duplicate trigging of 'changes' event.\n // Instead, the callback in toArray() will always check Observable.latestRevision[db.name] to see if it has changed and if so, re-launch readChanges().\n // The caller should get the Promise instance from the ongoing operation so that the then() method will resolve when operation is finished.\n return readChanges.ongoingOperation;\n }\n var partial = false;\n var ourSyncNode = mySyncNode.node; // Because mySyncNode can suddenly be set to null on database close, and worse, can be set to a new value if database is reopened.\n if (!ourSyncNode) {\n return Promise$1.reject(new Dexie.DatabaseClosedError());\n }\n var LIMIT = 1000;\n var promise = db._changes.where(\"rev\").above(ourSyncNode.myRevision).limit(LIMIT).toArray(function (changes) {\n if (changes.length > 0) {\n var lastChange = changes[changes.length - 1];\n partial = (changes.length === LIMIT);\n db.on('changes').fire(changes, partial);\n ourSyncNode.myRevision = lastChange.rev;\n }\n else if (wasPartial) {\n // No more changes, BUT since we have triggered on('changes') with partial = true,\n // we HAVE TO trigger changes again with empty list and partial = false\n db.on('changes').fire([], false);\n }\n var ourNodeStillExists = false;\n return db._syncNodes.where(':id').equals(ourSyncNode.id).modify(function (syncNode) {\n ourNodeStillExists = true;\n syncNode.lastHeartBeat = Date.now(); // Update heart beat (not nescessary, but why not!)\n syncNode.deleteTimeStamp = null; // Reset \"deleteTimeStamp\" flag if it was there.\n syncNode.myRevision = Math.max(syncNode.myRevision, ourSyncNode.myRevision);\n }).then(function () { return ourNodeStillExists; });\n }).then(function (ourNodeStillExists) {\n if (!ourNodeStillExists) {\n // My node has been deleted. We must have been lazy and got removed by another node.\n if (browserIsShuttingDown) {\n throw new Error(\"Browser is shutting down\");\n }\n else {\n db.close();\n console.error(\"Out of sync\"); // TODO: What to do? Reload the page?\n if (global.location)\n global.location.reload(true);\n throw new Error(\"Out of sync\"); // Will make current promise reject\n }\n }\n // Check if more changes have come since we started reading changes in the first place. If so, relaunch readChanges and let the ongoing promise not\n // resolve until all changes have been read.\n if (partial || Observable.latestRevision[db.name] > ourSyncNode.myRevision) {\n // Either there were more than 1000 changes or additional changes where added while we were reading these changes,\n // In either case, call readChanges() again until we're done.\n return readChanges(Observable.latestRevision[db.name], (recursion || 0) + 1, partial);\n }\n }).finally(function () {\n delete readChanges.ongoingOperation;\n });\n if (!recursion) {\n readChanges.ongoingOperation = promise;\n }\n return promise;\n }\n /**\n * The reason we need heartbeat in parallell with poll() is due to the risk of long-running\n * transactions while syncing changes from server to client in Dexie.Syncable. That transaction will\n * include _changes (which will block readChanges()) but not _syncNodes. So this heartbeat will go on\n * during that changes are being applied and update our lastHeartBeat property while poll() is waiting.\n * When cleanup() (who also is blocked by the sync) wakes up, it won't kill the master node because this\n * heartbeat job will have updated the master node's heartbeat during the long-running sync transaction.\n *\n * If we did not have this heartbeat, and a server send lots of changes that took more than NODE_TIMEOUT\n * (20 seconds), another node waking up after the sync would kill the master node and take over because\n * it would believe it was dead.\n */\n function heartbeat() {\n heartbeatHandle = null;\n var currentInstance = mySyncNode.node && mySyncNode.node.id;\n if (!currentInstance)\n return;\n db.transaction('rw!', db._syncNodes, function () {\n db._syncNodes.where({ id: currentInstance }).first(function (ourSyncNode) {\n if (!ourSyncNode) {\n // We do not exist anymore. Call db.close() to teardown polls etc.\n if (db.isOpen())\n db.close();\n return;\n }\n ourSyncNode.lastHeartBeat = Date.now();\n ourSyncNode.deleteTimeStamp = null; // Reset \"deleteTimeStamp\" flag if it was there.\n return db._syncNodes.put(ourSyncNode);\n });\n }).catch('DatabaseClosedError', function () {\n // Ignore silently\n }).finally(function () {\n if (mySyncNode.node && mySyncNode.node.id === currentInstance && db.isOpen()) {\n heartbeatHandle = setTimeout(heartbeat, HEARTBEAT_INTERVAL);\n }\n });\n }\n function poll() {\n pollHandle = null;\n var currentInstance = mySyncNode.node && mySyncNode.node.id;\n if (!currentInstance)\n return;\n Dexie.vip(function () {\n readChanges(Observable.latestRevision[db.name]).then(cleanup).then(consumeIntercommMessages)\n .catch('DatabaseClosedError', function () {\n // Handle database closed error gracefully while reading changes.\n // Don't trigger 'unhandledrejection'.\n // Even though we intercept the close() method, it might be called when in the middle of\n // reading changes and then that flow will cancel with DatabaseClosedError.\n })\n .finally(function () {\n // Poll again in given interval:\n if (mySyncNode.node && mySyncNode.node.id === currentInstance && db.isOpen()) {\n pollHandle = setTimeout(poll, LOCAL_POLL);\n }\n });\n });\n }\n function cleanup() {\n var ourSyncNode = mySyncNode.node;\n if (!ourSyncNode)\n return Promise$1.reject(new Dexie.DatabaseClosedError());\n return db.transaction('rw', '_syncNodes', '_changes', '_intercomm', function () {\n // Cleanup dead local nodes that has no heartbeat for over a minute\n // Dont do the following:\n //nodes.where(\"lastHeartBeat\").below(Date.now() - NODE_TIMEOUT).and(function (node) { return node.type == \"local\"; }).delete();\n // Because client may have been in hybernate mode and recently woken up. That would lead to deletion of all nodes.\n // Instead, we should mark any old nodes for deletion in a minute or so. If they still dont wakeup after that minute we could consider them dead.\n var weBecameMaster = false;\n db._syncNodes.where(\"lastHeartBeat\").below(Date.now() - NODE_TIMEOUT).filter(function (node) { return node.type === 'local'; }).modify(function (node) {\n if (node.deleteTimeStamp && node.deleteTimeStamp < Date.now()) {\n // Delete the node.\n delete this.value;\n // Cleanup localStorage \"deadnode:\" entry for this node (localStorage API was used to wakeup other windows (onstorage event) - an event type missing in indexedDB.)\n if (localStorage) {\n localStorage.removeItem('Dexie.Observable/deadnode:' + node.id + '/' + db.name);\n }\n // Check if we are deleting a master node\n if (node.isMaster) {\n // The node we are deleting is master. We must take over that role.\n // OK to call nodes.update(). No need to call Dexie.vip() because nodes is opened in existing transaction!\n db._syncNodes.update(ourSyncNode, { isMaster: 1 });\n weBecameMaster = true;\n }\n // Cleanup intercomm messages destinated to the node being deleted.\n // Those that waits for reply should be redirected to us.\n db._intercomm.where({ destinationNode: node.id }).modify(function (msg) {\n if (msg.wantReply)\n msg.destinationNode = ourSyncNode.id;\n else\n // Delete the message from DB and if someone is waiting for reply, let ourselved answer the request.\n delete this.value;\n });\n }\n else if (!node.deleteTimeStamp) {\n // Mark the node for deletion\n node.deleteTimeStamp = Date.now() + HIBERNATE_GRACE_PERIOD;\n }\n }).then(function () {\n // Cleanup old revisions that no node is interested of.\n Observable.deleteOldChanges(db);\n return db.on(\"cleanup\").fire(weBecameMaster);\n });\n });\n }\n function onBeforeUnload() {\n // Mark our own sync node for deletion.\n if (!mySyncNode.node)\n return;\n browserIsShuttingDown = true;\n mySyncNode.node.deleteTimeStamp = 1; // One millisecond after 1970. Makes it occur in the past but still keeps it truthy.\n mySyncNode.node.lastHeartBeat = 0;\n db._syncNodes.put(mySyncNode.node); // This async operation may be cancelled since the browser is closing down now.\n Observable.wereTheOneDying = true; // If other nodes in same window wakes up by this call, make sure they dont start taking over mastership and stuff...\n // Inform other windows that we're gone, so that they may take over our role if needed. Setting localStorage item below will trigger Observable.onStorage, which will trigger onSuicie() below:\n if (localStorage) {\n localStorage.setItem('Dexie.Observable/deadnode:' + mySyncNode.node.id.toString() + '/' + db.name, \"dead\"); // In IE, this will also wakeup our own window. However, that is doublechecked in nursecall subscriber below.\n }\n }\n function onSuicide(dbname, nodeID) {\n if (dbname === db.name && !Observable.wereTheOneDying) {\n // Make sure it's dead indeed. Second bullet. Why? Because it has marked itself for deletion in the onbeforeunload event, which is fired just before window dies.\n // It's own call to put() may have been cancelled.\n // Note also that in IE, this event may be called twice, but that doesnt harm!\n Dexie.vip(function () {\n db._syncNodes.update(nodeID, { deleteTimeStamp: 1, lastHeartBeat: 0 }).then(cleanup);\n });\n }\n }\n}\n//\n// Static properties and methods\n// \nObservable.latestRevision = {}; // Latest revision PER DATABASE. Example: Observable.latestRevision.FriendsDB = 37;\nObservable.on = Dexie.Events(null, \"latestRevisionIncremented\", \"suicideNurseCall\", \"intercomm\", \"beforeunload\"); // fire(dbname, value);\nObservable.createUUID = createUUID;\nObservable.deleteOldChanges = deleteOldChanges;\nObservable._onStorage = initOnStorage(Observable);\nObservable._onBeforeUnload = function () {\n Observable.on.beforeunload.fire();\n};\ntry {\n Observable.localStorageImpl = global.localStorage;\n}\ncatch (ex) { }\n//\n// Map window events to static events in Dexie.Observable:\n//\nif (global.addEventListener) {\n global.addEventListener(\"storage\", Observable._onStorage);\n global.addEventListener(\"beforeunload\", Observable._onBeforeUnload);\n}\n// Register addon:\nDexie.Observable = Observable;\nDexie.addons.push(Observable);\n\nexport default Observable;\n//# sourceMappingURL=dexie-observable.es.js.map\n","/*\n * Dexie.js - a minimalistic wrapper for IndexedDB\n * ===============================================\n *\n * By David Fahlander, david.fahlander@gmail.com\n *\n * Version {version}, {date}\n *\n * http://dexie.org\n *\n * Apache License Version 2.0, January 2004, http://www.apache.org/licenses/\n */\n \nvar keys = Object.keys;\nvar isArray = Array.isArray;\nvar _global = typeof self !== 'undefined' ? self :\n typeof window !== 'undefined' ? window :\n global;\nfunction extend(obj, extension) {\n if (typeof extension !== 'object')\n return obj;\n keys(extension).forEach(function (key) {\n obj[key] = extension[key];\n });\n return obj;\n}\nvar getProto = Object.getPrototypeOf;\nvar _hasOwn = {}.hasOwnProperty;\nfunction hasOwn(obj, prop) {\n return _hasOwn.call(obj, prop);\n}\nfunction props(proto, extension) {\n if (typeof extension === 'function')\n extension = extension(getProto(proto));\n keys(extension).forEach(function (key) {\n setProp(proto, key, extension[key]);\n });\n}\nvar defineProperty = Object.defineProperty;\nfunction setProp(obj, prop, functionOrGetSet, options) {\n defineProperty(obj, prop, extend(functionOrGetSet && hasOwn(functionOrGetSet, \"get\") && typeof functionOrGetSet.get === 'function' ?\n { get: functionOrGetSet.get, set: functionOrGetSet.set, configurable: true } :\n { value: functionOrGetSet, configurable: true, writable: true }, options));\n}\nfunction derive(Child) {\n return {\n from: function (Parent) {\n Child.prototype = Object.create(Parent.prototype);\n setProp(Child.prototype, \"constructor\", Child);\n return {\n extend: props.bind(null, Child.prototype)\n };\n }\n };\n}\nvar getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;\nfunction getPropertyDescriptor(obj, prop) {\n var pd = getOwnPropertyDescriptor(obj, prop), proto;\n return pd || (proto = getProto(obj)) && getPropertyDescriptor(proto, prop);\n}\nvar _slice = [].slice;\nfunction slice(args, start, end) {\n return _slice.call(args, start, end);\n}\nfunction override(origFunc, overridedFactory) {\n return overridedFactory(origFunc);\n}\nfunction assert(b) {\n if (!b)\n throw new Error(\"Assertion Failed\");\n}\nfunction asap(fn) {\n if (_global.setImmediate)\n setImmediate(fn);\n else\n setTimeout(fn, 0);\n}\n\n/** Generate an object (hash map) based on given array.\n * @param extractor Function taking an array item and its index and returning an array of 2 items ([key, value]) to\n * instert on the resulting object for each item in the array. If this function returns a falsy value, the\n * current item wont affect the resulting object.\n */\nfunction arrayToObject(array, extractor) {\n return array.reduce(function (result, item, i) {\n var nameAndValue = extractor(item, i);\n if (nameAndValue)\n result[nameAndValue[0]] = nameAndValue[1];\n return result;\n }, {});\n}\nfunction trycatcher(fn, reject) {\n return function () {\n try {\n fn.apply(this, arguments);\n }\n catch (e) {\n reject(e);\n }\n };\n}\nfunction tryCatch(fn, onerror, args) {\n try {\n fn.apply(null, args);\n }\n catch (ex) {\n onerror && onerror(ex);\n }\n}\nfunction getByKeyPath(obj, keyPath) {\n // http://www.w3.org/TR/IndexedDB/#steps-for-extracting-a-key-from-a-value-using-a-key-path\n if (hasOwn(obj, keyPath))\n return obj[keyPath]; // This line is moved from last to first for optimization purpose.\n if (!keyPath)\n return obj;\n if (typeof keyPath !== 'string') {\n var rv = [];\n for (var i = 0, l = keyPath.length; i < l; ++i) {\n var val = getByKeyPath(obj, keyPath[i]);\n rv.push(val);\n }\n return rv;\n }\n var period = keyPath.indexOf('.');\n if (period !== -1) {\n var innerObj = obj[keyPath.substr(0, period)];\n return innerObj === undefined ? undefined : getByKeyPath(innerObj, keyPath.substr(period + 1));\n }\n return undefined;\n}\nfunction setByKeyPath(obj, keyPath, value) {\n if (!obj || keyPath === undefined)\n return;\n if ('isFrozen' in Object && Object.isFrozen(obj))\n return;\n if (typeof keyPath !== 'string' && 'length' in keyPath) {\n assert(typeof value !== 'string' && 'length' in value);\n for (var i = 0, l = keyPath.length; i < l; ++i) {\n setByKeyPath(obj, keyPath[i], value[i]);\n }\n }\n else {\n var period = keyPath.indexOf('.');\n if (period !== -1) {\n var currentKeyPath = keyPath.substr(0, period);\n var remainingKeyPath = keyPath.substr(period + 1);\n if (remainingKeyPath === \"\")\n if (value === undefined)\n delete obj[currentKeyPath];\n else\n obj[currentKeyPath] = value;\n else {\n var innerObj = obj[currentKeyPath];\n if (!innerObj)\n innerObj = (obj[currentKeyPath] = {});\n setByKeyPath(innerObj, remainingKeyPath, value);\n }\n }\n else {\n if (value === undefined)\n delete obj[keyPath];\n else\n obj[keyPath] = value;\n }\n }\n}\nfunction delByKeyPath(obj, keyPath) {\n if (typeof keyPath === 'string')\n setByKeyPath(obj, keyPath, undefined);\n else if ('length' in keyPath)\n [].map.call(keyPath, function (kp) {\n setByKeyPath(obj, kp, undefined);\n });\n}\nfunction shallowClone(obj) {\n var rv = {};\n for (var m in obj) {\n if (hasOwn(obj, m))\n rv[m] = obj[m];\n }\n return rv;\n}\nvar concat = [].concat;\nfunction flatten(a) {\n return concat.apply([], a);\n}\n//https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API/Structured_clone_algorithm\nvar intrinsicTypes = \"Boolean,String,Date,RegExp,Blob,File,FileList,ArrayBuffer,DataView,Uint8ClampedArray,ImageData,Map,Set\"\n .split(',').concat(flatten([8, 16, 32, 64].map(function (num) { return [\"Int\", \"Uint\", \"Float\"].map(function (t) { return t + num + \"Array\"; }); }))).filter(function (t) { return _global[t]; }).map(function (t) { return _global[t]; });\nfunction deepClone(any) {\n if (!any || typeof any !== 'object')\n return any;\n var rv;\n if (isArray(any)) {\n rv = [];\n for (var i = 0, l = any.length; i < l; ++i) {\n rv.push(deepClone(any[i]));\n }\n }\n else if (intrinsicTypes.indexOf(any.constructor) >= 0) {\n rv = any;\n }\n else {\n rv = any.constructor ? Object.create(any.constructor.prototype) : {};\n for (var prop in any) {\n if (hasOwn(any, prop)) {\n rv[prop] = deepClone(any[prop]);\n }\n }\n }\n return rv;\n}\nfunction getObjectDiff(a, b, rv, prfx) {\n // Compares objects a and b and produces a diff object.\n rv = rv || {};\n prfx = prfx || '';\n keys(a).forEach(function (prop) {\n if (!hasOwn(b, prop))\n rv[prfx + prop] = undefined; // Property removed\n else {\n var ap = a[prop], bp = b[prop];\n if (typeof ap === 'object' && typeof bp === 'object' &&\n ap && bp &&\n // Now compare constructors are same (not equal because wont work in Safari)\n ('' + ap.constructor) === ('' + bp.constructor))\n // Same type of object but its properties may have changed\n getObjectDiff(ap, bp, rv, prfx + prop + \".\");\n else if (ap !== bp)\n rv[prfx + prop] = b[prop]; // Primitive value changed\n }\n });\n keys(b).forEach(function (prop) {\n if (!hasOwn(a, prop)) {\n rv[prfx + prop] = b[prop]; // Property added\n }\n });\n return rv;\n}\n// If first argument is iterable or array-like, return it as an array\nvar iteratorSymbol = typeof Symbol !== 'undefined' && Symbol.iterator;\nvar getIteratorOf = iteratorSymbol ? function (x) {\n var i;\n return x != null && (i = x[iteratorSymbol]) && i.apply(x);\n} : function () { return null; };\nvar NO_CHAR_ARRAY = {};\n// Takes one or several arguments and returns an array based on the following criteras:\n// * If several arguments provided, return arguments converted to an array in a way that\n// still allows javascript engine to optimize the code.\n// * If single argument is an array, return a clone of it.\n// * If this-pointer equals NO_CHAR_ARRAY, don't accept strings as valid iterables as a special\n// case to the two bullets below.\n// * If single argument is an iterable, convert it to an array and return the resulting array.\n// * If single argument is array-like (has length of type number), convert it to an array.\nfunction getArrayOf(arrayLike) {\n var i, a, x, it;\n if (arguments.length === 1) {\n if (isArray(arrayLike))\n return arrayLike.slice();\n if (this === NO_CHAR_ARRAY && typeof arrayLike === 'string')\n return [arrayLike];\n if ((it = getIteratorOf(arrayLike))) {\n a = [];\n while ((x = it.next()), !x.done)\n a.push(x.value);\n return a;\n }\n if (arrayLike == null)\n return [arrayLike];\n i = arrayLike.length;\n if (typeof i === 'number') {\n a = new Array(i);\n while (i--)\n a[i] = arrayLike[i];\n return a;\n }\n return [arrayLike];\n }\n i = arguments.length;\n a = new Array(i);\n while (i--)\n a[i] = arguments[i];\n return a;\n}\n\n// By default, debug will be true only if platform is a web platform and its page is served from localhost.\n// When debug = true, error's stacks will contain asyncronic long stacks.\nvar debug = typeof location !== 'undefined' &&\n // By default, use debug mode if served from localhost.\n /^(http|https):\\/\\/(localhost|127\\.0\\.0\\.1)/.test(location.href);\nfunction setDebug(value, filter) {\n debug = value;\n libraryFilter = filter;\n}\nvar libraryFilter = function () { return true; };\nvar NEEDS_THROW_FOR_STACK = !new Error(\"\").stack;\nfunction getErrorWithStack() {\n \"use strict\";\n if (NEEDS_THROW_FOR_STACK)\n try {\n // Doing something naughty in strict mode here to trigger a specific error\n // that can be explicitely ignored in debugger's exception settings.\n // If we'd just throw new Error() here, IE's debugger's exception settings\n // will just consider it as \"exception thrown by javascript code\" which is\n // something you wouldn't want it to ignore.\n getErrorWithStack.arguments;\n throw new Error(); // Fallback if above line don't throw.\n }\n catch (e) {\n return e;\n }\n return new Error();\n}\nfunction prettyStack(exception, numIgnoredFrames) {\n var stack = exception.stack;\n if (!stack)\n return \"\";\n numIgnoredFrames = (numIgnoredFrames || 0);\n if (stack.indexOf(exception.name) === 0)\n numIgnoredFrames += (exception.name + exception.message).split('\\n').length;\n return stack.split('\\n')\n .slice(numIgnoredFrames)\n .filter(libraryFilter)\n .map(function (frame) { return \"\\n\" + frame; })\n .join('');\n}\nfunction deprecated(what, fn) {\n return function () {\n console.warn(what + \" is deprecated. See https://github.com/dfahlander/Dexie.js/wiki/Deprecations. \" + prettyStack(getErrorWithStack(), 1));\n return fn.apply(this, arguments);\n };\n}\n\nvar dexieErrorNames = [\n 'Modify',\n 'Bulk',\n 'OpenFailed',\n 'VersionChange',\n 'Schema',\n 'Upgrade',\n 'InvalidTable',\n 'MissingAPI',\n 'NoSuchDatabase',\n 'InvalidArgument',\n 'SubTransaction',\n 'Unsupported',\n 'Internal',\n 'DatabaseClosed',\n 'PrematureCommit',\n 'ForeignAwait'\n];\nvar idbDomErrorNames = [\n 'Unknown',\n 'Constraint',\n 'Data',\n 'TransactionInactive',\n 'ReadOnly',\n 'Version',\n 'NotFound',\n 'InvalidState',\n 'InvalidAccess',\n 'Abort',\n 'Timeout',\n 'QuotaExceeded',\n 'Syntax',\n 'DataClone'\n];\nvar errorList = dexieErrorNames.concat(idbDomErrorNames);\nvar defaultTexts = {\n VersionChanged: \"Database version changed by other database connection\",\n DatabaseClosed: \"Database has been closed\",\n Abort: \"Transaction aborted\",\n TransactionInactive: \"Transaction has already completed or failed\"\n};\n//\n// DexieError - base class of all out exceptions.\n//\nfunction DexieError(name, msg) {\n // Reason we don't use ES6 classes is because:\n // 1. It bloats transpiled code and increases size of minified code.\n // 2. It doesn't give us much in this case.\n // 3. It would require sub classes to call super(), which\n // is not needed when deriving from Error.\n this._e = getErrorWithStack();\n this.name = name;\n this.message = msg;\n}\nderive(DexieError).from(Error).extend({\n stack: {\n get: function () {\n return this._stack ||\n (this._stack = this.name + \": \" + this.message + prettyStack(this._e, 2));\n }\n },\n toString: function () { return this.name + \": \" + this.message; }\n});\nfunction getMultiErrorMessage(msg, failures) {\n return msg + \". Errors: \" + failures\n .map(function (f) { return f.toString(); })\n .filter(function (v, i, s) { return s.indexOf(v) === i; }) // Only unique error strings\n .join('\\n');\n}\n//\n// ModifyError - thrown in Collection.modify()\n// Specific constructor because it contains members failures and failedKeys.\n//\nfunction ModifyError(msg, failures, successCount, failedKeys) {\n this._e = getErrorWithStack();\n this.failures = failures;\n this.failedKeys = failedKeys;\n this.successCount = successCount;\n}\nderive(ModifyError).from(DexieError);\nfunction BulkError(msg, failures) {\n this._e = getErrorWithStack();\n this.name = \"BulkError\";\n this.failures = failures;\n this.message = getMultiErrorMessage(msg, failures);\n}\nderive(BulkError).from(DexieError);\n//\n//\n// Dynamically generate error names and exception classes based\n// on the names in errorList.\n//\n//\n// Map of {ErrorName -> ErrorName + \"Error\"}\nvar errnames = errorList.reduce(function (obj, name) { return (obj[name] = name + \"Error\", obj); }, {});\n// Need an alias for DexieError because we're gonna create subclasses with the same name.\nvar BaseException = DexieError;\n// Map of {ErrorName -> exception constructor}\nvar exceptions = errorList.reduce(function (obj, name) {\n // Let the name be \"DexieError\" because this name may\n // be shown in call stack and when debugging. DexieError is\n // the most true name because it derives from DexieError,\n // and we cannot change Function.name programatically without\n // dynamically create a Function object, which would be considered\n // 'eval-evil'.\n var fullName = name + \"Error\";\n function DexieError(msgOrInner, inner) {\n this._e = getErrorWithStack();\n this.name = fullName;\n if (!msgOrInner) {\n this.message = defaultTexts[name] || fullName;\n this.inner = null;\n }\n else if (typeof msgOrInner === 'string') {\n this.message = msgOrInner;\n this.inner = inner || null;\n }\n else if (typeof msgOrInner === 'object') {\n this.message = msgOrInner.name + \" \" + msgOrInner.message;\n this.inner = msgOrInner;\n }\n }\n derive(DexieError).from(BaseException);\n obj[name] = DexieError;\n return obj;\n}, {});\n// Use ECMASCRIPT standard exceptions where applicable:\nexceptions.Syntax = SyntaxError;\nexceptions.Type = TypeError;\nexceptions.Range = RangeError;\nvar exceptionMap = idbDomErrorNames.reduce(function (obj, name) {\n obj[name + \"Error\"] = exceptions[name];\n return obj;\n}, {});\nfunction mapError(domError, message) {\n if (!domError || domError instanceof DexieError || domError instanceof TypeError || domError instanceof SyntaxError || !domError.name || !exceptionMap[domError.name])\n return domError;\n var rv = new exceptionMap[domError.name](message || domError.message, domError);\n if (\"stack\" in domError) {\n // Derive stack from inner exception if it has a stack\n setProp(rv, \"stack\", { get: function () {\n return this.inner.stack;\n } });\n }\n return rv;\n}\nvar fullNameExceptions = errorList.reduce(function (obj, name) {\n if ([\"Syntax\", \"Type\", \"Range\"].indexOf(name) === -1)\n obj[name + \"Error\"] = exceptions[name];\n return obj;\n}, {});\nfullNameExceptions.ModifyError = ModifyError;\nfullNameExceptions.DexieError = DexieError;\nfullNameExceptions.BulkError = BulkError;\n\nfunction nop() { }\nfunction mirror(val) { return val; }\nfunction pureFunctionChain(f1, f2) {\n // Enables chained events that takes ONE argument and returns it to the next function in chain.\n // This pattern is used in the hook(\"reading\") event.\n if (f1 == null || f1 === mirror)\n return f2;\n return function (val) {\n return f2(f1(val));\n };\n}\nfunction callBoth(on1, on2) {\n return function () {\n on1.apply(this, arguments);\n on2.apply(this, arguments);\n };\n}\nfunction hookCreatingChain(f1, f2) {\n // Enables chained events that takes several arguments and may modify first argument by making a modification and then returning the same instance.\n // This pattern is used in the hook(\"creating\") event.\n if (f1 === nop)\n return f2;\n return function () {\n var res = f1.apply(this, arguments);\n if (res !== undefined)\n arguments[0] = res;\n var onsuccess = this.onsuccess, // In case event listener has set this.onsuccess\n onerror = this.onerror; // In case event listener has set this.onerror\n this.onsuccess = null;\n this.onerror = null;\n var res2 = f2.apply(this, arguments);\n if (onsuccess)\n this.onsuccess = this.onsuccess ? callBoth(onsuccess, this.onsuccess) : onsuccess;\n if (onerror)\n this.onerror = this.onerror ? callBoth(onerror, this.onerror) : onerror;\n return res2 !== undefined ? res2 : res;\n };\n}\nfunction hookDeletingChain(f1, f2) {\n if (f1 === nop)\n return f2;\n return function () {\n f1.apply(this, arguments);\n var onsuccess = this.onsuccess, // In case event listener has set this.onsuccess\n onerror = this.onerror; // In case event listener has set this.onerror\n this.onsuccess = this.onerror = null;\n f2.apply(this, arguments);\n if (onsuccess)\n this.onsuccess = this.onsuccess ? callBoth(onsuccess, this.onsuccess) : onsuccess;\n if (onerror)\n this.onerror = this.onerror ? callBoth(onerror, this.onerror) : onerror;\n };\n}\nfunction hookUpdatingChain(f1, f2) {\n if (f1 === nop)\n return f2;\n return function (modifications) {\n var res = f1.apply(this, arguments);\n extend(modifications, res); // If f1 returns new modifications, extend caller's modifications with the result before calling next in chain.\n var onsuccess = this.onsuccess, // In case event listener has set this.onsuccess\n onerror = this.onerror; // In case event listener has set this.onerror\n this.onsuccess = null;\n this.onerror = null;\n var res2 = f2.apply(this, arguments);\n if (onsuccess)\n this.onsuccess = this.onsuccess ? callBoth(onsuccess, this.onsuccess) : onsuccess;\n if (onerror)\n this.onerror = this.onerror ? callBoth(onerror, this.onerror) : onerror;\n return res === undefined ?\n (res2 === undefined ? undefined : res2) :\n (extend(res, res2));\n };\n}\nfunction reverseStoppableEventChain(f1, f2) {\n if (f1 === nop)\n return f2;\n return function () {\n if (f2.apply(this, arguments) === false)\n return false;\n return f1.apply(this, arguments);\n };\n}\n\nfunction promisableChain(f1, f2) {\n if (f1 === nop)\n return f2;\n return function () {\n var res = f1.apply(this, arguments);\n if (res && typeof res.then === 'function') {\n var thiz = this, i = arguments.length, args = new Array(i);\n while (i--)\n args[i] = arguments[i];\n return res.then(function () {\n return f2.apply(thiz, args);\n });\n }\n return f2.apply(this, arguments);\n };\n}\n\n/*\n * Copyright (c) 2014-2017 David Fahlander\n * Apache License Version 2.0, January 2004, http://www.apache.org/licenses/LICENSE-2.0\n */\n//\n// Promise and Zone (PSD) for Dexie library\n//\n// I started out writing this Promise class by copying promise-light (https://github.com/taylorhakes/promise-light) by\n// https://github.com/taylorhakes - an A+ and ECMASCRIPT 6 compliant Promise implementation.\n//\n// In previous versions this was fixed by not calling setTimeout when knowing that the resolve() or reject() came from another\n// tick. In Dexie v1.4.0, I've rewritten the Promise class entirely. Just some fragments of promise-light is left. I use\n// another strategy now that simplifies everything a lot: to always execute callbacks in a new micro-task, but have an own micro-task\n// engine that is indexedDB compliant across all browsers.\n// Promise class has also been optimized a lot with inspiration from bluebird - to avoid closures as much as possible.\n// Also with inspiration from bluebird, asyncronic stacks in debug mode.\n//\n// Specific non-standard features of this Promise class:\n// * Custom zone support (a.k.a. PSD) with ability to keep zones also when using native promises as well as\n// native async / await.\n// * Promise.follow() method built upon the custom zone engine, that allows user to track all promises created from current stack frame\n// and below + all promises that those promises creates or awaits.\n// * Detect any unhandled promise in a PSD-scope (PSD.onunhandled). \n//\n// David Fahlander, https://github.com/dfahlander\n//\n// Just a pointer that only this module knows about.\n// Used in Promise constructor to emulate a private constructor.\nvar INTERNAL = {};\n// Async stacks (long stacks) must not grow infinitely.\nvar LONG_STACKS_CLIP_LIMIT = 100;\nvar MAX_LONG_STACKS = 20;\nvar ZONE_ECHO_LIMIT = 7;\nvar nativePromiseInstanceAndProto = (function () {\n try {\n // Be able to patch native async functions\n return new Function(\"let F=async ()=>{},p=F();return [p,Object.getPrototypeOf(p),Promise.resolve(),F.constructor];\")();\n }\n catch (e) {\n var P = _global.Promise;\n return P ?\n [P.resolve(), P.prototype, P.resolve()] :\n [];\n }\n})();\nvar resolvedNativePromise = nativePromiseInstanceAndProto[0];\nvar nativePromiseProto = nativePromiseInstanceAndProto[1];\nvar resolvedGlobalPromise = nativePromiseInstanceAndProto[2];\nvar nativePromiseThen = nativePromiseProto && nativePromiseProto.then;\nvar NativePromise = resolvedNativePromise && resolvedNativePromise.constructor;\nvar AsyncFunction = nativePromiseInstanceAndProto[3];\nvar patchGlobalPromise = !!resolvedGlobalPromise;\nvar stack_being_generated = false;\n/* The default function used only for the very first promise in a promise chain.\n As soon as then promise is resolved or rejected, all next tasks will be executed in micro ticks\n emulated in this module. For indexedDB compatibility, this means that every method needs to\n execute at least one promise before doing an indexedDB operation. Dexie will always call\n db.ready().then() for every operation to make sure the indexedDB event is started in an\n indexedDB-compatible emulated micro task loop.\n*/\nvar schedulePhysicalTick = resolvedGlobalPromise ?\n function () { resolvedGlobalPromise.then(physicalTick); }\n :\n _global.setImmediate ?\n // setImmediate supported. Those modern platforms also supports Function.bind().\n setImmediate.bind(null, physicalTick) :\n _global.MutationObserver ?\n // MutationObserver supported\n function () {\n var hiddenDiv = document.createElement(\"div\");\n (new MutationObserver(function () {\n physicalTick();\n hiddenDiv = null;\n })).observe(hiddenDiv, { attributes: true });\n hiddenDiv.setAttribute('i', '1');\n } :\n // No support for setImmediate or MutationObserver. No worry, setTimeout is only called\n // once time. Every tick that follows will be our emulated micro tick.\n // Could have uses setTimeout.bind(null, 0, physicalTick) if it wasnt for that FF13 and below has a bug \n function () { setTimeout(physicalTick, 0); };\n// Configurable through Promise.scheduler.\n// Don't export because it would be unsafe to let unknown\n// code call it unless they do try..catch within their callback.\n// This function can be retrieved through getter of Promise.scheduler though,\n// but users must not do Promise.scheduler = myFuncThatThrowsException\nvar asap$1 = function (callback, args) {\n microtickQueue.push([callback, args]);\n if (needsNewPhysicalTick) {\n schedulePhysicalTick();\n needsNewPhysicalTick = false;\n }\n};\nvar isOutsideMicroTick = true;\nvar needsNewPhysicalTick = true;\nvar unhandledErrors = [];\nvar rejectingErrors = [];\nvar currentFulfiller = null;\nvar rejectionMapper = mirror; // Remove in next major when removing error mapping of DOMErrors and DOMExceptions\nvar globalPSD = {\n id: 'global',\n global: true,\n ref: 0,\n unhandleds: [],\n onunhandled: globalError,\n pgp: false,\n env: {},\n finalize: function () {\n this.unhandleds.forEach(function (uh) {\n try {\n globalError(uh[0], uh[1]);\n }\n catch (e) { }\n });\n }\n};\nvar PSD = globalPSD;\nvar microtickQueue = []; // Callbacks to call in this or next physical tick.\nvar numScheduledCalls = 0; // Number of listener-calls left to do in this physical tick.\nvar tickFinalizers = []; // Finalizers to call when there are no more async calls scheduled within current physical tick.\nfunction Promise(fn) {\n if (typeof this !== 'object')\n throw new TypeError('Promises must be constructed via new');\n this._listeners = [];\n this.onuncatched = nop; // Deprecate in next major. Not needed. Better to use global error handler.\n // A library may set `promise._lib = true;` after promise is created to make resolve() or reject()\n // execute the microtask engine implicitely within the call to resolve() or reject().\n // To remain A+ compliant, a library must only set `_lib=true` if it can guarantee that the stack\n // only contains library code when calling resolve() or reject().\n // RULE OF THUMB: ONLY set _lib = true for promises explicitely resolving/rejecting directly from\n // global scope (event handler, timer etc)!\n this._lib = false;\n // Current async scope\n var psd = (this._PSD = PSD);\n if (debug) {\n this._stackHolder = getErrorWithStack();\n this._prev = null;\n this._numPrev = 0; // Number of previous promises (for long stacks)\n }\n if (typeof fn !== 'function') {\n if (fn !== INTERNAL)\n throw new TypeError('Not a function');\n // Private constructor (INTERNAL, state, value).\n // Used internally by Promise.resolve() and Promise.reject().\n this._state = arguments[1];\n this._value = arguments[2];\n if (this._state === false)\n handleRejection(this, this._value); // Map error, set stack and addPossiblyUnhandledError().\n return;\n }\n this._state = null; // null (=pending), false (=rejected) or true (=resolved)\n this._value = null; // error or result\n ++psd.ref; // Refcounting current scope\n executePromiseTask(this, fn);\n}\n// Prepare a property descriptor to put onto Promise.prototype.then\nvar thenProp = {\n get: function () {\n var psd = PSD, microTaskId = totalEchoes;\n function then(onFulfilled, onRejected) {\n var _this = this;\n var possibleAwait = !psd.global && (psd !== PSD || microTaskId !== totalEchoes);\n if (possibleAwait)\n decrementExpectedAwaits();\n var rv = new Promise(function (resolve, reject) {\n propagateToListener(_this, new Listener(nativeAwaitCompatibleWrap(onFulfilled, psd, possibleAwait), nativeAwaitCompatibleWrap(onRejected, psd, possibleAwait), resolve, reject, psd));\n });\n debug && linkToPreviousPromise(rv, this);\n return rv;\n }\n then.prototype = INTERNAL; // For idempotense, see setter below.\n return then;\n },\n // Be idempotent and allow another framework (such as zone.js or another instance of a Dexie.Promise module) to replace Promise.prototype.then\n // and when that framework wants to restore the original property, we must identify that and restore the original property descriptor.\n set: function (value) {\n setProp(this, 'then', value && value.prototype === INTERNAL ?\n thenProp : // Restore to original property descriptor.\n {\n get: function () {\n return value; // Getter returning provided value (behaves like value is just changed)\n },\n set: thenProp.set // Keep a setter that is prepared to restore original.\n });\n }\n};\nprops(Promise.prototype, {\n then: thenProp,\n _then: function (onFulfilled, onRejected) {\n // A little tinier version of then() that don't have to create a resulting promise.\n propagateToListener(this, new Listener(null, null, onFulfilled, onRejected, PSD));\n },\n catch: function (onRejected) {\n if (arguments.length === 1)\n return this.then(null, onRejected);\n // First argument is the Error type to catch\n var type = arguments[0], handler = arguments[1];\n return typeof type === 'function' ? this.then(null, function (err) {\n // Catching errors by its constructor type (similar to java / c++ / c#)\n // Sample: promise.catch(TypeError, function (e) { ... });\n return err instanceof type ? handler(err) : PromiseReject(err);\n })\n : this.then(null, function (err) {\n // Catching errors by the error.name property. Makes sense for indexedDB where error type\n // is always DOMError but where e.name tells the actual error type.\n // Sample: promise.catch('ConstraintError', function (e) { ... });\n return err && err.name === type ? handler(err) : PromiseReject(err);\n });\n },\n finally: function (onFinally) {\n return this.then(function (value) {\n onFinally();\n return value;\n }, function (err) {\n onFinally();\n return PromiseReject(err);\n });\n },\n stack: {\n get: function () {\n if (this._stack)\n return this._stack;\n try {\n stack_being_generated = true;\n var stacks = getStack(this, [], MAX_LONG_STACKS);\n var stack = stacks.join(\"\\nFrom previous: \");\n if (this._state !== null)\n this._stack = stack; // Stack may be updated on reject.\n return stack;\n }\n finally {\n stack_being_generated = false;\n }\n }\n },\n timeout: function (ms, msg) {\n var _this = this;\n return ms < Infinity ?\n new Promise(function (resolve, reject) {\n var handle = setTimeout(function () { return reject(new exceptions.Timeout(msg)); }, ms);\n _this.then(resolve, reject).finally(clearTimeout.bind(null, handle));\n }) : this;\n }\n});\nif (typeof Symbol !== 'undefined' && Symbol.toStringTag)\n setProp(Promise.prototype, Symbol.toStringTag, 'Promise');\n// Now that Promise.prototype is defined, we have all it takes to set globalPSD.env.\n// Environment globals snapshotted on leaving global zone\nglobalPSD.env = snapShot();\nfunction Listener(onFulfilled, onRejected, resolve, reject, zone) {\n this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null;\n this.onRejected = typeof onRejected === 'function' ? onRejected : null;\n this.resolve = resolve;\n this.reject = reject;\n this.psd = zone;\n}\n// Promise Static Properties\nprops(Promise, {\n all: function () {\n var values = getArrayOf.apply(null, arguments) // Supports iterables, implicit arguments and array-like.\n .map(onPossibleParallellAsync); // Handle parallell async/awaits \n return new Promise(function (resolve, reject) {\n if (values.length === 0)\n resolve([]);\n var remaining = values.length;\n values.forEach(function (a, i) { return Promise.resolve(a).then(function (x) {\n values[i] = x;\n if (!--remaining)\n resolve(values);\n }, reject); });\n });\n },\n resolve: function (value) {\n if (value instanceof Promise)\n return value;\n if (value && typeof value.then === 'function')\n return new Promise(function (resolve, reject) {\n value.then(resolve, reject);\n });\n var rv = new Promise(INTERNAL, true, value);\n linkToPreviousPromise(rv, currentFulfiller);\n return rv;\n },\n reject: PromiseReject,\n race: function () {\n var values = getArrayOf.apply(null, arguments).map(onPossibleParallellAsync);\n return new Promise(function (resolve, reject) {\n values.map(function (value) { return Promise.resolve(value).then(resolve, reject); });\n });\n },\n PSD: {\n get: function () { return PSD; },\n set: function (value) { return PSD = value; }\n },\n //totalEchoes: {get: ()=>totalEchoes},\n //task: {get: ()=>task},\n newPSD: newScope,\n usePSD: usePSD,\n scheduler: {\n get: function () { return asap$1; },\n set: function (value) { asap$1 = value; }\n },\n rejectionMapper: {\n get: function () { return rejectionMapper; },\n set: function (value) { rejectionMapper = value; } // Map reject failures\n },\n follow: function (fn, zoneProps) {\n return new Promise(function (resolve, reject) {\n return newScope(function (resolve, reject) {\n var psd = PSD;\n psd.unhandleds = []; // For unhandled standard- or 3rd party Promises. Checked at psd.finalize()\n psd.onunhandled = reject; // Triggered directly on unhandled promises of this library.\n psd.finalize = callBoth(function () {\n var _this = this;\n // Unhandled standard or 3rd part promises are put in PSD.unhandleds and\n // examined upon scope completion while unhandled rejections in this Promise\n // will trigger directly through psd.onunhandled\n run_at_end_of_this_or_next_physical_tick(function () {\n _this.unhandleds.length === 0 ? resolve() : reject(_this.unhandleds[0]);\n });\n }, psd.finalize);\n fn();\n }, zoneProps, resolve, reject);\n });\n }\n});\n/**\n* Take a potentially misbehaving resolver function and make sure\n* onFulfilled and onRejected are only called once.\n*\n* Makes no guarantees about asynchrony.\n*/\nfunction executePromiseTask(promise, fn) {\n // Promise Resolution Procedure:\n // https://github.com/promises-aplus/promises-spec#the-promise-resolution-procedure\n try {\n fn(function (value) {\n if (promise._state !== null)\n return; // Already settled\n if (value === promise)\n throw new TypeError('A promise cannot be resolved with itself.');\n var shouldExecuteTick = promise._lib && beginMicroTickScope();\n if (value && typeof value.then === 'function') {\n executePromiseTask(promise, function (resolve, reject) {\n value instanceof Promise ?\n value._then(resolve, reject) :\n value.then(resolve, reject);\n });\n }\n else {\n promise._state = true;\n promise._value = value;\n propagateAllListeners(promise);\n }\n if (shouldExecuteTick)\n endMicroTickScope();\n }, handleRejection.bind(null, promise)); // If Function.bind is not supported. Exception is handled in catch below\n }\n catch (ex) {\n handleRejection(promise, ex);\n }\n}\nfunction handleRejection(promise, reason) {\n rejectingErrors.push(reason);\n if (promise._state !== null)\n return;\n var shouldExecuteTick = promise._lib && beginMicroTickScope();\n reason = rejectionMapper(reason);\n promise._state = false;\n promise._value = reason;\n debug && reason !== null && typeof reason === 'object' && !reason._promise && tryCatch(function () {\n var origProp = getPropertyDescriptor(reason, \"stack\");\n reason._promise = promise;\n setProp(reason, \"stack\", {\n get: function () {\n return stack_being_generated ?\n origProp && (origProp.get ?\n origProp.get.apply(reason) :\n origProp.value) :\n promise.stack;\n }\n });\n });\n // Add the failure to a list of possibly uncaught errors\n addPossiblyUnhandledError(promise);\n propagateAllListeners(promise);\n if (shouldExecuteTick)\n endMicroTickScope();\n}\nfunction propagateAllListeners(promise) {\n //debug && linkToPreviousPromise(promise);\n var listeners = promise._listeners;\n promise._listeners = [];\n for (var i = 0, len = listeners.length; i < len; ++i) {\n propagateToListener(promise, listeners[i]);\n }\n var psd = promise._PSD;\n --psd.ref || psd.finalize(); // if psd.ref reaches zero, call psd.finalize();\n if (numScheduledCalls === 0) {\n // If numScheduledCalls is 0, it means that our stack is not in a callback of a scheduled call,\n // and that no deferreds where listening to this rejection or success.\n // Since there is a risk that our stack can contain application code that may\n // do stuff after this code is finished that may generate new calls, we cannot\n // call finalizers here.\n ++numScheduledCalls;\n asap$1(function () {\n if (--numScheduledCalls === 0)\n finalizePhysicalTick(); // Will detect unhandled errors\n }, []);\n }\n}\nfunction propagateToListener(promise, listener) {\n if (promise._state === null) {\n promise._listeners.push(listener);\n return;\n }\n var cb = promise._state ? listener.onFulfilled : listener.onRejected;\n if (cb === null) {\n // This Listener doesnt have a listener for the event being triggered (onFulfilled or onReject) so lets forward the event to any eventual listeners on the Promise instance returned by then() or catch()\n return (promise._state ? listener.resolve : listener.reject)(promise._value);\n }\n ++listener.psd.ref;\n ++numScheduledCalls;\n asap$1(callListener, [cb, promise, listener]);\n}\nfunction callListener(cb, promise, listener) {\n try {\n // Set static variable currentFulfiller to the promise that is being fullfilled,\n // so that we connect the chain of promises (for long stacks support)\n currentFulfiller = promise;\n // Call callback and resolve our listener with it's return value.\n var ret, value = promise._value;\n if (promise._state) {\n // cb is onResolved\n ret = cb(value);\n }\n else {\n // cb is onRejected\n if (rejectingErrors.length)\n rejectingErrors = [];\n ret = cb(value);\n if (rejectingErrors.indexOf(value) === -1)\n markErrorAsHandled(promise); // Callback didnt do Promise.reject(err) nor reject(err) onto another promise.\n }\n listener.resolve(ret);\n }\n catch (e) {\n // Exception thrown in callback. Reject our listener.\n listener.reject(e);\n }\n finally {\n // Restore env and currentFulfiller.\n currentFulfiller = null;\n if (--numScheduledCalls === 0)\n finalizePhysicalTick();\n --listener.psd.ref || listener.psd.finalize();\n }\n}\nfunction getStack(promise, stacks, limit) {\n if (stacks.length === limit)\n return stacks;\n var stack = \"\";\n if (promise._state === false) {\n var failure = promise._value, errorName, message;\n if (failure != null) {\n errorName = failure.name || \"Error\";\n message = failure.message || failure;\n stack = prettyStack(failure, 0);\n }\n else {\n errorName = failure; // If error is undefined or null, show that.\n message = \"\";\n }\n stacks.push(errorName + (message ? \": \" + message : \"\") + stack);\n }\n if (debug) {\n stack = prettyStack(promise._stackHolder, 2);\n if (stack && stacks.indexOf(stack) === -1)\n stacks.push(stack);\n if (promise._prev)\n getStack(promise._prev, stacks, limit);\n }\n return stacks;\n}\nfunction linkToPreviousPromise(promise, prev) {\n // Support long stacks by linking to previous completed promise.\n var numPrev = prev ? prev._numPrev + 1 : 0;\n if (numPrev < LONG_STACKS_CLIP_LIMIT) {\n promise._prev = prev;\n promise._numPrev = numPrev;\n }\n}\n/* The callback to schedule with setImmediate() or setTimeout().\n It runs a virtual microtick and executes any callback registered in microtickQueue.\n */\nfunction physicalTick() {\n beginMicroTickScope() && endMicroTickScope();\n}\nfunction beginMicroTickScope() {\n var wasRootExec = isOutsideMicroTick;\n isOutsideMicroTick = false;\n needsNewPhysicalTick = false;\n return wasRootExec;\n}\n/* Executes micro-ticks without doing try..catch.\n This can be possible because we only use this internally and\n the registered functions are exception-safe (they do try..catch\n internally before calling any external method). If registering\n functions in the microtickQueue that are not exception-safe, this\n would destroy the framework and make it instable. So we don't export\n our asap method.\n*/\nfunction endMicroTickScope() {\n var callbacks, i, l;\n do {\n while (microtickQueue.length > 0) {\n callbacks = microtickQueue;\n microtickQueue = [];\n l = callbacks.length;\n for (i = 0; i < l; ++i) {\n var item = callbacks[i];\n item[0].apply(null, item[1]);\n }\n }\n } while (microtickQueue.length > 0);\n isOutsideMicroTick = true;\n needsNewPhysicalTick = true;\n}\nfunction finalizePhysicalTick() {\n var unhandledErrs = unhandledErrors;\n unhandledErrors = [];\n unhandledErrs.forEach(function (p) {\n p._PSD.onunhandled.call(null, p._value, p);\n });\n var finalizers = tickFinalizers.slice(0); // Clone first because finalizer may remove itself from list.\n var i = finalizers.length;\n while (i)\n finalizers[--i]();\n}\nfunction run_at_end_of_this_or_next_physical_tick(fn) {\n function finalizer() {\n fn();\n tickFinalizers.splice(tickFinalizers.indexOf(finalizer), 1);\n }\n tickFinalizers.push(finalizer);\n ++numScheduledCalls;\n asap$1(function () {\n if (--numScheduledCalls === 0)\n finalizePhysicalTick();\n }, []);\n}\nfunction addPossiblyUnhandledError(promise) {\n // Only add to unhandledErrors if not already there. The first one to add to this list\n // will be upon the first rejection so that the root cause (first promise in the\n // rejection chain) is the one listed.\n if (!unhandledErrors.some(function (p) { return p._value === promise._value; }))\n unhandledErrors.push(promise);\n}\nfunction markErrorAsHandled(promise) {\n // Called when a reject handled is actually being called.\n // Search in unhandledErrors for any promise whos _value is this promise_value (list\n // contains only rejected promises, and only one item per error)\n var i = unhandledErrors.length;\n while (i)\n if (unhandledErrors[--i]._value === promise._value) {\n // Found a promise that failed with this same error object pointer,\n // Remove that since there is a listener that actually takes care of it.\n unhandledErrors.splice(i, 1);\n return;\n }\n}\nfunction PromiseReject(reason) {\n return new Promise(INTERNAL, false, reason);\n}\nfunction wrap(fn, errorCatcher) {\n var psd = PSD;\n return function () {\n var wasRootExec = beginMicroTickScope(), outerScope = PSD;\n try {\n switchToZone(psd, true);\n return fn.apply(this, arguments);\n }\n catch (e) {\n errorCatcher && errorCatcher(e);\n }\n finally {\n switchToZone(outerScope, false);\n if (wasRootExec)\n endMicroTickScope();\n }\n };\n}\n//\n// variables used for native await support\n//\nvar task = { awaits: 0, echoes: 0, id: 0 }; // The ongoing macro-task when using zone-echoing.\nvar taskCounter = 0; // ID counter for macro tasks.\nvar zoneStack = []; // Stack of left zones to restore asynchronically.\nvar zoneEchoes = 0; // zoneEchoes is a must in order to persist zones between native await expressions.\nvar totalEchoes = 0; // ID counter for micro-tasks. Used to detect possible native await in our Promise.prototype.then.\nvar zone_id_counter = 0;\nfunction newScope(fn, props$$1, a1, a2) {\n var parent = PSD, psd = Object.create(parent);\n psd.parent = parent;\n psd.ref = 0;\n psd.global = false;\n psd.id = ++zone_id_counter;\n // Prepare for promise patching (done in usePSD):\n var globalEnv = globalPSD.env;\n psd.env = patchGlobalPromise ? {\n Promise: Promise,\n PromiseProp: { value: Promise, configurable: true, writable: true },\n all: Promise.all,\n race: Promise.race,\n resolve: Promise.resolve,\n reject: Promise.reject,\n nthen: getPatchedPromiseThen(globalEnv.nthen, psd),\n gthen: getPatchedPromiseThen(globalEnv.gthen, psd) // global then\n } : {};\n if (props$$1)\n extend(psd, props$$1);\n // unhandleds and onunhandled should not be specifically set here.\n // Leave them on parent prototype.\n // unhandleds.push(err) will push to parent's prototype\n // onunhandled() will call parents onunhandled (with this scope's this-pointer though!)\n ++parent.ref;\n psd.finalize = function () {\n --this.parent.ref || this.parent.finalize();\n };\n var rv = usePSD(psd, fn, a1, a2);\n if (psd.ref === 0)\n psd.finalize();\n return rv;\n}\n// Function to call if scopeFunc returns NativePromise\n// Also for each NativePromise in the arguments to Promise.all()\nfunction incrementExpectedAwaits() {\n if (!task.id)\n task.id = ++taskCounter;\n ++task.awaits;\n task.echoes += ZONE_ECHO_LIMIT;\n return task.id;\n}\n// Function to call when 'then' calls back on a native promise where onAwaitExpected() had been called.\n// Also call this when a native await calls then method on a promise. In that case, don't supply\n// sourceTaskId because we already know it refers to current task.\nfunction decrementExpectedAwaits(sourceTaskId) {\n if (!task.awaits || (sourceTaskId && sourceTaskId !== task.id))\n return;\n if (--task.awaits === 0)\n task.id = 0;\n task.echoes = task.awaits * ZONE_ECHO_LIMIT; // Will reset echoes to 0 if awaits is 0.\n}\n// Call from Promise.all() and Promise.race()\nfunction onPossibleParallellAsync(possiblePromise) {\n if (task.echoes && possiblePromise && possiblePromise.constructor === NativePromise) {\n incrementExpectedAwaits();\n return possiblePromise.then(function (x) {\n decrementExpectedAwaits();\n return x;\n }, function (e) {\n decrementExpectedAwaits();\n return rejection(e);\n });\n }\n return possiblePromise;\n}\nfunction zoneEnterEcho(targetZone) {\n ++totalEchoes;\n if (!task.echoes || --task.echoes === 0) {\n task.echoes = task.id = 0; // Cancel zone echoing.\n }\n zoneStack.push(PSD);\n switchToZone(targetZone, true);\n}\nfunction zoneLeaveEcho() {\n var zone = zoneStack[zoneStack.length - 1];\n zoneStack.pop();\n switchToZone(zone, false);\n}\nfunction switchToZone(targetZone, bEnteringZone) {\n var currentZone = PSD;\n if (bEnteringZone ? task.echoes && (!zoneEchoes++ || targetZone !== PSD) : zoneEchoes && (!--zoneEchoes || targetZone !== PSD)) {\n // Enter or leave zone asynchronically as well, so that tasks initiated during current tick\n // will be surrounded by the zone when they are invoked.\n enqueueNativeMicroTask(bEnteringZone ? zoneEnterEcho.bind(null, targetZone) : zoneLeaveEcho);\n }\n if (targetZone === PSD)\n return;\n PSD = targetZone; // The actual zone switch occurs at this line.\n // Snapshot on every leave from global zone.\n if (currentZone === globalPSD)\n globalPSD.env = snapShot();\n if (patchGlobalPromise) {\n // Let's patch the global and native Promises (may be same or may be different)\n var GlobalPromise = globalPSD.env.Promise;\n // Swich environments (may be PSD-zone or the global zone. Both apply.)\n var targetEnv = targetZone.env;\n // Change Promise.prototype.then for native and global Promise (they MAY differ on polyfilled environments, but both can be accessed)\n // Must be done on each zone change because the patched method contains targetZone in its closure.\n nativePromiseProto.then = targetEnv.nthen;\n GlobalPromise.prototype.then = targetEnv.gthen;\n if (currentZone.global || targetZone.global) {\n // Leaving or entering global zone. It's time to patch / restore global Promise.\n // Set this Promise to window.Promise so that transiled async functions will work on Firefox, Safari and IE, as well as with Zonejs and angular.\n Object.defineProperty(_global, 'Promise', targetEnv.PromiseProp);\n // Support Promise.all() etc to work indexedDB-safe also when people are including es6-promise as a module (they might\n // not be accessing global.Promise but a local reference to it)\n GlobalPromise.all = targetEnv.all;\n GlobalPromise.race = targetEnv.race;\n GlobalPromise.resolve = targetEnv.resolve;\n GlobalPromise.reject = targetEnv.reject;\n }\n }\n}\nfunction snapShot() {\n var GlobalPromise = _global.Promise;\n return patchGlobalPromise ? {\n Promise: GlobalPromise,\n PromiseProp: Object.getOwnPropertyDescriptor(_global, \"Promise\"),\n all: GlobalPromise.all,\n race: GlobalPromise.race,\n resolve: GlobalPromise.resolve,\n reject: GlobalPromise.reject,\n nthen: nativePromiseProto.then,\n gthen: GlobalPromise.prototype.then\n } : {};\n}\nfunction usePSD(psd, fn, a1, a2, a3) {\n var outerScope = PSD;\n try {\n switchToZone(psd, true);\n return fn(a1, a2, a3);\n }\n finally {\n switchToZone(outerScope, false);\n }\n}\nfunction enqueueNativeMicroTask(job) {\n //\n // Precondition: nativePromiseThen !== undefined\n //\n nativePromiseThen.call(resolvedNativePromise, job);\n}\nfunction nativeAwaitCompatibleWrap(fn, zone, possibleAwait) {\n return typeof fn !== 'function' ? fn : function () {\n var outerZone = PSD;\n if (possibleAwait)\n incrementExpectedAwaits();\n switchToZone(zone, true);\n try {\n return fn.apply(this, arguments);\n }\n finally {\n switchToZone(outerZone, false);\n }\n };\n}\nfunction getPatchedPromiseThen(origThen, zone) {\n return function (onResolved, onRejected) {\n return origThen.call(this, nativeAwaitCompatibleWrap(onResolved, zone, false), nativeAwaitCompatibleWrap(onRejected, zone, false));\n };\n}\nvar UNHANDLEDREJECTION = \"unhandledrejection\";\nfunction globalError(err, promise) {\n var rv;\n try {\n rv = promise.onuncatched(err);\n }\n catch (e) { }\n if (rv !== false)\n try {\n var event, eventData = { promise: promise, reason: err };\n if (_global.document && document.createEvent) {\n event = document.createEvent('Event');\n event.initEvent(UNHANDLEDREJECTION, true, true);\n extend(event, eventData);\n }\n else if (_global.CustomEvent) {\n event = new CustomEvent(UNHANDLEDREJECTION, { detail: eventData });\n extend(event, eventData);\n }\n if (event && _global.dispatchEvent) {\n dispatchEvent(event);\n if (!_global.PromiseRejectionEvent && _global.onunhandledrejection)\n // No native support for PromiseRejectionEvent but user has set window.onunhandledrejection. Manually call it.\n try {\n _global.onunhandledrejection(event);\n }\n catch (_) { }\n }\n if (!event.defaultPrevented) {\n console.warn(\"Unhandled rejection: \" + (err.stack || err));\n }\n }\n catch (e) { }\n}\nvar rejection = Promise.reject;\n\nfunction Events(ctx) {\n var evs = {};\n var rv = function (eventName, subscriber) {\n if (subscriber) {\n // Subscribe. If additional arguments than just the subscriber was provided, forward them as well.\n var i = arguments.length, args = new Array(i - 1);\n while (--i)\n args[i - 1] = arguments[i];\n evs[eventName].subscribe.apply(null, args);\n return ctx;\n }\n else if (typeof (eventName) === 'string') {\n // Return interface allowing to fire or unsubscribe from event\n return evs[eventName];\n }\n };\n rv.addEventType = add;\n for (var i = 1, l = arguments.length; i < l; ++i) {\n add(arguments[i]);\n }\n return rv;\n function add(eventName, chainFunction, defaultFunction) {\n if (typeof eventName === 'object')\n return addConfiguredEvents(eventName);\n if (!chainFunction)\n chainFunction = reverseStoppableEventChain;\n if (!defaultFunction)\n defaultFunction = nop;\n var context = {\n subscribers: [],\n fire: defaultFunction,\n subscribe: function (cb) {\n if (context.subscribers.indexOf(cb) === -1) {\n context.subscribers.push(cb);\n context.fire = chainFunction(context.fire, cb);\n }\n },\n unsubscribe: function (cb) {\n context.subscribers = context.subscribers.filter(function (fn) { return fn !== cb; });\n context.fire = context.subscribers.reduce(chainFunction, defaultFunction);\n }\n };\n evs[eventName] = rv[eventName] = context;\n return context;\n }\n function addConfiguredEvents(cfg) {\n // events(this, {reading: [functionChain, nop]});\n keys(cfg).forEach(function (eventName) {\n var args = cfg[eventName];\n if (isArray(args)) {\n add(eventName, cfg[eventName][0], cfg[eventName][1]);\n }\n else if (args === 'asap') {\n // Rather than approaching event subscription using a functional approach, we here do it in a for-loop where subscriber is executed in its own stack\n // enabling that any exception that occur wont disturb the initiator and also not nescessary be catched and forgotten.\n var context = add(eventName, mirror, function fire() {\n // Optimazation-safe cloning of arguments into args.\n var i = arguments.length, args = new Array(i);\n while (i--)\n args[i] = arguments[i];\n // All each subscriber:\n context.subscribers.forEach(function (fn) {\n asap(function fireEvent() {\n fn.apply(null, args);\n });\n });\n });\n }\n else\n throw new exceptions.InvalidArgument(\"Invalid event config\");\n });\n }\n}\n\n/*\n * Dexie.js - a minimalistic wrapper for IndexedDB\n * ===============================================\n *\n * Copyright (c) 2014-2017 David Fahlander\n *\n * Version {version}, {date}\n *\n * http://dexie.org\n *\n * Apache License Version 2.0, January 2004, http://www.apache.org/licenses/LICENSE-2.0\n *\n */\nvar DEXIE_VERSION = '{version}';\nvar maxString = String.fromCharCode(65535);\nvar maxKey = (function () { try {\n IDBKeyRange.only([[]]);\n return [[]];\n}\ncatch (e) {\n return maxString;\n} })();\nvar minKey = -Infinity;\nvar INVALID_KEY_ARGUMENT = \"Invalid key provided. Keys must be of type string, number, Date or Array.\";\nvar STRING_EXPECTED = \"String expected.\";\nvar connections = [];\nvar isIEOrEdge = typeof navigator !== 'undefined' && /(MSIE|Trident|Edge)/.test(navigator.userAgent);\nvar hasIEDeleteObjectStoreBug = isIEOrEdge;\nvar hangsOnDeleteLargeKeyRange = isIEOrEdge;\nvar dexieStackFrameFilter = function (frame) { return !/(dexie\\.js|dexie\\.min\\.js)/.test(frame); };\nvar dbNamesDB; // Global database for backing Dexie.getDatabaseNames() on browser without indexedDB.webkitGetDatabaseNames() \n// Init debug\nsetDebug(debug, dexieStackFrameFilter);\nfunction Dexie(dbName, options) {\n /// Specify only if you wich to control which addons that should run on this instance\n var deps = Dexie.dependencies;\n var opts = extend({\n // Default Options\n addons: Dexie.addons,\n autoOpen: true,\n indexedDB: deps.indexedDB,\n IDBKeyRange: deps.IDBKeyRange // Backend IDBKeyRange api. Default to browser env.\n }, options);\n var addons = opts.addons, autoOpen = opts.autoOpen, indexedDB = opts.indexedDB, IDBKeyRange = opts.IDBKeyRange;\n var globalSchema = this._dbSchema = {};\n var versions = [];\n var dbStoreNames = [];\n var allTables = {};\n ///\n var idbdb = null; // Instance of IDBDatabase\n var dbOpenError = null;\n var isBeingOpened = false;\n var onReadyBeingFired = null;\n var openComplete = false;\n var READONLY = \"readonly\", READWRITE = \"readwrite\";\n var db = this;\n var dbReadyResolve, dbReadyPromise = new Promise(function (resolve) {\n dbReadyResolve = resolve;\n }), cancelOpen, openCanceller = new Promise(function (_, reject) {\n cancelOpen = reject;\n });\n var autoSchema = true;\n var hasNativeGetDatabaseNames = !!getNativeGetDatabaseNamesFn(indexedDB), hasGetAll;\n function init() {\n // Default subscribers to \"versionchange\" and \"blocked\".\n // Can be overridden by custom handlers. If custom handlers return false, these default\n // behaviours will be prevented.\n db.on(\"versionchange\", function (ev) {\n // Default behavior for versionchange event is to close database connection.\n // Caller can override this behavior by doing db.on(\"versionchange\", function(){ return false; });\n // Let's not block the other window from making it's delete() or open() call.\n // NOTE! This event is never fired in IE,Edge or Safari.\n if (ev.newVersion > 0)\n console.warn(\"Another connection wants to upgrade database '\" + db.name + \"'. Closing db now to resume the upgrade.\");\n else\n console.warn(\"Another connection wants to delete database '\" + db.name + \"'. Closing db now to resume the delete request.\");\n db.close();\n // In many web applications, it would be recommended to force window.reload()\n // when this event occurs. To do that, subscribe to the versionchange event\n // and call window.location.reload(true) if ev.newVersion > 0 (not a deletion)\n // The reason for this is that your current web app obviously has old schema code that needs\n // to be updated. Another window got a newer version of the app and needs to upgrade DB but\n // your window is blocking it unless we close it here.\n });\n db.on(\"blocked\", function (ev) {\n if (!ev.newVersion || ev.newVersion < ev.oldVersion)\n console.warn(\"Dexie.delete('\" + db.name + \"') was blocked\");\n else\n console.warn(\"Upgrade '\" + db.name + \"' blocked by other connection holding version \" + ev.oldVersion / 10);\n });\n }\n //\n //\n //\n // ------------------------- Versioning Framework---------------------------\n //\n //\n //\n this.version = function (versionNumber) {\n /// \n /// \n if (idbdb || isBeingOpened)\n throw new exceptions.Schema(\"Cannot add version when database is open\");\n this.verno = Math.max(this.verno, versionNumber);\n var versionInstance = versions.filter(function (v) { return v._cfg.version === versionNumber; })[0];\n if (versionInstance)\n return versionInstance;\n versionInstance = new Version(versionNumber);\n versions.push(versionInstance);\n versions.sort(lowerVersionFirst);\n // Disable autoschema mode, as at least one version is specified.\n autoSchema = false;\n return versionInstance;\n };\n function Version(versionNumber) {\n this._cfg = {\n version: versionNumber,\n storesSource: null,\n dbschema: {},\n tables: {},\n contentUpgrade: null\n };\n this.stores({}); // Derive earlier schemas by default.\n }\n extend(Version.prototype, {\n stores: function (stores) {\n /// \n /// Defines the schema for a particular version\n /// \n /// \n /// Example:
\n /// {users: \"id++,first,last,&username,*email\",
\n /// passwords: \"id++,&username\"}
\n ///
\n /// Syntax: {Table: \"[primaryKey][++],[&][*]index1,[&][*]index2,...\"}

\n /// Special characters:
\n /// \"&\" means unique key,
\n /// \"*\" means value is multiEntry,
\n /// \"++\" means auto-increment and only applicable for primary key
\n /// \n this._cfg.storesSource = this._cfg.storesSource ? extend(this._cfg.storesSource, stores) : stores;\n // Derive stores from earlier versions if they are not explicitely specified as null or a new syntax.\n var storesSpec = {};\n versions.forEach(function (version) {\n extend(storesSpec, version._cfg.storesSource);\n });\n var dbschema = (this._cfg.dbschema = {});\n this._parseStoresSpec(storesSpec, dbschema);\n // Update the latest schema to this version\n // Update API\n globalSchema = db._dbSchema = dbschema;\n removeTablesApi([allTables, db, Transaction.prototype]); // Keep Transaction.prototype even though it should be depr.\n setApiOnPlace([allTables, db, Transaction.prototype, this._cfg.tables], keys(dbschema), dbschema);\n dbStoreNames = keys(dbschema);\n return this;\n },\n upgrade: function (upgradeFunction) {\n this._cfg.contentUpgrade = upgradeFunction;\n return this;\n },\n _parseStoresSpec: function (stores, outSchema) {\n keys(stores).forEach(function (tableName) {\n if (stores[tableName] !== null) {\n var instanceTemplate = {};\n var indexes = parseIndexSyntax(stores[tableName]);\n var primKey = indexes.shift();\n if (primKey.multi)\n throw new exceptions.Schema(\"Primary key cannot be multi-valued\");\n if (primKey.keyPath)\n setByKeyPath(instanceTemplate, primKey.keyPath, primKey.auto ? 0 : primKey.keyPath);\n indexes.forEach(function (idx) {\n if (idx.auto)\n throw new exceptions.Schema(\"Only primary key can be marked as autoIncrement (++)\");\n if (!idx.keyPath)\n throw new exceptions.Schema(\"Index must have a name and cannot be an empty string\");\n setByKeyPath(instanceTemplate, idx.keyPath, idx.compound ? idx.keyPath.map(function () { return \"\"; }) : \"\");\n });\n outSchema[tableName] = new TableSchema(tableName, primKey, indexes, instanceTemplate);\n }\n });\n }\n });\n function runUpgraders(oldVersion, idbtrans, reject) {\n var trans = db._createTransaction(READWRITE, dbStoreNames, globalSchema);\n trans.create(idbtrans);\n trans._completion.catch(reject);\n var rejectTransaction = trans._reject.bind(trans);\n newScope(function () {\n PSD.trans = trans;\n if (oldVersion === 0) {\n // Create tables:\n keys(globalSchema).forEach(function (tableName) {\n createTable(idbtrans, tableName, globalSchema[tableName].primKey, globalSchema[tableName].indexes);\n });\n Promise.follow(function () { return db.on.populate.fire(trans); }).catch(rejectTransaction);\n }\n else\n updateTablesAndIndexes(oldVersion, trans, idbtrans).catch(rejectTransaction);\n });\n }\n function updateTablesAndIndexes(oldVersion, trans, idbtrans) {\n // Upgrade version to version, step-by-step from oldest to newest version.\n // Each transaction object will contain the table set that was current in that version (but also not-yet-deleted tables from its previous version)\n var queue = [];\n var oldVersionStruct = versions.filter(function (version) { return version._cfg.version === oldVersion; })[0];\n if (!oldVersionStruct)\n throw new exceptions.Upgrade(\"Dexie specification of currently installed DB version is missing\");\n globalSchema = db._dbSchema = oldVersionStruct._cfg.dbschema;\n var anyContentUpgraderHasRun = false;\n var versToRun = versions.filter(function (v) { return v._cfg.version > oldVersion; });\n versToRun.forEach(function (version) {\n /// \n queue.push(function () {\n var oldSchema = globalSchema;\n var newSchema = version._cfg.dbschema;\n adjustToExistingIndexNames(oldSchema, idbtrans);\n adjustToExistingIndexNames(newSchema, idbtrans);\n globalSchema = db._dbSchema = newSchema;\n var diff = getSchemaDiff(oldSchema, newSchema);\n // Add tables \n diff.add.forEach(function (tuple) {\n createTable(idbtrans, tuple[0], tuple[1].primKey, tuple[1].indexes);\n });\n // Change tables\n diff.change.forEach(function (change) {\n if (change.recreate) {\n throw new exceptions.Upgrade(\"Not yet support for changing primary key\");\n }\n else {\n var store = idbtrans.objectStore(change.name);\n // Add indexes\n change.add.forEach(function (idx) {\n addIndex(store, idx);\n });\n // Update indexes\n change.change.forEach(function (idx) {\n store.deleteIndex(idx.name);\n addIndex(store, idx);\n });\n // Delete indexes\n change.del.forEach(function (idxName) {\n store.deleteIndex(idxName);\n });\n }\n });\n if (version._cfg.contentUpgrade) {\n anyContentUpgraderHasRun = true;\n return Promise.follow(function () {\n version._cfg.contentUpgrade(trans);\n });\n }\n });\n queue.push(function (idbtrans) {\n if (!anyContentUpgraderHasRun || !hasIEDeleteObjectStoreBug) {\n var newSchema = version._cfg.dbschema;\n // Delete old tables\n deleteRemovedTables(newSchema, idbtrans);\n }\n });\n });\n // Now, create a queue execution engine\n function runQueue() {\n return queue.length ? Promise.resolve(queue.shift()(trans.idbtrans)).then(runQueue) :\n Promise.resolve();\n }\n return runQueue().then(function () {\n createMissingTables(globalSchema, idbtrans); // At last, make sure to create any missing tables. (Needed by addons that add stores to DB without specifying version)\n });\n }\n function getSchemaDiff(oldSchema, newSchema) {\n var diff = {\n del: [],\n add: [],\n change: [] // Array of {name: tableName, recreate: newDefinition, del: delIndexNames, add: newIndexDefs, change: changedIndexDefs}\n };\n for (var table in oldSchema) {\n if (!newSchema[table])\n diff.del.push(table);\n }\n for (table in newSchema) {\n var oldDef = oldSchema[table], newDef = newSchema[table];\n if (!oldDef) {\n diff.add.push([table, newDef]);\n }\n else {\n var change = {\n name: table,\n def: newDef,\n recreate: false,\n del: [],\n add: [],\n change: []\n };\n if (oldDef.primKey.src !== newDef.primKey.src) {\n // Primary key has changed. Remove and re-add table.\n change.recreate = true;\n diff.change.push(change);\n }\n else {\n // Same primary key. Just find out what differs:\n var oldIndexes = oldDef.idxByName;\n var newIndexes = newDef.idxByName;\n for (var idxName in oldIndexes) {\n if (!newIndexes[idxName])\n change.del.push(idxName);\n }\n for (idxName in newIndexes) {\n var oldIdx = oldIndexes[idxName], newIdx = newIndexes[idxName];\n if (!oldIdx)\n change.add.push(newIdx);\n else if (oldIdx.src !== newIdx.src)\n change.change.push(newIdx);\n }\n if (change.del.length > 0 || change.add.length > 0 || change.change.length > 0) {\n diff.change.push(change);\n }\n }\n }\n }\n return diff;\n }\n function createTable(idbtrans, tableName, primKey, indexes) {\n /// \n var store = idbtrans.db.createObjectStore(tableName, primKey.keyPath ? { keyPath: primKey.keyPath, autoIncrement: primKey.auto } : { autoIncrement: primKey.auto });\n indexes.forEach(function (idx) { addIndex(store, idx); });\n return store;\n }\n function createMissingTables(newSchema, idbtrans) {\n keys(newSchema).forEach(function (tableName) {\n if (!idbtrans.db.objectStoreNames.contains(tableName)) {\n createTable(idbtrans, tableName, newSchema[tableName].primKey, newSchema[tableName].indexes);\n }\n });\n }\n function deleteRemovedTables(newSchema, idbtrans) {\n for (var i = 0; i < idbtrans.db.objectStoreNames.length; ++i) {\n var storeName = idbtrans.db.objectStoreNames[i];\n if (newSchema[storeName] == null) {\n idbtrans.db.deleteObjectStore(storeName);\n }\n }\n }\n function addIndex(store, idx) {\n store.createIndex(idx.name, idx.keyPath, { unique: idx.unique, multiEntry: idx.multi });\n }\n //\n //\n // Dexie Protected API\n //\n //\n this._allTables = allTables;\n this._createTransaction = function (mode, storeNames, dbschema, parentTransaction) {\n return new Transaction(mode, storeNames, dbschema, parentTransaction);\n };\n /* Generate a temporary transaction when db operations are done outside a transaction scope.\n */\n function tempTransaction(mode, storeNames, fn) {\n if (!openComplete && (!PSD.letThrough)) {\n if (!isBeingOpened) {\n if (!autoOpen)\n return rejection(new exceptions.DatabaseClosed());\n db.open().catch(nop); // Open in background. If if fails, it will be catched by the final promise anyway.\n }\n return dbReadyPromise.then(function () { return tempTransaction(mode, storeNames, fn); });\n }\n else {\n var trans = db._createTransaction(mode, storeNames, globalSchema);\n try {\n trans.create();\n }\n catch (ex) {\n return rejection(ex);\n }\n return trans._promise(mode, function (resolve, reject) {\n return newScope(function () {\n PSD.trans = trans;\n return fn(resolve, reject, trans);\n });\n }).then(function (result) {\n // Instead of resolving value directly, wait with resolving it until transaction has completed.\n // Otherwise the data would not be in the DB if requesting it in the then() operation.\n // Specifically, to ensure that the following expression will work:\n //\n // db.friends.put({name: \"Arne\"}).then(function () {\n // db.friends.where(\"name\").equals(\"Arne\").count(function(count) {\n // assert (count === 1);\n // });\n // });\n //\n return trans._completion.then(function () { return result; });\n }); /*.catch(err => { // Don't do this as of now. If would affect bulk- and modify methods in a way that could be more intuitive. But wait! Maybe change in next major.\n trans._reject(err);\n return rejection(err);\n });*/\n }\n }\n this._whenReady = function (fn) {\n return openComplete || PSD.letThrough ? fn() : new Promise(function (resolve, reject) {\n if (!isBeingOpened) {\n if (!autoOpen) {\n reject(new exceptions.DatabaseClosed());\n return;\n }\n db.open().catch(nop); // Open in background. If if fails, it will be catched by the final promise anyway.\n }\n dbReadyPromise.then(resolve, reject);\n }).then(fn);\n };\n //\n //\n //\n //\n // Dexie API\n //\n //\n //\n this.verno = 0;\n this.open = function () {\n if (isBeingOpened || idbdb)\n return dbReadyPromise.then(function () { return dbOpenError ? rejection(dbOpenError) : db; });\n debug && (openCanceller._stackHolder = getErrorWithStack()); // Let stacks point to when open() was called rather than where new Dexie() was called.\n isBeingOpened = true;\n dbOpenError = null;\n openComplete = false;\n // Function pointers to call when the core opening process completes.\n var resolveDbReady = dbReadyResolve, \n // upgradeTransaction to abort on failure.\n upgradeTransaction = null;\n return Promise.race([openCanceller, new Promise(function (resolve, reject) {\n // Multiply db.verno with 10 will be needed to workaround upgrading bug in IE:\n // IE fails when deleting objectStore after reading from it.\n // A future version of Dexie.js will stopover an intermediate version to workaround this.\n // At that point, we want to be backward compatible. Could have been multiplied with 2, but by using 10, it is easier to map the number to the real version number.\n // If no API, throw!\n if (!indexedDB)\n throw new exceptions.MissingAPI(\"indexedDB API not found. If using IE10+, make sure to run your code on a server URL \" +\n \"(not locally). If using old Safari versions, make sure to include indexedDB polyfill.\");\n var req = autoSchema ? indexedDB.open(dbName) : indexedDB.open(dbName, Math.round(db.verno * 10));\n if (!req)\n throw new exceptions.MissingAPI(\"IndexedDB API not available\"); // May happen in Safari private mode, see https://github.com/dfahlander/Dexie.js/issues/134\n req.onerror = eventRejectHandler(reject);\n req.onblocked = wrap(fireOnBlocked);\n req.onupgradeneeded = wrap(function (e) {\n upgradeTransaction = req.transaction;\n if (autoSchema && !db._allowEmptyDB) {\n // Caller did not specify a version or schema. Doing that is only acceptable for opening alread existing databases.\n // If onupgradeneeded is called it means database did not exist. Reject the open() promise and make sure that we\n // do not create a new database by accident here.\n req.onerror = preventDefault; // Prohibit onabort error from firing before we're done!\n upgradeTransaction.abort(); // Abort transaction (would hope that this would make DB disappear but it doesnt.)\n // Close database and delete it.\n req.result.close();\n var delreq = indexedDB.deleteDatabase(dbName); // The upgrade transaction is atomic, and javascript is single threaded - meaning that there is no risk that we delete someone elses database here!\n delreq.onsuccess = delreq.onerror = wrap(function () {\n reject(new exceptions.NoSuchDatabase(\"Database \" + dbName + \" doesnt exist\"));\n });\n }\n else {\n upgradeTransaction.onerror = eventRejectHandler(reject);\n var oldVer = e.oldVersion > Math.pow(2, 62) ? 0 : e.oldVersion; // Safari 8 fix.\n runUpgraders(oldVer / 10, upgradeTransaction, reject, req);\n }\n }, reject);\n req.onsuccess = wrap(function () {\n // Core opening procedure complete. Now let's just record some stuff.\n upgradeTransaction = null;\n idbdb = req.result;\n connections.push(db); // Used for emulating versionchange event on IE/Edge/Safari.\n if (autoSchema)\n readGlobalSchema();\n else if (idbdb.objectStoreNames.length > 0) {\n try {\n adjustToExistingIndexNames(globalSchema, idbdb.transaction(safariMultiStoreFix(idbdb.objectStoreNames), READONLY));\n }\n catch (e) {\n // Safari may bail out if > 1 store names. However, this shouldnt be a showstopper. Issue #120.\n }\n }\n idbdb.onversionchange = wrap(function (ev) {\n db._vcFired = true; // detect implementations that not support versionchange (IE/Edge/Safari)\n db.on(\"versionchange\").fire(ev);\n });\n if (!hasNativeGetDatabaseNames && dbName !== '__dbnames') {\n dbNamesDB.dbnames.put({ name: dbName }).catch(nop);\n }\n resolve();\n }, reject);\n })]).then(function () {\n // Before finally resolving the dbReadyPromise and this promise,\n // call and await all on('ready') subscribers:\n // Dexie.vip() makes subscribers able to use the database while being opened.\n // This is a must since these subscribers take part of the opening procedure.\n onReadyBeingFired = [];\n return Promise.resolve(Dexie.vip(db.on.ready.fire)).then(function fireRemainders() {\n if (onReadyBeingFired.length > 0) {\n // In case additional subscribers to db.on('ready') were added during the time db.on.ready.fire was executed.\n var remainders = onReadyBeingFired.reduce(promisableChain, nop);\n onReadyBeingFired = [];\n return Promise.resolve(Dexie.vip(remainders)).then(fireRemainders);\n }\n });\n }).finally(function () {\n onReadyBeingFired = null;\n }).then(function () {\n // Resolve the db.open() with the db instance.\n isBeingOpened = false;\n return db;\n }).catch(function (err) {\n try {\n // Did we fail within onupgradeneeded? Make sure to abort the upgrade transaction so it doesnt commit.\n upgradeTransaction && upgradeTransaction.abort();\n }\n catch (e) { }\n isBeingOpened = false; // Set before calling db.close() so that it doesnt reject openCanceller again (leads to unhandled rejection event).\n db.close(); // Closes and resets idbdb, removes connections, resets dbReadyPromise and openCanceller so that a later db.open() is fresh.\n // A call to db.close() may have made on-ready subscribers fail. Use dbOpenError if set, since err could be a follow-up error on that.\n dbOpenError = err; // Record the error. It will be used to reject further promises of db operations.\n return rejection(dbOpenError);\n }).finally(function () {\n openComplete = true;\n resolveDbReady(); // dbReadyPromise is resolved no matter if open() rejects or resolved. It's just to wake up waiters.\n });\n };\n this.close = function () {\n var idx = connections.indexOf(db);\n if (idx >= 0)\n connections.splice(idx, 1);\n if (idbdb) {\n try {\n idbdb.close();\n }\n catch (e) { }\n idbdb = null;\n }\n autoOpen = false;\n dbOpenError = new exceptions.DatabaseClosed();\n if (isBeingOpened)\n cancelOpen(dbOpenError);\n // Reset dbReadyPromise promise:\n dbReadyPromise = new Promise(function (resolve) {\n dbReadyResolve = resolve;\n });\n openCanceller = new Promise(function (_, reject) {\n cancelOpen = reject;\n });\n };\n this.delete = function () {\n var hasArguments = arguments.length > 0;\n return new Promise(function (resolve, reject) {\n if (hasArguments)\n throw new exceptions.InvalidArgument(\"Arguments not allowed in db.delete()\");\n if (isBeingOpened) {\n dbReadyPromise.then(doDelete);\n }\n else {\n doDelete();\n }\n function doDelete() {\n db.close();\n var req = indexedDB.deleteDatabase(dbName);\n req.onsuccess = wrap(function () {\n if (!hasNativeGetDatabaseNames) {\n dbNamesDB.dbnames.delete(dbName).catch(nop);\n }\n resolve();\n });\n req.onerror = eventRejectHandler(reject);\n req.onblocked = fireOnBlocked;\n }\n });\n };\n this.backendDB = function () {\n return idbdb;\n };\n this.isOpen = function () {\n return idbdb !== null;\n };\n this.hasBeenClosed = function () {\n return dbOpenError && (dbOpenError instanceof exceptions.DatabaseClosed);\n };\n this.hasFailed = function () {\n return dbOpenError !== null;\n };\n this.dynamicallyOpened = function () {\n return autoSchema;\n };\n //\n // Properties\n //\n this.name = dbName;\n // db.tables - an array of all Table instances.\n props(this, {\n tables: {\n get: function () {\n /// \n return keys(allTables).map(function (name) { return allTables[name]; });\n }\n }\n });\n //\n // Events\n //\n this.on = Events(this, \"populate\", \"blocked\", \"versionchange\", { ready: [promisableChain, nop] });\n this.on.ready.subscribe = override(this.on.ready.subscribe, function (subscribe) {\n return function (subscriber, bSticky) {\n Dexie.vip(function () {\n if (openComplete) {\n // Database already open. Call subscriber asap.\n if (!dbOpenError)\n Promise.resolve().then(subscriber);\n // bSticky: Also subscribe to future open sucesses (after close / reopen) \n if (bSticky)\n subscribe(subscriber);\n }\n else if (onReadyBeingFired) {\n // db.on('ready') subscribers are currently being executed and have not yet resolved or rejected\n onReadyBeingFired.push(subscriber);\n if (bSticky)\n subscribe(subscriber);\n }\n else {\n // Database not yet open. Subscribe to it.\n subscribe(subscriber);\n // If bSticky is falsy, make sure to unsubscribe subscriber when fired once.\n if (!bSticky)\n subscribe(function unsubscribe() {\n db.on.ready.unsubscribe(subscriber);\n db.on.ready.unsubscribe(unsubscribe);\n });\n }\n });\n };\n });\n this.transaction = function () {\n /// \n ///\n /// \n /// \"r\" for readonly, or \"rw\" for readwrite\n /// Table instance, Array of Table instances, String or String Array of object stores to include in the transaction\n /// Function to execute with transaction\n var args = extractTransactionArgs.apply(this, arguments);\n return this._transaction.apply(this, args);\n };\n function extractTransactionArgs(mode, _tableArgs_, scopeFunc) {\n // Let table arguments be all arguments between mode and last argument.\n var i = arguments.length;\n if (i < 2)\n throw new exceptions.InvalidArgument(\"Too few arguments\");\n // Prevent optimzation killer (https://github.com/petkaantonov/bluebird/wiki/Optimization-killers#32-leaking-arguments)\n // and clone arguments except the first one into local var 'args'.\n var args = new Array(i - 1);\n while (--i)\n args[i - 1] = arguments[i];\n // Let scopeFunc be the last argument and pop it so that args now only contain the table arguments.\n scopeFunc = args.pop();\n var tables = flatten(args); // Support using array as middle argument, or a mix of arrays and non-arrays.\n return [mode, tables, scopeFunc];\n }\n this._transaction = function (mode, tables, scopeFunc) {\n var parentTransaction = PSD.trans;\n // Check if parent transactions is bound to this db instance, and if caller wants to reuse it\n if (!parentTransaction || parentTransaction.db !== db || mode.indexOf('!') !== -1)\n parentTransaction = null;\n var onlyIfCompatible = mode.indexOf('?') !== -1;\n mode = mode.replace('!', '').replace('?', ''); // Ok. Will change arguments[0] as well but we wont touch arguments henceforth.\n try {\n //\n // Get storeNames from arguments. Either through given table instances, or through given table names.\n //\n var storeNames = tables.map(function (table) {\n var storeName = table instanceof Table ? table.name : table;\n if (typeof storeName !== 'string')\n throw new TypeError(\"Invalid table argument to Dexie.transaction(). Only Table or String are allowed\");\n return storeName;\n });\n //\n // Resolve mode. Allow shortcuts \"r\" and \"rw\".\n //\n if (mode == \"r\" || mode == READONLY)\n mode = READONLY;\n else if (mode == \"rw\" || mode == READWRITE)\n mode = READWRITE;\n else\n throw new exceptions.InvalidArgument(\"Invalid transaction mode: \" + mode);\n if (parentTransaction) {\n // Basic checks\n if (parentTransaction.mode === READONLY && mode === READWRITE) {\n if (onlyIfCompatible) {\n // Spawn new transaction instead.\n parentTransaction = null;\n }\n else\n throw new exceptions.SubTransaction(\"Cannot enter a sub-transaction with READWRITE mode when parent transaction is READONLY\");\n }\n if (parentTransaction) {\n storeNames.forEach(function (storeName) {\n if (parentTransaction && parentTransaction.storeNames.indexOf(storeName) === -1) {\n if (onlyIfCompatible) {\n // Spawn new transaction instead.\n parentTransaction = null;\n }\n else\n throw new exceptions.SubTransaction(\"Table \" + storeName +\n \" not included in parent transaction.\");\n }\n });\n }\n if (onlyIfCompatible && parentTransaction && !parentTransaction.active) {\n // '?' mode should not keep using an inactive transaction.\n parentTransaction = null;\n }\n }\n }\n catch (e) {\n return parentTransaction ?\n parentTransaction._promise(null, function (_, reject) { reject(e); }) :\n rejection(e);\n }\n // If this is a sub-transaction, lock the parent and then launch the sub-transaction.\n return (parentTransaction ?\n parentTransaction._promise(mode, enterTransactionScope, \"lock\") :\n PSD.trans ?\n // no parent transaction despite PSD.trans exists. Make sure also\n // that the zone we create is not a sub-zone of current, because\n // Promise.follow() should not wait for it if so.\n usePSD(PSD.transless, function () { return db._whenReady(enterTransactionScope); }) :\n db._whenReady(enterTransactionScope));\n function enterTransactionScope() {\n return Promise.resolve().then(function () {\n // Keep a pointer to last non-transactional PSD to use if someone calls Dexie.ignoreTransaction().\n var transless = PSD.transless || PSD;\n // Our transaction.\n //return new Promise((resolve, reject) => {\n var trans = db._createTransaction(mode, storeNames, globalSchema, parentTransaction);\n // Let the transaction instance be part of a Promise-specific data (PSD) value.\n var zoneProps = {\n trans: trans,\n transless: transless\n };\n if (parentTransaction) {\n // Emulate transaction commit awareness for inner transaction (must 'commit' when the inner transaction has no more operations ongoing)\n trans.idbtrans = parentTransaction.idbtrans;\n }\n else {\n trans.create(); // Create the backend transaction so that complete() or error() will trigger even if no operation is made upon it.\n }\n // Support for native async await.\n if (scopeFunc.constructor === AsyncFunction) {\n incrementExpectedAwaits();\n }\n var returnValue;\n var promiseFollowed = Promise.follow(function () {\n // Finally, call the scope function with our table and transaction arguments.\n returnValue = scopeFunc.call(trans, trans);\n if (returnValue) {\n if (returnValue.constructor === NativePromise) {\n var decrementor = decrementExpectedAwaits.bind(null, null);\n returnValue.then(decrementor, decrementor);\n }\n else if (typeof returnValue.next === 'function' && typeof returnValue.throw === 'function') {\n // scopeFunc returned an iterator with throw-support. Handle yield as await.\n returnValue = awaitIterator(returnValue);\n }\n }\n }, zoneProps);\n return (returnValue && typeof returnValue.then === 'function' ?\n // Promise returned. User uses promise-style transactions.\n Promise.resolve(returnValue).then(function (x) { return trans.active ?\n x // Transaction still active. Continue.\n : rejection(new exceptions.PrematureCommit(\"Transaction committed too early. See http://bit.ly/2kdckMn\")); })\n // No promise returned. Wait for all outstanding promises before continuing. \n : promiseFollowed.then(function () { return returnValue; })).then(function (x) {\n // sub transactions don't react to idbtrans.oncomplete. We must trigger a completion:\n if (parentTransaction)\n trans._resolve();\n // wait for trans._completion\n // (if root transaction, this means 'complete' event. If sub-transaction, we've just fired it ourselves)\n return trans._completion.then(function () { return x; });\n }).catch(function (e) {\n trans._reject(e); // Yes, above then-handler were maybe not called because of an unhandled rejection in scopeFunc!\n return rejection(e);\n });\n });\n }\n };\n this.table = function (tableName) {\n /// \n if (!hasOwn(allTables, tableName)) {\n throw new exceptions.InvalidTable(\"Table \" + tableName + \" does not exist\");\n }\n return allTables[tableName];\n };\n //\n //\n //\n // Table Class\n //\n //\n //\n function Table(name, tableSchema, optionalTrans) {\n /// \n this.name = name;\n this.schema = tableSchema;\n this._tx = optionalTrans;\n this.hook = allTables[name] ? allTables[name].hook : Events(null, {\n \"creating\": [hookCreatingChain, nop],\n \"reading\": [pureFunctionChain, mirror],\n \"updating\": [hookUpdatingChain, nop],\n \"deleting\": [hookDeletingChain, nop]\n });\n }\n function BulkErrorHandlerCatchAll(errorList, done, supportHooks) {\n return (supportHooks ? hookedEventRejectHandler : eventRejectHandler)(function (e) {\n errorList.push(e);\n done && done();\n });\n }\n function bulkDelete(idbstore, trans, keysOrTuples, hasDeleteHook, deletingHook) {\n // If hasDeleteHook, keysOrTuples must be an array of tuples: [[key1, value2],[key2,value2],...],\n // else keysOrTuples must be just an array of keys: [key1, key2, ...].\n return new Promise(function (resolve, reject) {\n var len = keysOrTuples.length, lastItem = len - 1;\n if (len === 0)\n return resolve();\n if (!hasDeleteHook) {\n for (var i = 0; i < len; ++i) {\n var req = idbstore.delete(keysOrTuples[i]);\n req.onerror = eventRejectHandler(reject);\n if (i === lastItem)\n req.onsuccess = wrap(function () { return resolve(); });\n }\n }\n else {\n var hookCtx, errorHandler = hookedEventRejectHandler(reject), successHandler = hookedEventSuccessHandler(null);\n tryCatch(function () {\n for (var i = 0; i < len; ++i) {\n hookCtx = { onsuccess: null, onerror: null };\n var tuple = keysOrTuples[i];\n deletingHook.call(hookCtx, tuple[0], tuple[1], trans);\n var req = idbstore.delete(tuple[0]);\n req._hookCtx = hookCtx;\n req.onerror = errorHandler;\n if (i === lastItem)\n req.onsuccess = hookedEventSuccessHandler(resolve);\n else\n req.onsuccess = successHandler;\n }\n }, function (err) {\n hookCtx.onerror && hookCtx.onerror(err);\n throw err;\n });\n }\n });\n }\n props(Table.prototype, {\n //\n // Table Protected Methods\n //\n _trans: function getTransaction(mode, fn, writeLocked) {\n var trans = this._tx || PSD.trans;\n return trans && trans.db === db ?\n trans === PSD.trans ?\n trans._promise(mode, fn, writeLocked) :\n newScope(function () { return trans._promise(mode, fn, writeLocked); }, { trans: trans, transless: PSD.transless || PSD }) :\n tempTransaction(mode, [this.name], fn);\n },\n _idbstore: function getIDBObjectStore(mode, fn, writeLocked) {\n var tableName = this.name;\n function supplyIdbStore(resolve, reject, trans) {\n if (trans.storeNames.indexOf(tableName) === -1)\n throw new exceptions.NotFound(\"Table\" + tableName + \" not part of transaction\");\n return fn(resolve, reject, trans.idbtrans.objectStore(tableName), trans);\n }\n return this._trans(mode, supplyIdbStore, writeLocked);\n },\n //\n // Table Public Methods\n //\n get: function (keyOrCrit, cb) {\n if (keyOrCrit && keyOrCrit.constructor === Object)\n return this.where(keyOrCrit).first(cb);\n var self = this;\n return this._idbstore(READONLY, function (resolve, reject, idbstore) {\n var req = idbstore.get(keyOrCrit);\n req.onerror = eventRejectHandler(reject);\n req.onsuccess = wrap(function () {\n resolve(self.hook.reading.fire(req.result));\n }, reject);\n }).then(cb);\n },\n where: function (indexOrCrit) {\n if (typeof indexOrCrit === 'string')\n return new WhereClause(this, indexOrCrit);\n if (isArray(indexOrCrit))\n return new WhereClause(this, \"[\" + indexOrCrit.join('+') + \"]\");\n // indexOrCrit is an object map of {[keyPath]:value} \n var keyPaths = keys(indexOrCrit);\n if (keyPaths.length === 1)\n // Only one critera. This was the easy case:\n return this\n .where(keyPaths[0])\n .equals(indexOrCrit[keyPaths[0]]);\n // Multiple criterias.\n // Let's try finding a compound index that matches all keyPaths in\n // arbritary order:\n var compoundIndex = this.schema.indexes.concat(this.schema.primKey).filter(function (ix) {\n return ix.compound &&\n keyPaths.every(function (keyPath) { return ix.keyPath.indexOf(keyPath) >= 0; }) &&\n ix.keyPath.every(function (keyPath) { return keyPaths.indexOf(keyPath) >= 0; });\n })[0];\n if (compoundIndex && maxKey !== maxString)\n // Cool! We found such compound index\n // and this browser supports compound indexes (maxKey !== maxString)!\n return this\n .where(compoundIndex.name)\n .equals(compoundIndex.keyPath.map(function (kp) { return indexOrCrit[kp]; }));\n if (!compoundIndex)\n console.warn(\"The query \" + JSON.stringify(indexOrCrit) + \" on \" + this.name + \" would benefit of a \" +\n (\"compound index [\" + keyPaths.join('+') + \"]\"));\n // Ok, now let's fallback to finding at least one matching index\n // and filter the rest.\n var idxByName = this.schema.idxByName;\n var simpleIndex = keyPaths.reduce(function (r, keyPath) { return [\n r[0] || idxByName[keyPath],\n r[0] || !idxByName[keyPath] ?\n combine(r[1], function (x) { return '' + getByKeyPath(x, keyPath) ==\n '' + indexOrCrit[keyPath]; })\n : r[1]\n ]; }, [null, null]);\n var idx = simpleIndex[0];\n return idx ?\n this.where(idx.name).equals(indexOrCrit[idx.keyPath])\n .filter(simpleIndex[1]) :\n compoundIndex ?\n this.filter(simpleIndex[1]) : // Has compound but browser bad. Allow filter.\n this.where(keyPaths).equals(''); // No index at all. Fail lazily.\n },\n count: function (cb) {\n return this.toCollection().count(cb);\n },\n offset: function (offset) {\n return this.toCollection().offset(offset);\n },\n limit: function (numRows) {\n return this.toCollection().limit(numRows);\n },\n reverse: function () {\n return this.toCollection().reverse();\n },\n filter: function (filterFunction) {\n return this.toCollection().and(filterFunction);\n },\n each: function (fn) {\n return this.toCollection().each(fn);\n },\n toArray: function (cb) {\n return this.toCollection().toArray(cb);\n },\n orderBy: function (index) {\n return new Collection(new WhereClause(this, isArray(index) ?\n \"[\" + index.join('+') + \"]\" :\n index));\n },\n toCollection: function () {\n return new Collection(new WhereClause(this));\n },\n mapToClass: function (constructor, structure) {\n /// \n /// Map table to a javascript constructor function. Objects returned from the database will be instances of this class, making\n /// it possible to the instanceOf operator as well as extending the class using constructor.prototype.method = function(){...}.\n /// \n /// Constructor function representing the class.\n /// Helps IDE code completion by knowing the members that objects contain and not just the indexes. Also\n /// know what type each member has. Example: {name: String, emailAddresses: [String], password}\n this.schema.mappedClass = constructor;\n var instanceTemplate = Object.create(constructor.prototype);\n if (structure) {\n // structure and instanceTemplate is for IDE code competion only while constructor.prototype is for actual inheritance.\n applyStructure(instanceTemplate, structure);\n }\n this.schema.instanceTemplate = instanceTemplate;\n // Now, subscribe to the when(\"reading\") event to make all objects that come out from this table inherit from given class\n // no matter which method to use for reading (Table.get() or Table.where(...)... )\n var readHook = function (obj) {\n if (!obj)\n return obj; // No valid object. (Value is null). Return as is.\n // Create a new object that derives from constructor:\n var res = Object.create(constructor.prototype);\n // Clone members:\n for (var m in obj)\n if (hasOwn(obj, m))\n try {\n res[m] = obj[m];\n }\n catch (_) { }\n return res;\n };\n if (this.schema.readHook) {\n this.hook.reading.unsubscribe(this.schema.readHook);\n }\n this.schema.readHook = readHook;\n this.hook(\"reading\", readHook);\n return constructor;\n },\n defineClass: function (structure) {\n /// \n /// Define all members of the class that represents the table. This will help code completion of when objects are read from the database\n /// as well as making it possible to extend the prototype of the returned constructor function.\n /// \n /// Helps IDE code completion by knowing the members that objects contain and not just the indexes. Also\n /// know what type each member has. Example: {name: String, emailAddresses: [String], properties: {shoeSize: Number}}\n return this.mapToClass(Dexie.defineClass(structure), structure);\n },\n bulkDelete: function (keys$$1) {\n if (this.hook.deleting.fire === nop) {\n return this._idbstore(READWRITE, function (resolve, reject, idbstore, trans) {\n resolve(bulkDelete(idbstore, trans, keys$$1, false, nop));\n });\n }\n else {\n return this\n .where(':id')\n .anyOf(keys$$1)\n .delete()\n .then(function () { }); // Resolve with undefined.\n }\n },\n bulkPut: function (objects, keys$$1) {\n var _this = this;\n return this._idbstore(READWRITE, function (resolve, reject, idbstore) {\n if (!idbstore.keyPath && !_this.schema.primKey.auto && !keys$$1)\n throw new exceptions.InvalidArgument(\"bulkPut() with non-inbound keys requires keys array in second argument\");\n if (idbstore.keyPath && keys$$1)\n throw new exceptions.InvalidArgument(\"bulkPut(): keys argument invalid on tables with inbound keys\");\n if (keys$$1 && keys$$1.length !== objects.length)\n throw new exceptions.InvalidArgument(\"Arguments objects and keys must have the same length\");\n if (objects.length === 0)\n return resolve(); // Caller provided empty list.\n var done = function (result) {\n if (errorList.length === 0)\n resolve(result);\n else\n reject(new BulkError(_this.name + \".bulkPut(): \" + errorList.length + \" of \" + numObjs + \" operations failed\", errorList));\n };\n var req, errorList = [], errorHandler, numObjs = objects.length, table = _this;\n if (_this.hook.creating.fire === nop && _this.hook.updating.fire === nop) {\n //\n // Standard Bulk (no 'creating' or 'updating' hooks to care about)\n //\n errorHandler = BulkErrorHandlerCatchAll(errorList);\n for (var i = 0, l = objects.length; i < l; ++i) {\n req = keys$$1 ? idbstore.put(objects[i], keys$$1[i]) : idbstore.put(objects[i]);\n req.onerror = errorHandler;\n }\n // Only need to catch success or error on the last operation\n // according to the IDB spec.\n req.onerror = BulkErrorHandlerCatchAll(errorList, done);\n req.onsuccess = eventSuccessHandler(done);\n }\n else {\n var effectiveKeys = keys$$1 || idbstore.keyPath && objects.map(function (o) { return getByKeyPath(o, idbstore.keyPath); });\n // Generate map of {[key]: object}\n var objectLookup = effectiveKeys && arrayToObject(effectiveKeys, function (key, i) { return key != null && [key, objects[i]]; });\n var promise = !effectiveKeys ?\n // Auto-incremented key-less objects only without any keys argument.\n table.bulkAdd(objects) :\n // Keys provided. Either as inbound in provided objects, or as a keys argument.\n // Begin with updating those that exists in DB:\n table.where(':id').anyOf(effectiveKeys.filter(function (key) { return key != null; })).modify(function () {\n this.value = objectLookup[this.primKey];\n objectLookup[this.primKey] = null; // Mark as \"don't add this\"\n }).catch(ModifyError, function (e) {\n errorList = e.failures; // No need to concat here. These are the first errors added.\n }).then(function () {\n // Now, let's examine which items didnt exist so we can add them:\n var objsToAdd = [], keysToAdd = keys$$1 && [];\n // Iterate backwards. Why? Because if same key was used twice, just add the last one.\n for (var i = effectiveKeys.length - 1; i >= 0; --i) {\n var key = effectiveKeys[i];\n if (key == null || objectLookup[key]) {\n objsToAdd.push(objects[i]);\n keys$$1 && keysToAdd.push(key);\n if (key != null)\n objectLookup[key] = null; // Mark as \"dont add again\"\n }\n }\n // The items are in reverse order so reverse them before adding.\n // Could be important in order to get auto-incremented keys the way the caller\n // would expect. Could have used unshift instead of push()/reverse(),\n // but: http://jsperf.com/unshift-vs-reverse\n objsToAdd.reverse();\n keys$$1 && keysToAdd.reverse();\n return table.bulkAdd(objsToAdd, keysToAdd);\n }).then(function (lastAddedKey) {\n // Resolve with key of the last object in given arguments to bulkPut():\n var lastEffectiveKey = effectiveKeys[effectiveKeys.length - 1]; // Key was provided.\n return lastEffectiveKey != null ? lastEffectiveKey : lastAddedKey;\n });\n promise.then(done).catch(BulkError, function (e) {\n // Concat failure from ModifyError and reject using our 'done' method.\n errorList = errorList.concat(e.failures);\n done();\n }).catch(reject);\n }\n }, \"locked\"); // If called from transaction scope, lock transaction til all steps are done.\n },\n bulkAdd: function (objects, keys$$1) {\n var self = this, creatingHook = this.hook.creating.fire;\n return this._idbstore(READWRITE, function (resolve, reject, idbstore, trans) {\n if (!idbstore.keyPath && !self.schema.primKey.auto && !keys$$1)\n throw new exceptions.InvalidArgument(\"bulkAdd() with non-inbound keys requires keys array in second argument\");\n if (idbstore.keyPath && keys$$1)\n throw new exceptions.InvalidArgument(\"bulkAdd(): keys argument invalid on tables with inbound keys\");\n if (keys$$1 && keys$$1.length !== objects.length)\n throw new exceptions.InvalidArgument(\"Arguments objects and keys must have the same length\");\n if (objects.length === 0)\n return resolve(); // Caller provided empty list.\n function done(result) {\n if (errorList.length === 0)\n resolve(result);\n else\n reject(new BulkError(self.name + \".bulkAdd(): \" + errorList.length + \" of \" + numObjs + \" operations failed\", errorList));\n }\n var req, errorList = [], errorHandler, successHandler, numObjs = objects.length;\n if (creatingHook !== nop) {\n //\n // There are subscribers to hook('creating')\n // Must behave as documented.\n //\n var keyPath = idbstore.keyPath, hookCtx;\n errorHandler = BulkErrorHandlerCatchAll(errorList, null, true);\n successHandler = hookedEventSuccessHandler(null);\n tryCatch(function () {\n for (var i = 0, l = objects.length; i < l; ++i) {\n hookCtx = { onerror: null, onsuccess: null };\n var key = keys$$1 && keys$$1[i];\n var obj = objects[i], effectiveKey = keys$$1 ? key : keyPath ? getByKeyPath(obj, keyPath) : undefined, keyToUse = creatingHook.call(hookCtx, effectiveKey, obj, trans);\n if (effectiveKey == null && keyToUse != null) {\n if (keyPath) {\n obj = deepClone(obj);\n setByKeyPath(obj, keyPath, keyToUse);\n }\n else {\n key = keyToUse;\n }\n }\n req = key != null ? idbstore.add(obj, key) : idbstore.add(obj);\n req._hookCtx = hookCtx;\n if (i < l - 1) {\n req.onerror = errorHandler;\n if (hookCtx.onsuccess)\n req.onsuccess = successHandler;\n }\n }\n }, function (err) {\n hookCtx.onerror && hookCtx.onerror(err);\n throw err;\n });\n req.onerror = BulkErrorHandlerCatchAll(errorList, done, true);\n req.onsuccess = hookedEventSuccessHandler(done);\n }\n else {\n //\n // Standard Bulk (no 'creating' hook to care about)\n //\n errorHandler = BulkErrorHandlerCatchAll(errorList);\n for (var i = 0, l = objects.length; i < l; ++i) {\n req = keys$$1 ? idbstore.add(objects[i], keys$$1[i]) : idbstore.add(objects[i]);\n req.onerror = errorHandler;\n }\n // Only need to catch success or error on the last operation\n // according to the IDB spec.\n req.onerror = BulkErrorHandlerCatchAll(errorList, done);\n req.onsuccess = eventSuccessHandler(done);\n }\n });\n },\n add: function (obj, key) {\n /// \n /// Add an object to the database. In case an object with same primary key already exists, the object will not be added.\n /// \n /// A javascript object to insert\n /// Primary key\n var creatingHook = this.hook.creating.fire;\n return this._idbstore(READWRITE, function (resolve, reject, idbstore, trans) {\n var hookCtx = { onsuccess: null, onerror: null };\n if (creatingHook !== nop) {\n var effectiveKey = (key != null) ? key : (idbstore.keyPath ? getByKeyPath(obj, idbstore.keyPath) : undefined);\n var keyToUse = creatingHook.call(hookCtx, effectiveKey, obj, trans); // Allow subscribers to when(\"creating\") to generate the key.\n if (effectiveKey == null && keyToUse != null) {\n if (idbstore.keyPath)\n setByKeyPath(obj, idbstore.keyPath, keyToUse);\n else\n key = keyToUse;\n }\n }\n try {\n var req = key != null ? idbstore.add(obj, key) : idbstore.add(obj);\n req._hookCtx = hookCtx;\n req.onerror = hookedEventRejectHandler(reject);\n req.onsuccess = hookedEventSuccessHandler(function (result) {\n // TODO: Remove these two lines in next major release (2.0?)\n // It's no good practice to have side effects on provided parameters\n var keyPath = idbstore.keyPath;\n if (keyPath)\n setByKeyPath(obj, keyPath, result);\n resolve(result);\n });\n }\n catch (e) {\n if (hookCtx.onerror)\n hookCtx.onerror(e);\n throw e;\n }\n });\n },\n put: function (obj, key) {\n var _this = this;\n /// \n /// Add an object to the database but in case an object with same primary key alread exists, the existing one will get updated.\n /// \n /// A javascript object to insert or update\n /// Primary key\n var creatingHook = this.hook.creating.fire, updatingHook = this.hook.updating.fire;\n if (creatingHook !== nop || updatingHook !== nop) {\n //\n // People listens to when(\"creating\") or when(\"updating\") events!\n // We must know whether the put operation results in an CREATE or UPDATE.\n //\n var keyPath = this.schema.primKey.keyPath;\n var effectiveKey = (key !== undefined) ? key : (keyPath && getByKeyPath(obj, keyPath));\n if (effectiveKey == null)\n return this.add(obj);\n // Since key is optional, make sure we get it from obj if not provided\n // Primary key exist. Lock transaction and try modifying existing. If nothing modified, call add().\n // clone obj before this async call. If caller modifies obj the line after put(), the IDB spec requires that it should not affect operation.\n obj = deepClone(obj);\n return this._trans(READWRITE, function () {\n return _this.where(\":id\").equals(effectiveKey).modify(function () {\n // Replace extisting value with our object\n // CRUD event firing handled in Collection.modify()\n this.value = obj;\n }).then(function (count) { return count === 0 ? _this.add(obj, key) : effectiveKey; });\n }, \"locked\"); // Lock needed because operation is splitted into modify() and add().\n }\n else {\n // Use the standard IDB put() method.\n return this._idbstore(READWRITE, function (resolve, reject, idbstore) {\n var req = key !== undefined ? idbstore.put(obj, key) : idbstore.put(obj);\n req.onerror = eventRejectHandler(reject);\n req.onsuccess = wrap(function (ev) {\n var keyPath = idbstore.keyPath;\n if (keyPath)\n setByKeyPath(obj, keyPath, ev.target.result);\n resolve(req.result);\n });\n });\n }\n },\n 'delete': function (key) {\n /// Primary key of the object to delete\n if (this.hook.deleting.subscribers.length) {\n // People listens to when(\"deleting\") event. Must implement delete using Collection.delete() that will\n // call the CRUD event. Only Collection.delete() will know whether an object was actually deleted.\n return this.where(\":id\").equals(key).delete();\n }\n else {\n // No one listens. Use standard IDB delete() method.\n return this._idbstore(READWRITE, function (resolve, reject, idbstore) {\n var req = idbstore.delete(key);\n req.onerror = eventRejectHandler(reject);\n req.onsuccess = wrap(function () {\n resolve(req.result);\n });\n });\n }\n },\n clear: function () {\n if (this.hook.deleting.subscribers.length) {\n // People listens to when(\"deleting\") event. Must implement delete using Collection.delete() that will\n // call the CRUD event. Only Collection.delete() will knows which objects that are actually deleted.\n return this.toCollection().delete();\n }\n else {\n return this._idbstore(READWRITE, function (resolve, reject, idbstore) {\n var req = idbstore.clear();\n req.onerror = eventRejectHandler(reject);\n req.onsuccess = wrap(function () {\n resolve(req.result);\n });\n });\n }\n },\n update: function (keyOrObject, modifications) {\n if (typeof modifications !== 'object' || isArray(modifications))\n throw new exceptions.InvalidArgument(\"Modifications must be an object.\");\n if (typeof keyOrObject === 'object' && !isArray(keyOrObject)) {\n // object to modify. Also modify given object with the modifications:\n keys(modifications).forEach(function (keyPath) {\n setByKeyPath(keyOrObject, keyPath, modifications[keyPath]);\n });\n var key = getByKeyPath(keyOrObject, this.schema.primKey.keyPath);\n if (key === undefined)\n return rejection(new exceptions.InvalidArgument(\"Given object does not contain its primary key\"));\n return this.where(\":id\").equals(key).modify(modifications);\n }\n else {\n // key to modify\n return this.where(\":id\").equals(keyOrObject).modify(modifications);\n }\n }\n });\n //\n //\n //\n // Transaction Class\n //\n //\n //\n function Transaction(mode, storeNames, dbschema, parent) {\n var _this = this;\n /// \n /// Transaction class. Represents a database transaction. All operations on db goes through a Transaction.\n /// \n /// Any of \"readwrite\" or \"readonly\"\n /// Array of table names to operate on\n this.db = db;\n this.mode = mode;\n this.storeNames = storeNames;\n this.idbtrans = null;\n this.on = Events(this, \"complete\", \"error\", \"abort\");\n this.parent = parent || null;\n this.active = true;\n this._reculock = 0;\n this._blockedFuncs = [];\n this._resolve = null;\n this._reject = null;\n this._waitingFor = null;\n this._waitingQueue = null;\n this._spinCount = 0; // Just for debugging waitFor()\n this._completion = new Promise(function (resolve, reject) {\n _this._resolve = resolve;\n _this._reject = reject;\n });\n this._completion.then(function () {\n _this.active = false;\n _this.on.complete.fire();\n }, function (e) {\n var wasActive = _this.active;\n _this.active = false;\n _this.on.error.fire(e);\n _this.parent ?\n _this.parent._reject(e) :\n wasActive && _this.idbtrans && _this.idbtrans.abort();\n return rejection(e); // Indicate we actually DO NOT catch this error.\n });\n }\n props(Transaction.prototype, {\n //\n // Transaction Protected Methods (not required by API users, but needed internally and eventually by dexie extensions)\n //\n _lock: function () {\n assert(!PSD.global); // Locking and unlocking reuires to be within a PSD scope.\n // Temporary set all requests into a pending queue if they are called before database is ready.\n ++this._reculock; // Recursive read/write lock pattern using PSD (Promise Specific Data) instead of TLS (Thread Local Storage)\n if (this._reculock === 1 && !PSD.global)\n PSD.lockOwnerFor = this;\n return this;\n },\n _unlock: function () {\n assert(!PSD.global); // Locking and unlocking reuires to be within a PSD scope.\n if (--this._reculock === 0) {\n if (!PSD.global)\n PSD.lockOwnerFor = null;\n while (this._blockedFuncs.length > 0 && !this._locked()) {\n var fnAndPSD = this._blockedFuncs.shift();\n try {\n usePSD(fnAndPSD[1], fnAndPSD[0]);\n }\n catch (e) { }\n }\n }\n return this;\n },\n _locked: function () {\n // Checks if any write-lock is applied on this transaction.\n // To simplify the Dexie API for extension implementations, we support recursive locks.\n // This is accomplished by using \"Promise Specific Data\" (PSD).\n // PSD data is bound to a Promise and any child Promise emitted through then() or resolve( new Promise() ).\n // PSD is local to code executing on top of the call stacks of any of any code executed by Promise():\n // * callback given to the Promise() constructor (function (resolve, reject){...})\n // * callbacks given to then()/catch()/finally() methods (function (value){...})\n // If creating a new independant Promise instance from within a Promise call stack, the new Promise will derive the PSD from the call stack of the parent Promise.\n // Derivation is done so that the inner PSD __proto__ points to the outer PSD.\n // PSD.lockOwnerFor will point to current transaction object if the currently executing PSD scope owns the lock.\n return this._reculock && PSD.lockOwnerFor !== this;\n },\n create: function (idbtrans) {\n var _this = this;\n if (!this.mode)\n return this;\n assert(!this.idbtrans);\n if (!idbtrans && !idbdb) {\n switch (dbOpenError && dbOpenError.name) {\n case \"DatabaseClosedError\":\n // Errors where it is no difference whether it was caused by the user operation or an earlier call to db.open()\n throw new exceptions.DatabaseClosed(dbOpenError);\n case \"MissingAPIError\":\n // Errors where it is no difference whether it was caused by the user operation or an earlier call to db.open()\n throw new exceptions.MissingAPI(dbOpenError.message, dbOpenError);\n default:\n // Make it clear that the user operation was not what caused the error - the error had occurred earlier on db.open()!\n throw new exceptions.OpenFailed(dbOpenError);\n }\n }\n if (!this.active)\n throw new exceptions.TransactionInactive();\n assert(this._completion._state === null);\n idbtrans = this.idbtrans = idbtrans || idbdb.transaction(safariMultiStoreFix(this.storeNames), this.mode);\n idbtrans.onerror = wrap(function (ev) {\n preventDefault(ev); // Prohibit default bubbling to window.error\n _this._reject(idbtrans.error);\n });\n idbtrans.onabort = wrap(function (ev) {\n preventDefault(ev);\n _this.active && _this._reject(new exceptions.Abort(idbtrans.error));\n _this.active = false;\n _this.on(\"abort\").fire(ev);\n });\n idbtrans.oncomplete = wrap(function () {\n _this.active = false;\n _this._resolve();\n });\n return this;\n },\n _promise: function (mode, fn, bWriteLock) {\n var _this = this;\n if (mode === READWRITE && this.mode !== READWRITE)\n return rejection(new exceptions.ReadOnly(\"Transaction is readonly\"));\n if (!this.active)\n return rejection(new exceptions.TransactionInactive());\n if (this._locked()) {\n return new Promise(function (resolve, reject) {\n _this._blockedFuncs.push([function () {\n _this._promise(mode, fn, bWriteLock).then(resolve, reject);\n }, PSD]);\n });\n }\n else if (bWriteLock) {\n return newScope(function () {\n var p = new Promise(function (resolve, reject) {\n _this._lock();\n var rv = fn(resolve, reject, _this);\n if (rv && rv.then)\n rv.then(resolve, reject);\n });\n p.finally(function () { return _this._unlock(); });\n p._lib = true;\n return p;\n });\n }\n else {\n var p = new Promise(function (resolve, reject) {\n var rv = fn(resolve, reject, _this);\n if (rv && rv.then)\n rv.then(resolve, reject);\n });\n p._lib = true;\n return p;\n }\n },\n _root: function () {\n return this.parent ? this.parent._root() : this;\n },\n waitFor: function (promise) {\n // Always operate on the root transaction (in case this is a sub stransaction)\n var root = this._root();\n // For stability reasons, convert parameter to promise no matter what type is passed to waitFor().\n // (We must be able to call .then() on it.)\n promise = Promise.resolve(promise);\n if (root._waitingFor) {\n // Already called waitFor(). Wait for both to complete.\n root._waitingFor = root._waitingFor.then(function () { return promise; });\n }\n else {\n // We're not in waiting state. Start waiting state.\n root._waitingFor = promise;\n root._waitingQueue = [];\n // Start interacting with indexedDB until promise completes:\n var store = root.idbtrans.objectStore(root.storeNames[0]);\n (function spin() {\n ++root._spinCount; // For debugging only\n while (root._waitingQueue.length)\n (root._waitingQueue.shift())();\n if (root._waitingFor)\n store.get(-Infinity).onsuccess = spin;\n }());\n }\n var currentWaitPromise = root._waitingFor;\n return new Promise(function (resolve, reject) {\n promise.then(function (res) { return root._waitingQueue.push(wrap(resolve.bind(null, res))); }, function (err) { return root._waitingQueue.push(wrap(reject.bind(null, err))); }).finally(function () {\n if (root._waitingFor === currentWaitPromise) {\n // No one added a wait after us. Safe to stop the spinning.\n root._waitingFor = null;\n }\n });\n });\n },\n //\n // Transaction Public Properties and Methods\n //\n abort: function () {\n this.active && this._reject(new exceptions.Abort());\n this.active = false;\n },\n tables: {\n get: deprecated(\"Transaction.tables\", function () { return allTables; })\n },\n table: function (name) {\n var table = db.table(name); // Don't check that table is part of transaction. It must fail lazily!\n return new Table(name, table.schema, this);\n }\n });\n //\n //\n //\n // WhereClause\n //\n //\n //\n function WhereClause(table, index, orCollection) {\n /// \n /// \n /// \n this._ctx = {\n table: table,\n index: index === \":id\" ? null : index,\n or: orCollection\n };\n }\n props(WhereClause.prototype, function () {\n // WhereClause private methods\n function fail(collectionOrWhereClause, err, T) {\n var collection = collectionOrWhereClause instanceof WhereClause ?\n new Collection(collectionOrWhereClause) :\n collectionOrWhereClause;\n collection._ctx.error = T ? new T(err) : new TypeError(err);\n return collection;\n }\n function emptyCollection(whereClause) {\n return new Collection(whereClause, function () { return IDBKeyRange.only(\"\"); }).limit(0);\n }\n function upperFactory(dir) {\n return dir === \"next\" ? function (s) { return s.toUpperCase(); } : function (s) { return s.toLowerCase(); };\n }\n function lowerFactory(dir) {\n return dir === \"next\" ? function (s) { return s.toLowerCase(); } : function (s) { return s.toUpperCase(); };\n }\n function nextCasing(key, lowerKey, upperNeedle, lowerNeedle, cmp, dir) {\n var length = Math.min(key.length, lowerNeedle.length);\n var llp = -1;\n for (var i = 0; i < length; ++i) {\n var lwrKeyChar = lowerKey[i];\n if (lwrKeyChar !== lowerNeedle[i]) {\n if (cmp(key[i], upperNeedle[i]) < 0)\n return key.substr(0, i) + upperNeedle[i] + upperNeedle.substr(i + 1);\n if (cmp(key[i], lowerNeedle[i]) < 0)\n return key.substr(0, i) + lowerNeedle[i] + upperNeedle.substr(i + 1);\n if (llp >= 0)\n return key.substr(0, llp) + lowerKey[llp] + upperNeedle.substr(llp + 1);\n return null;\n }\n if (cmp(key[i], lwrKeyChar) < 0)\n llp = i;\n }\n if (length < lowerNeedle.length && dir === \"next\")\n return key + upperNeedle.substr(key.length);\n if (length < key.length && dir === \"prev\")\n return key.substr(0, upperNeedle.length);\n return (llp < 0 ? null : key.substr(0, llp) + lowerNeedle[llp] + upperNeedle.substr(llp + 1));\n }\n function addIgnoreCaseAlgorithm(whereClause, match, needles, suffix) {\n /// \n var upper, lower, compare, upperNeedles, lowerNeedles, direction, nextKeySuffix, needlesLen = needles.length;\n if (!needles.every(function (s) { return typeof s === 'string'; })) {\n return fail(whereClause, STRING_EXPECTED);\n }\n function initDirection(dir) {\n upper = upperFactory(dir);\n lower = lowerFactory(dir);\n compare = (dir === \"next\" ? simpleCompare : simpleCompareReverse);\n var needleBounds = needles.map(function (needle) {\n return { lower: lower(needle), upper: upper(needle) };\n }).sort(function (a, b) {\n return compare(a.lower, b.lower);\n });\n upperNeedles = needleBounds.map(function (nb) { return nb.upper; });\n lowerNeedles = needleBounds.map(function (nb) { return nb.lower; });\n direction = dir;\n nextKeySuffix = (dir === \"next\" ? \"\" : suffix);\n }\n initDirection(\"next\");\n var c = new Collection(whereClause, function () {\n return IDBKeyRange.bound(upperNeedles[0], lowerNeedles[needlesLen - 1] + suffix);\n });\n c._ondirectionchange = function (direction) {\n // This event onlys occur before filter is called the first time.\n initDirection(direction);\n };\n var firstPossibleNeedle = 0;\n c._addAlgorithm(function (cursor, advance, resolve) {\n /// \n /// \n /// \n var key = cursor.key;\n if (typeof key !== 'string')\n return false;\n var lowerKey = lower(key);\n if (match(lowerKey, lowerNeedles, firstPossibleNeedle)) {\n return true;\n }\n else {\n var lowestPossibleCasing = null;\n for (var i = firstPossibleNeedle; i < needlesLen; ++i) {\n var casing = nextCasing(key, lowerKey, upperNeedles[i], lowerNeedles[i], compare, direction);\n if (casing === null && lowestPossibleCasing === null)\n firstPossibleNeedle = i + 1;\n else if (lowestPossibleCasing === null || compare(lowestPossibleCasing, casing) > 0) {\n lowestPossibleCasing = casing;\n }\n }\n if (lowestPossibleCasing !== null) {\n advance(function () { cursor.continue(lowestPossibleCasing + nextKeySuffix); });\n }\n else {\n advance(resolve);\n }\n return false;\n }\n });\n return c;\n }\n //\n // WhereClause public methods\n //\n return {\n between: function (lower, upper, includeLower, includeUpper) {\n /// \n /// Filter out records whose where-field lays between given lower and upper values. Applies to Strings, Numbers and Dates.\n /// \n /// \n /// \n /// Whether items that equals lower should be included. Default true.\n /// Whether items that equals upper should be included. Default false.\n /// \n includeLower = includeLower !== false; // Default to true\n includeUpper = includeUpper === true; // Default to false\n try {\n if ((cmp(lower, upper) > 0) ||\n (cmp(lower, upper) === 0 && (includeLower || includeUpper) && !(includeLower && includeUpper)))\n return emptyCollection(this); // Workaround for idiotic W3C Specification that DataError must be thrown if lower > upper. The natural result would be to return an empty collection.\n return new Collection(this, function () { return IDBKeyRange.bound(lower, upper, !includeLower, !includeUpper); });\n }\n catch (e) {\n return fail(this, INVALID_KEY_ARGUMENT);\n }\n },\n equals: function (value) {\n return new Collection(this, function () { return IDBKeyRange.only(value); });\n },\n above: function (value) {\n return new Collection(this, function () { return IDBKeyRange.lowerBound(value, true); });\n },\n aboveOrEqual: function (value) {\n return new Collection(this, function () { return IDBKeyRange.lowerBound(value); });\n },\n below: function (value) {\n return new Collection(this, function () { return IDBKeyRange.upperBound(value, true); });\n },\n belowOrEqual: function (value) {\n return new Collection(this, function () { return IDBKeyRange.upperBound(value); });\n },\n startsWith: function (str) {\n /// \n if (typeof str !== 'string')\n return fail(this, STRING_EXPECTED);\n return this.between(str, str + maxString, true, true);\n },\n startsWithIgnoreCase: function (str) {\n /// \n if (str === \"\")\n return this.startsWith(str);\n return addIgnoreCaseAlgorithm(this, function (x, a) { return x.indexOf(a[0]) === 0; }, [str], maxString);\n },\n equalsIgnoreCase: function (str) {\n /// \n return addIgnoreCaseAlgorithm(this, function (x, a) { return x === a[0]; }, [str], \"\");\n },\n anyOfIgnoreCase: function () {\n var set = getArrayOf.apply(NO_CHAR_ARRAY, arguments);\n if (set.length === 0)\n return emptyCollection(this);\n return addIgnoreCaseAlgorithm(this, function (x, a) { return a.indexOf(x) !== -1; }, set, \"\");\n },\n startsWithAnyOfIgnoreCase: function () {\n var set = getArrayOf.apply(NO_CHAR_ARRAY, arguments);\n if (set.length === 0)\n return emptyCollection(this);\n return addIgnoreCaseAlgorithm(this, function (x, a) {\n return a.some(function (n) {\n return x.indexOf(n) === 0;\n });\n }, set, maxString);\n },\n anyOf: function () {\n var set = getArrayOf.apply(NO_CHAR_ARRAY, arguments);\n var compare = ascending;\n try {\n set.sort(compare);\n }\n catch (e) {\n return fail(this, INVALID_KEY_ARGUMENT);\n }\n if (set.length === 0)\n return emptyCollection(this);\n var c = new Collection(this, function () { return IDBKeyRange.bound(set[0], set[set.length - 1]); });\n c._ondirectionchange = function (direction) {\n compare = (direction === \"next\" ? ascending : descending);\n set.sort(compare);\n };\n var i = 0;\n c._addAlgorithm(function (cursor, advance, resolve) {\n var key = cursor.key;\n while (compare(key, set[i]) > 0) {\n // The cursor has passed beyond this key. Check next.\n ++i;\n if (i === set.length) {\n // There is no next. Stop searching.\n advance(resolve);\n return false;\n }\n }\n if (compare(key, set[i]) === 0) {\n // The current cursor value should be included and we should continue a single step in case next item has the same key or possibly our next key in set.\n return true;\n }\n else {\n // cursor.key not yet at set[i]. Forward cursor to the next key to hunt for.\n advance(function () { cursor.continue(set[i]); });\n return false;\n }\n });\n return c;\n },\n notEqual: function (value) {\n return this.inAnyRange([[minKey, value], [value, maxKey]], { includeLowers: false, includeUppers: false });\n },\n noneOf: function () {\n var set = getArrayOf.apply(NO_CHAR_ARRAY, arguments);\n if (set.length === 0)\n return new Collection(this); // Return entire collection.\n try {\n set.sort(ascending);\n }\n catch (e) {\n return fail(this, INVALID_KEY_ARGUMENT);\n }\n // Transform [\"a\",\"b\",\"c\"] to a set of ranges for between/above/below: [[minKey,\"a\"], [\"a\",\"b\"], [\"b\",\"c\"], [\"c\",maxKey]]\n var ranges = set.reduce(function (res, val) { return res ? res.concat([[res[res.length - 1][1], val]]) : [[minKey, val]]; }, null);\n ranges.push([set[set.length - 1], maxKey]);\n return this.inAnyRange(ranges, { includeLowers: false, includeUppers: false });\n },\n /** Filter out values withing given set of ranges.\n * Example, give children and elders a rebate of 50%:\n *\n * db.friends.where('age').inAnyRange([[0,18],[65,Infinity]]).modify({Rebate: 1/2});\n *\n * @param {(string|number|Date|Array)[][]} ranges\n * @param {{includeLowers: boolean, includeUppers: boolean}} options\n */\n inAnyRange: function (ranges, options) {\n if (ranges.length === 0)\n return emptyCollection(this);\n if (!ranges.every(function (range) { return range[0] !== undefined && range[1] !== undefined && ascending(range[0], range[1]) <= 0; })) {\n return fail(this, \"First argument to inAnyRange() must be an Array of two-value Arrays [lower,upper] where upper must not be lower than lower\", exceptions.InvalidArgument);\n }\n var includeLowers = !options || options.includeLowers !== false; // Default to true\n var includeUppers = options && options.includeUppers === true; // Default to false\n function addRange(ranges, newRange) {\n for (var i = 0, l = ranges.length; i < l; ++i) {\n var range = ranges[i];\n if (cmp(newRange[0], range[1]) < 0 && cmp(newRange[1], range[0]) > 0) {\n range[0] = min(range[0], newRange[0]);\n range[1] = max(range[1], newRange[1]);\n break;\n }\n }\n if (i === l)\n ranges.push(newRange);\n return ranges;\n }\n var sortDirection = ascending;\n function rangeSorter(a, b) { return sortDirection(a[0], b[0]); }\n // Join overlapping ranges\n var set;\n try {\n set = ranges.reduce(addRange, []);\n set.sort(rangeSorter);\n }\n catch (ex) {\n return fail(this, INVALID_KEY_ARGUMENT);\n }\n var i = 0;\n var keyIsBeyondCurrentEntry = includeUppers ?\n function (key) { return ascending(key, set[i][1]) > 0; } :\n function (key) { return ascending(key, set[i][1]) >= 0; };\n var keyIsBeforeCurrentEntry = includeLowers ?\n function (key) { return descending(key, set[i][0]) > 0; } :\n function (key) { return descending(key, set[i][0]) >= 0; };\n function keyWithinCurrentRange(key) {\n return !keyIsBeyondCurrentEntry(key) && !keyIsBeforeCurrentEntry(key);\n }\n var checkKey = keyIsBeyondCurrentEntry;\n var c = new Collection(this, function () {\n return IDBKeyRange.bound(set[0][0], set[set.length - 1][1], !includeLowers, !includeUppers);\n });\n c._ondirectionchange = function (direction) {\n if (direction === \"next\") {\n checkKey = keyIsBeyondCurrentEntry;\n sortDirection = ascending;\n }\n else {\n checkKey = keyIsBeforeCurrentEntry;\n sortDirection = descending;\n }\n set.sort(rangeSorter);\n };\n c._addAlgorithm(function (cursor, advance, resolve) {\n var key = cursor.key;\n while (checkKey(key)) {\n // The cursor has passed beyond this key. Check next.\n ++i;\n if (i === set.length) {\n // There is no next. Stop searching.\n advance(resolve);\n return false;\n }\n }\n if (keyWithinCurrentRange(key)) {\n // The current cursor value should be included and we should continue a single step in case next item has the same key or possibly our next key in set.\n return true;\n }\n else if (cmp(key, set[i][1]) === 0 || cmp(key, set[i][0]) === 0) {\n // includeUpper or includeLower is false so keyWithinCurrentRange() returns false even though we are at range border.\n // Continue to next key but don't include this one.\n return false;\n }\n else {\n // cursor.key not yet at set[i]. Forward cursor to the next key to hunt for.\n advance(function () {\n if (sortDirection === ascending)\n cursor.continue(set[i][0]);\n else\n cursor.continue(set[i][1]);\n });\n return false;\n }\n });\n return c;\n },\n startsWithAnyOf: function () {\n var set = getArrayOf.apply(NO_CHAR_ARRAY, arguments);\n if (!set.every(function (s) { return typeof s === 'string'; })) {\n return fail(this, \"startsWithAnyOf() only works with strings\");\n }\n if (set.length === 0)\n return emptyCollection(this);\n return this.inAnyRange(set.map(function (str) {\n return [str, str + maxString];\n }));\n }\n };\n });\n //\n //\n //\n // Collection Class\n //\n //\n //\n function Collection(whereClause, keyRangeGenerator) {\n /// \n ///\n /// \n /// Where clause instance\n /// \n var keyRange = null, error = null;\n if (keyRangeGenerator)\n try {\n keyRange = keyRangeGenerator();\n }\n catch (ex) {\n error = ex;\n }\n var whereCtx = whereClause._ctx, table = whereCtx.table;\n this._ctx = {\n table: table,\n index: whereCtx.index,\n isPrimKey: (!whereCtx.index || (table.schema.primKey.keyPath && whereCtx.index === table.schema.primKey.name)),\n range: keyRange,\n keysOnly: false,\n dir: \"next\",\n unique: \"\",\n algorithm: null,\n filter: null,\n replayFilter: null,\n justLimit: true,\n isMatch: null,\n offset: 0,\n limit: Infinity,\n error: error,\n or: whereCtx.or,\n valueMapper: table.hook.reading.fire\n };\n }\n function isPlainKeyRange(ctx, ignoreLimitFilter) {\n return !(ctx.filter || ctx.algorithm || ctx.or) &&\n (ignoreLimitFilter ? ctx.justLimit : !ctx.replayFilter);\n }\n props(Collection.prototype, function () {\n //\n // Collection Private Functions\n //\n function addFilter(ctx, fn) {\n ctx.filter = combine(ctx.filter, fn);\n }\n function addReplayFilter(ctx, factory, isLimitFilter) {\n var curr = ctx.replayFilter;\n ctx.replayFilter = curr ? function () { return combine(curr(), factory()); } : factory;\n ctx.justLimit = isLimitFilter && !curr;\n }\n function addMatchFilter(ctx, fn) {\n ctx.isMatch = combine(ctx.isMatch, fn);\n }\n /** @param ctx {\n * isPrimKey: boolean,\n * table: Table,\n * index: string\n * }\n * @param store IDBObjectStore\n **/\n function getIndexOrStore(ctx, store) {\n if (ctx.isPrimKey)\n return store;\n var indexSpec = ctx.table.schema.idxByName[ctx.index];\n if (!indexSpec)\n throw new exceptions.Schema(\"KeyPath \" + ctx.index + \" on object store \" + store.name + \" is not indexed\");\n return store.index(indexSpec.name);\n }\n /** @param ctx {\n * isPrimKey: boolean,\n * table: Table,\n * index: string,\n * keysOnly: boolean,\n * range?: IDBKeyRange,\n * dir: \"next\" | \"prev\"\n * }\n */\n function openCursor(ctx, store) {\n var idxOrStore = getIndexOrStore(ctx, store);\n return ctx.keysOnly && 'openKeyCursor' in idxOrStore ?\n idxOrStore.openKeyCursor(ctx.range || null, ctx.dir + ctx.unique) :\n idxOrStore.openCursor(ctx.range || null, ctx.dir + ctx.unique);\n }\n function iter(ctx, fn, resolve, reject, idbstore) {\n var filter = ctx.replayFilter ? combine(ctx.filter, ctx.replayFilter()) : ctx.filter;\n if (!ctx.or) {\n iterate(openCursor(ctx, idbstore), combine(ctx.algorithm, filter), fn, resolve, reject, !ctx.keysOnly && ctx.valueMapper);\n }\n else\n (function () {\n var set = {};\n var resolved = 0;\n function resolveboth() {\n if (++resolved === 2)\n resolve(); // Seems like we just support or btwn max 2 expressions, but there are no limit because we do recursion.\n }\n function union(item, cursor, advance) {\n if (!filter || filter(cursor, advance, resolveboth, reject)) {\n var primaryKey = cursor.primaryKey;\n var key = '' + primaryKey;\n if (key === '[object ArrayBuffer]')\n key = '' + new Uint8Array(primaryKey);\n if (!hasOwn(set, key)) {\n set[key] = true;\n fn(item, cursor, advance);\n }\n }\n }\n ctx.or._iterate(union, resolveboth, reject, idbstore);\n iterate(openCursor(ctx, idbstore), ctx.algorithm, union, resolveboth, reject, !ctx.keysOnly && ctx.valueMapper);\n })();\n }\n return {\n //\n // Collection Protected Functions\n //\n _read: function (fn, cb) {\n var ctx = this._ctx;\n return ctx.error ?\n ctx.table._trans(null, rejection.bind(null, ctx.error)) :\n ctx.table._idbstore(READONLY, fn).then(cb);\n },\n _write: function (fn) {\n var ctx = this._ctx;\n return ctx.error ?\n ctx.table._trans(null, rejection.bind(null, ctx.error)) :\n ctx.table._idbstore(READWRITE, fn, \"locked\"); // When doing write operations on collections, always lock the operation so that upcoming operations gets queued.\n },\n _addAlgorithm: function (fn) {\n var ctx = this._ctx;\n ctx.algorithm = combine(ctx.algorithm, fn);\n },\n _iterate: function (fn, resolve, reject, idbstore) {\n return iter(this._ctx, fn, resolve, reject, idbstore);\n },\n clone: function (props$$1) {\n var rv = Object.create(this.constructor.prototype), ctx = Object.create(this._ctx);\n if (props$$1)\n extend(ctx, props$$1);\n rv._ctx = ctx;\n return rv;\n },\n raw: function () {\n this._ctx.valueMapper = null;\n return this;\n },\n //\n // Collection Public methods\n //\n each: function (fn) {\n var ctx = this._ctx;\n return this._read(function (resolve, reject, idbstore) {\n iter(ctx, fn, resolve, reject, idbstore);\n });\n },\n count: function (cb) {\n var ctx = this._ctx;\n if (isPlainKeyRange(ctx, true)) {\n // This is a plain key range. We can use the count() method if the index.\n return this._read(function (resolve, reject, idbstore) {\n var idx = getIndexOrStore(ctx, idbstore);\n var req = (ctx.range ? idx.count(ctx.range) : idx.count());\n req.onerror = eventRejectHandler(reject);\n req.onsuccess = function (e) {\n resolve(Math.min(e.target.result, ctx.limit));\n };\n }, cb);\n }\n else {\n // Algorithms, filters or expressions are applied. Need to count manually.\n var count = 0;\n return this._read(function (resolve, reject, idbstore) {\n iter(ctx, function () { ++count; return false; }, function () { resolve(count); }, reject, idbstore);\n }, cb);\n }\n },\n sortBy: function (keyPath, cb) {\n /// \n var parts = keyPath.split('.').reverse(), lastPart = parts[0], lastIndex = parts.length - 1;\n function getval(obj, i) {\n if (i)\n return getval(obj[parts[i]], i - 1);\n return obj[lastPart];\n }\n var order = this._ctx.dir === \"next\" ? 1 : -1;\n function sorter(a, b) {\n var aVal = getval(a, lastIndex), bVal = getval(b, lastIndex);\n return aVal < bVal ? -order : aVal > bVal ? order : 0;\n }\n return this.toArray(function (a) {\n return a.sort(sorter);\n }).then(cb);\n },\n toArray: function (cb) {\n var ctx = this._ctx;\n return this._read(function (resolve, reject, idbstore) {\n if (hasGetAll && ctx.dir === 'next' && isPlainKeyRange(ctx, true) && ctx.limit > 0) {\n // Special optimation if we could use IDBObjectStore.getAll() or\n // IDBKeyRange.getAll():\n var readingHook = ctx.table.hook.reading.fire;\n var idxOrStore = getIndexOrStore(ctx, idbstore);\n var req = ctx.limit < Infinity ?\n idxOrStore.getAll(ctx.range, ctx.limit) :\n idxOrStore.getAll(ctx.range);\n req.onerror = eventRejectHandler(reject);\n req.onsuccess = readingHook === mirror ?\n eventSuccessHandler(resolve) :\n eventSuccessHandler(function (res) {\n try {\n resolve(res.map(readingHook));\n }\n catch (e) {\n reject(e);\n }\n });\n }\n else {\n // Getting array through a cursor.\n var a = [];\n iter(ctx, function (item) { a.push(item); }, function arrayComplete() {\n resolve(a);\n }, reject, idbstore);\n }\n }, cb);\n },\n offset: function (offset) {\n var ctx = this._ctx;\n if (offset <= 0)\n return this;\n ctx.offset += offset; // For count()\n if (isPlainKeyRange(ctx)) {\n addReplayFilter(ctx, function () {\n var offsetLeft = offset;\n return function (cursor, advance) {\n if (offsetLeft === 0)\n return true;\n if (offsetLeft === 1) {\n --offsetLeft;\n return false;\n }\n advance(function () {\n cursor.advance(offsetLeft);\n offsetLeft = 0;\n });\n return false;\n };\n });\n }\n else {\n addReplayFilter(ctx, function () {\n var offsetLeft = offset;\n return function () { return (--offsetLeft < 0); };\n });\n }\n return this;\n },\n limit: function (numRows) {\n this._ctx.limit = Math.min(this._ctx.limit, numRows); // For count()\n addReplayFilter(this._ctx, function () {\n var rowsLeft = numRows;\n return function (cursor, advance, resolve) {\n if (--rowsLeft <= 0)\n advance(resolve); // Stop after this item has been included\n return rowsLeft >= 0; // If numRows is already below 0, return false because then 0 was passed to numRows initially. Otherwise we wouldnt come here.\n };\n }, true);\n return this;\n },\n until: function (filterFunction, bIncludeStopEntry) {\n addFilter(this._ctx, function (cursor, advance, resolve) {\n if (filterFunction(cursor.value)) {\n advance(resolve);\n return bIncludeStopEntry;\n }\n else {\n return true;\n }\n });\n return this;\n },\n first: function (cb) {\n return this.limit(1).toArray(function (a) { return a[0]; }).then(cb);\n },\n last: function (cb) {\n return this.reverse().first(cb);\n },\n filter: function (filterFunction) {\n /// function(val){return true/false}\n addFilter(this._ctx, function (cursor) {\n return filterFunction(cursor.value);\n });\n // match filters not used in Dexie.js but can be used by 3rd part libraries to test a\n // collection for a match without querying DB. Used by Dexie.Observable.\n addMatchFilter(this._ctx, filterFunction);\n return this;\n },\n and: function (filterFunction) {\n return this.filter(filterFunction);\n },\n or: function (indexName) {\n return new WhereClause(this._ctx.table, indexName, this);\n },\n reverse: function () {\n this._ctx.dir = (this._ctx.dir === \"prev\" ? \"next\" : \"prev\");\n if (this._ondirectionchange)\n this._ondirectionchange(this._ctx.dir);\n return this;\n },\n desc: function () {\n return this.reverse();\n },\n eachKey: function (cb) {\n var ctx = this._ctx;\n ctx.keysOnly = !ctx.isMatch;\n return this.each(function (val, cursor) { cb(cursor.key, cursor); });\n },\n eachUniqueKey: function (cb) {\n this._ctx.unique = \"unique\";\n return this.eachKey(cb);\n },\n eachPrimaryKey: function (cb) {\n var ctx = this._ctx;\n ctx.keysOnly = !ctx.isMatch;\n return this.each(function (val, cursor) { cb(cursor.primaryKey, cursor); });\n },\n keys: function (cb) {\n var ctx = this._ctx;\n ctx.keysOnly = !ctx.isMatch;\n var a = [];\n return this.each(function (item, cursor) {\n a.push(cursor.key);\n }).then(function () {\n return a;\n }).then(cb);\n },\n primaryKeys: function (cb) {\n var ctx = this._ctx;\n if (hasGetAll && ctx.dir === 'next' && isPlainKeyRange(ctx, true) && ctx.limit > 0) {\n // Special optimation if we could use IDBObjectStore.getAllKeys() or\n // IDBKeyRange.getAllKeys():\n return this._read(function (resolve, reject, idbstore) {\n var idxOrStore = getIndexOrStore(ctx, idbstore);\n var req = ctx.limit < Infinity ?\n idxOrStore.getAllKeys(ctx.range, ctx.limit) :\n idxOrStore.getAllKeys(ctx.range);\n req.onerror = eventRejectHandler(reject);\n req.onsuccess = eventSuccessHandler(resolve);\n }).then(cb);\n }\n ctx.keysOnly = !ctx.isMatch;\n var a = [];\n return this.each(function (item, cursor) {\n a.push(cursor.primaryKey);\n }).then(function () {\n return a;\n }).then(cb);\n },\n uniqueKeys: function (cb) {\n this._ctx.unique = \"unique\";\n return this.keys(cb);\n },\n firstKey: function (cb) {\n return this.limit(1).keys(function (a) { return a[0]; }).then(cb);\n },\n lastKey: function (cb) {\n return this.reverse().firstKey(cb);\n },\n distinct: function () {\n var ctx = this._ctx, idx = ctx.index && ctx.table.schema.idxByName[ctx.index];\n if (!idx || !idx.multi)\n return this; // distinct() only makes differencies on multiEntry indexes.\n var set = {};\n addFilter(this._ctx, function (cursor) {\n var strKey = cursor.primaryKey.toString(); // Converts any Date to String, String to String, Number to String and Array to comma-separated string\n var found = hasOwn(set, strKey);\n set[strKey] = true;\n return !found;\n });\n return this;\n },\n //\n // Methods that mutate storage\n //\n modify: function (changes) {\n var self = this, ctx = this._ctx, hook = ctx.table.hook, updatingHook = hook.updating.fire, deletingHook = hook.deleting.fire;\n return this._write(function (resolve, reject, idbstore, trans) {\n var modifyer;\n if (typeof changes === 'function') {\n // Changes is a function that may update, add or delete propterties or even require a deletion the object itself (delete this.item)\n if (updatingHook === nop && deletingHook === nop) {\n // Noone cares about what is being changed. Just let the modifier function be the given argument as is.\n modifyer = changes;\n }\n else {\n // People want to know exactly what is being modified or deleted.\n // Let modifyer be a proxy function that finds out what changes the caller is actually doing\n // and call the hooks accordingly!\n modifyer = function (item) {\n var origItem = deepClone(item); // Clone the item first so we can compare laters.\n if (changes.call(this, item, this) === false)\n return false; // Call the real modifyer function (If it returns false explicitely, it means it dont want to modify anyting on this object)\n if (!hasOwn(this, \"value\")) {\n // The real modifyer function requests a deletion of the object. Inform the deletingHook that a deletion is taking place.\n deletingHook.call(this, this.primKey, item, trans);\n }\n else {\n // No deletion. Check what was changed\n var objectDiff = getObjectDiff(origItem, this.value);\n var additionalChanges = updatingHook.call(this, objectDiff, this.primKey, origItem, trans);\n if (additionalChanges) {\n // Hook want to apply additional modifications. Make sure to fullfill the will of the hook.\n item = this.value;\n keys(additionalChanges).forEach(function (keyPath) {\n setByKeyPath(item, keyPath, additionalChanges[keyPath]); // Adding {keyPath: undefined} means that the keyPath should be deleted. Handled by setByKeyPath\n });\n }\n }\n };\n }\n }\n else if (updatingHook === nop) {\n // changes is a set of {keyPath: value} and no one is listening to the updating hook.\n var keyPaths = keys(changes);\n var numKeys = keyPaths.length;\n modifyer = function (item) {\n var anythingModified = false;\n for (var i = 0; i < numKeys; ++i) {\n var keyPath = keyPaths[i], val = changes[keyPath];\n if (getByKeyPath(item, keyPath) !== val) {\n setByKeyPath(item, keyPath, val); // Adding {keyPath: undefined} means that the keyPath should be deleted. Handled by setByKeyPath\n anythingModified = true;\n }\n }\n return anythingModified;\n };\n }\n else {\n // changes is a set of {keyPath: value} and people are listening to the updating hook so we need to call it and\n // allow it to add additional modifications to make.\n var origChanges = changes;\n changes = shallowClone(origChanges); // Let's work with a clone of the changes keyPath/value set so that we can restore it in case a hook extends it.\n modifyer = function (item) {\n var anythingModified = false;\n var additionalChanges = updatingHook.call(this, changes, this.primKey, deepClone(item), trans);\n if (additionalChanges)\n extend(changes, additionalChanges);\n keys(changes).forEach(function (keyPath) {\n var val = changes[keyPath];\n if (getByKeyPath(item, keyPath) !== val) {\n setByKeyPath(item, keyPath, val);\n anythingModified = true;\n }\n });\n if (additionalChanges)\n changes = shallowClone(origChanges); // Restore original changes for next iteration\n return anythingModified;\n };\n }\n var count = 0;\n var successCount = 0;\n var iterationComplete = false;\n var failures = [];\n var failKeys = [];\n var currentKey = null;\n function modifyItem(item, cursor) {\n currentKey = cursor.primaryKey;\n var thisContext = {\n primKey: cursor.primaryKey,\n value: item,\n onsuccess: null,\n onerror: null\n };\n function onerror(e) {\n failures.push(e);\n failKeys.push(thisContext.primKey);\n checkFinished();\n return true; // Catch these errors and let a final rejection decide whether or not to abort entire transaction\n }\n if (modifyer.call(thisContext, item, thisContext) !== false) {\n var bDelete = !hasOwn(thisContext, \"value\");\n ++count;\n tryCatch(function () {\n var req = (bDelete ? cursor.delete() : cursor.update(thisContext.value));\n req._hookCtx = thisContext;\n req.onerror = hookedEventRejectHandler(onerror);\n req.onsuccess = hookedEventSuccessHandler(function () {\n ++successCount;\n checkFinished();\n });\n }, onerror);\n }\n else if (thisContext.onsuccess) {\n // Hook will expect either onerror or onsuccess to always be called!\n thisContext.onsuccess(thisContext.value);\n }\n }\n function doReject(e) {\n if (e) {\n failures.push(e);\n failKeys.push(currentKey);\n }\n return reject(new ModifyError(\"Error modifying one or more objects\", failures, successCount, failKeys));\n }\n function checkFinished() {\n if (iterationComplete && successCount + failures.length === count) {\n if (failures.length > 0)\n doReject();\n else\n resolve(successCount);\n }\n }\n self.clone().raw()._iterate(modifyItem, function () {\n iterationComplete = true;\n checkFinished();\n }, doReject, idbstore);\n });\n },\n 'delete': function () {\n var _this = this;\n var ctx = this._ctx, range = ctx.range, deletingHook = ctx.table.hook.deleting.fire, hasDeleteHook = deletingHook !== nop;\n if (!hasDeleteHook &&\n isPlainKeyRange(ctx) &&\n ((ctx.isPrimKey && !hangsOnDeleteLargeKeyRange) || !range)) {\n // May use IDBObjectStore.delete(IDBKeyRange) in this case (Issue #208)\n // For chromium, this is the way most optimized version.\n // For IE/Edge, this could hang the indexedDB engine and make operating system instable\n // (https://gist.github.com/dfahlander/5a39328f029de18222cf2125d56c38f7)\n return this._write(function (resolve, reject, idbstore) {\n // Our API contract is to return a count of deleted items, so we have to count() before delete().\n var onerror = eventRejectHandler(reject), countReq = (range ? idbstore.count(range) : idbstore.count());\n countReq.onerror = onerror;\n countReq.onsuccess = function () {\n var count = countReq.result;\n tryCatch(function () {\n var delReq = (range ? idbstore.delete(range) : idbstore.clear());\n delReq.onerror = onerror;\n delReq.onsuccess = function () { return resolve(count); };\n }, function (err) { return reject(err); });\n };\n });\n }\n // Default version to use when collection is not a vanilla IDBKeyRange on the primary key.\n // Divide into chunks to not starve RAM.\n // If has delete hook, we will have to collect not just keys but also objects, so it will use\n // more memory and need lower chunk size.\n var CHUNKSIZE = hasDeleteHook ? 2000 : 10000;\n return this._write(function (resolve, reject, idbstore, trans) {\n var totalCount = 0;\n // Clone collection and change its table and set a limit of CHUNKSIZE on the cloned Collection instance.\n var collection = _this\n .clone({\n keysOnly: !ctx.isMatch && !hasDeleteHook\n }) // load just keys (unless filter() or and() or deleteHook has subscribers)\n .distinct() // In case multiEntry is used, never delete same key twice because resulting count\n .limit(CHUNKSIZE)\n .raw(); // Don't filter through reading-hooks (like mapped classes etc)\n var keysOrTuples = [];\n // We're gonna do things on as many chunks that are needed.\n // Use recursion of nextChunk function:\n var nextChunk = function () { return collection.each(hasDeleteHook ? function (val, cursor) {\n // Somebody subscribes to hook('deleting'). Collect all primary keys and their values,\n // so that the hook can be called with its values in bulkDelete().\n keysOrTuples.push([cursor.primaryKey, cursor.value]);\n } : function (val, cursor) {\n // No one subscribes to hook('deleting'). Collect only primary keys:\n keysOrTuples.push(cursor.primaryKey);\n }).then(function () {\n // Chromium deletes faster when doing it in sort order.\n hasDeleteHook ?\n keysOrTuples.sort(function (a, b) { return ascending(a[0], b[0]); }) :\n keysOrTuples.sort(ascending);\n return bulkDelete(idbstore, trans, keysOrTuples, hasDeleteHook, deletingHook);\n }).then(function () {\n var count = keysOrTuples.length;\n totalCount += count;\n keysOrTuples = [];\n return count < CHUNKSIZE ? totalCount : nextChunk();\n }); };\n resolve(nextChunk());\n });\n }\n };\n });\n //\n //\n //\n // ------------------------- Help functions ---------------------------\n //\n //\n //\n function lowerVersionFirst(a, b) {\n return a._cfg.version - b._cfg.version;\n }\n function setApiOnPlace(objs, tableNames, dbschema) {\n tableNames.forEach(function (tableName) {\n var schema = dbschema[tableName];\n objs.forEach(function (obj) {\n if (!(tableName in obj)) {\n if (obj === Transaction.prototype || obj instanceof Transaction) {\n // obj is a Transaction prototype (or prototype of a subclass to Transaction)\n // Make the API a getter that returns this.table(tableName)\n setProp(obj, tableName, { get: function () { return this.table(tableName); } });\n }\n else {\n // Table will not be bound to a transaction (will use Dexie.currentTransaction)\n obj[tableName] = new Table(tableName, schema);\n }\n }\n });\n });\n }\n function removeTablesApi(objs) {\n objs.forEach(function (obj) {\n for (var key in obj) {\n if (obj[key] instanceof Table)\n delete obj[key];\n }\n });\n }\n function iterate(req, filter, fn, resolve, reject, valueMapper) {\n // Apply valueMapper (hook('reading') or mappped class)\n var mappedFn = valueMapper ? function (x, c, a) { return fn(valueMapper(x), c, a); } : fn;\n // Wrap fn with PSD and microtick stuff from Promise.\n var wrappedFn = wrap(mappedFn, reject);\n if (!req.onerror)\n req.onerror = eventRejectHandler(reject);\n if (filter) {\n req.onsuccess = trycatcher(function filter_record() {\n var cursor = req.result;\n if (cursor) {\n var c = function () { cursor.continue(); };\n if (filter(cursor, function (advancer) { c = advancer; }, resolve, reject))\n wrappedFn(cursor.value, cursor, function (advancer) { c = advancer; });\n c();\n }\n else {\n resolve();\n }\n }, reject);\n }\n else {\n req.onsuccess = trycatcher(function filter_record() {\n var cursor = req.result;\n if (cursor) {\n var c = function () { cursor.continue(); };\n wrappedFn(cursor.value, cursor, function (advancer) { c = advancer; });\n c();\n }\n else {\n resolve();\n }\n }, reject);\n }\n }\n function parseIndexSyntax(indexes) {\n /// \n /// \n var rv = [];\n indexes.split(',').forEach(function (index) {\n index = index.trim();\n var name = index.replace(/([&*]|\\+\\+)/g, \"\"); // Remove \"&\", \"++\" and \"*\"\n // Let keyPath of \"[a+b]\" be [\"a\",\"b\"]:\n var keyPath = /^\\[/.test(name) ? name.match(/^\\[(.*)\\]$/)[1].split('+') : name;\n rv.push(new IndexSpec(name, keyPath || null, /\\&/.test(index), /\\*/.test(index), /\\+\\+/.test(index), isArray(keyPath), /\\./.test(index)));\n });\n return rv;\n }\n function cmp(key1, key2) {\n return indexedDB.cmp(key1, key2);\n }\n function min(a, b) {\n return cmp(a, b) < 0 ? a : b;\n }\n function max(a, b) {\n return cmp(a, b) > 0 ? a : b;\n }\n function ascending(a, b) {\n return indexedDB.cmp(a, b);\n }\n function descending(a, b) {\n return indexedDB.cmp(b, a);\n }\n function simpleCompare(a, b) {\n return a < b ? -1 : a === b ? 0 : 1;\n }\n function simpleCompareReverse(a, b) {\n return a > b ? -1 : a === b ? 0 : 1;\n }\n function combine(filter1, filter2) {\n return filter1 ?\n filter2 ?\n function () { return filter1.apply(this, arguments) && filter2.apply(this, arguments); } :\n filter1 :\n filter2;\n }\n function readGlobalSchema() {\n db.verno = idbdb.version / 10;\n db._dbSchema = globalSchema = {};\n dbStoreNames = slice(idbdb.objectStoreNames, 0);\n if (dbStoreNames.length === 0)\n return; // Database contains no stores.\n var trans = idbdb.transaction(safariMultiStoreFix(dbStoreNames), 'readonly');\n dbStoreNames.forEach(function (storeName) {\n var store = trans.objectStore(storeName), keyPath = store.keyPath, dotted = keyPath && typeof keyPath === 'string' && keyPath.indexOf('.') !== -1;\n var primKey = new IndexSpec(keyPath, keyPath || \"\", false, false, !!store.autoIncrement, keyPath && typeof keyPath !== 'string', dotted);\n var indexes = [];\n for (var j = 0; j < store.indexNames.length; ++j) {\n var idbindex = store.index(store.indexNames[j]);\n keyPath = idbindex.keyPath;\n dotted = keyPath && typeof keyPath === 'string' && keyPath.indexOf('.') !== -1;\n var index = new IndexSpec(idbindex.name, keyPath, !!idbindex.unique, !!idbindex.multiEntry, false, keyPath && typeof keyPath !== 'string', dotted);\n indexes.push(index);\n }\n globalSchema[storeName] = new TableSchema(storeName, primKey, indexes, {});\n });\n setApiOnPlace([allTables], keys(globalSchema), globalSchema);\n }\n function adjustToExistingIndexNames(schema, idbtrans) {\n /// \n /// Issue #30 Problem with existing db - adjust to existing index names when migrating from non-dexie db\n /// \n /// Map between name and TableSchema\n /// \n var storeNames = idbtrans.db.objectStoreNames;\n for (var i = 0; i < storeNames.length; ++i) {\n var storeName = storeNames[i];\n var store = idbtrans.objectStore(storeName);\n hasGetAll = 'getAll' in store;\n for (var j = 0; j < store.indexNames.length; ++j) {\n var indexName = store.indexNames[j];\n var keyPath = store.index(indexName).keyPath;\n var dexieName = typeof keyPath === 'string' ? keyPath : \"[\" + slice(keyPath).join('+') + \"]\";\n if (schema[storeName]) {\n var indexSpec = schema[storeName].idxByName[dexieName];\n if (indexSpec)\n indexSpec.name = indexName;\n }\n }\n }\n // Bug with getAll() on Safari ver<604 on Workers only, see discussion following PR #579\n if (/Safari/.test(navigator.userAgent) &&\n !/(Chrome\\/|Edge\\/)/.test(navigator.userAgent) &&\n _global.WorkerGlobalScope && _global instanceof _global.WorkerGlobalScope &&\n [].concat(navigator.userAgent.match(/Safari\\/(\\d*)/))[1] < 604) {\n hasGetAll = false;\n }\n }\n function fireOnBlocked(ev) {\n db.on(\"blocked\").fire(ev);\n // Workaround (not fully*) for missing \"versionchange\" event in IE,Edge and Safari:\n connections\n .filter(function (c) { return c.name === db.name && c !== db && !c._vcFired; })\n .map(function (c) { return c.on(\"versionchange\").fire(ev); });\n }\n extend(this, {\n Collection: Collection,\n Table: Table,\n Transaction: Transaction,\n Version: Version,\n WhereClause: WhereClause\n });\n init();\n addons.forEach(function (fn) {\n fn(db);\n });\n}\nfunction parseType(type) {\n if (typeof type === 'function') {\n return new type();\n }\n else if (isArray(type)) {\n return [parseType(type[0])];\n }\n else if (type && typeof type === 'object') {\n var rv = {};\n applyStructure(rv, type);\n return rv;\n }\n else {\n return type;\n }\n}\nfunction applyStructure(obj, structure) {\n keys(structure).forEach(function (member) {\n var value = parseType(structure[member]);\n obj[member] = value;\n });\n return obj;\n}\nfunction hookedEventSuccessHandler(resolve) {\n // wrap() is needed when calling hooks because the rare scenario of:\n // * hook does a db operation that fails immediately (IDB throws exception)\n // For calling db operations on correct transaction, wrap makes sure to set PSD correctly.\n // wrap() will also execute in a virtual tick.\n // * If not wrapped in a virtual tick, direct exception will launch a new physical tick.\n // * If this was the last event in the bulk, the promise will resolve after a physical tick\n // and the transaction will have committed already.\n // If no hook, the virtual tick will be executed in the reject()/resolve of the final promise,\n // because it is always marked with _lib = true when created using Transaction._promise().\n return wrap(function (event) {\n var req = event.target, ctx = req._hookCtx, // Contains the hook error handler. Put here instead of closure to boost performance.\n result = ctx.value || req.result, // Pass the object value on updates. The result from IDB is the primary key.\n hookSuccessHandler = ctx && ctx.onsuccess;\n hookSuccessHandler && hookSuccessHandler(result);\n resolve && resolve(result);\n }, resolve);\n}\nfunction eventRejectHandler(reject) {\n return wrap(function (event) {\n preventDefault(event);\n reject(event.target.error);\n return false;\n });\n}\nfunction eventSuccessHandler(resolve) {\n return wrap(function (event) {\n resolve(event.target.result);\n });\n}\nfunction hookedEventRejectHandler(reject) {\n return wrap(function (event) {\n // See comment on hookedEventSuccessHandler() why wrap() is needed only when supporting hooks.\n var req = event.target, err = req.error, ctx = req._hookCtx, // Contains the hook error handler. Put here instead of closure to boost performance.\n hookErrorHandler = ctx && ctx.onerror;\n hookErrorHandler && hookErrorHandler(err);\n preventDefault(event);\n reject(err);\n return false;\n });\n}\nfunction preventDefault(event) {\n if (event.stopPropagation)\n event.stopPropagation();\n if (event.preventDefault)\n event.preventDefault();\n}\nfunction awaitIterator(iterator) {\n var callNext = function (result) { return iterator.next(result); }, doThrow = function (error) { return iterator.throw(error); }, onSuccess = step(callNext), onError = step(doThrow);\n function step(getNext) {\n return function (val) {\n var next = getNext(val), value = next.value;\n return next.done ? value :\n (!value || typeof value.then !== 'function' ?\n isArray(value) ? Promise.all(value).then(onSuccess, onError) : onSuccess(value) :\n value.then(onSuccess, onError));\n };\n }\n return step(callNext)();\n}\n//\n// IndexSpec struct\n//\nfunction IndexSpec(name, keyPath, unique, multi, auto, compound, dotted) {\n /// \n /// \n /// \n /// \n /// \n /// \n /// \n this.name = name;\n this.keyPath = keyPath;\n this.unique = unique;\n this.multi = multi;\n this.auto = auto;\n this.compound = compound;\n this.dotted = dotted;\n var keyPathSrc = typeof keyPath === 'string' ? keyPath : keyPath && ('[' + [].join.call(keyPath, '+') + ']');\n this.src = (unique ? '&' : '') + (multi ? '*' : '') + (auto ? \"++\" : \"\") + keyPathSrc;\n}\n//\n// TableSchema struct\n//\nfunction TableSchema(name, primKey, indexes, instanceTemplate) {\n /// \n /// \n /// \n /// \n this.name = name;\n this.primKey = primKey || new IndexSpec();\n this.indexes = indexes || [new IndexSpec()];\n this.instanceTemplate = instanceTemplate;\n this.mappedClass = null;\n this.idxByName = arrayToObject(indexes, function (index) { return [index.name, index]; });\n}\nfunction safariMultiStoreFix(storeNames) {\n return storeNames.length === 1 ? storeNames[0] : storeNames;\n}\nfunction getNativeGetDatabaseNamesFn(indexedDB) {\n var fn = indexedDB && (indexedDB.getDatabaseNames || indexedDB.webkitGetDatabaseNames);\n return fn && fn.bind(indexedDB);\n}\n// Export Error classes\nprops(Dexie, fullNameExceptions); // Dexie.XXXError = class XXXError {...};\n//\n// Static methods and properties\n// \nprops(Dexie, {\n //\n // Static delete() method.\n //\n delete: function (databaseName) {\n var db = new Dexie(databaseName), promise = db.delete();\n promise.onblocked = function (fn) {\n db.on(\"blocked\", fn);\n return this;\n };\n return promise;\n },\n //\n // Static exists() method.\n //\n exists: function (name) {\n return new Dexie(name).open().then(function (db) {\n db.close();\n return true;\n }).catch(Dexie.NoSuchDatabaseError, function () { return false; });\n },\n //\n // Static method for retrieving a list of all existing databases at current host.\n //\n getDatabaseNames: function (cb) {\n var getDatabaseNames = getNativeGetDatabaseNamesFn(Dexie.dependencies.indexedDB);\n return getDatabaseNames ? new Promise(function (resolve, reject) {\n var req = getDatabaseNames();\n req.onsuccess = function (event) {\n resolve(slice(event.target.result, 0)); // Converst DOMStringList to Array\n };\n req.onerror = eventRejectHandler(reject);\n }).then(cb) : dbNamesDB.dbnames.toCollection().primaryKeys(cb);\n },\n defineClass: function () {\n // Default constructor able to copy given properties into this object.\n function Class(properties) {\n /// Properties to initialize object with.\n /// \n if (properties)\n extend(this, properties);\n }\n return Class;\n },\n applyStructure: applyStructure,\n ignoreTransaction: function (scopeFunc) {\n // In case caller is within a transaction but needs to create a separate transaction.\n // Example of usage:\n //\n // Let's say we have a logger function in our app. Other application-logic should be unaware of the\n // logger function and not need to include the 'logentries' table in all transaction it performs.\n // The logging should always be done in a separate transaction and not be dependant on the current\n // running transaction context. Then you could use Dexie.ignoreTransaction() to run code that starts a new transaction.\n //\n // Dexie.ignoreTransaction(function() {\n // db.logentries.add(newLogEntry);\n // });\n //\n // Unless using Dexie.ignoreTransaction(), the above example would try to reuse the current transaction\n // in current Promise-scope.\n //\n // An alternative to Dexie.ignoreTransaction() would be setImmediate() or setTimeout(). The reason we still provide an\n // API for this because\n // 1) The intention of writing the statement could be unclear if using setImmediate() or setTimeout().\n // 2) setTimeout() would wait unnescessary until firing. This is however not the case with setImmediate().\n // 3) setImmediate() is not supported in the ES standard.\n // 4) You might want to keep other PSD state that was set in a parent PSD, such as PSD.letThrough.\n return PSD.trans ?\n usePSD(PSD.transless, scopeFunc) : // Use the closest parent that was non-transactional.\n scopeFunc(); // No need to change scope because there is no ongoing transaction.\n },\n vip: function (fn) {\n // To be used by subscribers to the on('ready') event.\n // This will let caller through to access DB even when it is blocked while the db.ready() subscribers are firing.\n // This would have worked automatically if we were certain that the Provider was using Dexie.Promise for all asyncronic operations. The promise PSD\n // from the provider.connect() call would then be derived all the way to when provider would call localDatabase.applyChanges(). But since\n // the provider more likely is using non-promise async APIs or other thenable implementations, we cannot assume that.\n // Note that this method is only useful for on('ready') subscribers that is returning a Promise from the event. If not using vip()\n // the database could deadlock since it wont open until the returned Promise is resolved, and any non-VIPed operation started by\n // the caller will not resolve until database is opened.\n return newScope(function () {\n PSD.letThrough = true; // Make sure we are let through if still blocking db due to onready is firing.\n return fn();\n });\n },\n async: function (generatorFn) {\n return function () {\n try {\n var rv = awaitIterator(generatorFn.apply(this, arguments));\n if (!rv || typeof rv.then !== 'function')\n return Promise.resolve(rv);\n return rv;\n }\n catch (e) {\n return rejection(e);\n }\n };\n },\n spawn: function (generatorFn, args, thiz) {\n try {\n var rv = awaitIterator(generatorFn.apply(thiz, args || []));\n if (!rv || typeof rv.then !== 'function')\n return Promise.resolve(rv);\n return rv;\n }\n catch (e) {\n return rejection(e);\n }\n },\n // Dexie.currentTransaction property\n currentTransaction: {\n get: function () { return PSD.trans || null; }\n },\n waitFor: function (promiseOrFunction, optionalTimeout) {\n // If a function is provided, invoke it and pass the returning value to Transaction.waitFor()\n var promise = Promise.resolve(typeof promiseOrFunction === 'function' ? Dexie.ignoreTransaction(promiseOrFunction) : promiseOrFunction)\n .timeout(optionalTimeout || 60000); // Default the timeout to one minute. Caller may specify Infinity if required. \n // Run given promise on current transaction. If no current transaction, just return a Dexie promise based\n // on given value.\n return PSD.trans ? PSD.trans.waitFor(promise) : promise;\n },\n // Export our Promise implementation since it can be handy as a standalone Promise implementation\n Promise: Promise,\n // Dexie.debug proptery:\n // Dexie.debug = false\n // Dexie.debug = true\n // Dexie.debug = \"dexie\" - don't hide dexie's stack frames.\n debug: {\n get: function () { return debug; },\n set: function (value) {\n setDebug(value, value === 'dexie' ? function () { return true; } : dexieStackFrameFilter);\n }\n },\n // Export our derive/extend/override methodology\n derive: derive,\n extend: extend,\n props: props,\n override: override,\n // Export our Events() function - can be handy as a toolkit\n Events: Events,\n // Utilities\n getByKeyPath: getByKeyPath,\n setByKeyPath: setByKeyPath,\n delByKeyPath: delByKeyPath,\n shallowClone: shallowClone,\n deepClone: deepClone,\n getObjectDiff: getObjectDiff,\n asap: asap,\n maxKey: maxKey,\n minKey: minKey,\n // Addon registry\n addons: [],\n // Global DB connection list\n connections: connections,\n MultiModifyError: exceptions.Modify,\n errnames: errnames,\n // Export other static classes\n IndexSpec: IndexSpec,\n TableSchema: TableSchema,\n //\n // Dependencies\n //\n // These will automatically work in browsers with indexedDB support, or where an indexedDB polyfill has been included.\n //\n // In node.js, however, these properties must be set \"manually\" before instansiating a new Dexie().\n // For node.js, you need to require indexeddb-js or similar and then set these deps.\n //\n dependencies: (function () {\n try {\n return {\n // Required:\n indexedDB: _global.indexedDB || _global.mozIndexedDB || _global.webkitIndexedDB || _global.msIndexedDB,\n IDBKeyRange: _global.IDBKeyRange || _global.webkitIDBKeyRange\n };\n }\n catch (e) {\n return {\n indexedDB: null,\n IDBKeyRange: null\n };\n }\n })(),\n // API Version Number: Type Number, make sure to always set a version number that can be comparable correctly. Example: 0.9, 0.91, 0.92, 1.0, 1.01, 1.1, 1.2, 1.21, etc.\n semVer: DEXIE_VERSION,\n version: DEXIE_VERSION.split('.')\n .map(function (n) { return parseInt(n); })\n .reduce(function (p, c, i) { return p + (c / Math.pow(10, i * 2)); }),\n // https://github.com/dfahlander/Dexie.js/issues/186\n // typescript compiler tsc in mode ts-->es5 & commonJS, will expect require() to return\n // x.default. Workaround: Set Dexie.default = Dexie.\n default: Dexie,\n // Make it possible to import {Dexie} (non-default import)\n // Reason 1: May switch to that in future.\n // Reason 2: We declare it both default and named exported in d.ts to make it possible\n // to let addons extend the Dexie interface with Typescript 2.1 (works only when explicitely\n // exporting the symbol, not just default exporting)\n Dexie: Dexie\n});\n// Map DOMErrors and DOMExceptions to corresponding Dexie errors. May change in Dexie v2.0.\nPromise.rejectionMapper = mapError;\n// Initialize dbNamesDB (won't ever be opened on chromium browsers')\ndbNamesDB = new Dexie('__dbnames');\ndbNamesDB.version(1).stores({ dbnames: 'name' });\n(function () {\n // Migrate from Dexie 1.x database names stored in localStorage:\n var DBNAMES = 'Dexie.DatabaseNames';\n try {\n if (typeof localStorage !== undefined && _global.document !== undefined) {\n // Have localStorage and is not executing in a worker. Lets migrate from Dexie 1.x.\n JSON.parse(localStorage.getItem(DBNAMES) || \"[]\")\n .forEach(function (name) { return dbNamesDB.dbnames.put({ name: name }).catch(nop); });\n localStorage.removeItem(DBNAMES);\n }\n }\n catch (_e) { }\n})();\n\nexport default Dexie;\n//# sourceMappingURL=dexie.es.js.map\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\n/** @type {import('.')} */\nvar $defineProperty = GetIntrinsic('%Object.defineProperty%', true) || false;\nif ($defineProperty) {\n\ttry {\n\t\t$defineProperty({}, 'a', { value: 1 });\n\t} catch (e) {\n\t\t// IE 8 has a broken defineProperty\n\t\t$defineProperty = false;\n\t}\n}\n\nmodule.exports = $defineProperty;\n","'use strict';\n\n/** @type {import('./eval')} */\nmodule.exports = EvalError;\n","'use strict';\n\n/** @type {import('.')} */\nmodule.exports = Error;\n","'use strict';\n\n/** @type {import('./range')} */\nmodule.exports = RangeError;\n","'use strict';\n\n/** @type {import('./ref')} */\nmodule.exports = ReferenceError;\n","'use strict';\n\n/** @type {import('./syntax')} */\nmodule.exports = SyntaxError;\n","'use strict';\n\n/** @type {import('./type')} */\nmodule.exports = TypeError;\n","'use strict';\n\n/** @type {import('./uri')} */\nmodule.exports = URIError;\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nvar R = typeof Reflect === 'object' ? Reflect : null\nvar ReflectApply = R && typeof R.apply === 'function'\n ? R.apply\n : function ReflectApply(target, receiver, args) {\n return Function.prototype.apply.call(target, receiver, args);\n }\n\nvar ReflectOwnKeys\nif (R && typeof R.ownKeys === 'function') {\n ReflectOwnKeys = R.ownKeys\n} else if (Object.getOwnPropertySymbols) {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target)\n .concat(Object.getOwnPropertySymbols(target));\n };\n} else {\n ReflectOwnKeys = function ReflectOwnKeys(target) {\n return Object.getOwnPropertyNames(target);\n };\n}\n\nfunction ProcessEmitWarning(warning) {\n if (console && console.warn) console.warn(warning);\n}\n\nvar NumberIsNaN = Number.isNaN || function NumberIsNaN(value) {\n return value !== value;\n}\n\nfunction EventEmitter() {\n EventEmitter.init.call(this);\n}\nmodule.exports = EventEmitter;\nmodule.exports.once = once;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._eventsCount = 0;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. This is a useful default which helps finding memory leaks.\nvar defaultMaxListeners = 10;\n\nfunction checkListener(listener) {\n if (typeof listener !== 'function') {\n throw new TypeError('The \"listener\" argument must be of type Function. Received type ' + typeof listener);\n }\n}\n\nObject.defineProperty(EventEmitter, 'defaultMaxListeners', {\n enumerable: true,\n get: function() {\n return defaultMaxListeners;\n },\n set: function(arg) {\n if (typeof arg !== 'number' || arg < 0 || NumberIsNaN(arg)) {\n throw new RangeError('The value of \"defaultMaxListeners\" is out of range. It must be a non-negative number. Received ' + arg + '.');\n }\n defaultMaxListeners = arg;\n }\n});\n\nEventEmitter.init = function() {\n\n if (this._events === undefined ||\n this._events === Object.getPrototypeOf(this)._events) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n }\n\n this._maxListeners = this._maxListeners || undefined;\n};\n\n// Obviously not all Emitters should be limited to 10. This function allows\n// that to be increased. Set to zero for unlimited.\nEventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {\n if (typeof n !== 'number' || n < 0 || NumberIsNaN(n)) {\n throw new RangeError('The value of \"n\" is out of range. It must be a non-negative number. Received ' + n + '.');\n }\n this._maxListeners = n;\n return this;\n};\n\nfunction _getMaxListeners(that) {\n if (that._maxListeners === undefined)\n return EventEmitter.defaultMaxListeners;\n return that._maxListeners;\n}\n\nEventEmitter.prototype.getMaxListeners = function getMaxListeners() {\n return _getMaxListeners(this);\n};\n\nEventEmitter.prototype.emit = function emit(type) {\n var args = [];\n for (var i = 1; i < arguments.length; i++) args.push(arguments[i]);\n var doError = (type === 'error');\n\n var events = this._events;\n if (events !== undefined)\n doError = (doError && events.error === undefined);\n else if (!doError)\n return false;\n\n // If there is no 'error' event listener then throw.\n if (doError) {\n var er;\n if (args.length > 0)\n er = args[0];\n if (er instanceof Error) {\n // Note: The comments on the `throw` lines are intentional, they show\n // up in Node's output if this results in an unhandled exception.\n throw er; // Unhandled 'error' event\n }\n // At least give some kind of context to the user\n var err = new Error('Unhandled error.' + (er ? ' (' + er.message + ')' : ''));\n err.context = er;\n throw err; // Unhandled 'error' event\n }\n\n var handler = events[type];\n\n if (handler === undefined)\n return false;\n\n if (typeof handler === 'function') {\n ReflectApply(handler, this, args);\n } else {\n var len = handler.length;\n var listeners = arrayClone(handler, len);\n for (var i = 0; i < len; ++i)\n ReflectApply(listeners[i], this, args);\n }\n\n return true;\n};\n\nfunction _addListener(target, type, listener, prepend) {\n var m;\n var events;\n var existing;\n\n checkListener(listener);\n\n events = target._events;\n if (events === undefined) {\n events = target._events = Object.create(null);\n target._eventsCount = 0;\n } else {\n // To avoid recursion in the case that type === \"newListener\"! Before\n // adding it to the listeners, first emit \"newListener\".\n if (events.newListener !== undefined) {\n target.emit('newListener', type,\n listener.listener ? listener.listener : listener);\n\n // Re-assign `events` because a newListener handler could have caused the\n // this._events to be assigned to a new object\n events = target._events;\n }\n existing = events[type];\n }\n\n if (existing === undefined) {\n // Optimize the case of one listener. Don't need the extra array object.\n existing = events[type] = listener;\n ++target._eventsCount;\n } else {\n if (typeof existing === 'function') {\n // Adding the second element, need to change to array.\n existing = events[type] =\n prepend ? [listener, existing] : [existing, listener];\n // If we've already got an array, just append.\n } else if (prepend) {\n existing.unshift(listener);\n } else {\n existing.push(listener);\n }\n\n // Check for listener leak\n m = _getMaxListeners(target);\n if (m > 0 && existing.length > m && !existing.warned) {\n existing.warned = true;\n // No error code for this since it is a Warning\n // eslint-disable-next-line no-restricted-syntax\n var w = new Error('Possible EventEmitter memory leak detected. ' +\n existing.length + ' ' + String(type) + ' listeners ' +\n 'added. Use emitter.setMaxListeners() to ' +\n 'increase limit');\n w.name = 'MaxListenersExceededWarning';\n w.emitter = target;\n w.type = type;\n w.count = existing.length;\n ProcessEmitWarning(w);\n }\n }\n\n return target;\n}\n\nEventEmitter.prototype.addListener = function addListener(type, listener) {\n return _addListener(this, type, listener, false);\n};\n\nEventEmitter.prototype.on = EventEmitter.prototype.addListener;\n\nEventEmitter.prototype.prependListener =\n function prependListener(type, listener) {\n return _addListener(this, type, listener, true);\n };\n\nfunction onceWrapper() {\n if (!this.fired) {\n this.target.removeListener(this.type, this.wrapFn);\n this.fired = true;\n if (arguments.length === 0)\n return this.listener.call(this.target);\n return this.listener.apply(this.target, arguments);\n }\n}\n\nfunction _onceWrap(target, type, listener) {\n var state = { fired: false, wrapFn: undefined, target: target, type: type, listener: listener };\n var wrapped = onceWrapper.bind(state);\n wrapped.listener = listener;\n state.wrapFn = wrapped;\n return wrapped;\n}\n\nEventEmitter.prototype.once = function once(type, listener) {\n checkListener(listener);\n this.on(type, _onceWrap(this, type, listener));\n return this;\n};\n\nEventEmitter.prototype.prependOnceListener =\n function prependOnceListener(type, listener) {\n checkListener(listener);\n this.prependListener(type, _onceWrap(this, type, listener));\n return this;\n };\n\n// Emits a 'removeListener' event if and only if the listener was removed.\nEventEmitter.prototype.removeListener =\n function removeListener(type, listener) {\n var list, events, position, i, originalListener;\n\n checkListener(listener);\n\n events = this._events;\n if (events === undefined)\n return this;\n\n list = events[type];\n if (list === undefined)\n return this;\n\n if (list === listener || list.listener === listener) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else {\n delete events[type];\n if (events.removeListener)\n this.emit('removeListener', type, list.listener || listener);\n }\n } else if (typeof list !== 'function') {\n position = -1;\n\n for (i = list.length - 1; i >= 0; i--) {\n if (list[i] === listener || list[i].listener === listener) {\n originalListener = list[i].listener;\n position = i;\n break;\n }\n }\n\n if (position < 0)\n return this;\n\n if (position === 0)\n list.shift();\n else {\n spliceOne(list, position);\n }\n\n if (list.length === 1)\n events[type] = list[0];\n\n if (events.removeListener !== undefined)\n this.emit('removeListener', type, originalListener || listener);\n }\n\n return this;\n };\n\nEventEmitter.prototype.off = EventEmitter.prototype.removeListener;\n\nEventEmitter.prototype.removeAllListeners =\n function removeAllListeners(type) {\n var listeners, events, i;\n\n events = this._events;\n if (events === undefined)\n return this;\n\n // not listening for removeListener, no need to emit\n if (events.removeListener === undefined) {\n if (arguments.length === 0) {\n this._events = Object.create(null);\n this._eventsCount = 0;\n } else if (events[type] !== undefined) {\n if (--this._eventsCount === 0)\n this._events = Object.create(null);\n else\n delete events[type];\n }\n return this;\n }\n\n // emit removeListener for all listeners on all events\n if (arguments.length === 0) {\n var keys = Object.keys(events);\n var key;\n for (i = 0; i < keys.length; ++i) {\n key = keys[i];\n if (key === 'removeListener') continue;\n this.removeAllListeners(key);\n }\n this.removeAllListeners('removeListener');\n this._events = Object.create(null);\n this._eventsCount = 0;\n return this;\n }\n\n listeners = events[type];\n\n if (typeof listeners === 'function') {\n this.removeListener(type, listeners);\n } else if (listeners !== undefined) {\n // LIFO order\n for (i = listeners.length - 1; i >= 0; i--) {\n this.removeListener(type, listeners[i]);\n }\n }\n\n return this;\n };\n\nfunction _listeners(target, type, unwrap) {\n var events = target._events;\n\n if (events === undefined)\n return [];\n\n var evlistener = events[type];\n if (evlistener === undefined)\n return [];\n\n if (typeof evlistener === 'function')\n return unwrap ? [evlistener.listener || evlistener] : [evlistener];\n\n return unwrap ?\n unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);\n}\n\nEventEmitter.prototype.listeners = function listeners(type) {\n return _listeners(this, type, true);\n};\n\nEventEmitter.prototype.rawListeners = function rawListeners(type) {\n return _listeners(this, type, false);\n};\n\nEventEmitter.listenerCount = function(emitter, type) {\n if (typeof emitter.listenerCount === 'function') {\n return emitter.listenerCount(type);\n } else {\n return listenerCount.call(emitter, type);\n }\n};\n\nEventEmitter.prototype.listenerCount = listenerCount;\nfunction listenerCount(type) {\n var events = this._events;\n\n if (events !== undefined) {\n var evlistener = events[type];\n\n if (typeof evlistener === 'function') {\n return 1;\n } else if (evlistener !== undefined) {\n return evlistener.length;\n }\n }\n\n return 0;\n}\n\nEventEmitter.prototype.eventNames = function eventNames() {\n return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];\n};\n\nfunction arrayClone(arr, n) {\n var copy = new Array(n);\n for (var i = 0; i < n; ++i)\n copy[i] = arr[i];\n return copy;\n}\n\nfunction spliceOne(list, index) {\n for (; index + 1 < list.length; index++)\n list[index] = list[index + 1];\n list.pop();\n}\n\nfunction unwrapListeners(arr) {\n var ret = new Array(arr.length);\n for (var i = 0; i < ret.length; ++i) {\n ret[i] = arr[i].listener || arr[i];\n }\n return ret;\n}\n\nfunction once(emitter, name) {\n return new Promise(function (resolve, reject) {\n function errorListener(err) {\n emitter.removeListener(name, resolver);\n reject(err);\n }\n\n function resolver() {\n if (typeof emitter.removeListener === 'function') {\n emitter.removeListener('error', errorListener);\n }\n resolve([].slice.call(arguments));\n };\n\n eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });\n if (name !== 'error') {\n addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });\n }\n });\n}\n\nfunction addErrorHandlerIfEventEmitter(emitter, handler, flags) {\n if (typeof emitter.on === 'function') {\n eventTargetAgnosticAddListener(emitter, 'error', handler, flags);\n }\n}\n\nfunction eventTargetAgnosticAddListener(emitter, name, listener, flags) {\n if (typeof emitter.on === 'function') {\n if (flags.once) {\n emitter.once(name, listener);\n } else {\n emitter.on(name, listener);\n }\n } else if (typeof emitter.addEventListener === 'function') {\n // EventTarget does not have `error` event semantics like Node\n // EventEmitters, we do not listen for `error` events here.\n emitter.addEventListener(name, function wrapListener(arg) {\n // IE does not have builtin `{ once: true }` support so we\n // have to do it manually.\n if (flags.once) {\n emitter.removeEventListener(name, wrapListener);\n }\n listener(arg);\n });\n } else {\n throw new TypeError('The \"emitter\" argument must be of type EventEmitter. Received type ' + typeof emitter);\n }\n}\n","/*\n* FileSaver.js\n* A saveAs() FileSaver implementation.\n*\n* By Eli Grey, http://eligrey.com\n*\n* License : https://github.com/eligrey/FileSaver.js/blob/master/LICENSE.md (MIT)\n* source : http://purl.eligrey.com/github/FileSaver.js\n*/\n\n// The one and only way of getting global scope in all environments\n// https://stackoverflow.com/q/3277182/1008999\nvar _global = typeof window === 'object' && window.window === window\n ? window : typeof self === 'object' && self.self === self\n ? self : typeof global === 'object' && global.global === global\n ? global\n : this\n\nfunction bom (blob, opts) {\n if (typeof opts === 'undefined') opts = { autoBom: false }\n else if (typeof opts !== 'object') {\n console.warn('Deprecated: Expected third argument to be a object')\n opts = { autoBom: !opts }\n }\n\n // prepend BOM for UTF-8 XML and text/* types (including HTML)\n // note: your browser will automatically convert UTF-16 U+FEFF to EF BB BF\n if (opts.autoBom && /^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(blob.type)) {\n return new Blob([String.fromCharCode(0xFEFF), blob], { type: blob.type })\n }\n return blob\n}\n\nfunction download (url, name, opts) {\n var xhr = new XMLHttpRequest()\n xhr.open('GET', url)\n xhr.responseType = 'blob'\n xhr.onload = function () {\n saveAs(xhr.response, name, opts)\n }\n xhr.onerror = function () {\n console.error('could not download file')\n }\n xhr.send()\n}\n\nfunction corsEnabled (url) {\n var xhr = new XMLHttpRequest()\n // use sync to avoid popup blocker\n xhr.open('HEAD', url, false)\n try {\n xhr.send()\n } catch (e) {}\n return xhr.status >= 200 && xhr.status <= 299\n}\n\n// `a.click()` doesn't work for all browsers (#465)\nfunction click (node) {\n try {\n node.dispatchEvent(new MouseEvent('click'))\n } catch (e) {\n var evt = document.createEvent('MouseEvents')\n evt.initMouseEvent('click', true, true, window, 0, 0, 0, 80,\n 20, false, false, false, false, 0, null)\n node.dispatchEvent(evt)\n }\n}\n\n// Detect WebView inside a native macOS app by ruling out all browsers\n// We just need to check for 'Safari' because all other browsers (besides Firefox) include that too\n// https://www.whatismybrowser.com/guides/the-latest-user-agent/macos\nvar isMacOSWebView = _global.navigator && /Macintosh/.test(navigator.userAgent) && /AppleWebKit/.test(navigator.userAgent) && !/Safari/.test(navigator.userAgent)\n\nvar saveAs = _global.saveAs || (\n // probably in some web worker\n (typeof window !== 'object' || window !== _global)\n ? function saveAs () { /* noop */ }\n\n // Use download attribute first if possible (#193 Lumia mobile) unless this is a macOS WebView\n : ('download' in HTMLAnchorElement.prototype && !isMacOSWebView)\n ? function saveAs (blob, name, opts) {\n var URL = _global.URL || _global.webkitURL\n var a = document.createElement('a')\n name = name || blob.name || 'download'\n\n a.download = name\n a.rel = 'noopener' // tabnabbing\n\n // TODO: detect chrome extensions & packaged apps\n // a.target = '_blank'\n\n if (typeof blob === 'string') {\n // Support regular links\n a.href = blob\n if (a.origin !== location.origin) {\n corsEnabled(a.href)\n ? download(blob, name, opts)\n : click(a, a.target = '_blank')\n } else {\n click(a)\n }\n } else {\n // Support blobs\n a.href = URL.createObjectURL(blob)\n setTimeout(function () { URL.revokeObjectURL(a.href) }, 4E4) // 40s\n setTimeout(function () { click(a) }, 0)\n }\n }\n\n // Use msSaveOrOpenBlob as a second approach\n : 'msSaveOrOpenBlob' in navigator\n ? function saveAs (blob, name, opts) {\n name = name || blob.name || 'download'\n\n if (typeof blob === 'string') {\n if (corsEnabled(blob)) {\n download(blob, name, opts)\n } else {\n var a = document.createElement('a')\n a.href = blob\n a.target = '_blank'\n setTimeout(function () { click(a) })\n }\n } else {\n navigator.msSaveOrOpenBlob(bom(blob, opts), name)\n }\n }\n\n // Fallback to using FileReader and a popup\n : function saveAs (blob, name, opts, popup) {\n // Open a popup immediately do go around popup blocker\n // Mostly only available on user interaction and the fileReader is async so...\n popup = popup || open('', '_blank')\n if (popup) {\n popup.document.title =\n popup.document.body.innerText = 'downloading...'\n }\n\n if (typeof blob === 'string') return download(blob, name, opts)\n\n var force = blob.type === 'application/octet-stream'\n var isSafari = /constructor/i.test(_global.HTMLElement) || _global.safari\n var isChromeIOS = /CriOS\\/[\\d]+/.test(navigator.userAgent)\n\n if ((isChromeIOS || (force && isSafari) || isMacOSWebView) && typeof FileReader !== 'undefined') {\n // Safari doesn't allow downloading of blob URLs\n var reader = new FileReader()\n reader.onloadend = function () {\n var url = reader.result\n url = isChromeIOS ? url : url.replace(/^data:[^;]*;/, 'data:attachment/file;')\n if (popup) popup.location.href = url\n else location = url\n popup = null // reverse-tabnabbing #460\n }\n reader.readAsDataURL(blob)\n } else {\n var URL = _global.URL || _global.webkitURL\n var url = URL.createObjectURL(blob)\n if (popup) popup.location = url\n else location.href = url\n popup = null // reverse-tabnabbing #460\n setTimeout(function () { URL.revokeObjectURL(url) }, 4E4) // 40s\n }\n }\n)\n\n_global.saveAs = saveAs.saveAs = saveAs\n\nexport { saveAs }\n","'use strict';\n\nvar isCallable = require('is-callable');\n\nvar toStr = Object.prototype.toString;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\n\nvar forEachArray = function forEachArray(array, iterator, receiver) {\n for (var i = 0, len = array.length; i < len; i++) {\n if (hasOwnProperty.call(array, i)) {\n if (receiver == null) {\n iterator(array[i], i, array);\n } else {\n iterator.call(receiver, array[i], i, array);\n }\n }\n }\n};\n\nvar forEachString = function forEachString(string, iterator, receiver) {\n for (var i = 0, len = string.length; i < len; i++) {\n // no such thing as a sparse string.\n if (receiver == null) {\n iterator(string.charAt(i), i, string);\n } else {\n iterator.call(receiver, string.charAt(i), i, string);\n }\n }\n};\n\nvar forEachObject = function forEachObject(object, iterator, receiver) {\n for (var k in object) {\n if (hasOwnProperty.call(object, k)) {\n if (receiver == null) {\n iterator(object[k], k, object);\n } else {\n iterator.call(receiver, object[k], k, object);\n }\n }\n }\n};\n\nvar forEach = function forEach(list, iterator, thisArg) {\n if (!isCallable(iterator)) {\n throw new TypeError('iterator must be a function');\n }\n\n var receiver;\n if (arguments.length >= 3) {\n receiver = thisArg;\n }\n\n if (toStr.call(list) === '[object Array]') {\n forEachArray(list, iterator, receiver);\n } else if (typeof list === 'string') {\n forEachString(list, iterator, receiver);\n } else {\n forEachObject(list, iterator, receiver);\n }\n};\n\nmodule.exports = forEach;\n","'use strict';\n\n/* eslint no-invalid-this: 1 */\n\nvar ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';\nvar toStr = Object.prototype.toString;\nvar max = Math.max;\nvar funcType = '[object Function]';\n\nvar concatty = function concatty(a, b) {\n var arr = [];\n\n for (var i = 0; i < a.length; i += 1) {\n arr[i] = a[i];\n }\n for (var j = 0; j < b.length; j += 1) {\n arr[j + a.length] = b[j];\n }\n\n return arr;\n};\n\nvar slicy = function slicy(arrLike, offset) {\n var arr = [];\n for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {\n arr[j] = arrLike[i];\n }\n return arr;\n};\n\nvar joiny = function (arr, joiner) {\n var str = '';\n for (var i = 0; i < arr.length; i += 1) {\n str += arr[i];\n if (i + 1 < arr.length) {\n str += joiner;\n }\n }\n return str;\n};\n\nmodule.exports = function bind(that) {\n var target = this;\n if (typeof target !== 'function' || toStr.apply(target) !== funcType) {\n throw new TypeError(ERROR_MESSAGE + target);\n }\n var args = slicy(arguments, 1);\n\n var bound;\n var binder = function () {\n if (this instanceof bound) {\n var result = target.apply(\n this,\n concatty(args, arguments)\n );\n if (Object(result) === result) {\n return result;\n }\n return this;\n }\n return target.apply(\n that,\n concatty(args, arguments)\n );\n\n };\n\n var boundLength = max(0, target.length - args.length);\n var boundArgs = [];\n for (var i = 0; i < boundLength; i++) {\n boundArgs[i] = '$' + i;\n }\n\n bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);\n\n if (target.prototype) {\n var Empty = function Empty() {};\n Empty.prototype = target.prototype;\n bound.prototype = new Empty();\n Empty.prototype = null;\n }\n\n return bound;\n};\n","'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = Function.prototype.bind || implementation;\n","'use strict';\n\nvar undefined;\n\nvar $Error = require('es-errors');\nvar $EvalError = require('es-errors/eval');\nvar $RangeError = require('es-errors/range');\nvar $ReferenceError = require('es-errors/ref');\nvar $SyntaxError = require('es-errors/syntax');\nvar $TypeError = require('es-errors/type');\nvar $URIError = require('es-errors/uri');\n\nvar $Function = Function;\n\n// eslint-disable-next-line consistent-return\nvar getEvalledConstructor = function (expressionSyntax) {\n\ttry {\n\t\treturn $Function('\"use strict\"; return (' + expressionSyntax + ').constructor;')();\n\t} catch (e) {}\n};\n\nvar $gOPD = Object.getOwnPropertyDescriptor;\nif ($gOPD) {\n\ttry {\n\t\t$gOPD({}, '');\n\t} catch (e) {\n\t\t$gOPD = null; // this is IE 8, which has a broken gOPD\n\t}\n}\n\nvar throwTypeError = function () {\n\tthrow new $TypeError();\n};\nvar ThrowTypeError = $gOPD\n\t? (function () {\n\t\ttry {\n\t\t\t// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties\n\t\t\targuments.callee; // IE 8 does not throw here\n\t\t\treturn throwTypeError;\n\t\t} catch (calleeThrows) {\n\t\t\ttry {\n\t\t\t\t// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')\n\t\t\t\treturn $gOPD(arguments, 'callee').get;\n\t\t\t} catch (gOPDthrows) {\n\t\t\t\treturn throwTypeError;\n\t\t\t}\n\t\t}\n\t}())\n\t: throwTypeError;\n\nvar hasSymbols = require('has-symbols')();\nvar hasProto = require('has-proto')();\n\nvar getProto = Object.getPrototypeOf || (\n\thasProto\n\t\t? function (x) { return x.__proto__; } // eslint-disable-line no-proto\n\t\t: null\n);\n\nvar needsEval = {};\n\nvar TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);\n\nvar INTRINSICS = {\n\t__proto__: null,\n\t'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,\n\t'%Array%': Array,\n\t'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,\n\t'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,\n\t'%AsyncFromSyncIteratorPrototype%': undefined,\n\t'%AsyncFunction%': needsEval,\n\t'%AsyncGenerator%': needsEval,\n\t'%AsyncGeneratorFunction%': needsEval,\n\t'%AsyncIteratorPrototype%': needsEval,\n\t'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,\n\t'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,\n\t'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,\n\t'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,\n\t'%Boolean%': Boolean,\n\t'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,\n\t'%Date%': Date,\n\t'%decodeURI%': decodeURI,\n\t'%decodeURIComponent%': decodeURIComponent,\n\t'%encodeURI%': encodeURI,\n\t'%encodeURIComponent%': encodeURIComponent,\n\t'%Error%': $Error,\n\t'%eval%': eval, // eslint-disable-line no-eval\n\t'%EvalError%': $EvalError,\n\t'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,\n\t'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,\n\t'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,\n\t'%Function%': $Function,\n\t'%GeneratorFunction%': needsEval,\n\t'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,\n\t'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,\n\t'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,\n\t'%isFinite%': isFinite,\n\t'%isNaN%': isNaN,\n\t'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,\n\t'%JSON%': typeof JSON === 'object' ? JSON : undefined,\n\t'%Map%': typeof Map === 'undefined' ? undefined : Map,\n\t'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),\n\t'%Math%': Math,\n\t'%Number%': Number,\n\t'%Object%': Object,\n\t'%parseFloat%': parseFloat,\n\t'%parseInt%': parseInt,\n\t'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,\n\t'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,\n\t'%RangeError%': $RangeError,\n\t'%ReferenceError%': $ReferenceError,\n\t'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,\n\t'%RegExp%': RegExp,\n\t'%Set%': typeof Set === 'undefined' ? undefined : Set,\n\t'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),\n\t'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,\n\t'%String%': String,\n\t'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,\n\t'%Symbol%': hasSymbols ? Symbol : undefined,\n\t'%SyntaxError%': $SyntaxError,\n\t'%ThrowTypeError%': ThrowTypeError,\n\t'%TypedArray%': TypedArray,\n\t'%TypeError%': $TypeError,\n\t'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,\n\t'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,\n\t'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,\n\t'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,\n\t'%URIError%': $URIError,\n\t'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,\n\t'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,\n\t'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet\n};\n\nif (getProto) {\n\ttry {\n\t\tnull.error; // eslint-disable-line no-unused-expressions\n\t} catch (e) {\n\t\t// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229\n\t\tvar errorProto = getProto(getProto(e));\n\t\tINTRINSICS['%Error.prototype%'] = errorProto;\n\t}\n}\n\nvar doEval = function doEval(name) {\n\tvar value;\n\tif (name === '%AsyncFunction%') {\n\t\tvalue = getEvalledConstructor('async function () {}');\n\t} else if (name === '%GeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('function* () {}');\n\t} else if (name === '%AsyncGeneratorFunction%') {\n\t\tvalue = getEvalledConstructor('async function* () {}');\n\t} else if (name === '%AsyncGenerator%') {\n\t\tvar fn = doEval('%AsyncGeneratorFunction%');\n\t\tif (fn) {\n\t\t\tvalue = fn.prototype;\n\t\t}\n\t} else if (name === '%AsyncIteratorPrototype%') {\n\t\tvar gen = doEval('%AsyncGenerator%');\n\t\tif (gen && getProto) {\n\t\t\tvalue = getProto(gen.prototype);\n\t\t}\n\t}\n\n\tINTRINSICS[name] = value;\n\n\treturn value;\n};\n\nvar LEGACY_ALIASES = {\n\t__proto__: null,\n\t'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],\n\t'%ArrayPrototype%': ['Array', 'prototype'],\n\t'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],\n\t'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],\n\t'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],\n\t'%ArrayProto_values%': ['Array', 'prototype', 'values'],\n\t'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],\n\t'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],\n\t'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],\n\t'%BooleanPrototype%': ['Boolean', 'prototype'],\n\t'%DataViewPrototype%': ['DataView', 'prototype'],\n\t'%DatePrototype%': ['Date', 'prototype'],\n\t'%ErrorPrototype%': ['Error', 'prototype'],\n\t'%EvalErrorPrototype%': ['EvalError', 'prototype'],\n\t'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],\n\t'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],\n\t'%FunctionPrototype%': ['Function', 'prototype'],\n\t'%Generator%': ['GeneratorFunction', 'prototype'],\n\t'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],\n\t'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],\n\t'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],\n\t'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],\n\t'%JSONParse%': ['JSON', 'parse'],\n\t'%JSONStringify%': ['JSON', 'stringify'],\n\t'%MapPrototype%': ['Map', 'prototype'],\n\t'%NumberPrototype%': ['Number', 'prototype'],\n\t'%ObjectPrototype%': ['Object', 'prototype'],\n\t'%ObjProto_toString%': ['Object', 'prototype', 'toString'],\n\t'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],\n\t'%PromisePrototype%': ['Promise', 'prototype'],\n\t'%PromiseProto_then%': ['Promise', 'prototype', 'then'],\n\t'%Promise_all%': ['Promise', 'all'],\n\t'%Promise_reject%': ['Promise', 'reject'],\n\t'%Promise_resolve%': ['Promise', 'resolve'],\n\t'%RangeErrorPrototype%': ['RangeError', 'prototype'],\n\t'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],\n\t'%RegExpPrototype%': ['RegExp', 'prototype'],\n\t'%SetPrototype%': ['Set', 'prototype'],\n\t'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],\n\t'%StringPrototype%': ['String', 'prototype'],\n\t'%SymbolPrototype%': ['Symbol', 'prototype'],\n\t'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],\n\t'%TypedArrayPrototype%': ['TypedArray', 'prototype'],\n\t'%TypeErrorPrototype%': ['TypeError', 'prototype'],\n\t'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],\n\t'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],\n\t'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],\n\t'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],\n\t'%URIErrorPrototype%': ['URIError', 'prototype'],\n\t'%WeakMapPrototype%': ['WeakMap', 'prototype'],\n\t'%WeakSetPrototype%': ['WeakSet', 'prototype']\n};\n\nvar bind = require('function-bind');\nvar hasOwn = require('hasown');\nvar $concat = bind.call(Function.call, Array.prototype.concat);\nvar $spliceApply = bind.call(Function.apply, Array.prototype.splice);\nvar $replace = bind.call(Function.call, String.prototype.replace);\nvar $strSlice = bind.call(Function.call, String.prototype.slice);\nvar $exec = bind.call(Function.call, RegExp.prototype.exec);\n\n/* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */\nvar rePropName = /[^%.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|%$))/g;\nvar reEscapeChar = /\\\\(\\\\)?/g; /** Used to match backslashes in property paths. */\nvar stringToPath = function stringToPath(string) {\n\tvar first = $strSlice(string, 0, 1);\n\tvar last = $strSlice(string, -1);\n\tif (first === '%' && last !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected closing `%`');\n\t} else if (last === '%' && first !== '%') {\n\t\tthrow new $SyntaxError('invalid intrinsic syntax, expected opening `%`');\n\t}\n\tvar result = [];\n\t$replace(string, rePropName, function (match, number, quote, subString) {\n\t\tresult[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;\n\t});\n\treturn result;\n};\n/* end adaptation */\n\nvar getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {\n\tvar intrinsicName = name;\n\tvar alias;\n\tif (hasOwn(LEGACY_ALIASES, intrinsicName)) {\n\t\talias = LEGACY_ALIASES[intrinsicName];\n\t\tintrinsicName = '%' + alias[0] + '%';\n\t}\n\n\tif (hasOwn(INTRINSICS, intrinsicName)) {\n\t\tvar value = INTRINSICS[intrinsicName];\n\t\tif (value === needsEval) {\n\t\t\tvalue = doEval(intrinsicName);\n\t\t}\n\t\tif (typeof value === 'undefined' && !allowMissing) {\n\t\t\tthrow new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');\n\t\t}\n\n\t\treturn {\n\t\t\talias: alias,\n\t\t\tname: intrinsicName,\n\t\t\tvalue: value\n\t\t};\n\t}\n\n\tthrow new $SyntaxError('intrinsic ' + name + ' does not exist!');\n};\n\nmodule.exports = function GetIntrinsic(name, allowMissing) {\n\tif (typeof name !== 'string' || name.length === 0) {\n\t\tthrow new $TypeError('intrinsic name must be a non-empty string');\n\t}\n\tif (arguments.length > 1 && typeof allowMissing !== 'boolean') {\n\t\tthrow new $TypeError('\"allowMissing\" argument must be a boolean');\n\t}\n\n\tif ($exec(/^%?[^%]*%?$/, name) === null) {\n\t\tthrow new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');\n\t}\n\tvar parts = stringToPath(name);\n\tvar intrinsicBaseName = parts.length > 0 ? parts[0] : '';\n\n\tvar intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);\n\tvar intrinsicRealName = intrinsic.name;\n\tvar value = intrinsic.value;\n\tvar skipFurtherCaching = false;\n\n\tvar alias = intrinsic.alias;\n\tif (alias) {\n\t\tintrinsicBaseName = alias[0];\n\t\t$spliceApply(parts, $concat([0, 1], alias));\n\t}\n\n\tfor (var i = 1, isOwn = true; i < parts.length; i += 1) {\n\t\tvar part = parts[i];\n\t\tvar first = $strSlice(part, 0, 1);\n\t\tvar last = $strSlice(part, -1);\n\t\tif (\n\t\t\t(\n\t\t\t\t(first === '\"' || first === \"'\" || first === '`')\n\t\t\t\t|| (last === '\"' || last === \"'\" || last === '`')\n\t\t\t)\n\t\t\t&& first !== last\n\t\t) {\n\t\t\tthrow new $SyntaxError('property names with quotes must have matching quotes');\n\t\t}\n\t\tif (part === 'constructor' || !isOwn) {\n\t\t\tskipFurtherCaching = true;\n\t\t}\n\n\t\tintrinsicBaseName += '.' + part;\n\t\tintrinsicRealName = '%' + intrinsicBaseName + '%';\n\n\t\tif (hasOwn(INTRINSICS, intrinsicRealName)) {\n\t\t\tvalue = INTRINSICS[intrinsicRealName];\n\t\t} else if (value != null) {\n\t\t\tif (!(part in value)) {\n\t\t\t\tif (!allowMissing) {\n\t\t\t\t\tthrow new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');\n\t\t\t\t}\n\t\t\t\treturn void undefined;\n\t\t\t}\n\t\t\tif ($gOPD && (i + 1) >= parts.length) {\n\t\t\t\tvar desc = $gOPD(value, part);\n\t\t\t\tisOwn = !!desc;\n\n\t\t\t\t// By convention, when a data property is converted to an accessor\n\t\t\t\t// property to emulate a data property that does not suffer from\n\t\t\t\t// the override mistake, that accessor's getter is marked with\n\t\t\t\t// an `originalValue` property. Here, when we detect this, we\n\t\t\t\t// uphold the illusion by pretending to see that original data\n\t\t\t\t// property, i.e., returning the value rather than the getter\n\t\t\t\t// itself.\n\t\t\t\tif (isOwn && 'get' in desc && !('originalValue' in desc.get)) {\n\t\t\t\t\tvalue = desc.get;\n\t\t\t\t} else {\n\t\t\t\t\tvalue = value[part];\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tisOwn = hasOwn(value, part);\n\t\t\t\tvalue = value[part];\n\t\t\t}\n\n\t\t\tif (isOwn && !skipFurtherCaching) {\n\t\t\t\tINTRINSICS[intrinsicRealName] = value;\n\t\t\t}\n\t\t}\n\t}\n\treturn value;\n};\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\n\nvar $gOPD = GetIntrinsic('%Object.getOwnPropertyDescriptor%', true);\n\nif ($gOPD) {\n\ttry {\n\t\t$gOPD([], 'length');\n\t} catch (e) {\n\t\t// IE 8 has a broken gOPD\n\t\t$gOPD = null;\n\t}\n}\n\nmodule.exports = $gOPD;\n","'use strict';\n\nvar $defineProperty = require('es-define-property');\n\nvar hasPropertyDescriptors = function hasPropertyDescriptors() {\n\treturn !!$defineProperty;\n};\n\nhasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {\n\t// node v0.6 has a bug where array lengths can be Set but not Defined\n\tif (!$defineProperty) {\n\t\treturn null;\n\t}\n\ttry {\n\t\treturn $defineProperty([], 'length', { value: 1 }).length !== 1;\n\t} catch (e) {\n\t\t// In Firefox 4-22, defining length on an array throws an exception.\n\t\treturn true;\n\t}\n};\n\nmodule.exports = hasPropertyDescriptors;\n","'use strict';\n\nvar test = {\n\t__proto__: null,\n\tfoo: {}\n};\n\nvar $Object = Object;\n\n/** @type {import('.')} */\nmodule.exports = function hasProto() {\n\t// @ts-expect-error: TS errors on an inherited property for some reason\n\treturn { __proto__: test }.foo === test.foo\n\t\t&& !(test instanceof $Object);\n};\n","'use strict';\n\nvar origSymbol = typeof Symbol !== 'undefined' && Symbol;\nvar hasSymbolSham = require('./shams');\n\nmodule.exports = function hasNativeSymbols() {\n\tif (typeof origSymbol !== 'function') { return false; }\n\tif (typeof Symbol !== 'function') { return false; }\n\tif (typeof origSymbol('foo') !== 'symbol') { return false; }\n\tif (typeof Symbol('bar') !== 'symbol') { return false; }\n\n\treturn hasSymbolSham();\n};\n","'use strict';\n\n/* eslint complexity: [2, 18], max-statements: [2, 33] */\nmodule.exports = function hasSymbols() {\n\tif (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }\n\tif (typeof Symbol.iterator === 'symbol') { return true; }\n\n\tvar obj = {};\n\tvar sym = Symbol('test');\n\tvar symObj = Object(sym);\n\tif (typeof sym === 'string') { return false; }\n\n\tif (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }\n\tif (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }\n\n\t// temp disabled per https://github.com/ljharb/object.assign/issues/17\n\t// if (sym instanceof Symbol) { return false; }\n\t// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4\n\t// if (!(symObj instanceof Symbol)) { return false; }\n\n\t// if (typeof Symbol.prototype.toString !== 'function') { return false; }\n\t// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }\n\n\tvar symVal = 42;\n\tobj[sym] = symVal;\n\tfor (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop\n\tif (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }\n\n\tif (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }\n\n\tvar syms = Object.getOwnPropertySymbols(obj);\n\tif (syms.length !== 1 || syms[0] !== sym) { return false; }\n\n\tif (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }\n\n\tif (typeof Object.getOwnPropertyDescriptor === 'function') {\n\t\tvar descriptor = Object.getOwnPropertyDescriptor(obj, sym);\n\t\tif (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }\n\t}\n\n\treturn true;\n};\n","'use strict';\n\nvar hasSymbols = require('has-symbols/shams');\n\n/** @type {import('.')} */\nmodule.exports = function hasToStringTagShams() {\n\treturn hasSymbols() && !!Symbol.toStringTag;\n};\n","'use strict';\n\nvar call = Function.prototype.call;\nvar $hasOwn = Object.prototype.hasOwnProperty;\nvar bind = require('function-bind');\n\n/** @type {import('.')} */\nmodule.exports = bind.call(call, $hasOwn);\n","var http = require('http')\nvar url = require('url')\n\nvar https = module.exports\n\nfor (var key in http) {\n if (http.hasOwnProperty(key)) https[key] = http[key]\n}\n\nhttps.request = function (params, cb) {\n params = validateParams(params)\n return http.request.call(this, params, cb)\n}\n\nhttps.get = function (params, cb) {\n params = validateParams(params)\n return http.get.call(this, params, cb)\n}\n\nfunction validateParams (params) {\n if (typeof params === 'string') {\n params = url.parse(params)\n }\n if (!params.protocol) {\n params.protocol = 'https:'\n }\n if (params.protocol !== 'https:') {\n throw new Error('Protocol \"' + params.protocol + '\" not supported. Expected \"https:\"')\n }\n return params\n}\n","/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */\nexports.read = function (buffer, offset, isLE, mLen, nBytes) {\n var e, m\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var nBits = -7\n var i = isLE ? (nBytes - 1) : 0\n var d = isLE ? -1 : 1\n var s = buffer[offset + i]\n\n i += d\n\n e = s & ((1 << (-nBits)) - 1)\n s >>= (-nBits)\n nBits += eLen\n for (; nBits > 0; e = (e * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n m = e & ((1 << (-nBits)) - 1)\n e >>= (-nBits)\n nBits += mLen\n for (; nBits > 0; m = (m * 256) + buffer[offset + i], i += d, nBits -= 8) {}\n\n if (e === 0) {\n e = 1 - eBias\n } else if (e === eMax) {\n return m ? NaN : ((s ? -1 : 1) * Infinity)\n } else {\n m = m + Math.pow(2, mLen)\n e = e - eBias\n }\n return (s ? -1 : 1) * m * Math.pow(2, e - mLen)\n}\n\nexports.write = function (buffer, value, offset, isLE, mLen, nBytes) {\n var e, m, c\n var eLen = (nBytes * 8) - mLen - 1\n var eMax = (1 << eLen) - 1\n var eBias = eMax >> 1\n var rt = (mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0)\n var i = isLE ? 0 : (nBytes - 1)\n var d = isLE ? 1 : -1\n var s = value < 0 || (value === 0 && 1 / value < 0) ? 1 : 0\n\n value = Math.abs(value)\n\n if (isNaN(value) || value === Infinity) {\n m = isNaN(value) ? 1 : 0\n e = eMax\n } else {\n e = Math.floor(Math.log(value) / Math.LN2)\n if (value * (c = Math.pow(2, -e)) < 1) {\n e--\n c *= 2\n }\n if (e + eBias >= 1) {\n value += rt / c\n } else {\n value += rt * Math.pow(2, 1 - eBias)\n }\n if (value * c >= 2) {\n e++\n c /= 2\n }\n\n if (e + eBias >= eMax) {\n m = 0\n e = eMax\n } else if (e + eBias >= 1) {\n m = ((value * c) - 1) * Math.pow(2, mLen)\n e = e + eBias\n } else {\n m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen)\n e = 0\n }\n }\n\n for (; mLen >= 8; buffer[offset + i] = m & 0xff, i += d, m /= 256, mLen -= 8) {}\n\n e = (e << mLen) | m\n eLen += mLen\n for (; eLen > 0; buffer[offset + i] = e & 0xff, i += d, e /= 256, eLen -= 8) {}\n\n buffer[offset + i - d] |= s * 128\n}\n","if (typeof Object.create === 'function') {\n // implementation from standard node.js 'util' module\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n ctor.prototype = Object.create(superCtor.prototype, {\n constructor: {\n value: ctor,\n enumerable: false,\n writable: true,\n configurable: true\n }\n })\n }\n };\n} else {\n // old school shim for old browsers\n module.exports = function inherits(ctor, superCtor) {\n if (superCtor) {\n ctor.super_ = superCtor\n var TempCtor = function () {}\n TempCtor.prototype = superCtor.prototype\n ctor.prototype = new TempCtor()\n ctor.prototype.constructor = ctor\n }\n }\n}\n","'use strict';\n\nvar hasToStringTag = require('has-tostringtag/shams')();\nvar callBound = require('call-bind/callBound');\n\nvar $toString = callBound('Object.prototype.toString');\n\nvar isStandardArguments = function isArguments(value) {\n\tif (hasToStringTag && value && typeof value === 'object' && Symbol.toStringTag in value) {\n\t\treturn false;\n\t}\n\treturn $toString(value) === '[object Arguments]';\n};\n\nvar isLegacyArguments = function isArguments(value) {\n\tif (isStandardArguments(value)) {\n\t\treturn true;\n\t}\n\treturn value !== null &&\n\t\ttypeof value === 'object' &&\n\t\ttypeof value.length === 'number' &&\n\t\tvalue.length >= 0 &&\n\t\t$toString(value) !== '[object Array]' &&\n\t\t$toString(value.callee) === '[object Function]';\n};\n\nvar supportsStandardArguments = (function () {\n\treturn isStandardArguments(arguments);\n}());\n\nisStandardArguments.isLegacyArguments = isLegacyArguments; // for tests\n\nmodule.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;\n","'use strict';\n\nvar fnToStr = Function.prototype.toString;\nvar reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;\nvar badArrayLike;\nvar isCallableMarker;\nif (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {\n\ttry {\n\t\tbadArrayLike = Object.defineProperty({}, 'length', {\n\t\t\tget: function () {\n\t\t\t\tthrow isCallableMarker;\n\t\t\t}\n\t\t});\n\t\tisCallableMarker = {};\n\t\t// eslint-disable-next-line no-throw-literal\n\t\treflectApply(function () { throw 42; }, null, badArrayLike);\n\t} catch (_) {\n\t\tif (_ !== isCallableMarker) {\n\t\t\treflectApply = null;\n\t\t}\n\t}\n} else {\n\treflectApply = null;\n}\n\nvar constructorRegex = /^\\s*class\\b/;\nvar isES6ClassFn = function isES6ClassFunction(value) {\n\ttry {\n\t\tvar fnStr = fnToStr.call(value);\n\t\treturn constructorRegex.test(fnStr);\n\t} catch (e) {\n\t\treturn false; // not a function\n\t}\n};\n\nvar tryFunctionObject = function tryFunctionToStr(value) {\n\ttry {\n\t\tif (isES6ClassFn(value)) { return false; }\n\t\tfnToStr.call(value);\n\t\treturn true;\n\t} catch (e) {\n\t\treturn false;\n\t}\n};\nvar toStr = Object.prototype.toString;\nvar objectClass = '[object Object]';\nvar fnClass = '[object Function]';\nvar genClass = '[object GeneratorFunction]';\nvar ddaClass = '[object HTMLAllCollection]'; // IE 11\nvar ddaClass2 = '[object HTML document.all class]';\nvar ddaClass3 = '[object HTMLCollection]'; // IE 9-10\nvar hasToStringTag = typeof Symbol === 'function' && !!Symbol.toStringTag; // better: use `has-tostringtag`\n\nvar isIE68 = !(0 in [,]); // eslint-disable-line no-sparse-arrays, comma-spacing\n\nvar isDDA = function isDocumentDotAll() { return false; };\nif (typeof document === 'object') {\n\t// Firefox 3 canonicalizes DDA to undefined when it's not accessed directly\n\tvar all = document.all;\n\tif (toStr.call(all) === toStr.call(document.all)) {\n\t\tisDDA = function isDocumentDotAll(value) {\n\t\t\t/* globals document: false */\n\t\t\t// in IE 6-8, typeof document.all is \"object\" and it's truthy\n\t\t\tif ((isIE68 || !value) && (typeof value === 'undefined' || typeof value === 'object')) {\n\t\t\t\ttry {\n\t\t\t\t\tvar str = toStr.call(value);\n\t\t\t\t\treturn (\n\t\t\t\t\t\tstr === ddaClass\n\t\t\t\t\t\t|| str === ddaClass2\n\t\t\t\t\t\t|| str === ddaClass3 // opera 12.16\n\t\t\t\t\t\t|| str === objectClass // IE 6-8\n\t\t\t\t\t) && value('') == null; // eslint-disable-line eqeqeq\n\t\t\t\t} catch (e) { /**/ }\n\t\t\t}\n\t\t\treturn false;\n\t\t};\n\t}\n}\n\nmodule.exports = reflectApply\n\t? function isCallable(value) {\n\t\tif (isDDA(value)) { return true; }\n\t\tif (!value) { return false; }\n\t\tif (typeof value !== 'function' && typeof value !== 'object') { return false; }\n\t\ttry {\n\t\t\treflectApply(value, null, badArrayLike);\n\t\t} catch (e) {\n\t\t\tif (e !== isCallableMarker) { return false; }\n\t\t}\n\t\treturn !isES6ClassFn(value) && tryFunctionObject(value);\n\t}\n\t: function isCallable(value) {\n\t\tif (isDDA(value)) { return true; }\n\t\tif (!value) { return false; }\n\t\tif (typeof value !== 'function' && typeof value !== 'object') { return false; }\n\t\tif (hasToStringTag) { return tryFunctionObject(value); }\n\t\tif (isES6ClassFn(value)) { return false; }\n\t\tvar strClass = toStr.call(value);\n\t\tif (strClass !== fnClass && strClass !== genClass && !(/^\\[object HTML/).test(strClass)) { return false; }\n\t\treturn tryFunctionObject(value);\n\t};\n","'use strict';\n\nvar toStr = Object.prototype.toString;\nvar fnToStr = Function.prototype.toString;\nvar isFnRegex = /^\\s*(?:function)?\\*/;\nvar hasToStringTag = require('has-tostringtag/shams')();\nvar getProto = Object.getPrototypeOf;\nvar getGeneratorFunc = function () { // eslint-disable-line consistent-return\n\tif (!hasToStringTag) {\n\t\treturn false;\n\t}\n\ttry {\n\t\treturn Function('return function*() {}')();\n\t} catch (e) {\n\t}\n};\nvar GeneratorFunction;\n\nmodule.exports = function isGeneratorFunction(fn) {\n\tif (typeof fn !== 'function') {\n\t\treturn false;\n\t}\n\tif (isFnRegex.test(fnToStr.call(fn))) {\n\t\treturn true;\n\t}\n\tif (!hasToStringTag) {\n\t\tvar str = toStr.call(fn);\n\t\treturn str === '[object GeneratorFunction]';\n\t}\n\tif (!getProto) {\n\t\treturn false;\n\t}\n\tif (typeof GeneratorFunction === 'undefined') {\n\t\tvar generatorFunc = getGeneratorFunc();\n\t\tGeneratorFunction = generatorFunc ? getProto(generatorFunc) : false;\n\t}\n\treturn getProto(fn) === GeneratorFunction;\n};\n","'use strict';\n\n/* http://www.ecma-international.org/ecma-262/6.0/#sec-number.isnan */\n\nmodule.exports = function isNaN(value) {\n\treturn value !== value;\n};\n","'use strict';\n\nvar callBind = require('call-bind');\nvar define = require('define-properties');\n\nvar implementation = require('./implementation');\nvar getPolyfill = require('./polyfill');\nvar shim = require('./shim');\n\nvar polyfill = callBind(getPolyfill(), Number);\n\n/* http://www.ecma-international.org/ecma-262/6.0/#sec-number.isnan */\n\ndefine(polyfill, {\n\tgetPolyfill: getPolyfill,\n\timplementation: implementation,\n\tshim: shim\n});\n\nmodule.exports = polyfill;\n","'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = function getPolyfill() {\n\tif (Number.isNaN && Number.isNaN(NaN) && !Number.isNaN('a')) {\n\t\treturn Number.isNaN;\n\t}\n\treturn implementation;\n};\n","'use strict';\n\nvar define = require('define-properties');\nvar getPolyfill = require('./polyfill');\n\n/* http://www.ecma-international.org/ecma-262/6.0/#sec-number.isnan */\n\nmodule.exports = function shimNumberIsNaN() {\n\tvar polyfill = getPolyfill();\n\tdefine(Number, { isNaN: polyfill }, {\n\t\tisNaN: function testIsNaN() {\n\t\t\treturn Number.isNaN !== polyfill;\n\t\t}\n\t});\n\treturn polyfill;\n};\n","'use strict';\n\nvar whichTypedArray = require('which-typed-array');\n\n/** @type {import('.')} */\nmodule.exports = function isTypedArray(value) {\n\treturn !!whichTypedArray(value);\n};\n","// https://github.com/maxogden/websocket-stream/blob/48dc3ddf943e5ada668c31ccd94e9186f02fafbd/ws-fallback.js\n\nvar ws = null\n\nif (typeof WebSocket !== 'undefined') {\n ws = WebSocket\n} else if (typeof MozWebSocket !== 'undefined') {\n ws = MozWebSocket\n} else if (typeof global !== 'undefined') {\n ws = global.WebSocket || global.MozWebSocket\n} else if (typeof window !== 'undefined') {\n ws = window.WebSocket || window.MozWebSocket\n} else if (typeof self !== 'undefined') {\n ws = self.WebSocket || self.MozWebSocket\n}\n\nmodule.exports = ws\n","/**\r\n * [js-sha3]{@link https://github.com/emn178/js-sha3}\r\n *\r\n * @version 0.5.7\r\n * @author Chen, Yi-Cyuan [emn178@gmail.com]\r\n * @copyright Chen, Yi-Cyuan 2015-2016\r\n * @license MIT\r\n */\r\n/*jslint bitwise: true */\r\n(function () {\r\n 'use strict';\r\n\r\n var root = typeof window === 'object' ? window : {};\r\n var NODE_JS = !root.JS_SHA3_NO_NODE_JS && typeof process === 'object' && process.versions && process.versions.node;\r\n if (NODE_JS) {\r\n root = global;\r\n }\r\n var COMMON_JS = !root.JS_SHA3_NO_COMMON_JS && typeof module === 'object' && module.exports;\r\n var HEX_CHARS = '0123456789abcdef'.split('');\r\n var SHAKE_PADDING = [31, 7936, 2031616, 520093696];\r\n var KECCAK_PADDING = [1, 256, 65536, 16777216];\r\n var PADDING = [6, 1536, 393216, 100663296];\r\n var SHIFT = [0, 8, 16, 24];\r\n var RC = [1, 0, 32898, 0, 32906, 2147483648, 2147516416, 2147483648, 32907, 0, 2147483649,\r\n 0, 2147516545, 2147483648, 32777, 2147483648, 138, 0, 136, 0, 2147516425, 0,\r\n 2147483658, 0, 2147516555, 0, 139, 2147483648, 32905, 2147483648, 32771,\r\n 2147483648, 32770, 2147483648, 128, 2147483648, 32778, 0, 2147483658, 2147483648,\r\n 2147516545, 2147483648, 32896, 2147483648, 2147483649, 0, 2147516424, 2147483648];\r\n var BITS = [224, 256, 384, 512];\r\n var SHAKE_BITS = [128, 256];\r\n var OUTPUT_TYPES = ['hex', 'buffer', 'arrayBuffer', 'array'];\r\n\r\n var createOutputMethod = function (bits, padding, outputType) {\r\n return function (message) {\r\n return new Keccak(bits, padding, bits).update(message)[outputType]();\r\n };\r\n };\r\n\r\n var createShakeOutputMethod = function (bits, padding, outputType) {\r\n return function (message, outputBits) {\r\n return new Keccak(bits, padding, outputBits).update(message)[outputType]();\r\n };\r\n };\r\n\r\n var createMethod = function (bits, padding) {\r\n var method = createOutputMethod(bits, padding, 'hex');\r\n method.create = function () {\r\n return new Keccak(bits, padding, bits);\r\n };\r\n method.update = function (message) {\r\n return method.create().update(message);\r\n };\r\n for (var i = 0; i < OUTPUT_TYPES.length; ++i) {\r\n var type = OUTPUT_TYPES[i];\r\n method[type] = createOutputMethod(bits, padding, type);\r\n }\r\n return method;\r\n };\r\n\r\n var createShakeMethod = function (bits, padding) {\r\n var method = createShakeOutputMethod(bits, padding, 'hex');\r\n method.create = function (outputBits) {\r\n return new Keccak(bits, padding, outputBits);\r\n };\r\n method.update = function (message, outputBits) {\r\n return method.create(outputBits).update(message);\r\n };\r\n for (var i = 0; i < OUTPUT_TYPES.length; ++i) {\r\n var type = OUTPUT_TYPES[i];\r\n method[type] = createShakeOutputMethod(bits, padding, type);\r\n }\r\n return method;\r\n };\r\n\r\n var algorithms = [\r\n {name: 'keccak', padding: KECCAK_PADDING, bits: BITS, createMethod: createMethod},\r\n {name: 'sha3', padding: PADDING, bits: BITS, createMethod: createMethod},\r\n {name: 'shake', padding: SHAKE_PADDING, bits: SHAKE_BITS, createMethod: createShakeMethod}\r\n ];\r\n\r\n var methods = {}, methodNames = [];\r\n\r\n for (var i = 0; i < algorithms.length; ++i) {\r\n var algorithm = algorithms[i];\r\n var bits = algorithm.bits;\r\n for (var j = 0; j < bits.length; ++j) {\r\n var methodName = algorithm.name +'_' + bits[j];\r\n methodNames.push(methodName);\r\n methods[methodName] = algorithm.createMethod(bits[j], algorithm.padding);\r\n }\r\n }\r\n\r\n function Keccak(bits, padding, outputBits) {\r\n this.blocks = [];\r\n this.s = [];\r\n this.padding = padding;\r\n this.outputBits = outputBits;\r\n this.reset = true;\r\n this.block = 0;\r\n this.start = 0;\r\n this.blockCount = (1600 - (bits << 1)) >> 5;\r\n this.byteCount = this.blockCount << 2;\r\n this.outputBlocks = outputBits >> 5;\r\n this.extraBytes = (outputBits & 31) >> 3;\r\n\r\n for (var i = 0; i < 50; ++i) {\r\n this.s[i] = 0;\r\n }\r\n }\r\n\r\n Keccak.prototype.update = function (message) {\r\n var notString = typeof message !== 'string';\r\n if (notString && message.constructor === ArrayBuffer) {\r\n message = new Uint8Array(message);\r\n }\r\n var length = message.length, blocks = this.blocks, byteCount = this.byteCount,\r\n blockCount = this.blockCount, index = 0, s = this.s, i, code;\r\n\r\n while (index < length) {\r\n if (this.reset) {\r\n this.reset = false;\r\n blocks[0] = this.block;\r\n for (i = 1; i < blockCount + 1; ++i) {\r\n blocks[i] = 0;\r\n }\r\n }\r\n if (notString) {\r\n for (i = this.start; index < length && i < byteCount; ++index) {\r\n blocks[i >> 2] |= message[index] << SHIFT[i++ & 3];\r\n }\r\n } else {\r\n for (i = this.start; index < length && i < byteCount; ++index) {\r\n code = message.charCodeAt(index);\r\n if (code < 0x80) {\r\n blocks[i >> 2] |= code << SHIFT[i++ & 3];\r\n } else if (code < 0x800) {\r\n blocks[i >> 2] |= (0xc0 | (code >> 6)) << SHIFT[i++ & 3];\r\n blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];\r\n } else if (code < 0xd800 || code >= 0xe000) {\r\n blocks[i >> 2] |= (0xe0 | (code >> 12)) << SHIFT[i++ & 3];\r\n blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3];\r\n blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];\r\n } else {\r\n code = 0x10000 + (((code & 0x3ff) << 10) | (message.charCodeAt(++index) & 0x3ff));\r\n blocks[i >> 2] |= (0xf0 | (code >> 18)) << SHIFT[i++ & 3];\r\n blocks[i >> 2] |= (0x80 | ((code >> 12) & 0x3f)) << SHIFT[i++ & 3];\r\n blocks[i >> 2] |= (0x80 | ((code >> 6) & 0x3f)) << SHIFT[i++ & 3];\r\n blocks[i >> 2] |= (0x80 | (code & 0x3f)) << SHIFT[i++ & 3];\r\n }\r\n }\r\n }\r\n this.lastByteIndex = i;\r\n if (i >= byteCount) {\r\n this.start = i - byteCount;\r\n this.block = blocks[blockCount];\r\n for (i = 0; i < blockCount; ++i) {\r\n s[i] ^= blocks[i];\r\n }\r\n f(s);\r\n this.reset = true;\r\n } else {\r\n this.start = i;\r\n }\r\n }\r\n return this;\r\n };\r\n\r\n Keccak.prototype.finalize = function () {\r\n var blocks = this.blocks, i = this.lastByteIndex, blockCount = this.blockCount, s = this.s;\r\n blocks[i >> 2] |= this.padding[i & 3];\r\n if (this.lastByteIndex === this.byteCount) {\r\n blocks[0] = blocks[blockCount];\r\n for (i = 1; i < blockCount + 1; ++i) {\r\n blocks[i] = 0;\r\n }\r\n }\r\n blocks[blockCount - 1] |= 0x80000000;\r\n for (i = 0; i < blockCount; ++i) {\r\n s[i] ^= blocks[i];\r\n }\r\n f(s);\r\n };\r\n\r\n Keccak.prototype.toString = Keccak.prototype.hex = function () {\r\n this.finalize();\r\n\r\n var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks,\r\n extraBytes = this.extraBytes, i = 0, j = 0;\r\n var hex = '', block;\r\n while (j < outputBlocks) {\r\n for (i = 0; i < blockCount && j < outputBlocks; ++i, ++j) {\r\n block = s[i];\r\n hex += HEX_CHARS[(block >> 4) & 0x0F] + HEX_CHARS[block & 0x0F] +\r\n HEX_CHARS[(block >> 12) & 0x0F] + HEX_CHARS[(block >> 8) & 0x0F] +\r\n HEX_CHARS[(block >> 20) & 0x0F] + HEX_CHARS[(block >> 16) & 0x0F] +\r\n HEX_CHARS[(block >> 28) & 0x0F] + HEX_CHARS[(block >> 24) & 0x0F];\r\n }\r\n if (j % blockCount === 0) {\r\n f(s);\r\n i = 0;\r\n }\r\n }\r\n if (extraBytes) {\r\n block = s[i];\r\n if (extraBytes > 0) {\r\n hex += HEX_CHARS[(block >> 4) & 0x0F] + HEX_CHARS[block & 0x0F];\r\n }\r\n if (extraBytes > 1) {\r\n hex += HEX_CHARS[(block >> 12) & 0x0F] + HEX_CHARS[(block >> 8) & 0x0F];\r\n }\r\n if (extraBytes > 2) {\r\n hex += HEX_CHARS[(block >> 20) & 0x0F] + HEX_CHARS[(block >> 16) & 0x0F];\r\n }\r\n }\r\n return hex;\r\n };\r\n\r\n Keccak.prototype.arrayBuffer = function () {\r\n this.finalize();\r\n\r\n var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks,\r\n extraBytes = this.extraBytes, i = 0, j = 0;\r\n var bytes = this.outputBits >> 3;\r\n var buffer;\r\n if (extraBytes) {\r\n buffer = new ArrayBuffer((outputBlocks + 1) << 2);\r\n } else {\r\n buffer = new ArrayBuffer(bytes);\r\n }\r\n var array = new Uint32Array(buffer);\r\n while (j < outputBlocks) {\r\n for (i = 0; i < blockCount && j < outputBlocks; ++i, ++j) {\r\n array[j] = s[i];\r\n }\r\n if (j % blockCount === 0) {\r\n f(s);\r\n }\r\n }\r\n if (extraBytes) {\r\n array[i] = s[i];\r\n buffer = buffer.slice(0, bytes);\r\n }\r\n return buffer;\r\n };\r\n\r\n Keccak.prototype.buffer = Keccak.prototype.arrayBuffer;\r\n\r\n Keccak.prototype.digest = Keccak.prototype.array = function () {\r\n this.finalize();\r\n\r\n var blockCount = this.blockCount, s = this.s, outputBlocks = this.outputBlocks,\r\n extraBytes = this.extraBytes, i = 0, j = 0;\r\n var array = [], offset, block;\r\n while (j < outputBlocks) {\r\n for (i = 0; i < blockCount && j < outputBlocks; ++i, ++j) {\r\n offset = j << 2;\r\n block = s[i];\r\n array[offset] = block & 0xFF;\r\n array[offset + 1] = (block >> 8) & 0xFF;\r\n array[offset + 2] = (block >> 16) & 0xFF;\r\n array[offset + 3] = (block >> 24) & 0xFF;\r\n }\r\n if (j % blockCount === 0) {\r\n f(s);\r\n }\r\n }\r\n if (extraBytes) {\r\n offset = j << 2;\r\n block = s[i];\r\n if (extraBytes > 0) {\r\n array[offset] = block & 0xFF;\r\n }\r\n if (extraBytes > 1) {\r\n array[offset + 1] = (block >> 8) & 0xFF;\r\n }\r\n if (extraBytes > 2) {\r\n array[offset + 2] = (block >> 16) & 0xFF;\r\n }\r\n }\r\n return array;\r\n };\r\n\r\n var f = function (s) {\r\n var h, l, n, c0, c1, c2, c3, c4, c5, c6, c7, c8, c9,\r\n b0, b1, b2, b3, b4, b5, b6, b7, b8, b9, b10, b11, b12, b13, b14, b15, b16, b17,\r\n b18, b19, b20, b21, b22, b23, b24, b25, b26, b27, b28, b29, b30, b31, b32, b33,\r\n b34, b35, b36, b37, b38, b39, b40, b41, b42, b43, b44, b45, b46, b47, b48, b49;\r\n for (n = 0; n < 48; n += 2) {\r\n c0 = s[0] ^ s[10] ^ s[20] ^ s[30] ^ s[40];\r\n c1 = s[1] ^ s[11] ^ s[21] ^ s[31] ^ s[41];\r\n c2 = s[2] ^ s[12] ^ s[22] ^ s[32] ^ s[42];\r\n c3 = s[3] ^ s[13] ^ s[23] ^ s[33] ^ s[43];\r\n c4 = s[4] ^ s[14] ^ s[24] ^ s[34] ^ s[44];\r\n c5 = s[5] ^ s[15] ^ s[25] ^ s[35] ^ s[45];\r\n c6 = s[6] ^ s[16] ^ s[26] ^ s[36] ^ s[46];\r\n c7 = s[7] ^ s[17] ^ s[27] ^ s[37] ^ s[47];\r\n c8 = s[8] ^ s[18] ^ s[28] ^ s[38] ^ s[48];\r\n c9 = s[9] ^ s[19] ^ s[29] ^ s[39] ^ s[49];\r\n\r\n h = c8 ^ ((c2 << 1) | (c3 >>> 31));\r\n l = c9 ^ ((c3 << 1) | (c2 >>> 31));\r\n s[0] ^= h;\r\n s[1] ^= l;\r\n s[10] ^= h;\r\n s[11] ^= l;\r\n s[20] ^= h;\r\n s[21] ^= l;\r\n s[30] ^= h;\r\n s[31] ^= l;\r\n s[40] ^= h;\r\n s[41] ^= l;\r\n h = c0 ^ ((c4 << 1) | (c5 >>> 31));\r\n l = c1 ^ ((c5 << 1) | (c4 >>> 31));\r\n s[2] ^= h;\r\n s[3] ^= l;\r\n s[12] ^= h;\r\n s[13] ^= l;\r\n s[22] ^= h;\r\n s[23] ^= l;\r\n s[32] ^= h;\r\n s[33] ^= l;\r\n s[42] ^= h;\r\n s[43] ^= l;\r\n h = c2 ^ ((c6 << 1) | (c7 >>> 31));\r\n l = c3 ^ ((c7 << 1) | (c6 >>> 31));\r\n s[4] ^= h;\r\n s[5] ^= l;\r\n s[14] ^= h;\r\n s[15] ^= l;\r\n s[24] ^= h;\r\n s[25] ^= l;\r\n s[34] ^= h;\r\n s[35] ^= l;\r\n s[44] ^= h;\r\n s[45] ^= l;\r\n h = c4 ^ ((c8 << 1) | (c9 >>> 31));\r\n l = c5 ^ ((c9 << 1) | (c8 >>> 31));\r\n s[6] ^= h;\r\n s[7] ^= l;\r\n s[16] ^= h;\r\n s[17] ^= l;\r\n s[26] ^= h;\r\n s[27] ^= l;\r\n s[36] ^= h;\r\n s[37] ^= l;\r\n s[46] ^= h;\r\n s[47] ^= l;\r\n h = c6 ^ ((c0 << 1) | (c1 >>> 31));\r\n l = c7 ^ ((c1 << 1) | (c0 >>> 31));\r\n s[8] ^= h;\r\n s[9] ^= l;\r\n s[18] ^= h;\r\n s[19] ^= l;\r\n s[28] ^= h;\r\n s[29] ^= l;\r\n s[38] ^= h;\r\n s[39] ^= l;\r\n s[48] ^= h;\r\n s[49] ^= l;\r\n\r\n b0 = s[0];\r\n b1 = s[1];\r\n b32 = (s[11] << 4) | (s[10] >>> 28);\r\n b33 = (s[10] << 4) | (s[11] >>> 28);\r\n b14 = (s[20] << 3) | (s[21] >>> 29);\r\n b15 = (s[21] << 3) | (s[20] >>> 29);\r\n b46 = (s[31] << 9) | (s[30] >>> 23);\r\n b47 = (s[30] << 9) | (s[31] >>> 23);\r\n b28 = (s[40] << 18) | (s[41] >>> 14);\r\n b29 = (s[41] << 18) | (s[40] >>> 14);\r\n b20 = (s[2] << 1) | (s[3] >>> 31);\r\n b21 = (s[3] << 1) | (s[2] >>> 31);\r\n b2 = (s[13] << 12) | (s[12] >>> 20);\r\n b3 = (s[12] << 12) | (s[13] >>> 20);\r\n b34 = (s[22] << 10) | (s[23] >>> 22);\r\n b35 = (s[23] << 10) | (s[22] >>> 22);\r\n b16 = (s[33] << 13) | (s[32] >>> 19);\r\n b17 = (s[32] << 13) | (s[33] >>> 19);\r\n b48 = (s[42] << 2) | (s[43] >>> 30);\r\n b49 = (s[43] << 2) | (s[42] >>> 30);\r\n b40 = (s[5] << 30) | (s[4] >>> 2);\r\n b41 = (s[4] << 30) | (s[5] >>> 2);\r\n b22 = (s[14] << 6) | (s[15] >>> 26);\r\n b23 = (s[15] << 6) | (s[14] >>> 26);\r\n b4 = (s[25] << 11) | (s[24] >>> 21);\r\n b5 = (s[24] << 11) | (s[25] >>> 21);\r\n b36 = (s[34] << 15) | (s[35] >>> 17);\r\n b37 = (s[35] << 15) | (s[34] >>> 17);\r\n b18 = (s[45] << 29) | (s[44] >>> 3);\r\n b19 = (s[44] << 29) | (s[45] >>> 3);\r\n b10 = (s[6] << 28) | (s[7] >>> 4);\r\n b11 = (s[7] << 28) | (s[6] >>> 4);\r\n b42 = (s[17] << 23) | (s[16] >>> 9);\r\n b43 = (s[16] << 23) | (s[17] >>> 9);\r\n b24 = (s[26] << 25) | (s[27] >>> 7);\r\n b25 = (s[27] << 25) | (s[26] >>> 7);\r\n b6 = (s[36] << 21) | (s[37] >>> 11);\r\n b7 = (s[37] << 21) | (s[36] >>> 11);\r\n b38 = (s[47] << 24) | (s[46] >>> 8);\r\n b39 = (s[46] << 24) | (s[47] >>> 8);\r\n b30 = (s[8] << 27) | (s[9] >>> 5);\r\n b31 = (s[9] << 27) | (s[8] >>> 5);\r\n b12 = (s[18] << 20) | (s[19] >>> 12);\r\n b13 = (s[19] << 20) | (s[18] >>> 12);\r\n b44 = (s[29] << 7) | (s[28] >>> 25);\r\n b45 = (s[28] << 7) | (s[29] >>> 25);\r\n b26 = (s[38] << 8) | (s[39] >>> 24);\r\n b27 = (s[39] << 8) | (s[38] >>> 24);\r\n b8 = (s[48] << 14) | (s[49] >>> 18);\r\n b9 = (s[49] << 14) | (s[48] >>> 18);\r\n\r\n s[0] = b0 ^ (~b2 & b4);\r\n s[1] = b1 ^ (~b3 & b5);\r\n s[10] = b10 ^ (~b12 & b14);\r\n s[11] = b11 ^ (~b13 & b15);\r\n s[20] = b20 ^ (~b22 & b24);\r\n s[21] = b21 ^ (~b23 & b25);\r\n s[30] = b30 ^ (~b32 & b34);\r\n s[31] = b31 ^ (~b33 & b35);\r\n s[40] = b40 ^ (~b42 & b44);\r\n s[41] = b41 ^ (~b43 & b45);\r\n s[2] = b2 ^ (~b4 & b6);\r\n s[3] = b3 ^ (~b5 & b7);\r\n s[12] = b12 ^ (~b14 & b16);\r\n s[13] = b13 ^ (~b15 & b17);\r\n s[22] = b22 ^ (~b24 & b26);\r\n s[23] = b23 ^ (~b25 & b27);\r\n s[32] = b32 ^ (~b34 & b36);\r\n s[33] = b33 ^ (~b35 & b37);\r\n s[42] = b42 ^ (~b44 & b46);\r\n s[43] = b43 ^ (~b45 & b47);\r\n s[4] = b4 ^ (~b6 & b8);\r\n s[5] = b5 ^ (~b7 & b9);\r\n s[14] = b14 ^ (~b16 & b18);\r\n s[15] = b15 ^ (~b17 & b19);\r\n s[24] = b24 ^ (~b26 & b28);\r\n s[25] = b25 ^ (~b27 & b29);\r\n s[34] = b34 ^ (~b36 & b38);\r\n s[35] = b35 ^ (~b37 & b39);\r\n s[44] = b44 ^ (~b46 & b48);\r\n s[45] = b45 ^ (~b47 & b49);\r\n s[6] = b6 ^ (~b8 & b0);\r\n s[7] = b7 ^ (~b9 & b1);\r\n s[16] = b16 ^ (~b18 & b10);\r\n s[17] = b17 ^ (~b19 & b11);\r\n s[26] = b26 ^ (~b28 & b20);\r\n s[27] = b27 ^ (~b29 & b21);\r\n s[36] = b36 ^ (~b38 & b30);\r\n s[37] = b37 ^ (~b39 & b31);\r\n s[46] = b46 ^ (~b48 & b40);\r\n s[47] = b47 ^ (~b49 & b41);\r\n s[8] = b8 ^ (~b0 & b2);\r\n s[9] = b9 ^ (~b1 & b3);\r\n s[18] = b18 ^ (~b10 & b12);\r\n s[19] = b19 ^ (~b11 & b13);\r\n s[28] = b28 ^ (~b20 & b22);\r\n s[29] = b29 ^ (~b21 & b23);\r\n s[38] = b38 ^ (~b30 & b32);\r\n s[39] = b39 ^ (~b31 & b33);\r\n s[48] = b48 ^ (~b40 & b42);\r\n s[49] = b49 ^ (~b41 & b43);\r\n\r\n s[0] ^= RC[n];\r\n s[1] ^= RC[n + 1];\r\n }\r\n };\r\n\r\n if (COMMON_JS) {\r\n module.exports = methods;\r\n } else {\r\n for (var i = 0; i < methodNames.length; ++i) {\r\n root[methodNames[i]] = methods[methodNames[i]];\r\n }\r\n }\r\n})();\r\n","'use strict'\n\n// A linked list to keep track of recently-used-ness\nconst Yallist = require('yallist')\n\nconst MAX = Symbol('max')\nconst LENGTH = Symbol('length')\nconst LENGTH_CALCULATOR = Symbol('lengthCalculator')\nconst ALLOW_STALE = Symbol('allowStale')\nconst MAX_AGE = Symbol('maxAge')\nconst DISPOSE = Symbol('dispose')\nconst NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet')\nconst LRU_LIST = Symbol('lruList')\nconst CACHE = Symbol('cache')\nconst UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet')\n\nconst naiveLength = () => 1\n\n// lruList is a yallist where the head is the youngest\n// item, and the tail is the oldest. the list contains the Hit\n// objects as the entries.\n// Each Hit object has a reference to its Yallist.Node. This\n// never changes.\n//\n// cache is a Map (or PseudoMap) that matches the keys to\n// the Yallist.Node object.\nclass LRUCache {\n constructor (options) {\n if (typeof options === 'number')\n options = { max: options }\n\n if (!options)\n options = {}\n\n if (options.max && (typeof options.max !== 'number' || options.max < 0))\n throw new TypeError('max must be a non-negative number')\n // Kind of weird to have a default max of Infinity, but oh well.\n const max = this[MAX] = options.max || Infinity\n\n const lc = options.length || naiveLength\n this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc\n this[ALLOW_STALE] = options.stale || false\n if (options.maxAge && typeof options.maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n this[MAX_AGE] = options.maxAge || 0\n this[DISPOSE] = options.dispose\n this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false\n this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false\n this.reset()\n }\n\n // resize the cache when the max changes.\n set max (mL) {\n if (typeof mL !== 'number' || mL < 0)\n throw new TypeError('max must be a non-negative number')\n\n this[MAX] = mL || Infinity\n trim(this)\n }\n get max () {\n return this[MAX]\n }\n\n set allowStale (allowStale) {\n this[ALLOW_STALE] = !!allowStale\n }\n get allowStale () {\n return this[ALLOW_STALE]\n }\n\n set maxAge (mA) {\n if (typeof mA !== 'number')\n throw new TypeError('maxAge must be a non-negative number')\n\n this[MAX_AGE] = mA\n trim(this)\n }\n get maxAge () {\n return this[MAX_AGE]\n }\n\n // resize the cache when the lengthCalculator changes.\n set lengthCalculator (lC) {\n if (typeof lC !== 'function')\n lC = naiveLength\n\n if (lC !== this[LENGTH_CALCULATOR]) {\n this[LENGTH_CALCULATOR] = lC\n this[LENGTH] = 0\n this[LRU_LIST].forEach(hit => {\n hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key)\n this[LENGTH] += hit.length\n })\n }\n trim(this)\n }\n get lengthCalculator () { return this[LENGTH_CALCULATOR] }\n\n get length () { return this[LENGTH] }\n get itemCount () { return this[LRU_LIST].length }\n\n rforEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].tail; walker !== null;) {\n const prev = walker.prev\n forEachStep(this, fn, walker, thisp)\n walker = prev\n }\n }\n\n forEach (fn, thisp) {\n thisp = thisp || this\n for (let walker = this[LRU_LIST].head; walker !== null;) {\n const next = walker.next\n forEachStep(this, fn, walker, thisp)\n walker = next\n }\n }\n\n keys () {\n return this[LRU_LIST].toArray().map(k => k.key)\n }\n\n values () {\n return this[LRU_LIST].toArray().map(k => k.value)\n }\n\n reset () {\n if (this[DISPOSE] &&\n this[LRU_LIST] &&\n this[LRU_LIST].length) {\n this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value))\n }\n\n this[CACHE] = new Map() // hash of items by key\n this[LRU_LIST] = new Yallist() // list of items in order of use recency\n this[LENGTH] = 0 // length of items in the list\n }\n\n dump () {\n return this[LRU_LIST].map(hit =>\n isStale(this, hit) ? false : {\n k: hit.key,\n v: hit.value,\n e: hit.now + (hit.maxAge || 0)\n }).toArray().filter(h => h)\n }\n\n dumpLru () {\n return this[LRU_LIST]\n }\n\n set (key, value, maxAge) {\n maxAge = maxAge || this[MAX_AGE]\n\n if (maxAge && typeof maxAge !== 'number')\n throw new TypeError('maxAge must be a number')\n\n const now = maxAge ? Date.now() : 0\n const len = this[LENGTH_CALCULATOR](value, key)\n\n if (this[CACHE].has(key)) {\n if (len > this[MAX]) {\n del(this, this[CACHE].get(key))\n return false\n }\n\n const node = this[CACHE].get(key)\n const item = node.value\n\n // dispose of the old one before overwriting\n // split out into 2 ifs for better coverage tracking\n if (this[DISPOSE]) {\n if (!this[NO_DISPOSE_ON_SET])\n this[DISPOSE](key, item.value)\n }\n\n item.now = now\n item.maxAge = maxAge\n item.value = value\n this[LENGTH] += len - item.length\n item.length = len\n this.get(key)\n trim(this)\n return true\n }\n\n const hit = new Entry(key, value, len, now, maxAge)\n\n // oversized objects fall out of cache automatically.\n if (hit.length > this[MAX]) {\n if (this[DISPOSE])\n this[DISPOSE](key, value)\n\n return false\n }\n\n this[LENGTH] += hit.length\n this[LRU_LIST].unshift(hit)\n this[CACHE].set(key, this[LRU_LIST].head)\n trim(this)\n return true\n }\n\n has (key) {\n if (!this[CACHE].has(key)) return false\n const hit = this[CACHE].get(key).value\n return !isStale(this, hit)\n }\n\n get (key) {\n return get(this, key, true)\n }\n\n peek (key) {\n return get(this, key, false)\n }\n\n pop () {\n const node = this[LRU_LIST].tail\n if (!node)\n return null\n\n del(this, node)\n return node.value\n }\n\n del (key) {\n del(this, this[CACHE].get(key))\n }\n\n load (arr) {\n // reset the cache\n this.reset()\n\n const now = Date.now()\n // A previous serialized cache has the most recent items first\n for (let l = arr.length - 1; l >= 0; l--) {\n const hit = arr[l]\n const expiresAt = hit.e || 0\n if (expiresAt === 0)\n // the item was created without expiration in a non aged cache\n this.set(hit.k, hit.v)\n else {\n const maxAge = expiresAt - now\n // dont add already expired items\n if (maxAge > 0) {\n this.set(hit.k, hit.v, maxAge)\n }\n }\n }\n }\n\n prune () {\n this[CACHE].forEach((value, key) => get(this, key, false))\n }\n}\n\nconst get = (self, key, doUse) => {\n const node = self[CACHE].get(key)\n if (node) {\n const hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n return undefined\n } else {\n if (doUse) {\n if (self[UPDATE_AGE_ON_GET])\n node.value.now = Date.now()\n self[LRU_LIST].unshiftNode(node)\n }\n }\n return hit.value\n }\n}\n\nconst isStale = (self, hit) => {\n if (!hit || (!hit.maxAge && !self[MAX_AGE]))\n return false\n\n const diff = Date.now() - hit.now\n return hit.maxAge ? diff > hit.maxAge\n : self[MAX_AGE] && (diff > self[MAX_AGE])\n}\n\nconst trim = self => {\n if (self[LENGTH] > self[MAX]) {\n for (let walker = self[LRU_LIST].tail;\n self[LENGTH] > self[MAX] && walker !== null;) {\n // We know that we're about to delete this one, and also\n // what the next least recently used key will be, so just\n // go ahead and set it now.\n const prev = walker.prev\n del(self, walker)\n walker = prev\n }\n }\n}\n\nconst del = (self, node) => {\n if (node) {\n const hit = node.value\n if (self[DISPOSE])\n self[DISPOSE](hit.key, hit.value)\n\n self[LENGTH] -= hit.length\n self[CACHE].delete(hit.key)\n self[LRU_LIST].removeNode(node)\n }\n}\n\nclass Entry {\n constructor (key, value, length, now, maxAge) {\n this.key = key\n this.value = value\n this.length = length\n this.now = now\n this.maxAge = maxAge || 0\n }\n}\n\nconst forEachStep = (self, fn, node, thisp) => {\n let hit = node.value\n if (isStale(self, hit)) {\n del(self, node)\n if (!self[ALLOW_STALE])\n hit = undefined\n }\n if (hit)\n fn.call(thisp, hit.value, hit.key, self)\n}\n\nmodule.exports = LRUCache\n","'use strict'\nmodule.exports = function (Yallist) {\n Yallist.prototype[Symbol.iterator] = function* () {\n for (let walker = this.head; walker; walker = walker.next) {\n yield walker.value\n }\n }\n}\n","'use strict'\nmodule.exports = Yallist\n\nYallist.Node = Node\nYallist.create = Yallist\n\nfunction Yallist (list) {\n var self = this\n if (!(self instanceof Yallist)) {\n self = new Yallist()\n }\n\n self.tail = null\n self.head = null\n self.length = 0\n\n if (list && typeof list.forEach === 'function') {\n list.forEach(function (item) {\n self.push(item)\n })\n } else if (arguments.length > 0) {\n for (var i = 0, l = arguments.length; i < l; i++) {\n self.push(arguments[i])\n }\n }\n\n return self\n}\n\nYallist.prototype.removeNode = function (node) {\n if (node.list !== this) {\n throw new Error('removing node which does not belong to this list')\n }\n\n var next = node.next\n var prev = node.prev\n\n if (next) {\n next.prev = prev\n }\n\n if (prev) {\n prev.next = next\n }\n\n if (node === this.head) {\n this.head = next\n }\n if (node === this.tail) {\n this.tail = prev\n }\n\n node.list.length--\n node.next = null\n node.prev = null\n node.list = null\n\n return next\n}\n\nYallist.prototype.unshiftNode = function (node) {\n if (node === this.head) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var head = this.head\n node.list = this\n node.next = head\n if (head) {\n head.prev = node\n }\n\n this.head = node\n if (!this.tail) {\n this.tail = node\n }\n this.length++\n}\n\nYallist.prototype.pushNode = function (node) {\n if (node === this.tail) {\n return\n }\n\n if (node.list) {\n node.list.removeNode(node)\n }\n\n var tail = this.tail\n node.list = this\n node.prev = tail\n if (tail) {\n tail.next = node\n }\n\n this.tail = node\n if (!this.head) {\n this.head = node\n }\n this.length++\n}\n\nYallist.prototype.push = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n push(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.unshift = function () {\n for (var i = 0, l = arguments.length; i < l; i++) {\n unshift(this, arguments[i])\n }\n return this.length\n}\n\nYallist.prototype.pop = function () {\n if (!this.tail) {\n return undefined\n }\n\n var res = this.tail.value\n this.tail = this.tail.prev\n if (this.tail) {\n this.tail.next = null\n } else {\n this.head = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.shift = function () {\n if (!this.head) {\n return undefined\n }\n\n var res = this.head.value\n this.head = this.head.next\n if (this.head) {\n this.head.prev = null\n } else {\n this.tail = null\n }\n this.length--\n return res\n}\n\nYallist.prototype.forEach = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.head, i = 0; walker !== null; i++) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.next\n }\n}\n\nYallist.prototype.forEachReverse = function (fn, thisp) {\n thisp = thisp || this\n for (var walker = this.tail, i = this.length - 1; walker !== null; i--) {\n fn.call(thisp, walker.value, i, this)\n walker = walker.prev\n }\n}\n\nYallist.prototype.get = function (n) {\n for (var i = 0, walker = this.head; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.next\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.getReverse = function (n) {\n for (var i = 0, walker = this.tail; walker !== null && i < n; i++) {\n // abort out of the list early if we hit a cycle\n walker = walker.prev\n }\n if (i === n && walker !== null) {\n return walker.value\n }\n}\n\nYallist.prototype.map = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.head; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.next\n }\n return res\n}\n\nYallist.prototype.mapReverse = function (fn, thisp) {\n thisp = thisp || this\n var res = new Yallist()\n for (var walker = this.tail; walker !== null;) {\n res.push(fn.call(thisp, walker.value, this))\n walker = walker.prev\n }\n return res\n}\n\nYallist.prototype.reduce = function (fn, initial) {\n var acc\n var walker = this.head\n if (arguments.length > 1) {\n acc = initial\n } else if (this.head) {\n walker = this.head.next\n acc = this.head.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = 0; walker !== null; i++) {\n acc = fn(acc, walker.value, i)\n walker = walker.next\n }\n\n return acc\n}\n\nYallist.prototype.reduceReverse = function (fn, initial) {\n var acc\n var walker = this.tail\n if (arguments.length > 1) {\n acc = initial\n } else if (this.tail) {\n walker = this.tail.prev\n acc = this.tail.value\n } else {\n throw new TypeError('Reduce of empty list with no initial value')\n }\n\n for (var i = this.length - 1; walker !== null; i--) {\n acc = fn(acc, walker.value, i)\n walker = walker.prev\n }\n\n return acc\n}\n\nYallist.prototype.toArray = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.head; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.next\n }\n return arr\n}\n\nYallist.prototype.toArrayReverse = function () {\n var arr = new Array(this.length)\n for (var i = 0, walker = this.tail; walker !== null; i++) {\n arr[i] = walker.value\n walker = walker.prev\n }\n return arr\n}\n\nYallist.prototype.slice = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = 0, walker = this.head; walker !== null && i < from; i++) {\n walker = walker.next\n }\n for (; walker !== null && i < to; i++, walker = walker.next) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.sliceReverse = function (from, to) {\n to = to || this.length\n if (to < 0) {\n to += this.length\n }\n from = from || 0\n if (from < 0) {\n from += this.length\n }\n var ret = new Yallist()\n if (to < from || to < 0) {\n return ret\n }\n if (from < 0) {\n from = 0\n }\n if (to > this.length) {\n to = this.length\n }\n for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) {\n walker = walker.prev\n }\n for (; walker !== null && i > from; i--, walker = walker.prev) {\n ret.push(walker.value)\n }\n return ret\n}\n\nYallist.prototype.splice = function (start, deleteCount /*, ...nodes */) {\n if (start > this.length) {\n start = this.length - 1\n }\n if (start < 0) {\n start = this.length + start;\n }\n\n for (var i = 0, walker = this.head; walker !== null && i < start; i++) {\n walker = walker.next\n }\n\n var ret = []\n for (var i = 0; walker && i < deleteCount; i++) {\n ret.push(walker.value)\n walker = this.removeNode(walker)\n }\n if (walker === null) {\n walker = this.tail\n }\n\n if (walker !== this.head && walker !== this.tail) {\n walker = walker.prev\n }\n\n for (var i = 2; i < arguments.length; i++) {\n walker = insert(this, walker, arguments[i])\n }\n return ret;\n}\n\nYallist.prototype.reverse = function () {\n var head = this.head\n var tail = this.tail\n for (var walker = head; walker !== null; walker = walker.prev) {\n var p = walker.prev\n walker.prev = walker.next\n walker.next = p\n }\n this.head = tail\n this.tail = head\n return this\n}\n\nfunction insert (self, node, value) {\n var inserted = node === self.head ?\n new Node(value, null, node, self) :\n new Node(value, node, node.next, self)\n\n if (inserted.next === null) {\n self.tail = inserted\n }\n if (inserted.prev === null) {\n self.head = inserted\n }\n\n self.length++\n\n return inserted\n}\n\nfunction push (self, item) {\n self.tail = new Node(item, self.tail, null, self)\n if (!self.head) {\n self.head = self.tail\n }\n self.length++\n}\n\nfunction unshift (self, item) {\n self.head = new Node(item, null, self.head, self)\n if (!self.tail) {\n self.tail = self.head\n }\n self.length++\n}\n\nfunction Node (value, prev, next, list) {\n if (!(this instanceof Node)) {\n return new Node(value, prev, next, list)\n }\n\n this.list = list\n this.value = value\n\n if (prev) {\n prev.next = this\n this.prev = prev\n } else {\n this.prev = null\n }\n\n if (next) {\n next.prev = this\n this.next = next\n } else {\n this.next = null\n }\n}\n\ntry {\n // add if support for Symbol.iterator is present\n require('./iterator.js')(Yallist)\n} catch (er) {}\n","/*\n https://github.com/banksean wrapped Makoto Matsumoto and Takuji Nishimura's code in a namespace\n so it's better encapsulated. Now you can have multiple random number generators\n and they won't stomp all over eachother's state.\n\n If you want to use this as a substitute for Math.random(), use the random()\n method like so:\n\n var m = new MersenneTwister();\n var randomNumber = m.random();\n\n You can also call the other genrand_{foo}() methods on the instance.\n\n If you want to use a specific seed in order to get a repeatable random\n sequence, pass an integer into the constructor:\n\n var m = new MersenneTwister(123);\n\n and that will always produce the same random sequence.\n\n Sean McCullough (banksean@gmail.com)\n*/\n\n/*\n A C-program for MT19937, with initialization improved 2002/1/26.\n Coded by Takuji Nishimura and Makoto Matsumoto.\n\n Before using, initialize the state by using init_seed(seed)\n or init_by_array(init_key, key_length).\n\n Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,\n All rights reserved.\n\n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions\n are met:\n\n 1. Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n\n 2. Redistributions in binary form must reproduce the above copyright\n notice, this list of conditions and the following disclaimer in the\n documentation and/or other materials provided with the distribution.\n\n 3. The names of its contributors may not be used to endorse or promote\n products derived from this software without specific prior written\n permission.\n\n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR\n CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,\n EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,\n PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR\n PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF\n LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING\n NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n\n\n Any feedback is very welcome.\n http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html\n email: m-mat @ math.sci.hiroshima-u.ac.jp (remove space)\n*/\n\nvar MersenneTwister = function(seed) {\n\tif (seed == undefined) {\n\t\tseed = new Date().getTime();\n\t}\n\n\t/* Period parameters */\n\tthis.N = 624;\n\tthis.M = 397;\n\tthis.MATRIX_A = 0x9908b0df; /* constant vector a */\n\tthis.UPPER_MASK = 0x80000000; /* most significant w-r bits */\n\tthis.LOWER_MASK = 0x7fffffff; /* least significant r bits */\n\n\tthis.mt = new Array(this.N); /* the array for the state vector */\n\tthis.mti=this.N+1; /* mti==N+1 means mt[N] is not initialized */\n\n\tif (seed.constructor == Array) {\n\t\tthis.init_by_array(seed, seed.length);\n\t}\n\telse {\n\t\tthis.init_seed(seed);\n\t}\n}\n\n/* initializes mt[N] with a seed */\n/* origin name init_genrand */\nMersenneTwister.prototype.init_seed = function(s) {\n\tthis.mt[0] = s >>> 0;\n\tfor (this.mti=1; this.mti>> 30);\n\t\tthis.mt[this.mti] = (((((s & 0xffff0000) >>> 16) * 1812433253) << 16) + (s & 0x0000ffff) * 1812433253)\n\t\t+ this.mti;\n\t\t/* See Knuth TAOCP Vol2. 3rd Ed. P.106 for multiplier. */\n\t\t/* In the previous versions, MSBs of the seed affect */\n\t\t/* only MSBs of the array mt[]. */\n\t\t/* 2002/01/09 modified by Makoto Matsumoto */\n\t\tthis.mt[this.mti] >>>= 0;\n\t\t/* for >32 bit machines */\n\t}\n}\n\n/* initialize by an array with array-length */\n/* init_key is the array for initializing keys */\n/* key_length is its length */\n/* slight change for C++, 2004/2/26 */\nMersenneTwister.prototype.init_by_array = function(init_key, key_length) {\n\tvar i, j, k;\n\tthis.init_seed(19650218);\n\ti=1; j=0;\n\tk = (this.N>key_length ? this.N : key_length);\n\tfor (; k; k--) {\n\t\tvar s = this.mt[i-1] ^ (this.mt[i-1] >>> 30)\n\t\tthis.mt[i] = (this.mt[i] ^ (((((s & 0xffff0000) >>> 16) * 1664525) << 16) + ((s & 0x0000ffff) * 1664525)))\n\t\t+ init_key[j] + j; /* non linear */\n\t\tthis.mt[i] >>>= 0; /* for WORDSIZE > 32 machines */\n\t\ti++; j++;\n\t\tif (i>=this.N) { this.mt[0] = this.mt[this.N-1]; i=1; }\n\t\tif (j>=key_length) j=0;\n\t}\n\tfor (k=this.N-1; k; k--) {\n\t\tvar s = this.mt[i-1] ^ (this.mt[i-1] >>> 30);\n\t\tthis.mt[i] = (this.mt[i] ^ (((((s & 0xffff0000) >>> 16) * 1566083941) << 16) + (s & 0x0000ffff) * 1566083941))\n\t\t- i; /* non linear */\n\t\tthis.mt[i] >>>= 0; /* for WORDSIZE > 32 machines */\n\t\ti++;\n\t\tif (i>=this.N) { this.mt[0] = this.mt[this.N-1]; i=1; }\n\t}\n\n\tthis.mt[0] = 0x80000000; /* MSB is 1; assuring non-zero initial array */\n}\n\n/* generates a random number on [0,0xffffffff]-interval */\n/* origin name genrand_int32 */\nMersenneTwister.prototype.random_int = function() {\n\tvar y;\n\tvar mag01 = new Array(0x0, this.MATRIX_A);\n\t/* mag01[x] = x * MATRIX_A for x=0,1 */\n\n\tif (this.mti >= this.N) { /* generate N words at one time */\n\t\tvar kk;\n\n\t\tif (this.mti == this.N+1) /* if init_seed() has not been called, */\n\t\t\tthis.init_seed(5489); /* a default initial seed is used */\n\n\t\tfor (kk=0;kk>> 1) ^ mag01[y & 0x1];\n\t\t}\n\t\tfor (;kk>> 1) ^ mag01[y & 0x1];\n\t\t}\n\t\ty = (this.mt[this.N-1]&this.UPPER_MASK)|(this.mt[0]&this.LOWER_MASK);\n\t\tthis.mt[this.N-1] = this.mt[this.M-1] ^ (y >>> 1) ^ mag01[y & 0x1];\n\n\t\tthis.mti = 0;\n\t}\n\n\ty = this.mt[this.mti++];\n\n\t/* Tempering */\n\ty ^= (y >>> 11);\n\ty ^= (y << 7) & 0x9d2c5680;\n\ty ^= (y << 15) & 0xefc60000;\n\ty ^= (y >>> 18);\n\n\treturn y >>> 0;\n}\n\n/* generates a random number on [0,0x7fffffff]-interval */\n/* origin name genrand_int31 */\nMersenneTwister.prototype.random_int31 = function() {\n\treturn (this.random_int()>>>1);\n}\n\n/* generates a random number on [0,1]-real-interval */\n/* origin name genrand_real1 */\nMersenneTwister.prototype.random_incl = function() {\n\treturn this.random_int()*(1.0/4294967295.0);\n\t/* divided by 2^32-1 */\n}\n\n/* generates a random number on [0,1)-real-interval */\nMersenneTwister.prototype.random = function() {\n\treturn this.random_int()*(1.0/4294967296.0);\n\t/* divided by 2^32 */\n}\n\n/* generates a random number on (0,1)-real-interval */\n/* origin name genrand_real3 */\nMersenneTwister.prototype.random_excl = function() {\n\treturn (this.random_int() + 0.5)*(1.0/4294967296.0);\n\t/* divided by 2^32 */\n}\n\n/* generates a random number on [0,1) with 53-bit resolution*/\n/* origin name genrand_res53 */\nMersenneTwister.prototype.random_long = function() {\n\tvar a=this.random_int()>>>5, b=this.random_int()>>>6;\n\treturn(a*67108864.0+b)*(1.0/9007199254740992.0);\n}\n\n/* These real versions are due to Isaku Wada, 2002/01/09 added */\n\nmodule.exports = MersenneTwister;\n","var hasMap = typeof Map === 'function' && Map.prototype;\nvar mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;\nvar mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;\nvar mapForEach = hasMap && Map.prototype.forEach;\nvar hasSet = typeof Set === 'function' && Set.prototype;\nvar setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, 'size') : null;\nvar setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === 'function' ? setSizeDescriptor.get : null;\nvar setForEach = hasSet && Set.prototype.forEach;\nvar hasWeakMap = typeof WeakMap === 'function' && WeakMap.prototype;\nvar weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;\nvar hasWeakSet = typeof WeakSet === 'function' && WeakSet.prototype;\nvar weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;\nvar hasWeakRef = typeof WeakRef === 'function' && WeakRef.prototype;\nvar weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;\nvar booleanValueOf = Boolean.prototype.valueOf;\nvar objectToString = Object.prototype.toString;\nvar functionToString = Function.prototype.toString;\nvar $match = String.prototype.match;\nvar $slice = String.prototype.slice;\nvar $replace = String.prototype.replace;\nvar $toUpperCase = String.prototype.toUpperCase;\nvar $toLowerCase = String.prototype.toLowerCase;\nvar $test = RegExp.prototype.test;\nvar $concat = Array.prototype.concat;\nvar $join = Array.prototype.join;\nvar $arrSlice = Array.prototype.slice;\nvar $floor = Math.floor;\nvar bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;\nvar gOPS = Object.getOwnPropertySymbols;\nvar symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;\nvar hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';\n// ie, `has-tostringtag/shams\nvar toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')\n ? Symbol.toStringTag\n : null;\nvar isEnumerable = Object.prototype.propertyIsEnumerable;\n\nvar gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (\n [].__proto__ === Array.prototype // eslint-disable-line no-proto\n ? function (O) {\n return O.__proto__; // eslint-disable-line no-proto\n }\n : null\n);\n\nfunction addNumericSeparator(num, str) {\n if (\n num === Infinity\n || num === -Infinity\n || num !== num\n || (num && num > -1000 && num < 1000)\n || $test.call(/e/, str)\n ) {\n return str;\n }\n var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;\n if (typeof num === 'number') {\n var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)\n if (int !== num) {\n var intStr = String(int);\n var dec = $slice.call(str, intStr.length + 1);\n return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');\n }\n }\n return $replace.call(str, sepRegex, '$&_');\n}\n\nvar utilInspect = require('./util.inspect');\nvar inspectCustom = utilInspect.custom;\nvar inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;\n\nmodule.exports = function inspect_(obj, options, depth, seen) {\n var opts = options || {};\n\n if (has(opts, 'quoteStyle') && (opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double')) {\n throw new TypeError('option \"quoteStyle\" must be \"single\" or \"double\"');\n }\n if (\n has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'\n ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity\n : opts.maxStringLength !== null\n )\n ) {\n throw new TypeError('option \"maxStringLength\", if provided, must be a positive integer, Infinity, or `null`');\n }\n var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;\n if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {\n throw new TypeError('option \"customInspect\", if provided, must be `true`, `false`, or `\\'symbol\\'`');\n }\n\n if (\n has(opts, 'indent')\n && opts.indent !== null\n && opts.indent !== '\\t'\n && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)\n ) {\n throw new TypeError('option \"indent\" must be \"\\\\t\", an integer > 0, or `null`');\n }\n if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {\n throw new TypeError('option \"numericSeparator\", if provided, must be `true` or `false`');\n }\n var numericSeparator = opts.numericSeparator;\n\n if (typeof obj === 'undefined') {\n return 'undefined';\n }\n if (obj === null) {\n return 'null';\n }\n if (typeof obj === 'boolean') {\n return obj ? 'true' : 'false';\n }\n\n if (typeof obj === 'string') {\n return inspectString(obj, opts);\n }\n if (typeof obj === 'number') {\n if (obj === 0) {\n return Infinity / obj > 0 ? '0' : '-0';\n }\n var str = String(obj);\n return numericSeparator ? addNumericSeparator(obj, str) : str;\n }\n if (typeof obj === 'bigint') {\n var bigIntStr = String(obj) + 'n';\n return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;\n }\n\n var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;\n if (typeof depth === 'undefined') { depth = 0; }\n if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {\n return isArray(obj) ? '[Array]' : '[Object]';\n }\n\n var indent = getIndent(opts, depth);\n\n if (typeof seen === 'undefined') {\n seen = [];\n } else if (indexOf(seen, obj) >= 0) {\n return '[Circular]';\n }\n\n function inspect(value, from, noIndent) {\n if (from) {\n seen = $arrSlice.call(seen);\n seen.push(from);\n }\n if (noIndent) {\n var newOpts = {\n depth: opts.depth\n };\n if (has(opts, 'quoteStyle')) {\n newOpts.quoteStyle = opts.quoteStyle;\n }\n return inspect_(value, newOpts, depth + 1, seen);\n }\n return inspect_(value, opts, depth + 1, seen);\n }\n\n if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable\n var name = nameOf(obj);\n var keys = arrObjKeys(obj, inspect);\n return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');\n }\n if (isSymbol(obj)) {\n var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\\(.*\\))_[^)]*$/, '$1') : symToString.call(obj);\n return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;\n }\n if (isElement(obj)) {\n var s = '<' + $toLowerCase.call(String(obj.nodeName));\n var attrs = obj.attributes || [];\n for (var i = 0; i < attrs.length; i++) {\n s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);\n }\n s += '>';\n if (obj.childNodes && obj.childNodes.length) { s += '...'; }\n s += '';\n return s;\n }\n if (isArray(obj)) {\n if (obj.length === 0) { return '[]'; }\n var xs = arrObjKeys(obj, inspect);\n if (indent && !singleLineValues(xs)) {\n return '[' + indentedJoin(xs, indent) + ']';\n }\n return '[ ' + $join.call(xs, ', ') + ' ]';\n }\n if (isError(obj)) {\n var parts = arrObjKeys(obj, inspect);\n if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {\n return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';\n }\n if (parts.length === 0) { return '[' + String(obj) + ']'; }\n return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';\n }\n if (typeof obj === 'object' && customInspect) {\n if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {\n return utilInspect(obj, { depth: maxDepth - depth });\n } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {\n return obj.inspect();\n }\n }\n if (isMap(obj)) {\n var mapParts = [];\n if (mapForEach) {\n mapForEach.call(obj, function (value, key) {\n mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));\n });\n }\n return collectionOf('Map', mapSize.call(obj), mapParts, indent);\n }\n if (isSet(obj)) {\n var setParts = [];\n if (setForEach) {\n setForEach.call(obj, function (value) {\n setParts.push(inspect(value, obj));\n });\n }\n return collectionOf('Set', setSize.call(obj), setParts, indent);\n }\n if (isWeakMap(obj)) {\n return weakCollectionOf('WeakMap');\n }\n if (isWeakSet(obj)) {\n return weakCollectionOf('WeakSet');\n }\n if (isWeakRef(obj)) {\n return weakCollectionOf('WeakRef');\n }\n if (isNumber(obj)) {\n return markBoxed(inspect(Number(obj)));\n }\n if (isBigInt(obj)) {\n return markBoxed(inspect(bigIntValueOf.call(obj)));\n }\n if (isBoolean(obj)) {\n return markBoxed(booleanValueOf.call(obj));\n }\n if (isString(obj)) {\n return markBoxed(inspect(String(obj)));\n }\n // note: in IE 8, sometimes `global !== window` but both are the prototypes of each other\n /* eslint-env browser */\n if (typeof window !== 'undefined' && obj === window) {\n return '{ [object Window] }';\n }\n if (obj === global) {\n return '{ [object globalThis] }';\n }\n if (!isDate(obj) && !isRegExp(obj)) {\n var ys = arrObjKeys(obj, inspect);\n var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;\n var protoTag = obj instanceof Object ? '' : 'null prototype';\n var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';\n var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';\n var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');\n if (ys.length === 0) { return tag + '{}'; }\n if (indent) {\n return tag + '{' + indentedJoin(ys, indent) + '}';\n }\n return tag + '{ ' + $join.call(ys, ', ') + ' }';\n }\n return String(obj);\n};\n\nfunction wrapQuotes(s, defaultStyle, opts) {\n var quoteChar = (opts.quoteStyle || defaultStyle) === 'double' ? '\"' : \"'\";\n return quoteChar + s + quoteChar;\n}\n\nfunction quote(s) {\n return $replace.call(String(s), /\"/g, '"');\n}\n\nfunction isArray(obj) { return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isDate(obj) { return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isRegExp(obj) { return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isError(obj) { return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isString(obj) { return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isNumber(obj) { return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\nfunction isBoolean(obj) { return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj)); }\n\n// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives\nfunction isSymbol(obj) {\n if (hasShammedSymbols) {\n return obj && typeof obj === 'object' && obj instanceof Symbol;\n }\n if (typeof obj === 'symbol') {\n return true;\n }\n if (!obj || typeof obj !== 'object' || !symToString) {\n return false;\n }\n try {\n symToString.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isBigInt(obj) {\n if (!obj || typeof obj !== 'object' || !bigIntValueOf) {\n return false;\n }\n try {\n bigIntValueOf.call(obj);\n return true;\n } catch (e) {}\n return false;\n}\n\nvar hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };\nfunction has(obj, key) {\n return hasOwn.call(obj, key);\n}\n\nfunction toStr(obj) {\n return objectToString.call(obj);\n}\n\nfunction nameOf(f) {\n if (f.name) { return f.name; }\n var m = $match.call(functionToString.call(f), /^function\\s*([\\w$]+)/);\n if (m) { return m[1]; }\n return null;\n}\n\nfunction indexOf(xs, x) {\n if (xs.indexOf) { return xs.indexOf(x); }\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) { return i; }\n }\n return -1;\n}\n\nfunction isMap(x) {\n if (!mapSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n mapSize.call(x);\n try {\n setSize.call(x);\n } catch (s) {\n return true;\n }\n return x instanceof Map; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakMap(x) {\n if (!weakMapHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakMapHas.call(x, weakMapHas);\n try {\n weakSetHas.call(x, weakSetHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakMap; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakRef(x) {\n if (!weakRefDeref || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakRefDeref.call(x);\n return true;\n } catch (e) {}\n return false;\n}\n\nfunction isSet(x) {\n if (!setSize || !x || typeof x !== 'object') {\n return false;\n }\n try {\n setSize.call(x);\n try {\n mapSize.call(x);\n } catch (m) {\n return true;\n }\n return x instanceof Set; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isWeakSet(x) {\n if (!weakSetHas || !x || typeof x !== 'object') {\n return false;\n }\n try {\n weakSetHas.call(x, weakSetHas);\n try {\n weakMapHas.call(x, weakMapHas);\n } catch (s) {\n return true;\n }\n return x instanceof WeakSet; // core-js workaround, pre-v2.5.0\n } catch (e) {}\n return false;\n}\n\nfunction isElement(x) {\n if (!x || typeof x !== 'object') { return false; }\n if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {\n return true;\n }\n return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';\n}\n\nfunction inspectString(str, opts) {\n if (str.length > opts.maxStringLength) {\n var remaining = str.length - opts.maxStringLength;\n var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');\n return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;\n }\n // eslint-disable-next-line no-control-regex\n var s = $replace.call($replace.call(str, /(['\\\\])/g, '\\\\$1'), /[\\x00-\\x1f]/g, lowbyte);\n return wrapQuotes(s, 'single', opts);\n}\n\nfunction lowbyte(c) {\n var n = c.charCodeAt(0);\n var x = {\n 8: 'b',\n 9: 't',\n 10: 'n',\n 12: 'f',\n 13: 'r'\n }[n];\n if (x) { return '\\\\' + x; }\n return '\\\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));\n}\n\nfunction markBoxed(str) {\n return 'Object(' + str + ')';\n}\n\nfunction weakCollectionOf(type) {\n return type + ' { ? }';\n}\n\nfunction collectionOf(type, size, entries, indent) {\n var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');\n return type + ' (' + size + ') {' + joinedEntries + '}';\n}\n\nfunction singleLineValues(xs) {\n for (var i = 0; i < xs.length; i++) {\n if (indexOf(xs[i], '\\n') >= 0) {\n return false;\n }\n }\n return true;\n}\n\nfunction getIndent(opts, depth) {\n var baseIndent;\n if (opts.indent === '\\t') {\n baseIndent = '\\t';\n } else if (typeof opts.indent === 'number' && opts.indent > 0) {\n baseIndent = $join.call(Array(opts.indent + 1), ' ');\n } else {\n return null;\n }\n return {\n base: baseIndent,\n prev: $join.call(Array(depth + 1), baseIndent)\n };\n}\n\nfunction indentedJoin(xs, indent) {\n if (xs.length === 0) { return ''; }\n var lineJoiner = '\\n' + indent.prev + indent.base;\n return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\\n' + indent.prev;\n}\n\nfunction arrObjKeys(obj, inspect) {\n var isArr = isArray(obj);\n var xs = [];\n if (isArr) {\n xs.length = obj.length;\n for (var i = 0; i < obj.length; i++) {\n xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';\n }\n }\n var syms = typeof gOPS === 'function' ? gOPS(obj) : [];\n var symMap;\n if (hasShammedSymbols) {\n symMap = {};\n for (var k = 0; k < syms.length; k++) {\n symMap['$' + syms[k]] = syms[k];\n }\n }\n\n for (var key in obj) { // eslint-disable-line no-restricted-syntax\n if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue\n if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {\n // this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section\n continue; // eslint-disable-line no-restricted-syntax, no-continue\n } else if ($test.call(/[^\\w$]/, key)) {\n xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));\n } else {\n xs.push(key + ': ' + inspect(obj[key], obj));\n }\n }\n if (typeof gOPS === 'function') {\n for (var j = 0; j < syms.length; j++) {\n if (isEnumerable.call(obj, syms[j])) {\n xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));\n }\n }\n }\n return xs;\n}\n","'use strict';\n\nvar numberIsNaN = function (value) {\n\treturn value !== value;\n};\n\nmodule.exports = function is(a, b) {\n\tif (a === 0 && b === 0) {\n\t\treturn 1 / a === 1 / b;\n\t}\n\tif (a === b) {\n\t\treturn true;\n\t}\n\tif (numberIsNaN(a) && numberIsNaN(b)) {\n\t\treturn true;\n\t}\n\treturn false;\n};\n\n","'use strict';\n\nvar define = require('define-properties');\nvar callBind = require('call-bind');\n\nvar implementation = require('./implementation');\nvar getPolyfill = require('./polyfill');\nvar shim = require('./shim');\n\nvar polyfill = callBind(getPolyfill(), Object);\n\ndefine(polyfill, {\n\tgetPolyfill: getPolyfill,\n\timplementation: implementation,\n\tshim: shim\n});\n\nmodule.exports = polyfill;\n","'use strict';\n\nvar implementation = require('./implementation');\n\nmodule.exports = function getPolyfill() {\n\treturn typeof Object.is === 'function' ? Object.is : implementation;\n};\n","'use strict';\n\nvar getPolyfill = require('./polyfill');\nvar define = require('define-properties');\n\nmodule.exports = function shimObjectIs() {\n\tvar polyfill = getPolyfill();\n\tdefine(Object, { is: polyfill }, {\n\t\tis: function testObjectIs() {\n\t\t\treturn Object.is !== polyfill;\n\t\t}\n\t});\n\treturn polyfill;\n};\n","'use strict';\n\nvar keysShim;\nif (!Object.keys) {\n\t// modified from https://github.com/es-shims/es5-shim\n\tvar has = Object.prototype.hasOwnProperty;\n\tvar toStr = Object.prototype.toString;\n\tvar isArgs = require('./isArguments'); // eslint-disable-line global-require\n\tvar isEnumerable = Object.prototype.propertyIsEnumerable;\n\tvar hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString');\n\tvar hasProtoEnumBug = isEnumerable.call(function () {}, 'prototype');\n\tvar dontEnums = [\n\t\t'toString',\n\t\t'toLocaleString',\n\t\t'valueOf',\n\t\t'hasOwnProperty',\n\t\t'isPrototypeOf',\n\t\t'propertyIsEnumerable',\n\t\t'constructor'\n\t];\n\tvar equalsConstructorPrototype = function (o) {\n\t\tvar ctor = o.constructor;\n\t\treturn ctor && ctor.prototype === o;\n\t};\n\tvar excludedKeys = {\n\t\t$applicationCache: true,\n\t\t$console: true,\n\t\t$external: true,\n\t\t$frame: true,\n\t\t$frameElement: true,\n\t\t$frames: true,\n\t\t$innerHeight: true,\n\t\t$innerWidth: true,\n\t\t$onmozfullscreenchange: true,\n\t\t$onmozfullscreenerror: true,\n\t\t$outerHeight: true,\n\t\t$outerWidth: true,\n\t\t$pageXOffset: true,\n\t\t$pageYOffset: true,\n\t\t$parent: true,\n\t\t$scrollLeft: true,\n\t\t$scrollTop: true,\n\t\t$scrollX: true,\n\t\t$scrollY: true,\n\t\t$self: true,\n\t\t$webkitIndexedDB: true,\n\t\t$webkitStorageInfo: true,\n\t\t$window: true\n\t};\n\tvar hasAutomationEqualityBug = (function () {\n\t\t/* global window */\n\t\tif (typeof window === 'undefined') { return false; }\n\t\tfor (var k in window) {\n\t\t\ttry {\n\t\t\t\tif (!excludedKeys['$' + k] && has.call(window, k) && window[k] !== null && typeof window[k] === 'object') {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tequalsConstructorPrototype(window[k]);\n\t\t\t\t\t} catch (e) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (e) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}());\n\tvar equalsConstructorPrototypeIfNotBuggy = function (o) {\n\t\t/* global window */\n\t\tif (typeof window === 'undefined' || !hasAutomationEqualityBug) {\n\t\t\treturn equalsConstructorPrototype(o);\n\t\t}\n\t\ttry {\n\t\t\treturn equalsConstructorPrototype(o);\n\t\t} catch (e) {\n\t\t\treturn false;\n\t\t}\n\t};\n\n\tkeysShim = function keys(object) {\n\t\tvar isObject = object !== null && typeof object === 'object';\n\t\tvar isFunction = toStr.call(object) === '[object Function]';\n\t\tvar isArguments = isArgs(object);\n\t\tvar isString = isObject && toStr.call(object) === '[object String]';\n\t\tvar theKeys = [];\n\n\t\tif (!isObject && !isFunction && !isArguments) {\n\t\t\tthrow new TypeError('Object.keys called on a non-object');\n\t\t}\n\n\t\tvar skipProto = hasProtoEnumBug && isFunction;\n\t\tif (isString && object.length > 0 && !has.call(object, 0)) {\n\t\t\tfor (var i = 0; i < object.length; ++i) {\n\t\t\t\ttheKeys.push(String(i));\n\t\t\t}\n\t\t}\n\n\t\tif (isArguments && object.length > 0) {\n\t\t\tfor (var j = 0; j < object.length; ++j) {\n\t\t\t\ttheKeys.push(String(j));\n\t\t\t}\n\t\t} else {\n\t\t\tfor (var name in object) {\n\t\t\t\tif (!(skipProto && name === 'prototype') && has.call(object, name)) {\n\t\t\t\t\ttheKeys.push(String(name));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (hasDontEnumBug) {\n\t\t\tvar skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);\n\n\t\t\tfor (var k = 0; k < dontEnums.length; ++k) {\n\t\t\t\tif (!(skipConstructor && dontEnums[k] === 'constructor') && has.call(object, dontEnums[k])) {\n\t\t\t\t\ttheKeys.push(dontEnums[k]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn theKeys;\n\t};\n}\nmodule.exports = keysShim;\n","'use strict';\n\nvar slice = Array.prototype.slice;\nvar isArgs = require('./isArguments');\n\nvar origKeys = Object.keys;\nvar keysShim = origKeys ? function keys(o) { return origKeys(o); } : require('./implementation');\n\nvar originalKeys = Object.keys;\n\nkeysShim.shim = function shimObjectKeys() {\n\tif (Object.keys) {\n\t\tvar keysWorksWithArguments = (function () {\n\t\t\t// Safari 5.0 bug\n\t\t\tvar args = Object.keys(arguments);\n\t\t\treturn args && args.length === arguments.length;\n\t\t}(1, 2));\n\t\tif (!keysWorksWithArguments) {\n\t\t\tObject.keys = function keys(object) { // eslint-disable-line func-name-matching\n\t\t\t\tif (isArgs(object)) {\n\t\t\t\t\treturn originalKeys(slice.call(object));\n\t\t\t\t}\n\t\t\t\treturn originalKeys(object);\n\t\t\t};\n\t\t}\n\t} else {\n\t\tObject.keys = keysShim;\n\t}\n\treturn Object.keys || keysShim;\n};\n\nmodule.exports = keysShim;\n","'use strict';\n\nvar toStr = Object.prototype.toString;\n\nmodule.exports = function isArguments(value) {\n\tvar str = toStr.call(value);\n\tvar isArgs = str === '[object Arguments]';\n\tif (!isArgs) {\n\t\tisArgs = str !== '[object Array]' &&\n\t\t\tvalue !== null &&\n\t\t\ttypeof value === 'object' &&\n\t\t\ttypeof value.length === 'number' &&\n\t\t\tvalue.length >= 0 &&\n\t\t\ttoStr.call(value.callee) === '[object Function]';\n\t}\n\treturn isArgs;\n};\n","'use strict';\n\n// modified from https://github.com/es-shims/es6-shim\nvar objectKeys = require('object-keys');\nvar hasSymbols = require('has-symbols/shams')();\nvar callBound = require('call-bind/callBound');\nvar toObject = Object;\nvar $push = callBound('Array.prototype.push');\nvar $propIsEnumerable = callBound('Object.prototype.propertyIsEnumerable');\nvar originalGetSymbols = hasSymbols ? Object.getOwnPropertySymbols : null;\n\n// eslint-disable-next-line no-unused-vars\nmodule.exports = function assign(target, source1) {\n\tif (target == null) { throw new TypeError('target must be an object'); }\n\tvar to = toObject(target); // step 1\n\tif (arguments.length === 1) {\n\t\treturn to; // step 2\n\t}\n\tfor (var s = 1; s < arguments.length; ++s) {\n\t\tvar from = toObject(arguments[s]); // step 3.a.i\n\n\t\t// step 3.a.ii:\n\t\tvar keys = objectKeys(from);\n\t\tvar getSymbols = hasSymbols && (Object.getOwnPropertySymbols || originalGetSymbols);\n\t\tif (getSymbols) {\n\t\t\tvar syms = getSymbols(from);\n\t\t\tfor (var j = 0; j < syms.length; ++j) {\n\t\t\t\tvar key = syms[j];\n\t\t\t\tif ($propIsEnumerable(from, key)) {\n\t\t\t\t\t$push(keys, key);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// step 3.a.iii:\n\t\tfor (var i = 0; i < keys.length; ++i) {\n\t\t\tvar nextKey = keys[i];\n\t\t\tif ($propIsEnumerable(from, nextKey)) { // step 3.a.iii.2\n\t\t\t\tvar propValue = from[nextKey]; // step 3.a.iii.2.a\n\t\t\t\tto[nextKey] = propValue; // step 3.a.iii.2.b\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to; // step 4\n};\n","'use strict';\n\nvar implementation = require('./implementation');\n\nvar lacksProperEnumerationOrder = function () {\n\tif (!Object.assign) {\n\t\treturn false;\n\t}\n\t/*\n\t * v8, specifically in node 4.x, has a bug with incorrect property enumeration order\n\t * note: this does not detect the bug unless there's 20 characters\n\t */\n\tvar str = 'abcdefghijklmnopqrst';\n\tvar letters = str.split('');\n\tvar map = {};\n\tfor (var i = 0; i < letters.length; ++i) {\n\t\tmap[letters[i]] = letters[i];\n\t}\n\tvar obj = Object.assign({}, map);\n\tvar actual = '';\n\tfor (var k in obj) {\n\t\tactual += k;\n\t}\n\treturn str !== actual;\n};\n\nvar assignHasPendingExceptions = function () {\n\tif (!Object.assign || !Object.preventExtensions) {\n\t\treturn false;\n\t}\n\t/*\n\t * Firefox 37 still has \"pending exception\" logic in its Object.assign implementation,\n\t * which is 72% slower than our shim, and Firefox 40's native implementation.\n\t */\n\tvar thrower = Object.preventExtensions({ 1: 2 });\n\ttry {\n\t\tObject.assign(thrower, 'xy');\n\t} catch (e) {\n\t\treturn thrower[1] === 'y';\n\t}\n\treturn false;\n};\n\nmodule.exports = function getPolyfill() {\n\tif (!Object.assign) {\n\t\treturn implementation;\n\t}\n\tif (lacksProperEnumerationOrder()) {\n\t\treturn implementation;\n\t}\n\tif (assignHasPendingExceptions()) {\n\t\treturn implementation;\n\t}\n\treturn Object.assign;\n};\n","'use strict';\n\n/** @type {import('.')} */\nmodule.exports = [\n\t'Float32Array',\n\t'Float64Array',\n\t'Int8Array',\n\t'Int16Array',\n\t'Int32Array',\n\t'Uint8Array',\n\t'Uint8ClampedArray',\n\t'Uint16Array',\n\t'Uint32Array',\n\t'BigInt64Array',\n\t'BigUint64Array'\n];\n","// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n","'use strict'\n\n// limit of Crypto.getRandomValues()\n// https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues\nvar MAX_BYTES = 65536\n\n// Node supports requesting up to this number of bytes\n// https://github.com/nodejs/node/blob/master/lib/internal/crypto/random.js#L48\nvar MAX_UINT32 = 4294967295\n\nfunction oldBrowser () {\n throw new Error('Secure random number generation is not supported by this browser.\\nUse Chrome, Firefox or Internet Explorer 11')\n}\n\nvar Buffer = require('safe-buffer').Buffer\nvar crypto = global.crypto || global.msCrypto\n\nif (crypto && crypto.getRandomValues) {\n module.exports = randomBytes\n} else {\n module.exports = oldBrowser\n}\n\nfunction randomBytes (size, cb) {\n // phantomjs needs to throw\n if (size > MAX_UINT32) throw new RangeError('requested too many random bytes')\n\n var bytes = Buffer.allocUnsafe(size)\n\n if (size > 0) { // getRandomValues fails on IE if size == 0\n if (size > MAX_BYTES) { // this is the max bytes crypto.getRandomValues\n // can do at once see https://developer.mozilla.org/en-US/docs/Web/API/window.crypto.getRandomValues\n for (var generated = 0; generated < size; generated += MAX_BYTES) {\n // buffer.slice automatically checks if the end is past the end of\n // the buffer so we don't have to here\n crypto.getRandomValues(bytes.slice(generated, generated + MAX_BYTES))\n }\n } else {\n crypto.getRandomValues(bytes)\n }\n }\n\n if (typeof cb === 'function') {\n return process.nextTick(function () {\n cb(null, bytes)\n })\n }\n\n return bytes\n}\n","'use strict';\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nvar codes = {};\n\nfunction createErrorType(code, message, Base) {\n if (!Base) {\n Base = Error;\n }\n\n function getMessage(arg1, arg2, arg3) {\n if (typeof message === 'string') {\n return message;\n } else {\n return message(arg1, arg2, arg3);\n }\n }\n\n var NodeError =\n /*#__PURE__*/\n function (_Base) {\n _inheritsLoose(NodeError, _Base);\n\n function NodeError(arg1, arg2, arg3) {\n return _Base.call(this, getMessage(arg1, arg2, arg3)) || this;\n }\n\n return NodeError;\n }(Base);\n\n NodeError.prototype.name = Base.name;\n NodeError.prototype.code = code;\n codes[code] = NodeError;\n} // https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js\n\n\nfunction oneOf(expected, thing) {\n if (Array.isArray(expected)) {\n var len = expected.length;\n expected = expected.map(function (i) {\n return String(i);\n });\n\n if (len > 2) {\n return \"one of \".concat(thing, \" \").concat(expected.slice(0, len - 1).join(', '), \", or \") + expected[len - 1];\n } else if (len === 2) {\n return \"one of \".concat(thing, \" \").concat(expected[0], \" or \").concat(expected[1]);\n } else {\n return \"of \".concat(thing, \" \").concat(expected[0]);\n }\n } else {\n return \"of \".concat(thing, \" \").concat(String(expected));\n }\n} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith\n\n\nfunction startsWith(str, search, pos) {\n return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search;\n} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith\n\n\nfunction endsWith(str, search, this_len) {\n if (this_len === undefined || this_len > str.length) {\n this_len = str.length;\n }\n\n return str.substring(this_len - search.length, this_len) === search;\n} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes\n\n\nfunction includes(str, search, start) {\n if (typeof start !== 'number') {\n start = 0;\n }\n\n if (start + search.length > str.length) {\n return false;\n } else {\n return str.indexOf(search, start) !== -1;\n }\n}\n\ncreateErrorType('ERR_INVALID_OPT_VALUE', function (name, value) {\n return 'The value \"' + value + '\" is invalid for option \"' + name + '\"';\n}, TypeError);\ncreateErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) {\n // determiner: 'must be' or 'must not be'\n var determiner;\n\n if (typeof expected === 'string' && startsWith(expected, 'not ')) {\n determiner = 'must not be';\n expected = expected.replace(/^not /, '');\n } else {\n determiner = 'must be';\n }\n\n var msg;\n\n if (endsWith(name, ' argument')) {\n // For cases like 'first argument'\n msg = \"The \".concat(name, \" \").concat(determiner, \" \").concat(oneOf(expected, 'type'));\n } else {\n var type = includes(name, '.') ? 'property' : 'argument';\n msg = \"The \\\"\".concat(name, \"\\\" \").concat(type, \" \").concat(determiner, \" \").concat(oneOf(expected, 'type'));\n }\n\n msg += \". Received type \".concat(typeof actual);\n return msg;\n}, TypeError);\ncreateErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF');\ncreateErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (name) {\n return 'The ' + name + ' method is not implemented';\n});\ncreateErrorType('ERR_STREAM_PREMATURE_CLOSE', 'Premature close');\ncreateErrorType('ERR_STREAM_DESTROYED', function (name) {\n return 'Cannot call ' + name + ' after a stream was destroyed';\n});\ncreateErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times');\ncreateErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable');\ncreateErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end');\ncreateErrorType('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError);\ncreateErrorType('ERR_UNKNOWN_ENCODING', function (arg) {\n return 'Unknown encoding: ' + arg;\n}, TypeError);\ncreateErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event');\nmodule.exports.codes = codes;\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a duplex stream is just a stream that is both readable and writable.\n// Since JS doesn't have multiple prototypal inheritance, this class\n// prototypally inherits from Readable, and then parasitically from\n// Writable.\n\n'use strict';\n\n/**/\nvar objectKeys = Object.keys || function (obj) {\n var keys = [];\n for (var key in obj) keys.push(key);\n return keys;\n};\n/**/\n\nmodule.exports = Duplex;\nvar Readable = require('./_stream_readable');\nvar Writable = require('./_stream_writable');\nrequire('inherits')(Duplex, Readable);\n{\n // Allow the keys array to be GC'ed.\n var keys = objectKeys(Writable.prototype);\n for (var v = 0; v < keys.length; v++) {\n var method = keys[v];\n if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method];\n }\n}\nfunction Duplex(options) {\n if (!(this instanceof Duplex)) return new Duplex(options);\n Readable.call(this, options);\n Writable.call(this, options);\n this.allowHalfOpen = true;\n if (options) {\n if (options.readable === false) this.readable = false;\n if (options.writable === false) this.writable = false;\n if (options.allowHalfOpen === false) {\n this.allowHalfOpen = false;\n this.once('end', onend);\n }\n }\n}\nObject.defineProperty(Duplex.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.highWaterMark;\n }\n});\nObject.defineProperty(Duplex.prototype, 'writableBuffer', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState && this._writableState.getBuffer();\n }\n});\nObject.defineProperty(Duplex.prototype, 'writableLength', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.length;\n }\n});\n\n// the no-half-open enforcer\nfunction onend() {\n // If the writable side ended, then we're ok.\n if (this._writableState.ended) return;\n\n // no more data can be written.\n // But allow more writes to happen in this tick.\n process.nextTick(onEndNT, this);\n}\nfunction onEndNT(self) {\n self.end();\n}\nObject.defineProperty(Duplex.prototype, 'destroyed', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n if (this._readableState === undefined || this._writableState === undefined) {\n return false;\n }\n return this._readableState.destroyed && this._writableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (this._readableState === undefined || this._writableState === undefined) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n this._writableState.destroyed = value;\n }\n});","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a passthrough stream.\n// basically just the most minimal sort of Transform stream.\n// Every written chunk gets output as-is.\n\n'use strict';\n\nmodule.exports = PassThrough;\nvar Transform = require('./_stream_transform');\nrequire('inherits')(PassThrough, Transform);\nfunction PassThrough(options) {\n if (!(this instanceof PassThrough)) return new PassThrough(options);\n Transform.call(this, options);\n}\nPassThrough.prototype._transform = function (chunk, encoding, cb) {\n cb(null, chunk);\n};","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\nmodule.exports = Readable;\n\n/**/\nvar Duplex;\n/**/\n\nReadable.ReadableState = ReadableState;\n\n/**/\nvar EE = require('events').EventEmitter;\nvar EElistenerCount = function EElistenerCount(emitter, type) {\n return emitter.listeners(type).length;\n};\n/**/\n\n/**/\nvar Stream = require('./internal/streams/stream');\n/**/\n\nvar Buffer = require('buffer').Buffer;\nvar OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {};\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\n\n/**/\nvar debugUtil = require('util');\nvar debug;\nif (debugUtil && debugUtil.debuglog) {\n debug = debugUtil.debuglog('stream');\n} else {\n debug = function debug() {};\n}\n/**/\n\nvar BufferList = require('./internal/streams/buffer_list');\nvar destroyImpl = require('./internal/streams/destroy');\nvar _require = require('./internal/streams/state'),\n getHighWaterMark = _require.getHighWaterMark;\nvar _require$codes = require('../errors').codes,\n ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,\n ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF,\n ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\n ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;\n\n// Lazy loaded to improve the startup performance.\nvar StringDecoder;\nvar createReadableStreamAsyncIterator;\nvar from;\nrequire('inherits')(Readable, Stream);\nvar errorOrDestroy = destroyImpl.errorOrDestroy;\nvar kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume'];\nfunction prependListener(emitter, event, fn) {\n // Sadly this is not cacheable as some libraries bundle their own\n // event emitter implementation with them.\n if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn);\n\n // This is a hack to make sure that our error handler is attached before any\n // userland ones. NEVER DO THIS. This is here only because this code needs\n // to continue to work with older versions of Node.js that do not include\n // the prependListener() method. The goal is to eventually remove this hack.\n if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]];\n}\nfunction ReadableState(options, stream, isDuplex) {\n Duplex = Duplex || require('./_stream_duplex');\n options = options || {};\n\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream.\n // These options can be provided separately as readableXXX and writableXXX.\n if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex;\n\n // object stream flag. Used to make read(n) ignore n and to\n // make all the buffer merging and length checks go away\n this.objectMode = !!options.objectMode;\n if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode;\n\n // the point at which it stops calling _read() to fill the buffer\n // Note: 0 is a valid value, means \"don't call _read preemptively ever\"\n this.highWaterMark = getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex);\n\n // A linked list is used to store data chunks instead of an array because the\n // linked list can remove elements from the beginning faster than\n // array.shift()\n this.buffer = new BufferList();\n this.length = 0;\n this.pipes = null;\n this.pipesCount = 0;\n this.flowing = null;\n this.ended = false;\n this.endEmitted = false;\n this.reading = false;\n\n // a flag to be able to tell if the event 'readable'/'data' is emitted\n // immediately, or on a later tick. We set this to true at first, because\n // any actions that shouldn't happen until \"later\" should generally also\n // not happen before the first read call.\n this.sync = true;\n\n // whenever we return null, then we set a flag to say\n // that we're awaiting a 'readable' event emission.\n this.needReadable = false;\n this.emittedReadable = false;\n this.readableListening = false;\n this.resumeScheduled = false;\n this.paused = true;\n\n // Should close be emitted on destroy. Defaults to true.\n this.emitClose = options.emitClose !== false;\n\n // Should .destroy() be called after 'end' (and potentially 'finish')\n this.autoDestroy = !!options.autoDestroy;\n\n // has it been destroyed\n this.destroyed = false;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // the number of writers that are awaiting a drain event in .pipe()s\n this.awaitDrain = 0;\n\n // if true, a maybeReadMore has been scheduled\n this.readingMore = false;\n this.decoder = null;\n this.encoding = null;\n if (options.encoding) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n this.decoder = new StringDecoder(options.encoding);\n this.encoding = options.encoding;\n }\n}\nfunction Readable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n if (!(this instanceof Readable)) return new Readable(options);\n\n // Checking for a Stream.Duplex instance is faster here instead of inside\n // the ReadableState constructor, at least with V8 6.5\n var isDuplex = this instanceof Duplex;\n this._readableState = new ReadableState(options, this, isDuplex);\n\n // legacy\n this.readable = true;\n if (options) {\n if (typeof options.read === 'function') this._read = options.read;\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n }\n Stream.call(this);\n}\nObject.defineProperty(Readable.prototype, 'destroyed', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n if (this._readableState === undefined) {\n return false;\n }\n return this._readableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._readableState) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._readableState.destroyed = value;\n }\n});\nReadable.prototype.destroy = destroyImpl.destroy;\nReadable.prototype._undestroy = destroyImpl.undestroy;\nReadable.prototype._destroy = function (err, cb) {\n cb(err);\n};\n\n// Manually shove something into the read() buffer.\n// This returns true if the highWaterMark has not been hit yet,\n// similar to how Writable.write() returns true if you should\n// write() some more.\nReadable.prototype.push = function (chunk, encoding) {\n var state = this._readableState;\n var skipChunkCheck;\n if (!state.objectMode) {\n if (typeof chunk === 'string') {\n encoding = encoding || state.defaultEncoding;\n if (encoding !== state.encoding) {\n chunk = Buffer.from(chunk, encoding);\n encoding = '';\n }\n skipChunkCheck = true;\n }\n } else {\n skipChunkCheck = true;\n }\n return readableAddChunk(this, chunk, encoding, false, skipChunkCheck);\n};\n\n// Unshift should *always* be something directly out of read()\nReadable.prototype.unshift = function (chunk) {\n return readableAddChunk(this, chunk, null, true, false);\n};\nfunction readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) {\n debug('readableAddChunk', chunk);\n var state = stream._readableState;\n if (chunk === null) {\n state.reading = false;\n onEofChunk(stream, state);\n } else {\n var er;\n if (!skipChunkCheck) er = chunkInvalid(state, chunk);\n if (er) {\n errorOrDestroy(stream, er);\n } else if (state.objectMode || chunk && chunk.length > 0) {\n if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n if (addToFront) {\n if (state.endEmitted) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());else addChunk(stream, state, chunk, true);\n } else if (state.ended) {\n errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF());\n } else if (state.destroyed) {\n return false;\n } else {\n state.reading = false;\n if (state.decoder && !encoding) {\n chunk = state.decoder.write(chunk);\n if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state);\n } else {\n addChunk(stream, state, chunk, false);\n }\n }\n } else if (!addToFront) {\n state.reading = false;\n maybeReadMore(stream, state);\n }\n }\n\n // We can push more data if we are below the highWaterMark.\n // Also, if we have no data yet, we can stand some more bytes.\n // This is to work around cases where hwm=0, such as the repl.\n return !state.ended && (state.length < state.highWaterMark || state.length === 0);\n}\nfunction addChunk(stream, state, chunk, addToFront) {\n if (state.flowing && state.length === 0 && !state.sync) {\n state.awaitDrain = 0;\n stream.emit('data', chunk);\n } else {\n // update the buffer info.\n state.length += state.objectMode ? 1 : chunk.length;\n if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk);\n if (state.needReadable) emitReadable(stream);\n }\n maybeReadMore(stream, state);\n}\nfunction chunkInvalid(state, chunk) {\n var er;\n if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) {\n er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk);\n }\n return er;\n}\nReadable.prototype.isPaused = function () {\n return this._readableState.flowing === false;\n};\n\n// backwards compatibility.\nReadable.prototype.setEncoding = function (enc) {\n if (!StringDecoder) StringDecoder = require('string_decoder/').StringDecoder;\n var decoder = new StringDecoder(enc);\n this._readableState.decoder = decoder;\n // If setEncoding(null), decoder.encoding equals utf8\n this._readableState.encoding = this._readableState.decoder.encoding;\n\n // Iterate over current buffer to convert already stored Buffers:\n var p = this._readableState.buffer.head;\n var content = '';\n while (p !== null) {\n content += decoder.write(p.data);\n p = p.next;\n }\n this._readableState.buffer.clear();\n if (content !== '') this._readableState.buffer.push(content);\n this._readableState.length = content.length;\n return this;\n};\n\n// Don't raise the hwm > 1GB\nvar MAX_HWM = 0x40000000;\nfunction computeNewHighWaterMark(n) {\n if (n >= MAX_HWM) {\n // TODO(ronag): Throw ERR_VALUE_OUT_OF_RANGE.\n n = MAX_HWM;\n } else {\n // Get the next highest power of 2 to prevent increasing hwm excessively in\n // tiny amounts\n n--;\n n |= n >>> 1;\n n |= n >>> 2;\n n |= n >>> 4;\n n |= n >>> 8;\n n |= n >>> 16;\n n++;\n }\n return n;\n}\n\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction howMuchToRead(n, state) {\n if (n <= 0 || state.length === 0 && state.ended) return 0;\n if (state.objectMode) return 1;\n if (n !== n) {\n // Only flow one buffer at a time\n if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length;\n }\n // If we're asking for more than the current hwm, then raise the hwm.\n if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n);\n if (n <= state.length) return n;\n // Don't have enough\n if (!state.ended) {\n state.needReadable = true;\n return 0;\n }\n return state.length;\n}\n\n// you can override either this method, or the async _read(n) below.\nReadable.prototype.read = function (n) {\n debug('read', n);\n n = parseInt(n, 10);\n var state = this._readableState;\n var nOrig = n;\n if (n !== 0) state.emittedReadable = false;\n\n // if we're doing read(0) to trigger a readable event, but we\n // already have a bunch of data in the buffer, then just trigger\n // the 'readable' event and move on.\n if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) {\n debug('read: emitReadable', state.length, state.ended);\n if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this);\n return null;\n }\n n = howMuchToRead(n, state);\n\n // if we've ended, and we're now clear, then finish it up.\n if (n === 0 && state.ended) {\n if (state.length === 0) endReadable(this);\n return null;\n }\n\n // All the actual chunk generation logic needs to be\n // *below* the call to _read. The reason is that in certain\n // synthetic stream cases, such as passthrough streams, _read\n // may be a completely synchronous operation which may change\n // the state of the read buffer, providing enough data when\n // before there was *not* enough.\n //\n // So, the steps are:\n // 1. Figure out what the state of things will be after we do\n // a read from the buffer.\n //\n // 2. If that resulting state will trigger a _read, then call _read.\n // Note that this may be asynchronous, or synchronous. Yes, it is\n // deeply ugly to write APIs this way, but that still doesn't mean\n // that the Readable class should behave improperly, as streams are\n // designed to be sync/async agnostic.\n // Take note if the _read call is sync or async (ie, if the read call\n // has returned yet), so that we know whether or not it's safe to emit\n // 'readable' etc.\n //\n // 3. Actually pull the requested chunks out of the buffer and return.\n\n // if we need a readable event, then we need to do some reading.\n var doRead = state.needReadable;\n debug('need readable', doRead);\n\n // if we currently have less than the highWaterMark, then also read some\n if (state.length === 0 || state.length - n < state.highWaterMark) {\n doRead = true;\n debug('length less than watermark', doRead);\n }\n\n // however, if we've ended, then there's no point, and if we're already\n // reading, then it's unnecessary.\n if (state.ended || state.reading) {\n doRead = false;\n debug('reading or ended', doRead);\n } else if (doRead) {\n debug('do read');\n state.reading = true;\n state.sync = true;\n // if the length is currently zero, then we *need* a readable event.\n if (state.length === 0) state.needReadable = true;\n // call internal read method\n this._read(state.highWaterMark);\n state.sync = false;\n // If _read pushed data synchronously, then `reading` will be false,\n // and we need to re-evaluate how much data we can return to the user.\n if (!state.reading) n = howMuchToRead(nOrig, state);\n }\n var ret;\n if (n > 0) ret = fromList(n, state);else ret = null;\n if (ret === null) {\n state.needReadable = state.length <= state.highWaterMark;\n n = 0;\n } else {\n state.length -= n;\n state.awaitDrain = 0;\n }\n if (state.length === 0) {\n // If we have nothing in the buffer, then we want to know\n // as soon as we *do* get something into the buffer.\n if (!state.ended) state.needReadable = true;\n\n // If we tried to read() past the EOF, then emit end on the next tick.\n if (nOrig !== n && state.ended) endReadable(this);\n }\n if (ret !== null) this.emit('data', ret);\n return ret;\n};\nfunction onEofChunk(stream, state) {\n debug('onEofChunk');\n if (state.ended) return;\n if (state.decoder) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) {\n state.buffer.push(chunk);\n state.length += state.objectMode ? 1 : chunk.length;\n }\n }\n state.ended = true;\n if (state.sync) {\n // if we are sync, wait until next tick to emit the data.\n // Otherwise we risk emitting data in the flow()\n // the readable code triggers during a read() call\n emitReadable(stream);\n } else {\n // emit 'readable' now to make sure it gets picked up.\n state.needReadable = false;\n if (!state.emittedReadable) {\n state.emittedReadable = true;\n emitReadable_(stream);\n }\n }\n}\n\n// Don't emit readable right away in sync mode, because this can trigger\n// another read() call => stack overflow. This way, it might trigger\n// a nextTick recursion warning, but that's not so bad.\nfunction emitReadable(stream) {\n var state = stream._readableState;\n debug('emitReadable', state.needReadable, state.emittedReadable);\n state.needReadable = false;\n if (!state.emittedReadable) {\n debug('emitReadable', state.flowing);\n state.emittedReadable = true;\n process.nextTick(emitReadable_, stream);\n }\n}\nfunction emitReadable_(stream) {\n var state = stream._readableState;\n debug('emitReadable_', state.destroyed, state.length, state.ended);\n if (!state.destroyed && (state.length || state.ended)) {\n stream.emit('readable');\n state.emittedReadable = false;\n }\n\n // The stream needs another readable event if\n // 1. It is not flowing, as the flow mechanism will take\n // care of it.\n // 2. It is not ended.\n // 3. It is below the highWaterMark, so we can schedule\n // another readable later.\n state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark;\n flow(stream);\n}\n\n// at this point, the user has presumably seen the 'readable' event,\n// and called read() to consume some data. that may have triggered\n// in turn another _read(n) call, in which case reading = true if\n// it's in progress.\n// However, if we're not ended, or reading, and the length < hwm,\n// then go ahead and try to read some more preemptively.\nfunction maybeReadMore(stream, state) {\n if (!state.readingMore) {\n state.readingMore = true;\n process.nextTick(maybeReadMore_, stream, state);\n }\n}\nfunction maybeReadMore_(stream, state) {\n // Attempt to read more data if we should.\n //\n // The conditions for reading more data are (one of):\n // - Not enough data buffered (state.length < state.highWaterMark). The loop\n // is responsible for filling the buffer with enough data if such data\n // is available. If highWaterMark is 0 and we are not in the flowing mode\n // we should _not_ attempt to buffer any extra data. We'll get more data\n // when the stream consumer calls read() instead.\n // - No data in the buffer, and the stream is in flowing mode. In this mode\n // the loop below is responsible for ensuring read() is called. Failing to\n // call read here would abort the flow and there's no other mechanism for\n // continuing the flow if the stream consumer has just subscribed to the\n // 'data' event.\n //\n // In addition to the above conditions to keep reading data, the following\n // conditions prevent the data from being read:\n // - The stream has ended (state.ended).\n // - There is already a pending 'read' operation (state.reading). This is a\n // case where the the stream has called the implementation defined _read()\n // method, but they are processing the call asynchronously and have _not_\n // called push() with new data. In this case we skip performing more\n // read()s. The execution ends in this method again after the _read() ends\n // up calling push() with more data.\n while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) {\n var len = state.length;\n debug('maybeReadMore read 0');\n stream.read(0);\n if (len === state.length)\n // didn't get any data, stop spinning.\n break;\n }\n state.readingMore = false;\n}\n\n// abstract method. to be overridden in specific implementation classes.\n// call cb(er, data) where data is <= n in length.\n// for virtual (non-string, non-buffer) streams, \"length\" is somewhat\n// arbitrary, and perhaps not very meaningful.\nReadable.prototype._read = function (n) {\n errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED('_read()'));\n};\nReadable.prototype.pipe = function (dest, pipeOpts) {\n var src = this;\n var state = this._readableState;\n switch (state.pipesCount) {\n case 0:\n state.pipes = dest;\n break;\n case 1:\n state.pipes = [state.pipes, dest];\n break;\n default:\n state.pipes.push(dest);\n break;\n }\n state.pipesCount += 1;\n debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts);\n var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr;\n var endFn = doEnd ? onend : unpipe;\n if (state.endEmitted) process.nextTick(endFn);else src.once('end', endFn);\n dest.on('unpipe', onunpipe);\n function onunpipe(readable, unpipeInfo) {\n debug('onunpipe');\n if (readable === src) {\n if (unpipeInfo && unpipeInfo.hasUnpiped === false) {\n unpipeInfo.hasUnpiped = true;\n cleanup();\n }\n }\n }\n function onend() {\n debug('onend');\n dest.end();\n }\n\n // when the dest drains, it reduces the awaitDrain counter\n // on the source. This would be more elegant with a .once()\n // handler in flow(), but adding and removing repeatedly is\n // too slow.\n var ondrain = pipeOnDrain(src);\n dest.on('drain', ondrain);\n var cleanedUp = false;\n function cleanup() {\n debug('cleanup');\n // cleanup event handlers once the pipe is broken\n dest.removeListener('close', onclose);\n dest.removeListener('finish', onfinish);\n dest.removeListener('drain', ondrain);\n dest.removeListener('error', onerror);\n dest.removeListener('unpipe', onunpipe);\n src.removeListener('end', onend);\n src.removeListener('end', unpipe);\n src.removeListener('data', ondata);\n cleanedUp = true;\n\n // if the reader is waiting for a drain event from this\n // specific writer, then it would cause it to never start\n // flowing again.\n // So, if this is awaiting a drain, then we just call it now.\n // If we don't know, then assume that we are waiting for one.\n if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain();\n }\n src.on('data', ondata);\n function ondata(chunk) {\n debug('ondata');\n var ret = dest.write(chunk);\n debug('dest.write', ret);\n if (ret === false) {\n // If the user unpiped during `dest.write()`, it is possible\n // to get stuck in a permanently paused state if that write\n // also returned false.\n // => Check whether `dest` is still a piping destination.\n if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) {\n debug('false write response, pause', state.awaitDrain);\n state.awaitDrain++;\n }\n src.pause();\n }\n }\n\n // if the dest has an error, then stop piping into it.\n // however, don't suppress the throwing behavior for this.\n function onerror(er) {\n debug('onerror', er);\n unpipe();\n dest.removeListener('error', onerror);\n if (EElistenerCount(dest, 'error') === 0) errorOrDestroy(dest, er);\n }\n\n // Make sure our error handler is attached before userland ones.\n prependListener(dest, 'error', onerror);\n\n // Both close and finish should trigger unpipe, but only once.\n function onclose() {\n dest.removeListener('finish', onfinish);\n unpipe();\n }\n dest.once('close', onclose);\n function onfinish() {\n debug('onfinish');\n dest.removeListener('close', onclose);\n unpipe();\n }\n dest.once('finish', onfinish);\n function unpipe() {\n debug('unpipe');\n src.unpipe(dest);\n }\n\n // tell the dest that it's being piped to\n dest.emit('pipe', src);\n\n // start the flow if it hasn't been started already.\n if (!state.flowing) {\n debug('pipe resume');\n src.resume();\n }\n return dest;\n};\nfunction pipeOnDrain(src) {\n return function pipeOnDrainFunctionResult() {\n var state = src._readableState;\n debug('pipeOnDrain', state.awaitDrain);\n if (state.awaitDrain) state.awaitDrain--;\n if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) {\n state.flowing = true;\n flow(src);\n }\n };\n}\nReadable.prototype.unpipe = function (dest) {\n var state = this._readableState;\n var unpipeInfo = {\n hasUnpiped: false\n };\n\n // if we're not piping anywhere, then do nothing.\n if (state.pipesCount === 0) return this;\n\n // just one destination. most common case.\n if (state.pipesCount === 1) {\n // passed in one, but it's not the right one.\n if (dest && dest !== state.pipes) return this;\n if (!dest) dest = state.pipes;\n\n // got a match.\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n if (dest) dest.emit('unpipe', this, unpipeInfo);\n return this;\n }\n\n // slow case. multiple pipe destinations.\n\n if (!dest) {\n // remove all.\n var dests = state.pipes;\n var len = state.pipesCount;\n state.pipes = null;\n state.pipesCount = 0;\n state.flowing = false;\n for (var i = 0; i < len; i++) dests[i].emit('unpipe', this, {\n hasUnpiped: false\n });\n return this;\n }\n\n // try to find the right one.\n var index = indexOf(state.pipes, dest);\n if (index === -1) return this;\n state.pipes.splice(index, 1);\n state.pipesCount -= 1;\n if (state.pipesCount === 1) state.pipes = state.pipes[0];\n dest.emit('unpipe', this, unpipeInfo);\n return this;\n};\n\n// set up data events if they are asked for\n// Ensure readable listeners eventually get something\nReadable.prototype.on = function (ev, fn) {\n var res = Stream.prototype.on.call(this, ev, fn);\n var state = this._readableState;\n if (ev === 'data') {\n // update readableListening so that resume() may be a no-op\n // a few lines down. This is needed to support once('readable').\n state.readableListening = this.listenerCount('readable') > 0;\n\n // Try start flowing on next tick if stream isn't explicitly paused\n if (state.flowing !== false) this.resume();\n } else if (ev === 'readable') {\n if (!state.endEmitted && !state.readableListening) {\n state.readableListening = state.needReadable = true;\n state.flowing = false;\n state.emittedReadable = false;\n debug('on readable', state.length, state.reading);\n if (state.length) {\n emitReadable(this);\n } else if (!state.reading) {\n process.nextTick(nReadingNextTick, this);\n }\n }\n }\n return res;\n};\nReadable.prototype.addListener = Readable.prototype.on;\nReadable.prototype.removeListener = function (ev, fn) {\n var res = Stream.prototype.removeListener.call(this, ev, fn);\n if (ev === 'readable') {\n // We need to check if there is someone still listening to\n // readable and reset the state. However this needs to happen\n // after readable has been emitted but before I/O (nextTick) to\n // support once('readable', fn) cycles. This means that calling\n // resume within the same tick will have no\n // effect.\n process.nextTick(updateReadableListening, this);\n }\n return res;\n};\nReadable.prototype.removeAllListeners = function (ev) {\n var res = Stream.prototype.removeAllListeners.apply(this, arguments);\n if (ev === 'readable' || ev === undefined) {\n // We need to check if there is someone still listening to\n // readable and reset the state. However this needs to happen\n // after readable has been emitted but before I/O (nextTick) to\n // support once('readable', fn) cycles. This means that calling\n // resume within the same tick will have no\n // effect.\n process.nextTick(updateReadableListening, this);\n }\n return res;\n};\nfunction updateReadableListening(self) {\n var state = self._readableState;\n state.readableListening = self.listenerCount('readable') > 0;\n if (state.resumeScheduled && !state.paused) {\n // flowing needs to be set to true now, otherwise\n // the upcoming resume will not flow.\n state.flowing = true;\n\n // crude way to check if we should resume\n } else if (self.listenerCount('data') > 0) {\n self.resume();\n }\n}\nfunction nReadingNextTick(self) {\n debug('readable nexttick read 0');\n self.read(0);\n}\n\n// pause() and resume() are remnants of the legacy readable stream API\n// If the user uses them, then switch into old mode.\nReadable.prototype.resume = function () {\n var state = this._readableState;\n if (!state.flowing) {\n debug('resume');\n // we flow only if there is no one listening\n // for readable, but we still have to call\n // resume()\n state.flowing = !state.readableListening;\n resume(this, state);\n }\n state.paused = false;\n return this;\n};\nfunction resume(stream, state) {\n if (!state.resumeScheduled) {\n state.resumeScheduled = true;\n process.nextTick(resume_, stream, state);\n }\n}\nfunction resume_(stream, state) {\n debug('resume', state.reading);\n if (!state.reading) {\n stream.read(0);\n }\n state.resumeScheduled = false;\n stream.emit('resume');\n flow(stream);\n if (state.flowing && !state.reading) stream.read(0);\n}\nReadable.prototype.pause = function () {\n debug('call pause flowing=%j', this._readableState.flowing);\n if (this._readableState.flowing !== false) {\n debug('pause');\n this._readableState.flowing = false;\n this.emit('pause');\n }\n this._readableState.paused = true;\n return this;\n};\nfunction flow(stream) {\n var state = stream._readableState;\n debug('flow', state.flowing);\n while (state.flowing && stream.read() !== null);\n}\n\n// wrap an old-style stream as the async data source.\n// This is *not* part of the readable stream interface.\n// It is an ugly unfortunate mess of history.\nReadable.prototype.wrap = function (stream) {\n var _this = this;\n var state = this._readableState;\n var paused = false;\n stream.on('end', function () {\n debug('wrapped end');\n if (state.decoder && !state.ended) {\n var chunk = state.decoder.end();\n if (chunk && chunk.length) _this.push(chunk);\n }\n _this.push(null);\n });\n stream.on('data', function (chunk) {\n debug('wrapped data');\n if (state.decoder) chunk = state.decoder.write(chunk);\n\n // don't skip over falsy values in objectMode\n if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return;\n var ret = _this.push(chunk);\n if (!ret) {\n paused = true;\n stream.pause();\n }\n });\n\n // proxy all the other methods.\n // important when wrapping filters and duplexes.\n for (var i in stream) {\n if (this[i] === undefined && typeof stream[i] === 'function') {\n this[i] = function methodWrap(method) {\n return function methodWrapReturnFunction() {\n return stream[method].apply(stream, arguments);\n };\n }(i);\n }\n }\n\n // proxy certain important events.\n for (var n = 0; n < kProxyEvents.length; n++) {\n stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n]));\n }\n\n // when we try to consume some more bytes, simply unpause the\n // underlying stream.\n this._read = function (n) {\n debug('wrapped _read', n);\n if (paused) {\n paused = false;\n stream.resume();\n }\n };\n return this;\n};\nif (typeof Symbol === 'function') {\n Readable.prototype[Symbol.asyncIterator] = function () {\n if (createReadableStreamAsyncIterator === undefined) {\n createReadableStreamAsyncIterator = require('./internal/streams/async_iterator');\n }\n return createReadableStreamAsyncIterator(this);\n };\n}\nObject.defineProperty(Readable.prototype, 'readableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.highWaterMark;\n }\n});\nObject.defineProperty(Readable.prototype, 'readableBuffer', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState && this._readableState.buffer;\n }\n});\nObject.defineProperty(Readable.prototype, 'readableFlowing', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.flowing;\n },\n set: function set(state) {\n if (this._readableState) {\n this._readableState.flowing = state;\n }\n }\n});\n\n// exposed for testing purposes only.\nReadable._fromList = fromList;\nObject.defineProperty(Readable.prototype, 'readableLength', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._readableState.length;\n }\n});\n\n// Pluck off n bytes from an array of buffers.\n// Length is the combined lengths of all the buffers in the list.\n// This function is designed to be inlinable, so please take care when making\n// changes to the function body.\nfunction fromList(n, state) {\n // nothing buffered\n if (state.length === 0) return null;\n var ret;\n if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) {\n // read it all, truncate the list\n if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.first();else ret = state.buffer.concat(state.length);\n state.buffer.clear();\n } else {\n // read part of list\n ret = state.buffer.consume(n, state.decoder);\n }\n return ret;\n}\nfunction endReadable(stream) {\n var state = stream._readableState;\n debug('endReadable', state.endEmitted);\n if (!state.endEmitted) {\n state.ended = true;\n process.nextTick(endReadableNT, state, stream);\n }\n}\nfunction endReadableNT(state, stream) {\n debug('endReadableNT', state.endEmitted, state.length);\n\n // Check that we didn't get one last unshift.\n if (!state.endEmitted && state.length === 0) {\n state.endEmitted = true;\n stream.readable = false;\n stream.emit('end');\n if (state.autoDestroy) {\n // In case of duplex streams we need a way to detect\n // if the writable side is ready for autoDestroy as well\n var wState = stream._writableState;\n if (!wState || wState.autoDestroy && wState.finished) {\n stream.destroy();\n }\n }\n }\n}\nif (typeof Symbol === 'function') {\n Readable.from = function (iterable, opts) {\n if (from === undefined) {\n from = require('./internal/streams/from');\n }\n return from(Readable, iterable, opts);\n };\n}\nfunction indexOf(xs, x) {\n for (var i = 0, l = xs.length; i < l; i++) {\n if (xs[i] === x) return i;\n }\n return -1;\n}","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// a transform stream is a readable/writable stream where you do\n// something with the data. Sometimes it's called a \"filter\",\n// but that's not a great name for it, since that implies a thing where\n// some bits pass through, and others are simply ignored. (That would\n// be a valid example of a transform, of course.)\n//\n// While the output is causally related to the input, it's not a\n// necessarily symmetric or synchronous transformation. For example,\n// a zlib stream might take multiple plain-text writes(), and then\n// emit a single compressed chunk some time in the future.\n//\n// Here's how this works:\n//\n// The Transform stream has all the aspects of the readable and writable\n// stream classes. When you write(chunk), that calls _write(chunk,cb)\n// internally, and returns false if there's a lot of pending writes\n// buffered up. When you call read(), that calls _read(n) until\n// there's enough pending readable data buffered up.\n//\n// In a transform stream, the written data is placed in a buffer. When\n// _read(n) is called, it transforms the queued up data, calling the\n// buffered _write cb's as it consumes chunks. If consuming a single\n// written chunk would result in multiple output chunks, then the first\n// outputted bit calls the readcb, and subsequent chunks just go into\n// the read buffer, and will cause it to emit 'readable' if necessary.\n//\n// This way, back-pressure is actually determined by the reading side,\n// since _read has to be called to start processing a new chunk. However,\n// a pathological inflate type of transform can cause excessive buffering\n// here. For example, imagine a stream where every byte of input is\n// interpreted as an integer from 0-255, and then results in that many\n// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in\n// 1kb of data being output. In this case, you could write a very small\n// amount of input, and end up with a very large amount of output. In\n// such a pathological inflating mechanism, there'd be no way to tell\n// the system to stop doing the transform. A single 4MB write could\n// cause the system to run out of memory.\n//\n// However, even in such a pathological case, only a single written chunk\n// would be consumed, and then the rest would wait (un-transformed) until\n// the results of the previous transformed chunk were consumed.\n\n'use strict';\n\nmodule.exports = Transform;\nvar _require$codes = require('../errors').codes,\n ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\n ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,\n ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING,\n ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0;\nvar Duplex = require('./_stream_duplex');\nrequire('inherits')(Transform, Duplex);\nfunction afterTransform(er, data) {\n var ts = this._transformState;\n ts.transforming = false;\n var cb = ts.writecb;\n if (cb === null) {\n return this.emit('error', new ERR_MULTIPLE_CALLBACK());\n }\n ts.writechunk = null;\n ts.writecb = null;\n if (data != null)\n // single equals check for both `null` and `undefined`\n this.push(data);\n cb(er);\n var rs = this._readableState;\n rs.reading = false;\n if (rs.needReadable || rs.length < rs.highWaterMark) {\n this._read(rs.highWaterMark);\n }\n}\nfunction Transform(options) {\n if (!(this instanceof Transform)) return new Transform(options);\n Duplex.call(this, options);\n this._transformState = {\n afterTransform: afterTransform.bind(this),\n needTransform: false,\n transforming: false,\n writecb: null,\n writechunk: null,\n writeencoding: null\n };\n\n // start out asking for a readable event once data is transformed.\n this._readableState.needReadable = true;\n\n // we have implemented the _read method, and done the other things\n // that Readable wants before the first _read call, so unset the\n // sync guard flag.\n this._readableState.sync = false;\n if (options) {\n if (typeof options.transform === 'function') this._transform = options.transform;\n if (typeof options.flush === 'function') this._flush = options.flush;\n }\n\n // When the writable side finishes, then flush out anything remaining.\n this.on('prefinish', prefinish);\n}\nfunction prefinish() {\n var _this = this;\n if (typeof this._flush === 'function' && !this._readableState.destroyed) {\n this._flush(function (er, data) {\n done(_this, er, data);\n });\n } else {\n done(this, null, null);\n }\n}\nTransform.prototype.push = function (chunk, encoding) {\n this._transformState.needTransform = false;\n return Duplex.prototype.push.call(this, chunk, encoding);\n};\n\n// This is the part where you do stuff!\n// override this function in implementation classes.\n// 'chunk' is an input chunk.\n//\n// Call `push(newChunk)` to pass along transformed output\n// to the readable side. You may call 'push' zero or more times.\n//\n// Call `cb(err)` when you are done with this chunk. If you pass\n// an error, then that'll put the hurt on the whole operation. If you\n// never call cb(), then you'll never get another chunk.\nTransform.prototype._transform = function (chunk, encoding, cb) {\n cb(new ERR_METHOD_NOT_IMPLEMENTED('_transform()'));\n};\nTransform.prototype._write = function (chunk, encoding, cb) {\n var ts = this._transformState;\n ts.writecb = cb;\n ts.writechunk = chunk;\n ts.writeencoding = encoding;\n if (!ts.transforming) {\n var rs = this._readableState;\n if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark);\n }\n};\n\n// Doesn't matter what the args are here.\n// _transform does all the work.\n// That we got here means that the readable side wants more data.\nTransform.prototype._read = function (n) {\n var ts = this._transformState;\n if (ts.writechunk !== null && !ts.transforming) {\n ts.transforming = true;\n this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform);\n } else {\n // mark that we need a transform, so that any data that comes in\n // will get processed, now that we've asked for it.\n ts.needTransform = true;\n }\n};\nTransform.prototype._destroy = function (err, cb) {\n Duplex.prototype._destroy.call(this, err, function (err2) {\n cb(err2);\n });\n};\nfunction done(stream, er, data) {\n if (er) return stream.emit('error', er);\n if (data != null)\n // single equals check for both `null` and `undefined`\n stream.push(data);\n\n // TODO(BridgeAR): Write a test for these two error cases\n // if there's nothing in the write buffer, then that means\n // that nothing more will ever be provided\n if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0();\n if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING();\n return stream.push(null);\n}","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n// A bit simpler than readable streams.\n// Implement an async ._write(chunk, encoding, cb), and it'll handle all\n// the drain event emission and buffering.\n\n'use strict';\n\nmodule.exports = Writable;\n\n/* */\nfunction WriteReq(chunk, encoding, cb) {\n this.chunk = chunk;\n this.encoding = encoding;\n this.callback = cb;\n this.next = null;\n}\n\n// It seems a linked list but it is not\n// there will be only 2 of these for each stream\nfunction CorkedRequest(state) {\n var _this = this;\n this.next = null;\n this.entry = null;\n this.finish = function () {\n onCorkedFinish(_this, state);\n };\n}\n/* */\n\n/**/\nvar Duplex;\n/**/\n\nWritable.WritableState = WritableState;\n\n/**/\nvar internalUtil = {\n deprecate: require('util-deprecate')\n};\n/**/\n\n/**/\nvar Stream = require('./internal/streams/stream');\n/**/\n\nvar Buffer = require('buffer').Buffer;\nvar OurUint8Array = (typeof global !== 'undefined' ? global : typeof window !== 'undefined' ? window : typeof self !== 'undefined' ? self : {}).Uint8Array || function () {};\nfunction _uint8ArrayToBuffer(chunk) {\n return Buffer.from(chunk);\n}\nfunction _isUint8Array(obj) {\n return Buffer.isBuffer(obj) || obj instanceof OurUint8Array;\n}\nvar destroyImpl = require('./internal/streams/destroy');\nvar _require = require('./internal/streams/state'),\n getHighWaterMark = _require.getHighWaterMark;\nvar _require$codes = require('../errors').codes,\n ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE,\n ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED,\n ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK,\n ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE,\n ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED,\n ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES,\n ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END,\n ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING;\nvar errorOrDestroy = destroyImpl.errorOrDestroy;\nrequire('inherits')(Writable, Stream);\nfunction nop() {}\nfunction WritableState(options, stream, isDuplex) {\n Duplex = Duplex || require('./_stream_duplex');\n options = options || {};\n\n // Duplex streams are both readable and writable, but share\n // the same options object.\n // However, some cases require setting options to different\n // values for the readable and the writable sides of the duplex stream,\n // e.g. options.readableObjectMode vs. options.writableObjectMode, etc.\n if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex;\n\n // object stream flag to indicate whether or not this stream\n // contains buffers or objects.\n this.objectMode = !!options.objectMode;\n if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode;\n\n // the point at which write() starts returning false\n // Note: 0 is a valid value, means that we always return false if\n // the entire buffer is not flushed immediately on write()\n this.highWaterMark = getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex);\n\n // if _final has been called\n this.finalCalled = false;\n\n // drain event flag.\n this.needDrain = false;\n // at the start of calling end()\n this.ending = false;\n // when end() has been called, and returned\n this.ended = false;\n // when 'finish' is emitted\n this.finished = false;\n\n // has it been destroyed\n this.destroyed = false;\n\n // should we decode strings into buffers before passing to _write?\n // this is here so that some node-core streams can optimize string\n // handling at a lower level.\n var noDecode = options.decodeStrings === false;\n this.decodeStrings = !noDecode;\n\n // Crypto is kind of old and crusty. Historically, its default string\n // encoding is 'binary' so we have to make this configurable.\n // Everything else in the universe uses 'utf8', though.\n this.defaultEncoding = options.defaultEncoding || 'utf8';\n\n // not an actual buffer we keep track of, but a measurement\n // of how much we're waiting to get pushed to some underlying\n // socket or file.\n this.length = 0;\n\n // a flag to see when we're in the middle of a write.\n this.writing = false;\n\n // when true all writes will be buffered until .uncork() call\n this.corked = 0;\n\n // a flag to be able to tell if the onwrite cb is called immediately,\n // or on a later tick. We set this to true at first, because any\n // actions that shouldn't happen until \"later\" should generally also\n // not happen before the first write call.\n this.sync = true;\n\n // a flag to know if we're processing previously buffered items, which\n // may call the _write() callback in the same tick, so that we don't\n // end up in an overlapped onwrite situation.\n this.bufferProcessing = false;\n\n // the callback that's passed to _write(chunk,cb)\n this.onwrite = function (er) {\n onwrite(stream, er);\n };\n\n // the callback that the user supplies to write(chunk,encoding,cb)\n this.writecb = null;\n\n // the amount that is being written when _write is called.\n this.writelen = 0;\n this.bufferedRequest = null;\n this.lastBufferedRequest = null;\n\n // number of pending user-supplied write callbacks\n // this must be 0 before 'finish' can be emitted\n this.pendingcb = 0;\n\n // emit prefinish if the only thing we're waiting for is _write cbs\n // This is relevant for synchronous Transform streams\n this.prefinished = false;\n\n // True if the error was already emitted and should not be thrown again\n this.errorEmitted = false;\n\n // Should close be emitted on destroy. Defaults to true.\n this.emitClose = options.emitClose !== false;\n\n // Should .destroy() be called after 'finish' (and potentially 'end')\n this.autoDestroy = !!options.autoDestroy;\n\n // count buffered requests\n this.bufferedRequestCount = 0;\n\n // allocate the first CorkedRequest, there is always\n // one allocated and free to use, and we maintain at most two\n this.corkedRequestsFree = new CorkedRequest(this);\n}\nWritableState.prototype.getBuffer = function getBuffer() {\n var current = this.bufferedRequest;\n var out = [];\n while (current) {\n out.push(current);\n current = current.next;\n }\n return out;\n};\n(function () {\n try {\n Object.defineProperty(WritableState.prototype, 'buffer', {\n get: internalUtil.deprecate(function writableStateBufferGetter() {\n return this.getBuffer();\n }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003')\n });\n } catch (_) {}\n})();\n\n// Test _writableState for inheritance to account for Duplex streams,\n// whose prototype chain only points to Readable.\nvar realHasInstance;\nif (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') {\n realHasInstance = Function.prototype[Symbol.hasInstance];\n Object.defineProperty(Writable, Symbol.hasInstance, {\n value: function value(object) {\n if (realHasInstance.call(this, object)) return true;\n if (this !== Writable) return false;\n return object && object._writableState instanceof WritableState;\n }\n });\n} else {\n realHasInstance = function realHasInstance(object) {\n return object instanceof this;\n };\n}\nfunction Writable(options) {\n Duplex = Duplex || require('./_stream_duplex');\n\n // Writable ctor is applied to Duplexes, too.\n // `realHasInstance` is necessary because using plain `instanceof`\n // would return false, as no `_writableState` property is attached.\n\n // Trying to use the custom `instanceof` for Writable here will also break the\n // Node.js LazyTransform implementation, which has a non-trivial getter for\n // `_writableState` that would lead to infinite recursion.\n\n // Checking for a Stream.Duplex instance is faster here instead of inside\n // the WritableState constructor, at least with V8 6.5\n var isDuplex = this instanceof Duplex;\n if (!isDuplex && !realHasInstance.call(Writable, this)) return new Writable(options);\n this._writableState = new WritableState(options, this, isDuplex);\n\n // legacy.\n this.writable = true;\n if (options) {\n if (typeof options.write === 'function') this._write = options.write;\n if (typeof options.writev === 'function') this._writev = options.writev;\n if (typeof options.destroy === 'function') this._destroy = options.destroy;\n if (typeof options.final === 'function') this._final = options.final;\n }\n Stream.call(this);\n}\n\n// Otherwise people can pipe Writable streams, which is just wrong.\nWritable.prototype.pipe = function () {\n errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE());\n};\nfunction writeAfterEnd(stream, cb) {\n var er = new ERR_STREAM_WRITE_AFTER_END();\n // TODO: defer error events consistently everywhere, not just the cb\n errorOrDestroy(stream, er);\n process.nextTick(cb, er);\n}\n\n// Checks that a user-supplied chunk is valid, especially for the particular\n// mode the stream is in. Currently this means that `null` is never accepted\n// and undefined/non-string values are only allowed in object mode.\nfunction validChunk(stream, state, chunk, cb) {\n var er;\n if (chunk === null) {\n er = new ERR_STREAM_NULL_VALUES();\n } else if (typeof chunk !== 'string' && !state.objectMode) {\n er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer'], chunk);\n }\n if (er) {\n errorOrDestroy(stream, er);\n process.nextTick(cb, er);\n return false;\n }\n return true;\n}\nWritable.prototype.write = function (chunk, encoding, cb) {\n var state = this._writableState;\n var ret = false;\n var isBuf = !state.objectMode && _isUint8Array(chunk);\n if (isBuf && !Buffer.isBuffer(chunk)) {\n chunk = _uint8ArrayToBuffer(chunk);\n }\n if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding;\n if (typeof cb !== 'function') cb = nop;\n if (state.ending) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) {\n state.pendingcb++;\n ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb);\n }\n return ret;\n};\nWritable.prototype.cork = function () {\n this._writableState.corked++;\n};\nWritable.prototype.uncork = function () {\n var state = this._writableState;\n if (state.corked) {\n state.corked--;\n if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state);\n }\n};\nWritable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) {\n // node::ParseEncoding() requires lower case.\n if (typeof encoding === 'string') encoding = encoding.toLowerCase();\n if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new ERR_UNKNOWN_ENCODING(encoding);\n this._writableState.defaultEncoding = encoding;\n return this;\n};\nObject.defineProperty(Writable.prototype, 'writableBuffer', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState && this._writableState.getBuffer();\n }\n});\nfunction decodeChunk(state, chunk, encoding) {\n if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') {\n chunk = Buffer.from(chunk, encoding);\n }\n return chunk;\n}\nObject.defineProperty(Writable.prototype, 'writableHighWaterMark', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.highWaterMark;\n }\n});\n\n// if we're already writing something, then just put this\n// in the queue, and wait our turn. Otherwise, call _write\n// If we return false, then we need a drain event, so set that flag.\nfunction writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) {\n if (!isBuf) {\n var newChunk = decodeChunk(state, chunk, encoding);\n if (chunk !== newChunk) {\n isBuf = true;\n encoding = 'buffer';\n chunk = newChunk;\n }\n }\n var len = state.objectMode ? 1 : chunk.length;\n state.length += len;\n var ret = state.length < state.highWaterMark;\n // we must ensure that previous needDrain will not be reset to false.\n if (!ret) state.needDrain = true;\n if (state.writing || state.corked) {\n var last = state.lastBufferedRequest;\n state.lastBufferedRequest = {\n chunk: chunk,\n encoding: encoding,\n isBuf: isBuf,\n callback: cb,\n next: null\n };\n if (last) {\n last.next = state.lastBufferedRequest;\n } else {\n state.bufferedRequest = state.lastBufferedRequest;\n }\n state.bufferedRequestCount += 1;\n } else {\n doWrite(stream, state, false, len, chunk, encoding, cb);\n }\n return ret;\n}\nfunction doWrite(stream, state, writev, len, chunk, encoding, cb) {\n state.writelen = len;\n state.writecb = cb;\n state.writing = true;\n state.sync = true;\n if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED('write'));else if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite);\n state.sync = false;\n}\nfunction onwriteError(stream, state, sync, er, cb) {\n --state.pendingcb;\n if (sync) {\n // defer the callback if we are being called synchronously\n // to avoid piling up things on the stack\n process.nextTick(cb, er);\n // this can emit finish, and it will always happen\n // after error\n process.nextTick(finishMaybe, stream, state);\n stream._writableState.errorEmitted = true;\n errorOrDestroy(stream, er);\n } else {\n // the caller expect this to happen before if\n // it is async\n cb(er);\n stream._writableState.errorEmitted = true;\n errorOrDestroy(stream, er);\n // this can emit finish, but finish must\n // always follow error\n finishMaybe(stream, state);\n }\n}\nfunction onwriteStateUpdate(state) {\n state.writing = false;\n state.writecb = null;\n state.length -= state.writelen;\n state.writelen = 0;\n}\nfunction onwrite(stream, er) {\n var state = stream._writableState;\n var sync = state.sync;\n var cb = state.writecb;\n if (typeof cb !== 'function') throw new ERR_MULTIPLE_CALLBACK();\n onwriteStateUpdate(state);\n if (er) onwriteError(stream, state, sync, er, cb);else {\n // Check if we're actually ready to finish, but don't emit yet\n var finished = needFinish(state) || stream.destroyed;\n if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) {\n clearBuffer(stream, state);\n }\n if (sync) {\n process.nextTick(afterWrite, stream, state, finished, cb);\n } else {\n afterWrite(stream, state, finished, cb);\n }\n }\n}\nfunction afterWrite(stream, state, finished, cb) {\n if (!finished) onwriteDrain(stream, state);\n state.pendingcb--;\n cb();\n finishMaybe(stream, state);\n}\n\n// Must force callback to be called on nextTick, so that we don't\n// emit 'drain' before the write() consumer gets the 'false' return\n// value, and has a chance to attach a 'drain' listener.\nfunction onwriteDrain(stream, state) {\n if (state.length === 0 && state.needDrain) {\n state.needDrain = false;\n stream.emit('drain');\n }\n}\n\n// if there's something in the buffer waiting, then process it\nfunction clearBuffer(stream, state) {\n state.bufferProcessing = true;\n var entry = state.bufferedRequest;\n if (stream._writev && entry && entry.next) {\n // Fast case, write everything using _writev()\n var l = state.bufferedRequestCount;\n var buffer = new Array(l);\n var holder = state.corkedRequestsFree;\n holder.entry = entry;\n var count = 0;\n var allBuffers = true;\n while (entry) {\n buffer[count] = entry;\n if (!entry.isBuf) allBuffers = false;\n entry = entry.next;\n count += 1;\n }\n buffer.allBuffers = allBuffers;\n doWrite(stream, state, true, state.length, buffer, '', holder.finish);\n\n // doWrite is almost always async, defer these to save a bit of time\n // as the hot path ends with doWrite\n state.pendingcb++;\n state.lastBufferedRequest = null;\n if (holder.next) {\n state.corkedRequestsFree = holder.next;\n holder.next = null;\n } else {\n state.corkedRequestsFree = new CorkedRequest(state);\n }\n state.bufferedRequestCount = 0;\n } else {\n // Slow case, write chunks one-by-one\n while (entry) {\n var chunk = entry.chunk;\n var encoding = entry.encoding;\n var cb = entry.callback;\n var len = state.objectMode ? 1 : chunk.length;\n doWrite(stream, state, false, len, chunk, encoding, cb);\n entry = entry.next;\n state.bufferedRequestCount--;\n // if we didn't call the onwrite immediately, then\n // it means that we need to wait until it does.\n // also, that means that the chunk and cb are currently\n // being processed, so move the buffer counter past them.\n if (state.writing) {\n break;\n }\n }\n if (entry === null) state.lastBufferedRequest = null;\n }\n state.bufferedRequest = entry;\n state.bufferProcessing = false;\n}\nWritable.prototype._write = function (chunk, encoding, cb) {\n cb(new ERR_METHOD_NOT_IMPLEMENTED('_write()'));\n};\nWritable.prototype._writev = null;\nWritable.prototype.end = function (chunk, encoding, cb) {\n var state = this._writableState;\n if (typeof chunk === 'function') {\n cb = chunk;\n chunk = null;\n encoding = null;\n } else if (typeof encoding === 'function') {\n cb = encoding;\n encoding = null;\n }\n if (chunk !== null && chunk !== undefined) this.write(chunk, encoding);\n\n // .end() fully uncorks\n if (state.corked) {\n state.corked = 1;\n this.uncork();\n }\n\n // ignore unnecessary end() calls.\n if (!state.ending) endWritable(this, state, cb);\n return this;\n};\nObject.defineProperty(Writable.prototype, 'writableLength', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n return this._writableState.length;\n }\n});\nfunction needFinish(state) {\n return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing;\n}\nfunction callFinal(stream, state) {\n stream._final(function (err) {\n state.pendingcb--;\n if (err) {\n errorOrDestroy(stream, err);\n }\n state.prefinished = true;\n stream.emit('prefinish');\n finishMaybe(stream, state);\n });\n}\nfunction prefinish(stream, state) {\n if (!state.prefinished && !state.finalCalled) {\n if (typeof stream._final === 'function' && !state.destroyed) {\n state.pendingcb++;\n state.finalCalled = true;\n process.nextTick(callFinal, stream, state);\n } else {\n state.prefinished = true;\n stream.emit('prefinish');\n }\n }\n}\nfunction finishMaybe(stream, state) {\n var need = needFinish(state);\n if (need) {\n prefinish(stream, state);\n if (state.pendingcb === 0) {\n state.finished = true;\n stream.emit('finish');\n if (state.autoDestroy) {\n // In case of duplex streams we need a way to detect\n // if the readable side is ready for autoDestroy as well\n var rState = stream._readableState;\n if (!rState || rState.autoDestroy && rState.endEmitted) {\n stream.destroy();\n }\n }\n }\n }\n return need;\n}\nfunction endWritable(stream, state, cb) {\n state.ending = true;\n finishMaybe(stream, state);\n if (cb) {\n if (state.finished) process.nextTick(cb);else stream.once('finish', cb);\n }\n state.ended = true;\n stream.writable = false;\n}\nfunction onCorkedFinish(corkReq, state, err) {\n var entry = corkReq.entry;\n corkReq.entry = null;\n while (entry) {\n var cb = entry.callback;\n state.pendingcb--;\n cb(err);\n entry = entry.next;\n }\n\n // reuse the free corkReq.\n state.corkedRequestsFree.next = corkReq;\n}\nObject.defineProperty(Writable.prototype, 'destroyed', {\n // making it explicit this property is not enumerable\n // because otherwise some prototype manipulation in\n // userland will fail\n enumerable: false,\n get: function get() {\n if (this._writableState === undefined) {\n return false;\n }\n return this._writableState.destroyed;\n },\n set: function set(value) {\n // we ignore the value if the stream\n // has not been initialized yet\n if (!this._writableState) {\n return;\n }\n\n // backward compatibility, the user is explicitly\n // managing destroyed\n this._writableState.destroyed = value;\n }\n});\nWritable.prototype.destroy = destroyImpl.destroy;\nWritable.prototype._undestroy = destroyImpl.undestroy;\nWritable.prototype._destroy = function (err, cb) {\n cb(err);\n};","'use strict';\n\nvar _Object$setPrototypeO;\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nvar finished = require('./end-of-stream');\nvar kLastResolve = Symbol('lastResolve');\nvar kLastReject = Symbol('lastReject');\nvar kError = Symbol('error');\nvar kEnded = Symbol('ended');\nvar kLastPromise = Symbol('lastPromise');\nvar kHandlePromise = Symbol('handlePromise');\nvar kStream = Symbol('stream');\nfunction createIterResult(value, done) {\n return {\n value: value,\n done: done\n };\n}\nfunction readAndResolve(iter) {\n var resolve = iter[kLastResolve];\n if (resolve !== null) {\n var data = iter[kStream].read();\n // we defer if data is null\n // we can be expecting either 'end' or\n // 'error'\n if (data !== null) {\n iter[kLastPromise] = null;\n iter[kLastResolve] = null;\n iter[kLastReject] = null;\n resolve(createIterResult(data, false));\n }\n }\n}\nfunction onReadable(iter) {\n // we wait for the next tick, because it might\n // emit an error with process.nextTick\n process.nextTick(readAndResolve, iter);\n}\nfunction wrapForNext(lastPromise, iter) {\n return function (resolve, reject) {\n lastPromise.then(function () {\n if (iter[kEnded]) {\n resolve(createIterResult(undefined, true));\n return;\n }\n iter[kHandlePromise](resolve, reject);\n }, reject);\n };\n}\nvar AsyncIteratorPrototype = Object.getPrototypeOf(function () {});\nvar ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = {\n get stream() {\n return this[kStream];\n },\n next: function next() {\n var _this = this;\n // if we have detected an error in the meanwhile\n // reject straight away\n var error = this[kError];\n if (error !== null) {\n return Promise.reject(error);\n }\n if (this[kEnded]) {\n return Promise.resolve(createIterResult(undefined, true));\n }\n if (this[kStream].destroyed) {\n // We need to defer via nextTick because if .destroy(err) is\n // called, the error will be emitted via nextTick, and\n // we cannot guarantee that there is no error lingering around\n // waiting to be emitted.\n return new Promise(function (resolve, reject) {\n process.nextTick(function () {\n if (_this[kError]) {\n reject(_this[kError]);\n } else {\n resolve(createIterResult(undefined, true));\n }\n });\n });\n }\n\n // if we have multiple next() calls\n // we will wait for the previous Promise to finish\n // this logic is optimized to support for await loops,\n // where next() is only called once at a time\n var lastPromise = this[kLastPromise];\n var promise;\n if (lastPromise) {\n promise = new Promise(wrapForNext(lastPromise, this));\n } else {\n // fast path needed to support multiple this.push()\n // without triggering the next() queue\n var data = this[kStream].read();\n if (data !== null) {\n return Promise.resolve(createIterResult(data, false));\n }\n promise = new Promise(this[kHandlePromise]);\n }\n this[kLastPromise] = promise;\n return promise;\n }\n}, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function () {\n return this;\n}), _defineProperty(_Object$setPrototypeO, \"return\", function _return() {\n var _this2 = this;\n // destroy(err, cb) is a private API\n // we can guarantee we have that here, because we control the\n // Readable class this is attached to\n return new Promise(function (resolve, reject) {\n _this2[kStream].destroy(null, function (err) {\n if (err) {\n reject(err);\n return;\n }\n resolve(createIterResult(undefined, true));\n });\n });\n}), _Object$setPrototypeO), AsyncIteratorPrototype);\nvar createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) {\n var _Object$create;\n var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, {\n value: stream,\n writable: true\n }), _defineProperty(_Object$create, kLastResolve, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kLastReject, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kError, {\n value: null,\n writable: true\n }), _defineProperty(_Object$create, kEnded, {\n value: stream._readableState.endEmitted,\n writable: true\n }), _defineProperty(_Object$create, kHandlePromise, {\n value: function value(resolve, reject) {\n var data = iterator[kStream].read();\n if (data) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n resolve(createIterResult(data, false));\n } else {\n iterator[kLastResolve] = resolve;\n iterator[kLastReject] = reject;\n }\n },\n writable: true\n }), _Object$create));\n iterator[kLastPromise] = null;\n finished(stream, function (err) {\n if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') {\n var reject = iterator[kLastReject];\n // reject if we are waiting for data in the Promise\n // returned by next() and store the error\n if (reject !== null) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n reject(err);\n }\n iterator[kError] = err;\n return;\n }\n var resolve = iterator[kLastResolve];\n if (resolve !== null) {\n iterator[kLastPromise] = null;\n iterator[kLastResolve] = null;\n iterator[kLastReject] = null;\n resolve(createIterResult(undefined, true));\n }\n iterator[kEnded] = true;\n });\n stream.on('readable', onReadable.bind(null, iterator));\n return iterator;\n};\nmodule.exports = createReadableStreamAsyncIterator;","'use strict';\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\nfunction _toPropertyKey(arg) { var key = _toPrimitive(arg, \"string\"); return typeof key === \"symbol\" ? key : String(key); }\nfunction _toPrimitive(input, hint) { if (typeof input !== \"object\" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || \"default\"); if (typeof res !== \"object\") return res; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (hint === \"string\" ? String : Number)(input); }\nvar _require = require('buffer'),\n Buffer = _require.Buffer;\nvar _require2 = require('util'),\n inspect = _require2.inspect;\nvar custom = inspect && inspect.custom || 'inspect';\nfunction copyBuffer(src, target, offset) {\n Buffer.prototype.copy.call(src, target, offset);\n}\nmodule.exports = /*#__PURE__*/function () {\n function BufferList() {\n _classCallCheck(this, BufferList);\n this.head = null;\n this.tail = null;\n this.length = 0;\n }\n _createClass(BufferList, [{\n key: \"push\",\n value: function push(v) {\n var entry = {\n data: v,\n next: null\n };\n if (this.length > 0) this.tail.next = entry;else this.head = entry;\n this.tail = entry;\n ++this.length;\n }\n }, {\n key: \"unshift\",\n value: function unshift(v) {\n var entry = {\n data: v,\n next: this.head\n };\n if (this.length === 0) this.tail = entry;\n this.head = entry;\n ++this.length;\n }\n }, {\n key: \"shift\",\n value: function shift() {\n if (this.length === 0) return;\n var ret = this.head.data;\n if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next;\n --this.length;\n return ret;\n }\n }, {\n key: \"clear\",\n value: function clear() {\n this.head = this.tail = null;\n this.length = 0;\n }\n }, {\n key: \"join\",\n value: function join(s) {\n if (this.length === 0) return '';\n var p = this.head;\n var ret = '' + p.data;\n while (p = p.next) ret += s + p.data;\n return ret;\n }\n }, {\n key: \"concat\",\n value: function concat(n) {\n if (this.length === 0) return Buffer.alloc(0);\n var ret = Buffer.allocUnsafe(n >>> 0);\n var p = this.head;\n var i = 0;\n while (p) {\n copyBuffer(p.data, ret, i);\n i += p.data.length;\n p = p.next;\n }\n return ret;\n }\n\n // Consumes a specified amount of bytes or characters from the buffered data.\n }, {\n key: \"consume\",\n value: function consume(n, hasStrings) {\n var ret;\n if (n < this.head.data.length) {\n // `slice` is the same for buffers and strings.\n ret = this.head.data.slice(0, n);\n this.head.data = this.head.data.slice(n);\n } else if (n === this.head.data.length) {\n // First chunk is a perfect match.\n ret = this.shift();\n } else {\n // Result spans more than one buffer.\n ret = hasStrings ? this._getString(n) : this._getBuffer(n);\n }\n return ret;\n }\n }, {\n key: \"first\",\n value: function first() {\n return this.head.data;\n }\n\n // Consumes a specified amount of characters from the buffered data.\n }, {\n key: \"_getString\",\n value: function _getString(n) {\n var p = this.head;\n var c = 1;\n var ret = p.data;\n n -= ret.length;\n while (p = p.next) {\n var str = p.data;\n var nb = n > str.length ? str.length : n;\n if (nb === str.length) ret += str;else ret += str.slice(0, n);\n n -= nb;\n if (n === 0) {\n if (nb === str.length) {\n ++c;\n if (p.next) this.head = p.next;else this.head = this.tail = null;\n } else {\n this.head = p;\n p.data = str.slice(nb);\n }\n break;\n }\n ++c;\n }\n this.length -= c;\n return ret;\n }\n\n // Consumes a specified amount of bytes from the buffered data.\n }, {\n key: \"_getBuffer\",\n value: function _getBuffer(n) {\n var ret = Buffer.allocUnsafe(n);\n var p = this.head;\n var c = 1;\n p.data.copy(ret);\n n -= p.data.length;\n while (p = p.next) {\n var buf = p.data;\n var nb = n > buf.length ? buf.length : n;\n buf.copy(ret, ret.length - n, 0, nb);\n n -= nb;\n if (n === 0) {\n if (nb === buf.length) {\n ++c;\n if (p.next) this.head = p.next;else this.head = this.tail = null;\n } else {\n this.head = p;\n p.data = buf.slice(nb);\n }\n break;\n }\n ++c;\n }\n this.length -= c;\n return ret;\n }\n\n // Make sure the linked list only shows the minimal necessary information.\n }, {\n key: custom,\n value: function value(_, options) {\n return inspect(this, _objectSpread(_objectSpread({}, options), {}, {\n // Only inspect one level.\n depth: 0,\n // It should not recurse.\n customInspect: false\n }));\n }\n }]);\n return BufferList;\n}();","'use strict';\n\n// undocumented cb() API, needed for core, not for public API\nfunction destroy(err, cb) {\n var _this = this;\n var readableDestroyed = this._readableState && this._readableState.destroyed;\n var writableDestroyed = this._writableState && this._writableState.destroyed;\n if (readableDestroyed || writableDestroyed) {\n if (cb) {\n cb(err);\n } else if (err) {\n if (!this._writableState) {\n process.nextTick(emitErrorNT, this, err);\n } else if (!this._writableState.errorEmitted) {\n this._writableState.errorEmitted = true;\n process.nextTick(emitErrorNT, this, err);\n }\n }\n return this;\n }\n\n // we set destroyed to true before firing error callbacks in order\n // to make it re-entrance safe in case destroy() is called within callbacks\n\n if (this._readableState) {\n this._readableState.destroyed = true;\n }\n\n // if this is a duplex stream mark the writable part as destroyed as well\n if (this._writableState) {\n this._writableState.destroyed = true;\n }\n this._destroy(err || null, function (err) {\n if (!cb && err) {\n if (!_this._writableState) {\n process.nextTick(emitErrorAndCloseNT, _this, err);\n } else if (!_this._writableState.errorEmitted) {\n _this._writableState.errorEmitted = true;\n process.nextTick(emitErrorAndCloseNT, _this, err);\n } else {\n process.nextTick(emitCloseNT, _this);\n }\n } else if (cb) {\n process.nextTick(emitCloseNT, _this);\n cb(err);\n } else {\n process.nextTick(emitCloseNT, _this);\n }\n });\n return this;\n}\nfunction emitErrorAndCloseNT(self, err) {\n emitErrorNT(self, err);\n emitCloseNT(self);\n}\nfunction emitCloseNT(self) {\n if (self._writableState && !self._writableState.emitClose) return;\n if (self._readableState && !self._readableState.emitClose) return;\n self.emit('close');\n}\nfunction undestroy() {\n if (this._readableState) {\n this._readableState.destroyed = false;\n this._readableState.reading = false;\n this._readableState.ended = false;\n this._readableState.endEmitted = false;\n }\n if (this._writableState) {\n this._writableState.destroyed = false;\n this._writableState.ended = false;\n this._writableState.ending = false;\n this._writableState.finalCalled = false;\n this._writableState.prefinished = false;\n this._writableState.finished = false;\n this._writableState.errorEmitted = false;\n }\n}\nfunction emitErrorNT(self, err) {\n self.emit('error', err);\n}\nfunction errorOrDestroy(stream, err) {\n // We have tests that rely on errors being emitted\n // in the same tick, so changing this is semver major.\n // For now when you opt-in to autoDestroy we allow\n // the error to be emitted nextTick. In a future\n // semver major update we should change the default to this.\n\n var rState = stream._readableState;\n var wState = stream._writableState;\n if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);else stream.emit('error', err);\n}\nmodule.exports = {\n destroy: destroy,\n undestroy: undestroy,\n errorOrDestroy: errorOrDestroy\n};","// Ported from https://github.com/mafintosh/end-of-stream with\n// permission from the author, Mathias Buus (@mafintosh).\n\n'use strict';\n\nvar ERR_STREAM_PREMATURE_CLOSE = require('../../../errors').codes.ERR_STREAM_PREMATURE_CLOSE;\nfunction once(callback) {\n var called = false;\n return function () {\n if (called) return;\n called = true;\n for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n callback.apply(this, args);\n };\n}\nfunction noop() {}\nfunction isRequest(stream) {\n return stream.setHeader && typeof stream.abort === 'function';\n}\nfunction eos(stream, opts, callback) {\n if (typeof opts === 'function') return eos(stream, null, opts);\n if (!opts) opts = {};\n callback = once(callback || noop);\n var readable = opts.readable || opts.readable !== false && stream.readable;\n var writable = opts.writable || opts.writable !== false && stream.writable;\n var onlegacyfinish = function onlegacyfinish() {\n if (!stream.writable) onfinish();\n };\n var writableEnded = stream._writableState && stream._writableState.finished;\n var onfinish = function onfinish() {\n writable = false;\n writableEnded = true;\n if (!readable) callback.call(stream);\n };\n var readableEnded = stream._readableState && stream._readableState.endEmitted;\n var onend = function onend() {\n readable = false;\n readableEnded = true;\n if (!writable) callback.call(stream);\n };\n var onerror = function onerror(err) {\n callback.call(stream, err);\n };\n var onclose = function onclose() {\n var err;\n if (readable && !readableEnded) {\n if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();\n return callback.call(stream, err);\n }\n if (writable && !writableEnded) {\n if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE();\n return callback.call(stream, err);\n }\n };\n var onrequest = function onrequest() {\n stream.req.on('finish', onfinish);\n };\n if (isRequest(stream)) {\n stream.on('complete', onfinish);\n stream.on('abort', onclose);\n if (stream.req) onrequest();else stream.on('request', onrequest);\n } else if (writable && !stream._writableState) {\n // legacy streams\n stream.on('end', onlegacyfinish);\n stream.on('close', onlegacyfinish);\n }\n stream.on('end', onend);\n stream.on('finish', onfinish);\n if (opts.error !== false) stream.on('error', onerror);\n stream.on('close', onclose);\n return function () {\n stream.removeListener('complete', onfinish);\n stream.removeListener('abort', onclose);\n stream.removeListener('request', onrequest);\n if (stream.req) stream.req.removeListener('finish', onfinish);\n stream.removeListener('end', onlegacyfinish);\n stream.removeListener('close', onlegacyfinish);\n stream.removeListener('finish', onfinish);\n stream.removeListener('end', onend);\n stream.removeListener('error', onerror);\n stream.removeListener('close', onclose);\n };\n}\nmodule.exports = eos;","module.exports = function () {\n throw new Error('Readable.from is not available in the browser')\n};\n","// Ported from https://github.com/mafintosh/pump with\n// permission from the author, Mathias Buus (@mafintosh).\n\n'use strict';\n\nvar eos;\nfunction once(callback) {\n var called = false;\n return function () {\n if (called) return;\n called = true;\n callback.apply(void 0, arguments);\n };\n}\nvar _require$codes = require('../../../errors').codes,\n ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS,\n ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED;\nfunction noop(err) {\n // Rethrow the error if it exists to avoid swallowing it\n if (err) throw err;\n}\nfunction isRequest(stream) {\n return stream.setHeader && typeof stream.abort === 'function';\n}\nfunction destroyer(stream, reading, writing, callback) {\n callback = once(callback);\n var closed = false;\n stream.on('close', function () {\n closed = true;\n });\n if (eos === undefined) eos = require('./end-of-stream');\n eos(stream, {\n readable: reading,\n writable: writing\n }, function (err) {\n if (err) return callback(err);\n closed = true;\n callback();\n });\n var destroyed = false;\n return function (err) {\n if (closed) return;\n if (destroyed) return;\n destroyed = true;\n\n // request.destroy just do .end - .abort is what we want\n if (isRequest(stream)) return stream.abort();\n if (typeof stream.destroy === 'function') return stream.destroy();\n callback(err || new ERR_STREAM_DESTROYED('pipe'));\n };\n}\nfunction call(fn) {\n fn();\n}\nfunction pipe(from, to) {\n return from.pipe(to);\n}\nfunction popCallback(streams) {\n if (!streams.length) return noop;\n if (typeof streams[streams.length - 1] !== 'function') return noop;\n return streams.pop();\n}\nfunction pipeline() {\n for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) {\n streams[_key] = arguments[_key];\n }\n var callback = popCallback(streams);\n if (Array.isArray(streams[0])) streams = streams[0];\n if (streams.length < 2) {\n throw new ERR_MISSING_ARGS('streams');\n }\n var error;\n var destroys = streams.map(function (stream, i) {\n var reading = i < streams.length - 1;\n var writing = i > 0;\n return destroyer(stream, reading, writing, function (err) {\n if (!error) error = err;\n if (err) destroys.forEach(call);\n if (reading) return;\n destroys.forEach(call);\n callback(error);\n });\n });\n return streams.reduce(pipe);\n}\nmodule.exports = pipeline;","'use strict';\n\nvar ERR_INVALID_OPT_VALUE = require('../../../errors').codes.ERR_INVALID_OPT_VALUE;\nfunction highWaterMarkFrom(options, isDuplex, duplexKey) {\n return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null;\n}\nfunction getHighWaterMark(state, options, duplexKey, isDuplex) {\n var hwm = highWaterMarkFrom(options, isDuplex, duplexKey);\n if (hwm != null) {\n if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) {\n var name = isDuplex ? duplexKey : 'highWaterMark';\n throw new ERR_INVALID_OPT_VALUE(name, hwm);\n }\n return Math.floor(hwm);\n }\n\n // Default value\n return state.objectMode ? 16 : 16 * 1024;\n}\nmodule.exports = {\n getHighWaterMark: getHighWaterMark\n};","module.exports = require('events').EventEmitter;\n","exports = module.exports = require('./lib/_stream_readable.js');\nexports.Stream = exports;\nexports.Readable = exports;\nexports.Writable = require('./lib/_stream_writable.js');\nexports.Duplex = require('./lib/_stream_duplex.js');\nexports.Transform = require('./lib/_stream_transform.js');\nexports.PassThrough = require('./lib/_stream_passthrough.js');\nexports.finished = require('./lib/internal/streams/end-of-stream.js');\nexports.pipeline = require('./lib/internal/streams/pipeline.js');\n","/*! safe-buffer. MIT License. Feross Aboukhadijeh */\n/* eslint-disable node/no-deprecated-api */\nvar buffer = require('buffer')\nvar Buffer = buffer.Buffer\n\n// alternative to using Object.keys for old browsers\nfunction copyProps (src, dst) {\n for (var key in src) {\n dst[key] = src[key]\n }\n}\nif (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) {\n module.exports = buffer\n} else {\n // Copy properties from require('buffer')\n copyProps(buffer, exports)\n exports.Buffer = SafeBuffer\n}\n\nfunction SafeBuffer (arg, encodingOrOffset, length) {\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.prototype = Object.create(Buffer.prototype)\n\n// Copy static methods from Buffer\ncopyProps(Buffer, SafeBuffer)\n\nSafeBuffer.from = function (arg, encodingOrOffset, length) {\n if (typeof arg === 'number') {\n throw new TypeError('Argument must not be a number')\n }\n return Buffer(arg, encodingOrOffset, length)\n}\n\nSafeBuffer.alloc = function (size, fill, encoding) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n var buf = Buffer(size)\n if (fill !== undefined) {\n if (typeof encoding === 'string') {\n buf.fill(fill, encoding)\n } else {\n buf.fill(fill)\n }\n } else {\n buf.fill(0)\n }\n return buf\n}\n\nSafeBuffer.allocUnsafe = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return Buffer(size)\n}\n\nSafeBuffer.allocUnsafeSlow = function (size) {\n if (typeof size !== 'number') {\n throw new TypeError('Argument must be a number')\n }\n return buffer.SlowBuffer(size)\n}\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\nvar define = require('define-data-property');\nvar hasDescriptors = require('has-property-descriptors')();\nvar gOPD = require('gopd');\n\nvar $TypeError = require('es-errors/type');\nvar $floor = GetIntrinsic('%Math.floor%');\n\n/** @type {import('.')} */\nmodule.exports = function setFunctionLength(fn, length) {\n\tif (typeof fn !== 'function') {\n\t\tthrow new $TypeError('`fn` is not a function');\n\t}\n\tif (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {\n\t\tthrow new $TypeError('`length` must be a positive 32-bit integer');\n\t}\n\n\tvar loose = arguments.length > 2 && !!arguments[2];\n\n\tvar functionLengthIsConfigurable = true;\n\tvar functionLengthIsWritable = true;\n\tif ('length' in fn && gOPD) {\n\t\tvar desc = gOPD(fn, 'length');\n\t\tif (desc && !desc.configurable) {\n\t\t\tfunctionLengthIsConfigurable = false;\n\t\t}\n\t\tif (desc && !desc.writable) {\n\t\t\tfunctionLengthIsWritable = false;\n\t\t}\n\t}\n\n\tif (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {\n\t\tif (hasDescriptors) {\n\t\t\tdefine(/** @type {Parameters[0]} */ (fn), 'length', length, true, true);\n\t\t} else {\n\t\t\tdefine(/** @type {Parameters[0]} */ (fn), 'length', length);\n\t\t}\n\t}\n\treturn fn;\n};\n","'use strict';\n\nvar GetIntrinsic = require('get-intrinsic');\nvar callBound = require('call-bind/callBound');\nvar inspect = require('object-inspect');\n\nvar $TypeError = require('es-errors/type');\nvar $WeakMap = GetIntrinsic('%WeakMap%', true);\nvar $Map = GetIntrinsic('%Map%', true);\n\nvar $weakMapGet = callBound('WeakMap.prototype.get', true);\nvar $weakMapSet = callBound('WeakMap.prototype.set', true);\nvar $weakMapHas = callBound('WeakMap.prototype.has', true);\nvar $mapGet = callBound('Map.prototype.get', true);\nvar $mapSet = callBound('Map.prototype.set', true);\nvar $mapHas = callBound('Map.prototype.has', true);\n\n/*\n* This function traverses the list returning the node corresponding to the given key.\n*\n* That node is also moved to the head of the list, so that if it's accessed again we don't need to traverse the whole list. By doing so, all the recently used nodes can be accessed relatively quickly.\n*/\n/** @type {import('.').listGetNode} */\nvar listGetNode = function (list, key) { // eslint-disable-line consistent-return\n\t/** @type {typeof list | NonNullable<(typeof list)['next']>} */\n\tvar prev = list;\n\t/** @type {(typeof list)['next']} */\n\tvar curr;\n\tfor (; (curr = prev.next) !== null; prev = curr) {\n\t\tif (curr.key === key) {\n\t\t\tprev.next = curr.next;\n\t\t\t// eslint-disable-next-line no-extra-parens\n\t\t\tcurr.next = /** @type {NonNullable} */ (list.next);\n\t\t\tlist.next = curr; // eslint-disable-line no-param-reassign\n\t\t\treturn curr;\n\t\t}\n\t}\n};\n\n/** @type {import('.').listGet} */\nvar listGet = function (objects, key) {\n\tvar node = listGetNode(objects, key);\n\treturn node && node.value;\n};\n/** @type {import('.').listSet} */\nvar listSet = function (objects, key, value) {\n\tvar node = listGetNode(objects, key);\n\tif (node) {\n\t\tnode.value = value;\n\t} else {\n\t\t// Prepend the new node to the beginning of the list\n\t\tobjects.next = /** @type {import('.').ListNode} */ ({ // eslint-disable-line no-param-reassign, no-extra-parens\n\t\t\tkey: key,\n\t\t\tnext: objects.next,\n\t\t\tvalue: value\n\t\t});\n\t}\n};\n/** @type {import('.').listHas} */\nvar listHas = function (objects, key) {\n\treturn !!listGetNode(objects, key);\n};\n\n/** @type {import('.')} */\nmodule.exports = function getSideChannel() {\n\t/** @type {WeakMap} */ var $wm;\n\t/** @type {Map} */ var $m;\n\t/** @type {import('.').RootNode} */ var $o;\n\n\t/** @type {import('.').Channel} */\n\tvar channel = {\n\t\tassert: function (key) {\n\t\t\tif (!channel.has(key)) {\n\t\t\t\tthrow new $TypeError('Side channel does not contain ' + inspect(key));\n\t\t\t}\n\t\t},\n\t\tget: function (key) { // eslint-disable-line consistent-return\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapGet($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapGet($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn listGet($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t},\n\t\thas: function (key) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif ($wm) {\n\t\t\t\t\treturn $weakMapHas($wm, key);\n\t\t\t\t}\n\t\t\t} else if ($Map) {\n\t\t\t\tif ($m) {\n\t\t\t\t\treturn $mapHas($m, key);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif ($o) { // eslint-disable-line no-lonely-if\n\t\t\t\t\treturn listHas($o, key);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t},\n\t\tset: function (key, value) {\n\t\t\tif ($WeakMap && key && (typeof key === 'object' || typeof key === 'function')) {\n\t\t\t\tif (!$wm) {\n\t\t\t\t\t$wm = new $WeakMap();\n\t\t\t\t}\n\t\t\t\t$weakMapSet($wm, key, value);\n\t\t\t} else if ($Map) {\n\t\t\t\tif (!$m) {\n\t\t\t\t\t$m = new $Map();\n\t\t\t\t}\n\t\t\t\t$mapSet($m, key, value);\n\t\t\t} else {\n\t\t\t\tif (!$o) {\n\t\t\t\t\t// Initialize the linked list as an empty node, so that we don't have to special-case handling of the first node: we can always refer to it as (previous node).next, instead of something like (list).head\n\t\t\t\t\t$o = { key: {}, next: null };\n\t\t\t\t}\n\t\t\t\tlistSet($o, key, value);\n\t\t\t}\n\t\t}\n\t};\n\treturn channel;\n};\n","var ClientRequest = require('./lib/request')\nvar response = require('./lib/response')\nvar extend = require('xtend')\nvar statusCodes = require('builtin-status-codes')\nvar url = require('url')\n\nvar http = exports\n\nhttp.request = function (opts, cb) {\n\tif (typeof opts === 'string')\n\t\topts = url.parse(opts)\n\telse\n\t\topts = extend(opts)\n\n\t// Normally, the page is loaded from http or https, so not specifying a protocol\n\t// will result in a (valid) protocol-relative url. However, this won't work if\n\t// the protocol is something else, like 'file:'\n\tvar defaultProtocol = global.location.protocol.search(/^https?:$/) === -1 ? 'http:' : ''\n\n\tvar protocol = opts.protocol || defaultProtocol\n\tvar host = opts.hostname || opts.host\n\tvar port = opts.port\n\tvar path = opts.path || '/'\n\n\t// Necessary for IPv6 addresses\n\tif (host && host.indexOf(':') !== -1)\n\t\thost = '[' + host + ']'\n\n\t// This may be a relative url. The browser should always be able to interpret it correctly.\n\topts.url = (host ? (protocol + '//' + host) : '') + (port ? ':' + port : '') + path\n\topts.method = (opts.method || 'GET').toUpperCase()\n\topts.headers = opts.headers || {}\n\n\t// Also valid opts.auth, opts.mode\n\n\tvar req = new ClientRequest(opts)\n\tif (cb)\n\t\treq.on('response', cb)\n\treturn req\n}\n\nhttp.get = function get (opts, cb) {\n\tvar req = http.request(opts, cb)\n\treq.end()\n\treturn req\n}\n\nhttp.ClientRequest = ClientRequest\nhttp.IncomingMessage = response.IncomingMessage\n\nhttp.Agent = function () {}\nhttp.Agent.defaultMaxSockets = 4\n\nhttp.globalAgent = new http.Agent()\n\nhttp.STATUS_CODES = statusCodes\n\nhttp.METHODS = [\n\t'CHECKOUT',\n\t'CONNECT',\n\t'COPY',\n\t'DELETE',\n\t'GET',\n\t'HEAD',\n\t'LOCK',\n\t'M-SEARCH',\n\t'MERGE',\n\t'MKACTIVITY',\n\t'MKCOL',\n\t'MOVE',\n\t'NOTIFY',\n\t'OPTIONS',\n\t'PATCH',\n\t'POST',\n\t'PROPFIND',\n\t'PROPPATCH',\n\t'PURGE',\n\t'PUT',\n\t'REPORT',\n\t'SEARCH',\n\t'SUBSCRIBE',\n\t'TRACE',\n\t'UNLOCK',\n\t'UNSUBSCRIBE'\n]","exports.fetch = isFunction(global.fetch) && isFunction(global.ReadableStream)\n\nexports.writableStream = isFunction(global.WritableStream)\n\nexports.abortController = isFunction(global.AbortController)\n\n// The xhr request to example.com may violate some restrictive CSP configurations,\n// so if we're running in a browser that supports `fetch`, avoid calling getXHR()\n// and assume support for certain features below.\nvar xhr\nfunction getXHR () {\n\t// Cache the xhr value\n\tif (xhr !== undefined) return xhr\n\n\tif (global.XMLHttpRequest) {\n\t\txhr = new global.XMLHttpRequest()\n\t\t// If XDomainRequest is available (ie only, where xhr might not work\n\t\t// cross domain), use the page location. Otherwise use example.com\n\t\t// Note: this doesn't actually make an http request.\n\t\ttry {\n\t\t\txhr.open('GET', global.XDomainRequest ? '/' : 'https://example.com')\n\t\t} catch(e) {\n\t\t\txhr = null\n\t\t}\n\t} else {\n\t\t// Service workers don't have XHR\n\t\txhr = null\n\t}\n\treturn xhr\n}\n\nfunction checkTypeSupport (type) {\n\tvar xhr = getXHR()\n\tif (!xhr) return false\n\ttry {\n\t\txhr.responseType = type\n\t\treturn xhr.responseType === type\n\t} catch (e) {}\n\treturn false\n}\n\n// If fetch is supported, then arraybuffer will be supported too. Skip calling\n// checkTypeSupport(), since that calls getXHR().\nexports.arraybuffer = exports.fetch || checkTypeSupport('arraybuffer')\n\n// These next two tests unavoidably show warnings in Chrome. Since fetch will always\n// be used if it's available, just return false for these to avoid the warnings.\nexports.msstream = !exports.fetch && checkTypeSupport('ms-stream')\nexports.mozchunkedarraybuffer = !exports.fetch && checkTypeSupport('moz-chunked-arraybuffer')\n\n// If fetch is supported, then overrideMimeType will be supported too. Skip calling\n// getXHR().\nexports.overrideMimeType = exports.fetch || (getXHR() ? isFunction(getXHR().overrideMimeType) : false)\n\nfunction isFunction (value) {\n\treturn typeof value === 'function'\n}\n\nxhr = null // Help gc\n","var capability = require('./capability')\nvar inherits = require('inherits')\nvar response = require('./response')\nvar stream = require('readable-stream')\n\nvar IncomingMessage = response.IncomingMessage\nvar rStates = response.readyStates\n\nfunction decideMode (preferBinary, useFetch) {\n\tif (capability.fetch && useFetch) {\n\t\treturn 'fetch'\n\t} else if (capability.mozchunkedarraybuffer) {\n\t\treturn 'moz-chunked-arraybuffer'\n\t} else if (capability.msstream) {\n\t\treturn 'ms-stream'\n\t} else if (capability.arraybuffer && preferBinary) {\n\t\treturn 'arraybuffer'\n\t} else {\n\t\treturn 'text'\n\t}\n}\n\nvar ClientRequest = module.exports = function (opts) {\n\tvar self = this\n\tstream.Writable.call(self)\n\n\tself._opts = opts\n\tself._body = []\n\tself._headers = {}\n\tif (opts.auth)\n\t\tself.setHeader('Authorization', 'Basic ' + Buffer.from(opts.auth).toString('base64'))\n\tObject.keys(opts.headers).forEach(function (name) {\n\t\tself.setHeader(name, opts.headers[name])\n\t})\n\n\tvar preferBinary\n\tvar useFetch = true\n\tif (opts.mode === 'disable-fetch' || ('requestTimeout' in opts && !capability.abortController)) {\n\t\t// If the use of XHR should be preferred. Not typically needed.\n\t\tuseFetch = false\n\t\tpreferBinary = true\n\t} else if (opts.mode === 'prefer-streaming') {\n\t\t// If streaming is a high priority but binary compatibility and\n\t\t// the accuracy of the 'content-type' header aren't\n\t\tpreferBinary = false\n\t} else if (opts.mode === 'allow-wrong-content-type') {\n\t\t// If streaming is more important than preserving the 'content-type' header\n\t\tpreferBinary = !capability.overrideMimeType\n\t} else if (!opts.mode || opts.mode === 'default' || opts.mode === 'prefer-fast') {\n\t\t// Use binary if text streaming may corrupt data or the content-type header, or for speed\n\t\tpreferBinary = true\n\t} else {\n\t\tthrow new Error('Invalid value for opts.mode')\n\t}\n\tself._mode = decideMode(preferBinary, useFetch)\n\tself._fetchTimer = null\n\tself._socketTimeout = null\n\tself._socketTimer = null\n\n\tself.on('finish', function () {\n\t\tself._onFinish()\n\t})\n}\n\ninherits(ClientRequest, stream.Writable)\n\nClientRequest.prototype.setHeader = function (name, value) {\n\tvar self = this\n\tvar lowerName = name.toLowerCase()\n\t// This check is not necessary, but it prevents warnings from browsers about setting unsafe\n\t// headers. To be honest I'm not entirely sure hiding these warnings is a good thing, but\n\t// http-browserify did it, so I will too.\n\tif (unsafeHeaders.indexOf(lowerName) !== -1)\n\t\treturn\n\n\tself._headers[lowerName] = {\n\t\tname: name,\n\t\tvalue: value\n\t}\n}\n\nClientRequest.prototype.getHeader = function (name) {\n\tvar header = this._headers[name.toLowerCase()]\n\tif (header)\n\t\treturn header.value\n\treturn null\n}\n\nClientRequest.prototype.removeHeader = function (name) {\n\tvar self = this\n\tdelete self._headers[name.toLowerCase()]\n}\n\nClientRequest.prototype._onFinish = function () {\n\tvar self = this\n\n\tif (self._destroyed)\n\t\treturn\n\tvar opts = self._opts\n\n\tif ('timeout' in opts && opts.timeout !== 0) {\n\t\tself.setTimeout(opts.timeout)\n\t}\n\n\tvar headersObj = self._headers\n\tvar body = null\n\tif (opts.method !== 'GET' && opts.method !== 'HEAD') {\n body = new Blob(self._body, {\n type: (headersObj['content-type'] || {}).value || ''\n });\n }\n\n\t// create flattened list of headers\n\tvar headersList = []\n\tObject.keys(headersObj).forEach(function (keyName) {\n\t\tvar name = headersObj[keyName].name\n\t\tvar value = headersObj[keyName].value\n\t\tif (Array.isArray(value)) {\n\t\t\tvalue.forEach(function (v) {\n\t\t\t\theadersList.push([name, v])\n\t\t\t})\n\t\t} else {\n\t\t\theadersList.push([name, value])\n\t\t}\n\t})\n\n\tif (self._mode === 'fetch') {\n\t\tvar signal = null\n\t\tif (capability.abortController) {\n\t\t\tvar controller = new AbortController()\n\t\t\tsignal = controller.signal\n\t\t\tself._fetchAbortController = controller\n\n\t\t\tif ('requestTimeout' in opts && opts.requestTimeout !== 0) {\n\t\t\t\tself._fetchTimer = global.setTimeout(function () {\n\t\t\t\t\tself.emit('requestTimeout')\n\t\t\t\t\tif (self._fetchAbortController)\n\t\t\t\t\t\tself._fetchAbortController.abort()\n\t\t\t\t}, opts.requestTimeout)\n\t\t\t}\n\t\t}\n\n\t\tglobal.fetch(self._opts.url, {\n\t\t\tmethod: self._opts.method,\n\t\t\theaders: headersList,\n\t\t\tbody: body || undefined,\n\t\t\tmode: 'cors',\n\t\t\tcredentials: opts.withCredentials ? 'include' : 'same-origin',\n\t\t\tsignal: signal\n\t\t}).then(function (response) {\n\t\t\tself._fetchResponse = response\n\t\t\tself._resetTimers(false)\n\t\t\tself._connect()\n\t\t}, function (reason) {\n\t\t\tself._resetTimers(true)\n\t\t\tif (!self._destroyed)\n\t\t\t\tself.emit('error', reason)\n\t\t})\n\t} else {\n\t\tvar xhr = self._xhr = new global.XMLHttpRequest()\n\t\ttry {\n\t\t\txhr.open(self._opts.method, self._opts.url, true)\n\t\t} catch (err) {\n\t\t\tprocess.nextTick(function () {\n\t\t\t\tself.emit('error', err)\n\t\t\t})\n\t\t\treturn\n\t\t}\n\n\t\t// Can't set responseType on really old browsers\n\t\tif ('responseType' in xhr)\n\t\t\txhr.responseType = self._mode\n\n\t\tif ('withCredentials' in xhr)\n\t\t\txhr.withCredentials = !!opts.withCredentials\n\n\t\tif (self._mode === 'text' && 'overrideMimeType' in xhr)\n\t\t\txhr.overrideMimeType('text/plain; charset=x-user-defined')\n\n\t\tif ('requestTimeout' in opts) {\n\t\t\txhr.timeout = opts.requestTimeout\n\t\t\txhr.ontimeout = function () {\n\t\t\t\tself.emit('requestTimeout')\n\t\t\t}\n\t\t}\n\n\t\theadersList.forEach(function (header) {\n\t\t\txhr.setRequestHeader(header[0], header[1])\n\t\t})\n\n\t\tself._response = null\n\t\txhr.onreadystatechange = function () {\n\t\t\tswitch (xhr.readyState) {\n\t\t\t\tcase rStates.LOADING:\n\t\t\t\tcase rStates.DONE:\n\t\t\t\t\tself._onXHRProgress()\n\t\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t\t// Necessary for streaming in Firefox, since xhr.response is ONLY defined\n\t\t// in onprogress, not in onreadystatechange with xhr.readyState = 3\n\t\tif (self._mode === 'moz-chunked-arraybuffer') {\n\t\t\txhr.onprogress = function () {\n\t\t\t\tself._onXHRProgress()\n\t\t\t}\n\t\t}\n\n\t\txhr.onerror = function () {\n\t\t\tif (self._destroyed)\n\t\t\t\treturn\n\t\t\tself._resetTimers(true)\n\t\t\tself.emit('error', new Error('XHR error'))\n\t\t}\n\n\t\ttry {\n\t\t\txhr.send(body)\n\t\t} catch (err) {\n\t\t\tprocess.nextTick(function () {\n\t\t\t\tself.emit('error', err)\n\t\t\t})\n\t\t\treturn\n\t\t}\n\t}\n}\n\n/**\n * Checks if xhr.status is readable and non-zero, indicating no error.\n * Even though the spec says it should be available in readyState 3,\n * accessing it throws an exception in IE8\n */\nfunction statusValid (xhr) {\n\ttry {\n\t\tvar status = xhr.status\n\t\treturn (status !== null && status !== 0)\n\t} catch (e) {\n\t\treturn false\n\t}\n}\n\nClientRequest.prototype._onXHRProgress = function () {\n\tvar self = this\n\n\tself._resetTimers(false)\n\n\tif (!statusValid(self._xhr) || self._destroyed)\n\t\treturn\n\n\tif (!self._response)\n\t\tself._connect()\n\n\tself._response._onXHRProgress(self._resetTimers.bind(self))\n}\n\nClientRequest.prototype._connect = function () {\n\tvar self = this\n\n\tif (self._destroyed)\n\t\treturn\n\n\tself._response = new IncomingMessage(self._xhr, self._fetchResponse, self._mode, self._resetTimers.bind(self))\n\tself._response.on('error', function(err) {\n\t\tself.emit('error', err)\n\t})\n\n\tself.emit('response', self._response)\n}\n\nClientRequest.prototype._write = function (chunk, encoding, cb) {\n\tvar self = this\n\n\tself._body.push(chunk)\n\tcb()\n}\n\nClientRequest.prototype._resetTimers = function (done) {\n\tvar self = this\n\n\tglobal.clearTimeout(self._socketTimer)\n\tself._socketTimer = null\n\n\tif (done) {\n\t\tglobal.clearTimeout(self._fetchTimer)\n\t\tself._fetchTimer = null\n\t} else if (self._socketTimeout) {\n\t\tself._socketTimer = global.setTimeout(function () {\n\t\t\tself.emit('timeout')\n\t\t}, self._socketTimeout)\n\t}\n}\n\nClientRequest.prototype.abort = ClientRequest.prototype.destroy = function (err) {\n\tvar self = this\n\tself._destroyed = true\n\tself._resetTimers(true)\n\tif (self._response)\n\t\tself._response._destroyed = true\n\tif (self._xhr)\n\t\tself._xhr.abort()\n\telse if (self._fetchAbortController)\n\t\tself._fetchAbortController.abort()\n\n\tif (err)\n\t\tself.emit('error', err)\n}\n\nClientRequest.prototype.end = function (data, encoding, cb) {\n\tvar self = this\n\tif (typeof data === 'function') {\n\t\tcb = data\n\t\tdata = undefined\n\t}\n\n\tstream.Writable.prototype.end.call(self, data, encoding, cb)\n}\n\nClientRequest.prototype.setTimeout = function (timeout, cb) {\n\tvar self = this\n\n\tif (cb)\n\t\tself.once('timeout', cb)\n\n\tself._socketTimeout = timeout\n\tself._resetTimers(false)\n}\n\nClientRequest.prototype.flushHeaders = function () {}\nClientRequest.prototype.setNoDelay = function () {}\nClientRequest.prototype.setSocketKeepAlive = function () {}\n\n// Taken from http://www.w3.org/TR/XMLHttpRequest/#the-setrequestheader%28%29-method\nvar unsafeHeaders = [\n\t'accept-charset',\n\t'accept-encoding',\n\t'access-control-request-headers',\n\t'access-control-request-method',\n\t'connection',\n\t'content-length',\n\t'cookie',\n\t'cookie2',\n\t'date',\n\t'dnt',\n\t'expect',\n\t'host',\n\t'keep-alive',\n\t'origin',\n\t'referer',\n\t'te',\n\t'trailer',\n\t'transfer-encoding',\n\t'upgrade',\n\t'via'\n]\n","var capability = require('./capability')\nvar inherits = require('inherits')\nvar stream = require('readable-stream')\n\nvar rStates = exports.readyStates = {\n\tUNSENT: 0,\n\tOPENED: 1,\n\tHEADERS_RECEIVED: 2,\n\tLOADING: 3,\n\tDONE: 4\n}\n\nvar IncomingMessage = exports.IncomingMessage = function (xhr, response, mode, resetTimers) {\n\tvar self = this\n\tstream.Readable.call(self)\n\n\tself._mode = mode\n\tself.headers = {}\n\tself.rawHeaders = []\n\tself.trailers = {}\n\tself.rawTrailers = []\n\n\t// Fake the 'close' event, but only once 'end' fires\n\tself.on('end', function () {\n\t\t// The nextTick is necessary to prevent the 'request' module from causing an infinite loop\n\t\tprocess.nextTick(function () {\n\t\t\tself.emit('close')\n\t\t})\n\t})\n\n\tif (mode === 'fetch') {\n\t\tself._fetchResponse = response\n\n\t\tself.url = response.url\n\t\tself.statusCode = response.status\n\t\tself.statusMessage = response.statusText\n\t\t\n\t\tresponse.headers.forEach(function (header, key){\n\t\t\tself.headers[key.toLowerCase()] = header\n\t\t\tself.rawHeaders.push(key, header)\n\t\t})\n\n\t\tif (capability.writableStream) {\n\t\t\tvar writable = new WritableStream({\n\t\t\t\twrite: function (chunk) {\n\t\t\t\t\tresetTimers(false)\n\t\t\t\t\treturn new Promise(function (resolve, reject) {\n\t\t\t\t\t\tif (self._destroyed) {\n\t\t\t\t\t\t\treject()\n\t\t\t\t\t\t} else if(self.push(Buffer.from(chunk))) {\n\t\t\t\t\t\t\tresolve()\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tself._resumeFetch = resolve\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t},\n\t\t\t\tclose: function () {\n\t\t\t\t\tresetTimers(true)\n\t\t\t\t\tif (!self._destroyed)\n\t\t\t\t\t\tself.push(null)\n\t\t\t\t},\n\t\t\t\tabort: function (err) {\n\t\t\t\t\tresetTimers(true)\n\t\t\t\t\tif (!self._destroyed)\n\t\t\t\t\t\tself.emit('error', err)\n\t\t\t\t}\n\t\t\t})\n\n\t\t\ttry {\n\t\t\t\tresponse.body.pipeTo(writable).catch(function (err) {\n\t\t\t\t\tresetTimers(true)\n\t\t\t\t\tif (!self._destroyed)\n\t\t\t\t\t\tself.emit('error', err)\n\t\t\t\t})\n\t\t\t\treturn\n\t\t\t} catch (e) {} // pipeTo method isn't defined. Can't find a better way to feature test this\n\t\t}\n\t\t// fallback for when writableStream or pipeTo aren't available\n\t\tvar reader = response.body.getReader()\n\t\tfunction read () {\n\t\t\treader.read().then(function (result) {\n\t\t\t\tif (self._destroyed)\n\t\t\t\t\treturn\n\t\t\t\tresetTimers(result.done)\n\t\t\t\tif (result.done) {\n\t\t\t\t\tself.push(null)\n\t\t\t\t\treturn\n\t\t\t\t}\n\t\t\t\tself.push(Buffer.from(result.value))\n\t\t\t\tread()\n\t\t\t}).catch(function (err) {\n\t\t\t\tresetTimers(true)\n\t\t\t\tif (!self._destroyed)\n\t\t\t\t\tself.emit('error', err)\n\t\t\t})\n\t\t}\n\t\tread()\n\t} else {\n\t\tself._xhr = xhr\n\t\tself._pos = 0\n\n\t\tself.url = xhr.responseURL\n\t\tself.statusCode = xhr.status\n\t\tself.statusMessage = xhr.statusText\n\t\tvar headers = xhr.getAllResponseHeaders().split(/\\r?\\n/)\n\t\theaders.forEach(function (header) {\n\t\t\tvar matches = header.match(/^([^:]+):\\s*(.*)/)\n\t\t\tif (matches) {\n\t\t\t\tvar key = matches[1].toLowerCase()\n\t\t\t\tif (key === 'set-cookie') {\n\t\t\t\t\tif (self.headers[key] === undefined) {\n\t\t\t\t\t\tself.headers[key] = []\n\t\t\t\t\t}\n\t\t\t\t\tself.headers[key].push(matches[2])\n\t\t\t\t} else if (self.headers[key] !== undefined) {\n\t\t\t\t\tself.headers[key] += ', ' + matches[2]\n\t\t\t\t} else {\n\t\t\t\t\tself.headers[key] = matches[2]\n\t\t\t\t}\n\t\t\t\tself.rawHeaders.push(matches[1], matches[2])\n\t\t\t}\n\t\t})\n\n\t\tself._charset = 'x-user-defined'\n\t\tif (!capability.overrideMimeType) {\n\t\t\tvar mimeType = self.rawHeaders['mime-type']\n\t\t\tif (mimeType) {\n\t\t\t\tvar charsetMatch = mimeType.match(/;\\s*charset=([^;])(;|$)/)\n\t\t\t\tif (charsetMatch) {\n\t\t\t\t\tself._charset = charsetMatch[1].toLowerCase()\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!self._charset)\n\t\t\t\tself._charset = 'utf-8' // best guess\n\t\t}\n\t}\n}\n\ninherits(IncomingMessage, stream.Readable)\n\nIncomingMessage.prototype._read = function () {\n\tvar self = this\n\n\tvar resolve = self._resumeFetch\n\tif (resolve) {\n\t\tself._resumeFetch = null\n\t\tresolve()\n\t}\n}\n\nIncomingMessage.prototype._onXHRProgress = function (resetTimers) {\n\tvar self = this\n\n\tvar xhr = self._xhr\n\n\tvar response = null\n\tswitch (self._mode) {\n\t\tcase 'text':\n\t\t\tresponse = xhr.responseText\n\t\t\tif (response.length > self._pos) {\n\t\t\t\tvar newData = response.substr(self._pos)\n\t\t\t\tif (self._charset === 'x-user-defined') {\n\t\t\t\t\tvar buffer = Buffer.alloc(newData.length)\n\t\t\t\t\tfor (var i = 0; i < newData.length; i++)\n\t\t\t\t\t\tbuffer[i] = newData.charCodeAt(i) & 0xff\n\n\t\t\t\t\tself.push(buffer)\n\t\t\t\t} else {\n\t\t\t\t\tself.push(newData, self._charset)\n\t\t\t\t}\n\t\t\t\tself._pos = response.length\n\t\t\t}\n\t\t\tbreak\n\t\tcase 'arraybuffer':\n\t\t\tif (xhr.readyState !== rStates.DONE || !xhr.response)\n\t\t\t\tbreak\n\t\t\tresponse = xhr.response\n\t\t\tself.push(Buffer.from(new Uint8Array(response)))\n\t\t\tbreak\n\t\tcase 'moz-chunked-arraybuffer': // take whole\n\t\t\tresponse = xhr.response\n\t\t\tif (xhr.readyState !== rStates.LOADING || !response)\n\t\t\t\tbreak\n\t\t\tself.push(Buffer.from(new Uint8Array(response)))\n\t\t\tbreak\n\t\tcase 'ms-stream':\n\t\t\tresponse = xhr.response\n\t\t\tif (xhr.readyState !== rStates.LOADING)\n\t\t\t\tbreak\n\t\t\tvar reader = new global.MSStreamReader()\n\t\t\treader.onprogress = function () {\n\t\t\t\tif (reader.result.byteLength > self._pos) {\n\t\t\t\t\tself.push(Buffer.from(new Uint8Array(reader.result.slice(self._pos))))\n\t\t\t\t\tself._pos = reader.result.byteLength\n\t\t\t\t}\n\t\t\t}\n\t\t\treader.onload = function () {\n\t\t\t\tresetTimers(true)\n\t\t\t\tself.push(null)\n\t\t\t}\n\t\t\t// reader.onerror = ??? // TODO: this\n\t\t\treader.readAsArrayBuffer(response)\n\t\t\tbreak\n\t}\n\n\t// The ms-stream case handles end separately in reader.onload()\n\tif (self._xhr.readyState === rStates.DONE && self._mode !== 'ms-stream') {\n\t\tresetTimers(true)\n\t\tself.push(null)\n\t}\n}\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n'use strict';\n\n/**/\n\nvar Buffer = require('safe-buffer').Buffer;\n/**/\n\nvar isEncoding = Buffer.isEncoding || function (encoding) {\n encoding = '' + encoding;\n switch (encoding && encoding.toLowerCase()) {\n case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw':\n return true;\n default:\n return false;\n }\n};\n\nfunction _normalizeEncoding(enc) {\n if (!enc) return 'utf8';\n var retried;\n while (true) {\n switch (enc) {\n case 'utf8':\n case 'utf-8':\n return 'utf8';\n case 'ucs2':\n case 'ucs-2':\n case 'utf16le':\n case 'utf-16le':\n return 'utf16le';\n case 'latin1':\n case 'binary':\n return 'latin1';\n case 'base64':\n case 'ascii':\n case 'hex':\n return enc;\n default:\n if (retried) return; // undefined\n enc = ('' + enc).toLowerCase();\n retried = true;\n }\n }\n};\n\n// Do not cache `Buffer.isEncoding` when checking encoding names as some\n// modules monkey-patch it to support additional encodings\nfunction normalizeEncoding(enc) {\n var nenc = _normalizeEncoding(enc);\n if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc);\n return nenc || enc;\n}\n\n// StringDecoder provides an interface for efficiently splitting a series of\n// buffers into a series of JS strings without breaking apart multi-byte\n// characters.\nexports.StringDecoder = StringDecoder;\nfunction StringDecoder(encoding) {\n this.encoding = normalizeEncoding(encoding);\n var nb;\n switch (this.encoding) {\n case 'utf16le':\n this.text = utf16Text;\n this.end = utf16End;\n nb = 4;\n break;\n case 'utf8':\n this.fillLast = utf8FillLast;\n nb = 4;\n break;\n case 'base64':\n this.text = base64Text;\n this.end = base64End;\n nb = 3;\n break;\n default:\n this.write = simpleWrite;\n this.end = simpleEnd;\n return;\n }\n this.lastNeed = 0;\n this.lastTotal = 0;\n this.lastChar = Buffer.allocUnsafe(nb);\n}\n\nStringDecoder.prototype.write = function (buf) {\n if (buf.length === 0) return '';\n var r;\n var i;\n if (this.lastNeed) {\n r = this.fillLast(buf);\n if (r === undefined) return '';\n i = this.lastNeed;\n this.lastNeed = 0;\n } else {\n i = 0;\n }\n if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i);\n return r || '';\n};\n\nStringDecoder.prototype.end = utf8End;\n\n// Returns only complete characters in a Buffer\nStringDecoder.prototype.text = utf8Text;\n\n// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer\nStringDecoder.prototype.fillLast = function (buf) {\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length);\n this.lastNeed -= buf.length;\n};\n\n// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a\n// continuation byte. If an invalid byte is detected, -2 is returned.\nfunction utf8CheckByte(byte) {\n if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4;\n return byte >> 6 === 0x02 ? -1 : -2;\n}\n\n// Checks at most 3 bytes at the end of a Buffer in order to detect an\n// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4)\n// needed to complete the UTF-8 character (if applicable) are returned.\nfunction utf8CheckIncomplete(self, buf, i) {\n var j = buf.length - 1;\n if (j < i) return 0;\n var nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 1;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) self.lastNeed = nb - 2;\n return nb;\n }\n if (--j < i || nb === -2) return 0;\n nb = utf8CheckByte(buf[j]);\n if (nb >= 0) {\n if (nb > 0) {\n if (nb === 2) nb = 0;else self.lastNeed = nb - 3;\n }\n return nb;\n }\n return 0;\n}\n\n// Validates as many continuation bytes for a multi-byte UTF-8 character as\n// needed or are available. If we see a non-continuation byte where we expect\n// one, we \"replace\" the validated continuation bytes we've seen so far with\n// a single UTF-8 replacement character ('\\ufffd'), to match v8's UTF-8 decoding\n// behavior. The continuation byte check is included three times in the case\n// where all of the continuation bytes for a character exist in the same buffer.\n// It is also done this way as a slight performance increase instead of using a\n// loop.\nfunction utf8CheckExtraBytes(self, buf, p) {\n if ((buf[0] & 0xC0) !== 0x80) {\n self.lastNeed = 0;\n return '\\ufffd';\n }\n if (self.lastNeed > 1 && buf.length > 1) {\n if ((buf[1] & 0xC0) !== 0x80) {\n self.lastNeed = 1;\n return '\\ufffd';\n }\n if (self.lastNeed > 2 && buf.length > 2) {\n if ((buf[2] & 0xC0) !== 0x80) {\n self.lastNeed = 2;\n return '\\ufffd';\n }\n }\n }\n}\n\n// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer.\nfunction utf8FillLast(buf) {\n var p = this.lastTotal - this.lastNeed;\n var r = utf8CheckExtraBytes(this, buf, p);\n if (r !== undefined) return r;\n if (this.lastNeed <= buf.length) {\n buf.copy(this.lastChar, p, 0, this.lastNeed);\n return this.lastChar.toString(this.encoding, 0, this.lastTotal);\n }\n buf.copy(this.lastChar, p, 0, buf.length);\n this.lastNeed -= buf.length;\n}\n\n// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a\n// partial character, the character's bytes are buffered until the required\n// number of bytes are available.\nfunction utf8Text(buf, i) {\n var total = utf8CheckIncomplete(this, buf, i);\n if (!this.lastNeed) return buf.toString('utf8', i);\n this.lastTotal = total;\n var end = buf.length - (total - this.lastNeed);\n buf.copy(this.lastChar, 0, end);\n return buf.toString('utf8', i, end);\n}\n\n// For UTF-8, a replacement character is added when ending on a partial\n// character.\nfunction utf8End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + '\\ufffd';\n return r;\n}\n\n// UTF-16LE typically needs two bytes per character, but even if we have an even\n// number of bytes available, we need to check if we end on a leading/high\n// surrogate. In that case, we need to wait for the next two bytes in order to\n// decode the last character properly.\nfunction utf16Text(buf, i) {\n if ((buf.length - i) % 2 === 0) {\n var r = buf.toString('utf16le', i);\n if (r) {\n var c = r.charCodeAt(r.length - 1);\n if (c >= 0xD800 && c <= 0xDBFF) {\n this.lastNeed = 2;\n this.lastTotal = 4;\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n return r.slice(0, -1);\n }\n }\n return r;\n }\n this.lastNeed = 1;\n this.lastTotal = 2;\n this.lastChar[0] = buf[buf.length - 1];\n return buf.toString('utf16le', i, buf.length - 1);\n}\n\n// For UTF-16LE we do not explicitly append special replacement characters if we\n// end on a partial character, we simply let v8 handle that.\nfunction utf16End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) {\n var end = this.lastTotal - this.lastNeed;\n return r + this.lastChar.toString('utf16le', 0, end);\n }\n return r;\n}\n\nfunction base64Text(buf, i) {\n var n = (buf.length - i) % 3;\n if (n === 0) return buf.toString('base64', i);\n this.lastNeed = 3 - n;\n this.lastTotal = 3;\n if (n === 1) {\n this.lastChar[0] = buf[buf.length - 1];\n } else {\n this.lastChar[0] = buf[buf.length - 2];\n this.lastChar[1] = buf[buf.length - 1];\n }\n return buf.toString('base64', i, buf.length - n);\n}\n\nfunction base64End(buf) {\n var r = buf && buf.length ? this.write(buf) : '';\n if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed);\n return r;\n}\n\n// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex)\nfunction simpleWrite(buf) {\n return buf.toString(this.encoding);\n}\n\nfunction simpleEnd(buf) {\n return buf && buf.length ? this.write(buf) : '';\n}","import { keccak256 } from './keccak';\n/** address related utilities */\nexport var address;\n(function (address) {\n /**\n * derive Address from public key, note that the public key is uncompressed\n * @param pub the public key\n */\n function fromPublicKey(pub) {\n return '0x' + keccak256(pub.slice(1)).slice(12).toString('hex');\n }\n address.fromPublicKey = fromPublicKey;\n /**\n * to check if a value presents an address\n * @param v the value to be checked\n */\n function test(v) {\n return typeof v === 'string' && /^0x[0-9a-f]{40}$/i.test(v);\n }\n address.test = test;\n /**\n * encode the address to checksumed address that is compatible with eip-55\n * @param address input address\n */\n function toChecksumed(addr) {\n if (!test(addr)) {\n throw new Error('invalid address');\n }\n addr = addr.slice(2).toLowerCase();\n const hash = keccak256(addr);\n let checksumed = '0x';\n for (let i = 0; i < addr.length; i++) {\n // tslint:disable-next-line:no-bitwise\n let byte = hash[i >> 1];\n if (i % 2 === 0) {\n // tslint:disable-next-line:no-bitwise\n byte >>= 4;\n }\n if (byte % 16 >= 8) {\n checksumed += addr[i].toUpperCase();\n }\n else {\n checksumed += addr[i];\n }\n }\n return checksumed;\n }\n address.toChecksumed = toChecksumed;\n})(address || (address = {}));\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWRkcmVzcy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9hZGRyZXNzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsTUFBTSxVQUFVLENBQUE7QUFFcEMsZ0NBQWdDO0FBQ2hDLE1BQU0sS0FBVyxPQUF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lBQ3ZCLElBQUksQ0FBQyxHQUFHLENBQUMsS0FBSyxDQUFDLEVBQUU7Z0JBQ2Isc0NBQXNDO2dCQUN0QyxJQUFJLEtBQUssQ0FBQyxDQUFBO2FBQ2I7WUFFRCxJQUFJLElBQUksR0FBRyxFQUFFLElBQUksQ0FBQyxFQUFFO2dCQUNoQixVQUFVLElBQUksSUFBSSxDQUFDLENBQUMsQ0FBQyxDQUFDLFdBQVcsRUFBRSxDQUFBO2FBQ3RDO2lCQUFNO2dCQUNILFVBQVUsSUFBSSxJQUFJLENBQUMsQ0FBQyxDQUFDLENBQUE7YUFDeEI7U0FDSjtRQUNELE9BQU8sVUFBVSxDQUFBO0lBQ3JCLENBQUM7SUF2QmUsb0JBQVksZUF1QjNCLENBQUE7QUFDTCxDQUFDLEVBN0NnQixPQUFPLEtBQVAsT0FBTyxRQTZDdkIifQ==","import { keccak_256 } from 'js-sha3';\nimport { Buffer } from 'buffer';\n/**\n * computes keccak256 hash of given data\n * @param data one or more Buffer | string\n */\nexport function keccak256(...data) {\n const h = keccak_256.create();\n data.forEach(d => {\n if (Buffer.isBuffer(d)) {\n h.update(d);\n }\n else {\n h.update(Buffer.from(d, 'utf8'));\n }\n });\n return Buffer.from(h.digest());\n}\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoia2VjY2FrLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2tlY2Nhay50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sU0FBUyxDQUFBO0FBQ3BDLE9BQU8sRUFBRSxNQUFNLEVBQUUsTUFBTSxRQUFRLENBQUE7QUFDL0I7OztHQUdHO0FBQ0gsTUFBTSxVQUFVLFNBQVMsQ0FBQyxHQUFHLElBQTRCO0lBQ3JELE1BQU0sQ0FBQyxHQUFHLFVBQVUsQ0FBQyxNQUFNLEVBQUUsQ0FBQTtJQUM3QixJQUFJLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQyxFQUFFO1FBQ2IsSUFBSSxNQUFNLENBQUMsUUFBUSxDQUFDLENBQUMsQ0FBQyxFQUFFO1lBQ3BCLENBQUMsQ0FBQyxNQUFNLENBQUMsQ0FBQyxDQUFDLENBQUE7U0FDZDthQUFNO1lBQ0gsQ0FBQyxDQUFDLE1BQU0sQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLENBQUMsRUFBRSxNQUFNLENBQUMsQ0FBQyxDQUFBO1NBQ25DO0lBQ0wsQ0FBQyxDQUFDLENBQUE7SUFDRixPQUFPLE1BQU0sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDLE1BQU0sRUFBRSxDQUFDLENBQUE7QUFDbEMsQ0FBQyJ9","/*! https://mths.be/punycode v1.4.1 by @mathias */\n;(function(root) {\n\n\t/** Detect free variables */\n\tvar freeExports = typeof exports == 'object' && exports &&\n\t\t!exports.nodeType && exports;\n\tvar freeModule = typeof module == 'object' && module &&\n\t\t!module.nodeType && module;\n\tvar freeGlobal = typeof global == 'object' && global;\n\tif (\n\t\tfreeGlobal.global === freeGlobal ||\n\t\tfreeGlobal.window === freeGlobal ||\n\t\tfreeGlobal.self === freeGlobal\n\t) {\n\t\troot = freeGlobal;\n\t}\n\n\t/**\n\t * The `punycode` object.\n\t * @name punycode\n\t * @type Object\n\t */\n\tvar punycode,\n\n\t/** Highest positive signed 32-bit float value */\n\tmaxInt = 2147483647, // aka. 0x7FFFFFFF or 2^31-1\n\n\t/** Bootstring parameters */\n\tbase = 36,\n\ttMin = 1,\n\ttMax = 26,\n\tskew = 38,\n\tdamp = 700,\n\tinitialBias = 72,\n\tinitialN = 128, // 0x80\n\tdelimiter = '-', // '\\x2D'\n\n\t/** Regular expressions */\n\tregexPunycode = /^xn--/,\n\tregexNonASCII = /[^\\x20-\\x7E]/, // unprintable ASCII chars + non-ASCII chars\n\tregexSeparators = /[\\x2E\\u3002\\uFF0E\\uFF61]/g, // RFC 3490 separators\n\n\t/** Error messages */\n\terrors = {\n\t\t'overflow': 'Overflow: input needs wider integers to process',\n\t\t'not-basic': 'Illegal input >= 0x80 (not a basic code point)',\n\t\t'invalid-input': 'Invalid input'\n\t},\n\n\t/** Convenience shortcuts */\n\tbaseMinusTMin = base - tMin,\n\tfloor = Math.floor,\n\tstringFromCharCode = String.fromCharCode,\n\n\t/** Temporary variable */\n\tkey;\n\n\t/*--------------------------------------------------------------------------*/\n\n\t/**\n\t * A generic error utility function.\n\t * @private\n\t * @param {String} type The error type.\n\t * @returns {Error} Throws a `RangeError` with the applicable error message.\n\t */\n\tfunction error(type) {\n\t\tthrow new RangeError(errors[type]);\n\t}\n\n\t/**\n\t * A generic `Array#map` utility function.\n\t * @private\n\t * @param {Array} array The array to iterate over.\n\t * @param {Function} callback The function that gets called for every array\n\t * item.\n\t * @returns {Array} A new array of values returned by the callback function.\n\t */\n\tfunction map(array, fn) {\n\t\tvar length = array.length;\n\t\tvar result = [];\n\t\twhile (length--) {\n\t\t\tresult[length] = fn(array[length]);\n\t\t}\n\t\treturn result;\n\t}\n\n\t/**\n\t * A simple `Array#map`-like wrapper to work with domain name strings or email\n\t * addresses.\n\t * @private\n\t * @param {String} domain The domain name or email address.\n\t * @param {Function} callback The function that gets called for every\n\t * character.\n\t * @returns {Array} A new string of characters returned by the callback\n\t * function.\n\t */\n\tfunction mapDomain(string, fn) {\n\t\tvar parts = string.split('@');\n\t\tvar result = '';\n\t\tif (parts.length > 1) {\n\t\t\t// In email addresses, only the domain name should be punycoded. Leave\n\t\t\t// the local part (i.e. everything up to `@`) intact.\n\t\t\tresult = parts[0] + '@';\n\t\t\tstring = parts[1];\n\t\t}\n\t\t// Avoid `split(regex)` for IE8 compatibility. See #17.\n\t\tstring = string.replace(regexSeparators, '\\x2E');\n\t\tvar labels = string.split('.');\n\t\tvar encoded = map(labels, fn).join('.');\n\t\treturn result + encoded;\n\t}\n\n\t/**\n\t * Creates an array containing the numeric code points of each Unicode\n\t * character in the string. While JavaScript uses UCS-2 internally,\n\t * this function will convert a pair of surrogate halves (each of which\n\t * UCS-2 exposes as separate characters) into a single code point,\n\t * matching UTF-16.\n\t * @see `punycode.ucs2.encode`\n\t * @see \n\t * @memberOf punycode.ucs2\n\t * @name decode\n\t * @param {String} string The Unicode input string (UCS-2).\n\t * @returns {Array} The new array of code points.\n\t */\n\tfunction ucs2decode(string) {\n\t\tvar output = [],\n\t\t counter = 0,\n\t\t length = string.length,\n\t\t value,\n\t\t extra;\n\t\twhile (counter < length) {\n\t\t\tvalue = string.charCodeAt(counter++);\n\t\t\tif (value >= 0xD800 && value <= 0xDBFF && counter < length) {\n\t\t\t\t// high surrogate, and there is a next character\n\t\t\t\textra = string.charCodeAt(counter++);\n\t\t\t\tif ((extra & 0xFC00) == 0xDC00) { // low surrogate\n\t\t\t\t\toutput.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);\n\t\t\t\t} else {\n\t\t\t\t\t// unmatched surrogate; only append this code unit, in case the next\n\t\t\t\t\t// code unit is the high surrogate of a surrogate pair\n\t\t\t\t\toutput.push(value);\n\t\t\t\t\tcounter--;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\toutput.push(value);\n\t\t\t}\n\t\t}\n\t\treturn output;\n\t}\n\n\t/**\n\t * Creates a string based on an array of numeric code points.\n\t * @see `punycode.ucs2.decode`\n\t * @memberOf punycode.ucs2\n\t * @name encode\n\t * @param {Array} codePoints The array of numeric code points.\n\t * @returns {String} The new Unicode string (UCS-2).\n\t */\n\tfunction ucs2encode(array) {\n\t\treturn map(array, function(value) {\n\t\t\tvar output = '';\n\t\t\tif (value > 0xFFFF) {\n\t\t\t\tvalue -= 0x10000;\n\t\t\t\toutput += stringFromCharCode(value >>> 10 & 0x3FF | 0xD800);\n\t\t\t\tvalue = 0xDC00 | value & 0x3FF;\n\t\t\t}\n\t\t\toutput += stringFromCharCode(value);\n\t\t\treturn output;\n\t\t}).join('');\n\t}\n\n\t/**\n\t * Converts a basic code point into a digit/integer.\n\t * @see `digitToBasic()`\n\t * @private\n\t * @param {Number} codePoint The basic numeric code point value.\n\t * @returns {Number} The numeric value of a basic code point (for use in\n\t * representing integers) in the range `0` to `base - 1`, or `base` if\n\t * the code point does not represent a value.\n\t */\n\tfunction basicToDigit(codePoint) {\n\t\tif (codePoint - 48 < 10) {\n\t\t\treturn codePoint - 22;\n\t\t}\n\t\tif (codePoint - 65 < 26) {\n\t\t\treturn codePoint - 65;\n\t\t}\n\t\tif (codePoint - 97 < 26) {\n\t\t\treturn codePoint - 97;\n\t\t}\n\t\treturn base;\n\t}\n\n\t/**\n\t * Converts a digit/integer into a basic code point.\n\t * @see `basicToDigit()`\n\t * @private\n\t * @param {Number} digit The numeric value of a basic code point.\n\t * @returns {Number} The basic code point whose value (when used for\n\t * representing integers) is `digit`, which needs to be in the range\n\t * `0` to `base - 1`. If `flag` is non-zero, the uppercase form is\n\t * used; else, the lowercase form is used. The behavior is undefined\n\t * if `flag` is non-zero and `digit` has no uppercase form.\n\t */\n\tfunction digitToBasic(digit, flag) {\n\t\t// 0..25 map to ASCII a..z or A..Z\n\t\t// 26..35 map to ASCII 0..9\n\t\treturn digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);\n\t}\n\n\t/**\n\t * Bias adaptation function as per section 3.4 of RFC 3492.\n\t * https://tools.ietf.org/html/rfc3492#section-3.4\n\t * @private\n\t */\n\tfunction adapt(delta, numPoints, firstTime) {\n\t\tvar k = 0;\n\t\tdelta = firstTime ? floor(delta / damp) : delta >> 1;\n\t\tdelta += floor(delta / numPoints);\n\t\tfor (/* no initialization */; delta > baseMinusTMin * tMax >> 1; k += base) {\n\t\t\tdelta = floor(delta / baseMinusTMin);\n\t\t}\n\t\treturn floor(k + (baseMinusTMin + 1) * delta / (delta + skew));\n\t}\n\n\t/**\n\t * Converts a Punycode string of ASCII-only symbols to a string of Unicode\n\t * symbols.\n\t * @memberOf punycode\n\t * @param {String} input The Punycode string of ASCII-only symbols.\n\t * @returns {String} The resulting string of Unicode symbols.\n\t */\n\tfunction decode(input) {\n\t\t// Don't use UCS-2\n\t\tvar output = [],\n\t\t inputLength = input.length,\n\t\t out,\n\t\t i = 0,\n\t\t n = initialN,\n\t\t bias = initialBias,\n\t\t basic,\n\t\t j,\n\t\t index,\n\t\t oldi,\n\t\t w,\n\t\t k,\n\t\t digit,\n\t\t t,\n\t\t /** Cached calculation results */\n\t\t baseMinusT;\n\n\t\t// Handle the basic code points: let `basic` be the number of input code\n\t\t// points before the last delimiter, or `0` if there is none, then copy\n\t\t// the first basic code points to the output.\n\n\t\tbasic = input.lastIndexOf(delimiter);\n\t\tif (basic < 0) {\n\t\t\tbasic = 0;\n\t\t}\n\n\t\tfor (j = 0; j < basic; ++j) {\n\t\t\t// if it's not a basic code point\n\t\t\tif (input.charCodeAt(j) >= 0x80) {\n\t\t\t\terror('not-basic');\n\t\t\t}\n\t\t\toutput.push(input.charCodeAt(j));\n\t\t}\n\n\t\t// Main decoding loop: start just after the last delimiter if any basic code\n\t\t// points were copied; start at the beginning otherwise.\n\n\t\tfor (index = basic > 0 ? basic + 1 : 0; index < inputLength; /* no final expression */) {\n\n\t\t\t// `index` is the index of the next character to be consumed.\n\t\t\t// Decode a generalized variable-length integer into `delta`,\n\t\t\t// which gets added to `i`. The overflow checking is easier\n\t\t\t// if we increase `i` as we go, then subtract off its starting\n\t\t\t// value at the end to obtain `delta`.\n\t\t\tfor (oldi = i, w = 1, k = base; /* no condition */; k += base) {\n\n\t\t\t\tif (index >= inputLength) {\n\t\t\t\t\terror('invalid-input');\n\t\t\t\t}\n\n\t\t\t\tdigit = basicToDigit(input.charCodeAt(index++));\n\n\t\t\t\tif (digit >= base || digit > floor((maxInt - i) / w)) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\ti += digit * w;\n\t\t\t\tt = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\n\t\t\t\tif (digit < t) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tbaseMinusT = base - t;\n\t\t\t\tif (w > floor(maxInt / baseMinusT)) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\tw *= baseMinusT;\n\n\t\t\t}\n\n\t\t\tout = output.length + 1;\n\t\t\tbias = adapt(i - oldi, out, oldi == 0);\n\n\t\t\t// `i` was supposed to wrap around from `out` to `0`,\n\t\t\t// incrementing `n` each time, so we'll fix that now:\n\t\t\tif (floor(i / out) > maxInt - n) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\tn += floor(i / out);\n\t\t\ti %= out;\n\n\t\t\t// Insert `n` at position `i` of the output\n\t\t\toutput.splice(i++, 0, n);\n\n\t\t}\n\n\t\treturn ucs2encode(output);\n\t}\n\n\t/**\n\t * Converts a string of Unicode symbols (e.g. a domain name label) to a\n\t * Punycode string of ASCII-only symbols.\n\t * @memberOf punycode\n\t * @param {String} input The string of Unicode symbols.\n\t * @returns {String} The resulting Punycode string of ASCII-only symbols.\n\t */\n\tfunction encode(input) {\n\t\tvar n,\n\t\t delta,\n\t\t handledCPCount,\n\t\t basicLength,\n\t\t bias,\n\t\t j,\n\t\t m,\n\t\t q,\n\t\t k,\n\t\t t,\n\t\t currentValue,\n\t\t output = [],\n\t\t /** `inputLength` will hold the number of code points in `input`. */\n\t\t inputLength,\n\t\t /** Cached calculation results */\n\t\t handledCPCountPlusOne,\n\t\t baseMinusT,\n\t\t qMinusT;\n\n\t\t// Convert the input in UCS-2 to Unicode\n\t\tinput = ucs2decode(input);\n\n\t\t// Cache the length\n\t\tinputLength = input.length;\n\n\t\t// Initialize the state\n\t\tn = initialN;\n\t\tdelta = 0;\n\t\tbias = initialBias;\n\n\t\t// Handle the basic code points\n\t\tfor (j = 0; j < inputLength; ++j) {\n\t\t\tcurrentValue = input[j];\n\t\t\tif (currentValue < 0x80) {\n\t\t\t\toutput.push(stringFromCharCode(currentValue));\n\t\t\t}\n\t\t}\n\n\t\thandledCPCount = basicLength = output.length;\n\n\t\t// `handledCPCount` is the number of code points that have been handled;\n\t\t// `basicLength` is the number of basic code points.\n\n\t\t// Finish the basic string - if it is not empty - with a delimiter\n\t\tif (basicLength) {\n\t\t\toutput.push(delimiter);\n\t\t}\n\n\t\t// Main encoding loop:\n\t\twhile (handledCPCount < inputLength) {\n\n\t\t\t// All non-basic code points < n have been handled already. Find the next\n\t\t\t// larger one:\n\t\t\tfor (m = maxInt, j = 0; j < inputLength; ++j) {\n\t\t\t\tcurrentValue = input[j];\n\t\t\t\tif (currentValue >= n && currentValue < m) {\n\t\t\t\t\tm = currentValue;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Increase `delta` enough to advance the decoder's state to ,\n\t\t\t// but guard against overflow\n\t\t\thandledCPCountPlusOne = handledCPCount + 1;\n\t\t\tif (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {\n\t\t\t\terror('overflow');\n\t\t\t}\n\n\t\t\tdelta += (m - n) * handledCPCountPlusOne;\n\t\t\tn = m;\n\n\t\t\tfor (j = 0; j < inputLength; ++j) {\n\t\t\t\tcurrentValue = input[j];\n\n\t\t\t\tif (currentValue < n && ++delta > maxInt) {\n\t\t\t\t\terror('overflow');\n\t\t\t\t}\n\n\t\t\t\tif (currentValue == n) {\n\t\t\t\t\t// Represent delta as a generalized variable-length integer\n\t\t\t\t\tfor (q = delta, k = base; /* no condition */; k += base) {\n\t\t\t\t\t\tt = k <= bias ? tMin : (k >= bias + tMax ? tMax : k - bias);\n\t\t\t\t\t\tif (q < t) {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tqMinusT = q - t;\n\t\t\t\t\t\tbaseMinusT = base - t;\n\t\t\t\t\t\toutput.push(\n\t\t\t\t\t\t\tstringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0))\n\t\t\t\t\t\t);\n\t\t\t\t\t\tq = floor(qMinusT / baseMinusT);\n\t\t\t\t\t}\n\n\t\t\t\t\toutput.push(stringFromCharCode(digitToBasic(q, 0)));\n\t\t\t\t\tbias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);\n\t\t\t\t\tdelta = 0;\n\t\t\t\t\t++handledCPCount;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t++delta;\n\t\t\t++n;\n\n\t\t}\n\t\treturn output.join('');\n\t}\n\n\t/**\n\t * Converts a Punycode string representing a domain name or an email address\n\t * to Unicode. Only the Punycoded parts of the input will be converted, i.e.\n\t * it doesn't matter if you call it on a string that has already been\n\t * converted to Unicode.\n\t * @memberOf punycode\n\t * @param {String} input The Punycoded domain name or email address to\n\t * convert to Unicode.\n\t * @returns {String} The Unicode representation of the given Punycode\n\t * string.\n\t */\n\tfunction toUnicode(input) {\n\t\treturn mapDomain(input, function(string) {\n\t\t\treturn regexPunycode.test(string)\n\t\t\t\t? decode(string.slice(4).toLowerCase())\n\t\t\t\t: string;\n\t\t});\n\t}\n\n\t/**\n\t * Converts a Unicode string representing a domain name or an email address to\n\t * Punycode. Only the non-ASCII parts of the domain name will be converted,\n\t * i.e. it doesn't matter if you call it with a domain that's already in\n\t * ASCII.\n\t * @memberOf punycode\n\t * @param {String} input The domain name or email address to convert, as a\n\t * Unicode string.\n\t * @returns {String} The Punycode representation of the given domain name or\n\t * email address.\n\t */\n\tfunction toASCII(input) {\n\t\treturn mapDomain(input, function(string) {\n\t\t\treturn regexNonASCII.test(string)\n\t\t\t\t? 'xn--' + encode(string)\n\t\t\t\t: string;\n\t\t});\n\t}\n\n\t/*--------------------------------------------------------------------------*/\n\n\t/** Define the public API */\n\tpunycode = {\n\t\t/**\n\t\t * A string representing the current Punycode.js version number.\n\t\t * @memberOf punycode\n\t\t * @type String\n\t\t */\n\t\t'version': '1.4.1',\n\t\t/**\n\t\t * An object of methods to convert from JavaScript's internal character\n\t\t * representation (UCS-2) to Unicode code points, and back.\n\t\t * @see \n\t\t * @memberOf punycode\n\t\t * @type Object\n\t\t */\n\t\t'ucs2': {\n\t\t\t'decode': ucs2decode,\n\t\t\t'encode': ucs2encode\n\t\t},\n\t\t'decode': decode,\n\t\t'encode': encode,\n\t\t'toASCII': toASCII,\n\t\t'toUnicode': toUnicode\n\t};\n\n\t/** Expose `punycode` */\n\t// Some AMD build optimizers, like r.js, check for specific condition patterns\n\t// like the following:\n\tif (\n\t\ttypeof define == 'function' &&\n\t\ttypeof define.amd == 'object' &&\n\t\tdefine.amd\n\t) {\n\t\tdefine('punycode', function() {\n\t\t\treturn punycode;\n\t\t});\n\t} else if (freeExports && freeModule) {\n\t\tif (module.exports == freeExports) {\n\t\t\t// in Node.js, io.js, or RingoJS v0.8.0+\n\t\t\tfreeModule.exports = punycode;\n\t\t} else {\n\t\t\t// in Narwhal or RingoJS v0.7.0-\n\t\t\tfor (key in punycode) {\n\t\t\t\tpunycode.hasOwnProperty(key) && (freeExports[key] = punycode[key]);\n\t\t\t}\n\t\t}\n\t} else {\n\t\t// in Rhino or a web browser\n\t\troot.punycode = punycode;\n\t}\n\n}(this));\n","'use strict';\n\nvar replace = String.prototype.replace;\nvar percentTwenties = /%20/g;\n\nvar Format = {\n RFC1738: 'RFC1738',\n RFC3986: 'RFC3986'\n};\n\nmodule.exports = {\n 'default': Format.RFC3986,\n formatters: {\n RFC1738: function (value) {\n return replace.call(value, percentTwenties, '+');\n },\n RFC3986: function (value) {\n return String(value);\n }\n },\n RFC1738: Format.RFC1738,\n RFC3986: Format.RFC3986\n};\n","'use strict';\n\nvar stringify = require('./stringify');\nvar parse = require('./parse');\nvar formats = require('./formats');\n\nmodule.exports = {\n formats: formats,\n parse: parse,\n stringify: stringify\n};\n","'use strict';\n\nvar utils = require('./utils');\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar defaults = {\n allowDots: false,\n allowEmptyArrays: false,\n allowPrototypes: false,\n allowSparse: false,\n arrayLimit: 20,\n charset: 'utf-8',\n charsetSentinel: false,\n comma: false,\n decodeDotInKeys: true,\n decoder: utils.decode,\n delimiter: '&',\n depth: 5,\n duplicates: 'combine',\n ignoreQueryPrefix: false,\n interpretNumericEntities: false,\n parameterLimit: 1000,\n parseArrays: true,\n plainObjects: false,\n strictNullHandling: false\n};\n\nvar interpretNumericEntities = function (str) {\n return str.replace(/&#(\\d+);/g, function ($0, numberStr) {\n return String.fromCharCode(parseInt(numberStr, 10));\n });\n};\n\nvar parseArrayValue = function (val, options) {\n if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) {\n return val.split(',');\n }\n\n return val;\n};\n\n// This is what browsers will submit when the ✓ character occurs in an\n// application/x-www-form-urlencoded body and the encoding of the page containing\n// the form is iso-8859-1, or when the submitted form has an accept-charset\n// attribute of iso-8859-1. Presumably also with other charsets that do not contain\n// the ✓ character, such as us-ascii.\nvar isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓')\n\n// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded.\nvar charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓')\n\nvar parseValues = function parseQueryStringValues(str, options) {\n var obj = { __proto__: null };\n\n var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\\?/, '') : str;\n var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit;\n var parts = cleanStr.split(options.delimiter, limit);\n var skipIndex = -1; // Keep track of where the utf8 sentinel was found\n var i;\n\n var charset = options.charset;\n if (options.charsetSentinel) {\n for (i = 0; i < parts.length; ++i) {\n if (parts[i].indexOf('utf8=') === 0) {\n if (parts[i] === charsetSentinel) {\n charset = 'utf-8';\n } else if (parts[i] === isoSentinel) {\n charset = 'iso-8859-1';\n }\n skipIndex = i;\n i = parts.length; // The eslint settings do not allow break;\n }\n }\n }\n\n for (i = 0; i < parts.length; ++i) {\n if (i === skipIndex) {\n continue;\n }\n var part = parts[i];\n\n var bracketEqualsPos = part.indexOf(']=');\n var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;\n\n var key, val;\n if (pos === -1) {\n key = options.decoder(part, defaults.decoder, charset, 'key');\n val = options.strictNullHandling ? null : '';\n } else {\n key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');\n val = utils.maybeMap(\n parseArrayValue(part.slice(pos + 1), options),\n function (encodedVal) {\n return options.decoder(encodedVal, defaults.decoder, charset, 'value');\n }\n );\n }\n\n if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {\n val = interpretNumericEntities(val);\n }\n\n if (part.indexOf('[]=') > -1) {\n val = isArray(val) ? [val] : val;\n }\n\n var existing = has.call(obj, key);\n if (existing && options.duplicates === 'combine') {\n obj[key] = utils.combine(obj[key], val);\n } else if (!existing || options.duplicates === 'last') {\n obj[key] = val;\n }\n }\n\n return obj;\n};\n\nvar parseObject = function (chain, val, options, valuesParsed) {\n var leaf = valuesParsed ? val : parseArrayValue(val, options);\n\n for (var i = chain.length - 1; i >= 0; --i) {\n var obj;\n var root = chain[i];\n\n if (root === '[]' && options.parseArrays) {\n obj = options.allowEmptyArrays && leaf === '' ? [] : [].concat(leaf);\n } else {\n obj = options.plainObjects ? Object.create(null) : {};\n var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root;\n var decodedRoot = options.decodeDotInKeys ? cleanRoot.replace(/%2E/g, '.') : cleanRoot;\n var index = parseInt(decodedRoot, 10);\n if (!options.parseArrays && decodedRoot === '') {\n obj = { 0: leaf };\n } else if (\n !isNaN(index)\n && root !== decodedRoot\n && String(index) === decodedRoot\n && index >= 0\n && (options.parseArrays && index <= options.arrayLimit)\n ) {\n obj = [];\n obj[index] = leaf;\n } else if (decodedRoot !== '__proto__') {\n obj[decodedRoot] = leaf;\n }\n }\n\n leaf = obj;\n }\n\n return leaf;\n};\n\nvar parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {\n if (!givenKey) {\n return;\n }\n\n // Transform dot notation to bracket notation\n var key = options.allowDots ? givenKey.replace(/\\.([^.[]+)/g, '[$1]') : givenKey;\n\n // The regex chunks\n\n var brackets = /(\\[[^[\\]]*])/;\n var child = /(\\[[^[\\]]*])/g;\n\n // Get the parent\n\n var segment = options.depth > 0 && brackets.exec(key);\n var parent = segment ? key.slice(0, segment.index) : key;\n\n // Stash the parent if it exists\n\n var keys = [];\n if (parent) {\n // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties\n if (!options.plainObjects && has.call(Object.prototype, parent)) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n\n keys.push(parent);\n }\n\n // Loop through children appending to the array until we hit depth\n\n var i = 0;\n while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {\n i += 1;\n if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {\n if (!options.allowPrototypes) {\n return;\n }\n }\n keys.push(segment[1]);\n }\n\n // If there's a remainder, just add whatever is left\n\n if (segment) {\n keys.push('[' + key.slice(segment.index) + ']');\n }\n\n return parseObject(keys, val, options, valuesParsed);\n};\n\nvar normalizeParseOptions = function normalizeParseOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {\n throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');\n }\n\n if (typeof opts.decodeDotInKeys !== 'undefined' && typeof opts.decodeDotInKeys !== 'boolean') {\n throw new TypeError('`decodeDotInKeys` option can only be `true` or `false`, when provided');\n }\n\n if (opts.decoder !== null && typeof opts.decoder !== 'undefined' && typeof opts.decoder !== 'function') {\n throw new TypeError('Decoder has to be a function.');\n }\n\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;\n\n var duplicates = typeof opts.duplicates === 'undefined' ? defaults.duplicates : opts.duplicates;\n\n if (duplicates !== 'combine' && duplicates !== 'first' && duplicates !== 'last') {\n throw new TypeError('The duplicates option must be either combine, first, or last');\n }\n\n var allowDots = typeof opts.allowDots === 'undefined' ? opts.decodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;\n\n return {\n allowDots: allowDots,\n allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,\n allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,\n allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,\n arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,\n decodeDotInKeys: typeof opts.decodeDotInKeys === 'boolean' ? opts.decodeDotInKeys : defaults.decodeDotInKeys,\n decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,\n delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,\n // eslint-disable-next-line no-implicit-coercion, no-extra-parens\n depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth,\n duplicates: duplicates,\n ignoreQueryPrefix: opts.ignoreQueryPrefix === true,\n interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,\n parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,\n parseArrays: opts.parseArrays !== false,\n plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (str, opts) {\n var options = normalizeParseOptions(opts);\n\n if (str === '' || str === null || typeof str === 'undefined') {\n return options.plainObjects ? Object.create(null) : {};\n }\n\n var tempObj = typeof str === 'string' ? parseValues(str, options) : str;\n var obj = options.plainObjects ? Object.create(null) : {};\n\n // Iterate over the keys and setup the new object\n\n var keys = Object.keys(tempObj);\n for (var i = 0; i < keys.length; ++i) {\n var key = keys[i];\n var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string');\n obj = utils.merge(obj, newObj, options);\n }\n\n if (options.allowSparse === true) {\n return obj;\n }\n\n return utils.compact(obj);\n};\n","'use strict';\n\nvar getSideChannel = require('side-channel');\nvar utils = require('./utils');\nvar formats = require('./formats');\nvar has = Object.prototype.hasOwnProperty;\n\nvar arrayPrefixGenerators = {\n brackets: function brackets(prefix) {\n return prefix + '[]';\n },\n comma: 'comma',\n indices: function indices(prefix, key) {\n return prefix + '[' + key + ']';\n },\n repeat: function repeat(prefix) {\n return prefix;\n }\n};\n\nvar isArray = Array.isArray;\nvar push = Array.prototype.push;\nvar pushToArray = function (arr, valueOrArray) {\n push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);\n};\n\nvar toISO = Date.prototype.toISOString;\n\nvar defaultFormat = formats['default'];\nvar defaults = {\n addQueryPrefix: false,\n allowDots: false,\n allowEmptyArrays: false,\n arrayFormat: 'indices',\n charset: 'utf-8',\n charsetSentinel: false,\n delimiter: '&',\n encode: true,\n encodeDotInKeys: false,\n encoder: utils.encode,\n encodeValuesOnly: false,\n format: defaultFormat,\n formatter: formats.formatters[defaultFormat],\n // deprecated\n indices: false,\n serializeDate: function serializeDate(date) {\n return toISO.call(date);\n },\n skipNulls: false,\n strictNullHandling: false\n};\n\nvar isNonNullishPrimitive = function isNonNullishPrimitive(v) {\n return typeof v === 'string'\n || typeof v === 'number'\n || typeof v === 'boolean'\n || typeof v === 'symbol'\n || typeof v === 'bigint';\n};\n\nvar sentinel = {};\n\nvar stringify = function stringify(\n object,\n prefix,\n generateArrayPrefix,\n commaRoundTrip,\n allowEmptyArrays,\n strictNullHandling,\n skipNulls,\n encodeDotInKeys,\n encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n sideChannel\n) {\n var obj = object;\n\n var tmpSc = sideChannel;\n var step = 0;\n var findFlag = false;\n while ((tmpSc = tmpSc.get(sentinel)) !== void undefined && !findFlag) {\n // Where object last appeared in the ref tree\n var pos = tmpSc.get(object);\n step += 1;\n if (typeof pos !== 'undefined') {\n if (pos === step) {\n throw new RangeError('Cyclic object value');\n } else {\n findFlag = true; // Break while\n }\n }\n if (typeof tmpSc.get(sentinel) === 'undefined') {\n step = 0;\n }\n }\n\n if (typeof filter === 'function') {\n obj = filter(prefix, obj);\n } else if (obj instanceof Date) {\n obj = serializeDate(obj);\n } else if (generateArrayPrefix === 'comma' && isArray(obj)) {\n obj = utils.maybeMap(obj, function (value) {\n if (value instanceof Date) {\n return serializeDate(value);\n }\n return value;\n });\n }\n\n if (obj === null) {\n if (strictNullHandling) {\n return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;\n }\n\n obj = '';\n }\n\n if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {\n if (encoder) {\n var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);\n return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];\n }\n return [formatter(prefix) + '=' + formatter(String(obj))];\n }\n\n var values = [];\n\n if (typeof obj === 'undefined') {\n return values;\n }\n\n var objKeys;\n if (generateArrayPrefix === 'comma' && isArray(obj)) {\n // we need to join elements in\n if (encodeValuesOnly && encoder) {\n obj = utils.maybeMap(obj, encoder);\n }\n objKeys = [{ value: obj.length > 0 ? obj.join(',') || null : void undefined }];\n } else if (isArray(filter)) {\n objKeys = filter;\n } else {\n var keys = Object.keys(obj);\n objKeys = sort ? keys.sort(sort) : keys;\n }\n\n var encodedPrefix = encodeDotInKeys ? prefix.replace(/\\./g, '%2E') : prefix;\n\n var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? encodedPrefix + '[]' : encodedPrefix;\n\n if (allowEmptyArrays && isArray(obj) && obj.length === 0) {\n return adjustedPrefix + '[]';\n }\n\n for (var j = 0; j < objKeys.length; ++j) {\n var key = objKeys[j];\n var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];\n\n if (skipNulls && value === null) {\n continue;\n }\n\n var encodedKey = allowDots && encodeDotInKeys ? key.replace(/\\./g, '%2E') : key;\n var keyPrefix = isArray(obj)\n ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, encodedKey) : adjustedPrefix\n : adjustedPrefix + (allowDots ? '.' + encodedKey : '[' + encodedKey + ']');\n\n sideChannel.set(object, step);\n var valueSideChannel = getSideChannel();\n valueSideChannel.set(sentinel, sideChannel);\n pushToArray(values, stringify(\n value,\n keyPrefix,\n generateArrayPrefix,\n commaRoundTrip,\n allowEmptyArrays,\n strictNullHandling,\n skipNulls,\n encodeDotInKeys,\n generateArrayPrefix === 'comma' && encodeValuesOnly && isArray(obj) ? null : encoder,\n filter,\n sort,\n allowDots,\n serializeDate,\n format,\n formatter,\n encodeValuesOnly,\n charset,\n valueSideChannel\n ));\n }\n\n return values;\n};\n\nvar normalizeStringifyOptions = function normalizeStringifyOptions(opts) {\n if (!opts) {\n return defaults;\n }\n\n if (typeof opts.allowEmptyArrays !== 'undefined' && typeof opts.allowEmptyArrays !== 'boolean') {\n throw new TypeError('`allowEmptyArrays` option can only be `true` or `false`, when provided');\n }\n\n if (typeof opts.encodeDotInKeys !== 'undefined' && typeof opts.encodeDotInKeys !== 'boolean') {\n throw new TypeError('`encodeDotInKeys` option can only be `true` or `false`, when provided');\n }\n\n if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {\n throw new TypeError('Encoder has to be a function.');\n }\n\n var charset = opts.charset || defaults.charset;\n if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {\n throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');\n }\n\n var format = formats['default'];\n if (typeof opts.format !== 'undefined') {\n if (!has.call(formats.formatters, opts.format)) {\n throw new TypeError('Unknown format option provided.');\n }\n format = opts.format;\n }\n var formatter = formats.formatters[format];\n\n var filter = defaults.filter;\n if (typeof opts.filter === 'function' || isArray(opts.filter)) {\n filter = opts.filter;\n }\n\n var arrayFormat;\n if (opts.arrayFormat in arrayPrefixGenerators) {\n arrayFormat = opts.arrayFormat;\n } else if ('indices' in opts) {\n arrayFormat = opts.indices ? 'indices' : 'repeat';\n } else {\n arrayFormat = defaults.arrayFormat;\n }\n\n if ('commaRoundTrip' in opts && typeof opts.commaRoundTrip !== 'boolean') {\n throw new TypeError('`commaRoundTrip` must be a boolean, or absent');\n }\n\n var allowDots = typeof opts.allowDots === 'undefined' ? opts.encodeDotInKeys === true ? true : defaults.allowDots : !!opts.allowDots;\n\n return {\n addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,\n allowDots: allowDots,\n allowEmptyArrays: typeof opts.allowEmptyArrays === 'boolean' ? !!opts.allowEmptyArrays : defaults.allowEmptyArrays,\n arrayFormat: arrayFormat,\n charset: charset,\n charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,\n commaRoundTrip: opts.commaRoundTrip,\n delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,\n encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,\n encodeDotInKeys: typeof opts.encodeDotInKeys === 'boolean' ? opts.encodeDotInKeys : defaults.encodeDotInKeys,\n encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,\n encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,\n filter: filter,\n format: format,\n formatter: formatter,\n serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,\n skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,\n sort: typeof opts.sort === 'function' ? opts.sort : null,\n strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling\n };\n};\n\nmodule.exports = function (object, opts) {\n var obj = object;\n var options = normalizeStringifyOptions(opts);\n\n var objKeys;\n var filter;\n\n if (typeof options.filter === 'function') {\n filter = options.filter;\n obj = filter('', obj);\n } else if (isArray(options.filter)) {\n filter = options.filter;\n objKeys = filter;\n }\n\n var keys = [];\n\n if (typeof obj !== 'object' || obj === null) {\n return '';\n }\n\n var generateArrayPrefix = arrayPrefixGenerators[options.arrayFormat];\n var commaRoundTrip = generateArrayPrefix === 'comma' && options.commaRoundTrip;\n\n if (!objKeys) {\n objKeys = Object.keys(obj);\n }\n\n if (options.sort) {\n objKeys.sort(options.sort);\n }\n\n var sideChannel = getSideChannel();\n for (var i = 0; i < objKeys.length; ++i) {\n var key = objKeys[i];\n\n if (options.skipNulls && obj[key] === null) {\n continue;\n }\n pushToArray(keys, stringify(\n obj[key],\n key,\n generateArrayPrefix,\n commaRoundTrip,\n options.allowEmptyArrays,\n options.strictNullHandling,\n options.skipNulls,\n options.encodeDotInKeys,\n options.encode ? options.encoder : null,\n options.filter,\n options.sort,\n options.allowDots,\n options.serializeDate,\n options.format,\n options.formatter,\n options.encodeValuesOnly,\n options.charset,\n sideChannel\n ));\n }\n\n var joined = keys.join(options.delimiter);\n var prefix = options.addQueryPrefix === true ? '?' : '';\n\n if (options.charsetSentinel) {\n if (options.charset === 'iso-8859-1') {\n // encodeURIComponent('✓'), the \"numeric entity\" representation of a checkmark\n prefix += 'utf8=%26%2310003%3B&';\n } else {\n // encodeURIComponent('✓')\n prefix += 'utf8=%E2%9C%93&';\n }\n }\n\n return joined.length > 0 ? prefix + joined : '';\n};\n","'use strict';\n\nvar formats = require('./formats');\n\nvar has = Object.prototype.hasOwnProperty;\nvar isArray = Array.isArray;\n\nvar hexTable = (function () {\n var array = [];\n for (var i = 0; i < 256; ++i) {\n array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase());\n }\n\n return array;\n}());\n\nvar compactQueue = function compactQueue(queue) {\n while (queue.length > 1) {\n var item = queue.pop();\n var obj = item.obj[item.prop];\n\n if (isArray(obj)) {\n var compacted = [];\n\n for (var j = 0; j < obj.length; ++j) {\n if (typeof obj[j] !== 'undefined') {\n compacted.push(obj[j]);\n }\n }\n\n item.obj[item.prop] = compacted;\n }\n }\n};\n\nvar arrayToObject = function arrayToObject(source, options) {\n var obj = options && options.plainObjects ? Object.create(null) : {};\n for (var i = 0; i < source.length; ++i) {\n if (typeof source[i] !== 'undefined') {\n obj[i] = source[i];\n }\n }\n\n return obj;\n};\n\nvar merge = function merge(target, source, options) {\n /* eslint no-param-reassign: 0 */\n if (!source) {\n return target;\n }\n\n if (typeof source !== 'object') {\n if (isArray(target)) {\n target.push(source);\n } else if (target && typeof target === 'object') {\n if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) {\n target[source] = true;\n }\n } else {\n return [target, source];\n }\n\n return target;\n }\n\n if (!target || typeof target !== 'object') {\n return [target].concat(source);\n }\n\n var mergeTarget = target;\n if (isArray(target) && !isArray(source)) {\n mergeTarget = arrayToObject(target, options);\n }\n\n if (isArray(target) && isArray(source)) {\n source.forEach(function (item, i) {\n if (has.call(target, i)) {\n var targetItem = target[i];\n if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {\n target[i] = merge(targetItem, item, options);\n } else {\n target.push(item);\n }\n } else {\n target[i] = item;\n }\n });\n return target;\n }\n\n return Object.keys(source).reduce(function (acc, key) {\n var value = source[key];\n\n if (has.call(acc, key)) {\n acc[key] = merge(acc[key], value, options);\n } else {\n acc[key] = value;\n }\n return acc;\n }, mergeTarget);\n};\n\nvar assign = function assignSingleSource(target, source) {\n return Object.keys(source).reduce(function (acc, key) {\n acc[key] = source[key];\n return acc;\n }, target);\n};\n\nvar decode = function (str, decoder, charset) {\n var strWithoutPlus = str.replace(/\\+/g, ' ');\n if (charset === 'iso-8859-1') {\n // unescape never throws, no try...catch needed:\n return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);\n }\n // utf-8\n try {\n return decodeURIComponent(strWithoutPlus);\n } catch (e) {\n return strWithoutPlus;\n }\n};\n\nvar encode = function encode(str, defaultEncoder, charset, kind, format) {\n // This code was originally written by Brian White (mscdex) for the io.js core querystring library.\n // It has been adapted here for stricter adherence to RFC 3986\n if (str.length === 0) {\n return str;\n }\n\n var string = str;\n if (typeof str === 'symbol') {\n string = Symbol.prototype.toString.call(str);\n } else if (typeof str !== 'string') {\n string = String(str);\n }\n\n if (charset === 'iso-8859-1') {\n return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) {\n return '%26%23' + parseInt($0.slice(2), 16) + '%3B';\n });\n }\n\n var out = '';\n for (var i = 0; i < string.length; ++i) {\n var c = string.charCodeAt(i);\n\n if (\n c === 0x2D // -\n || c === 0x2E // .\n || c === 0x5F // _\n || c === 0x7E // ~\n || (c >= 0x30 && c <= 0x39) // 0-9\n || (c >= 0x41 && c <= 0x5A) // a-z\n || (c >= 0x61 && c <= 0x7A) // A-Z\n || (format === formats.RFC1738 && (c === 0x28 || c === 0x29)) // ( )\n ) {\n out += string.charAt(i);\n continue;\n }\n\n if (c < 0x80) {\n out = out + hexTable[c];\n continue;\n }\n\n if (c < 0x800) {\n out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]);\n continue;\n }\n\n if (c < 0xD800 || c >= 0xE000) {\n out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]);\n continue;\n }\n\n i += 1;\n c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));\n /* eslint operator-linebreak: [2, \"before\"] */\n out += hexTable[0xF0 | (c >> 18)]\n + hexTable[0x80 | ((c >> 12) & 0x3F)]\n + hexTable[0x80 | ((c >> 6) & 0x3F)]\n + hexTable[0x80 | (c & 0x3F)];\n }\n\n return out;\n};\n\nvar compact = function compact(value) {\n var queue = [{ obj: { o: value }, prop: 'o' }];\n var refs = [];\n\n for (var i = 0; i < queue.length; ++i) {\n var item = queue[i];\n var obj = item.obj[item.prop];\n\n var keys = Object.keys(obj);\n for (var j = 0; j < keys.length; ++j) {\n var key = keys[j];\n var val = obj[key];\n if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) {\n queue.push({ obj: obj, prop: key });\n refs.push(val);\n }\n }\n }\n\n compactQueue(queue);\n\n return value;\n};\n\nvar isRegExp = function isRegExp(obj) {\n return Object.prototype.toString.call(obj) === '[object RegExp]';\n};\n\nvar isBuffer = function isBuffer(obj) {\n if (!obj || typeof obj !== 'object') {\n return false;\n }\n\n return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));\n};\n\nvar combine = function combine(a, b) {\n return [].concat(a, b);\n};\n\nvar maybeMap = function maybeMap(val, fn) {\n if (isArray(val)) {\n var mapped = [];\n for (var i = 0; i < val.length; i += 1) {\n mapped.push(fn(val[i]));\n }\n return mapped;\n }\n return fn(val);\n};\n\nmodule.exports = {\n arrayToObject: arrayToObject,\n assign: assign,\n combine: combine,\n compact: compact,\n decode: decode,\n encode: encode,\n isBuffer: isBuffer,\n isRegExp: isRegExp,\n maybeMap: maybeMap,\n merge: merge\n};\n","/*\n * Copyright Joyent, Inc. and other Node contributors.\n *\n * Permission is hereby granted, free of charge, to any person obtaining a\n * copy of this software and associated documentation files (the\n * \"Software\"), to deal in the Software without restriction, including\n * without limitation the rights to use, copy, modify, merge, publish,\n * distribute, sublicense, and/or sell copies of the Software, and to permit\n * persons to whom the Software is furnished to do so, subject to the\n * following conditions:\n *\n * The above copyright notice and this permission notice shall be included\n * in all copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n * NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n * USE OR OTHER DEALINGS IN THE SOFTWARE.\n */\n\n'use strict';\n\nvar punycode = require('punycode');\n\nfunction Url() {\n this.protocol = null;\n this.slashes = null;\n this.auth = null;\n this.host = null;\n this.port = null;\n this.hostname = null;\n this.hash = null;\n this.search = null;\n this.query = null;\n this.pathname = null;\n this.path = null;\n this.href = null;\n}\n\n// Reference: RFC 3986, RFC 1808, RFC 2396\n\n/*\n * define these here so at least they only have to be\n * compiled once on the first module load.\n */\nvar protocolPattern = /^([a-z0-9.+-]+:)/i,\n portPattern = /:[0-9]*$/,\n\n // Special case for a simple path URL\n simplePathPattern = /^(\\/\\/?(?!\\/)[^?\\s]*)(\\?[^\\s]*)?$/,\n\n /*\n * RFC 2396: characters reserved for delimiting URLs.\n * We actually just auto-escape these.\n */\n delims = [\n '<', '>', '\"', '`', ' ', '\\r', '\\n', '\\t'\n ],\n\n // RFC 2396: characters not allowed for various reasons.\n unwise = [\n '{', '}', '|', '\\\\', '^', '`'\n ].concat(delims),\n\n // Allowed by RFCs, but cause of XSS attacks. Always escape these.\n autoEscape = ['\\''].concat(unwise),\n /*\n * Characters that are never ever allowed in a hostname.\n * Note that any invalid chars are also handled, but these\n * are the ones that are *expected* to be seen, so we fast-path\n * them.\n */\n nonHostChars = [\n '%', '/', '?', ';', '#'\n ].concat(autoEscape),\n hostEndingChars = [\n '/', '?', '#'\n ],\n hostnameMaxLen = 255,\n hostnamePartPattern = /^[+a-z0-9A-Z_-]{0,63}$/,\n hostnamePartStart = /^([+a-z0-9A-Z_-]{0,63})(.*)$/,\n // protocols that can allow \"unsafe\" and \"unwise\" chars.\n unsafeProtocol = {\n javascript: true,\n 'javascript:': true\n },\n // protocols that never have a hostname.\n hostlessProtocol = {\n javascript: true,\n 'javascript:': true\n },\n // protocols that always contain a // bit.\n slashedProtocol = {\n http: true,\n https: true,\n ftp: true,\n gopher: true,\n file: true,\n 'http:': true,\n 'https:': true,\n 'ftp:': true,\n 'gopher:': true,\n 'file:': true\n },\n querystring = require('qs');\n\nfunction urlParse(url, parseQueryString, slashesDenoteHost) {\n if (url && typeof url === 'object' && url instanceof Url) { return url; }\n\n var u = new Url();\n u.parse(url, parseQueryString, slashesDenoteHost);\n return u;\n}\n\nUrl.prototype.parse = function (url, parseQueryString, slashesDenoteHost) {\n if (typeof url !== 'string') {\n throw new TypeError(\"Parameter 'url' must be a string, not \" + typeof url);\n }\n\n /*\n * Copy chrome, IE, opera backslash-handling behavior.\n * Back slashes before the query string get converted to forward slashes\n * See: https://code.google.com/p/chromium/issues/detail?id=25916\n */\n var queryIndex = url.indexOf('?'),\n splitter = queryIndex !== -1 && queryIndex < url.indexOf('#') ? '?' : '#',\n uSplit = url.split(splitter),\n slashRegex = /\\\\/g;\n uSplit[0] = uSplit[0].replace(slashRegex, '/');\n url = uSplit.join(splitter);\n\n var rest = url;\n\n /*\n * trim before proceeding.\n * This is to support parse stuff like \" http://foo.com \\n\"\n */\n rest = rest.trim();\n\n if (!slashesDenoteHost && url.split('#').length === 1) {\n // Try fast path regexp\n var simplePath = simplePathPattern.exec(rest);\n if (simplePath) {\n this.path = rest;\n this.href = rest;\n this.pathname = simplePath[1];\n if (simplePath[2]) {\n this.search = simplePath[2];\n if (parseQueryString) {\n this.query = querystring.parse(this.search.substr(1));\n } else {\n this.query = this.search.substr(1);\n }\n } else if (parseQueryString) {\n this.search = '';\n this.query = {};\n }\n return this;\n }\n }\n\n var proto = protocolPattern.exec(rest);\n if (proto) {\n proto = proto[0];\n var lowerProto = proto.toLowerCase();\n this.protocol = lowerProto;\n rest = rest.substr(proto.length);\n }\n\n /*\n * figure out if it's got a host\n * user@server is *always* interpreted as a hostname, and url\n * resolution will treat //foo/bar as host=foo,path=bar because that's\n * how the browser resolves relative URLs.\n */\n if (slashesDenoteHost || proto || rest.match(/^\\/\\/[^@/]+@[^@/]+/)) {\n var slashes = rest.substr(0, 2) === '//';\n if (slashes && !(proto && hostlessProtocol[proto])) {\n rest = rest.substr(2);\n this.slashes = true;\n }\n }\n\n if (!hostlessProtocol[proto] && (slashes || (proto && !slashedProtocol[proto]))) {\n\n /*\n * there's a hostname.\n * the first instance of /, ?, ;, or # ends the host.\n *\n * If there is an @ in the hostname, then non-host chars *are* allowed\n * to the left of the last @ sign, unless some host-ending character\n * comes *before* the @-sign.\n * URLs are obnoxious.\n *\n * ex:\n * http://a@b@c/ => user:a@b host:c\n * http://a@b?@c => user:a host:c path:/?@c\n */\n\n /*\n * v0.12 TODO(isaacs): This is not quite how Chrome does things.\n * Review our test case against browsers more comprehensively.\n */\n\n // find the first instance of any hostEndingChars\n var hostEnd = -1;\n for (var i = 0; i < hostEndingChars.length; i++) {\n var hec = rest.indexOf(hostEndingChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) { hostEnd = hec; }\n }\n\n /*\n * at this point, either we have an explicit point where the\n * auth portion cannot go past, or the last @ char is the decider.\n */\n var auth, atSign;\n if (hostEnd === -1) {\n // atSign can be anywhere.\n atSign = rest.lastIndexOf('@');\n } else {\n /*\n * atSign must be in auth portion.\n * http://a@b/c@d => host:b auth:a path:/c@d\n */\n atSign = rest.lastIndexOf('@', hostEnd);\n }\n\n /*\n * Now we have a portion which is definitely the auth.\n * Pull that off.\n */\n if (atSign !== -1) {\n auth = rest.slice(0, atSign);\n rest = rest.slice(atSign + 1);\n this.auth = decodeURIComponent(auth);\n }\n\n // the host is the remaining to the left of the first non-host char\n hostEnd = -1;\n for (var i = 0; i < nonHostChars.length; i++) {\n var hec = rest.indexOf(nonHostChars[i]);\n if (hec !== -1 && (hostEnd === -1 || hec < hostEnd)) { hostEnd = hec; }\n }\n // if we still have not hit it, then the entire thing is a host.\n if (hostEnd === -1) { hostEnd = rest.length; }\n\n this.host = rest.slice(0, hostEnd);\n rest = rest.slice(hostEnd);\n\n // pull out port.\n this.parseHost();\n\n /*\n * we've indicated that there is a hostname,\n * so even if it's empty, it has to be present.\n */\n this.hostname = this.hostname || '';\n\n /*\n * if hostname begins with [ and ends with ]\n * assume that it's an IPv6 address.\n */\n var ipv6Hostname = this.hostname[0] === '[' && this.hostname[this.hostname.length - 1] === ']';\n\n // validate a little.\n if (!ipv6Hostname) {\n var hostparts = this.hostname.split(/\\./);\n for (var i = 0, l = hostparts.length; i < l; i++) {\n var part = hostparts[i];\n if (!part) { continue; }\n if (!part.match(hostnamePartPattern)) {\n var newpart = '';\n for (var j = 0, k = part.length; j < k; j++) {\n if (part.charCodeAt(j) > 127) {\n /*\n * we replace non-ASCII char with a temporary placeholder\n * we need this to make sure size of hostname is not\n * broken by replacing non-ASCII by nothing\n */\n newpart += 'x';\n } else {\n newpart += part[j];\n }\n }\n // we test again with ASCII char only\n if (!newpart.match(hostnamePartPattern)) {\n var validParts = hostparts.slice(0, i);\n var notHost = hostparts.slice(i + 1);\n var bit = part.match(hostnamePartStart);\n if (bit) {\n validParts.push(bit[1]);\n notHost.unshift(bit[2]);\n }\n if (notHost.length) {\n rest = '/' + notHost.join('.') + rest;\n }\n this.hostname = validParts.join('.');\n break;\n }\n }\n }\n }\n\n if (this.hostname.length > hostnameMaxLen) {\n this.hostname = '';\n } else {\n // hostnames are always lower case.\n this.hostname = this.hostname.toLowerCase();\n }\n\n if (!ipv6Hostname) {\n /*\n * IDNA Support: Returns a punycoded representation of \"domain\".\n * It only converts parts of the domain name that\n * have non-ASCII characters, i.e. it doesn't matter if\n * you call it with a domain that already is ASCII-only.\n */\n this.hostname = punycode.toASCII(this.hostname);\n }\n\n var p = this.port ? ':' + this.port : '';\n var h = this.hostname || '';\n this.host = h + p;\n this.href += this.host;\n\n /*\n * strip [ and ] from the hostname\n * the host field still retains them, though\n */\n if (ipv6Hostname) {\n this.hostname = this.hostname.substr(1, this.hostname.length - 2);\n if (rest[0] !== '/') {\n rest = '/' + rest;\n }\n }\n }\n\n /*\n * now rest is set to the post-host stuff.\n * chop off any delim chars.\n */\n if (!unsafeProtocol[lowerProto]) {\n\n /*\n * First, make 100% sure that any \"autoEscape\" chars get\n * escaped, even if encodeURIComponent doesn't think they\n * need to be.\n */\n for (var i = 0, l = autoEscape.length; i < l; i++) {\n var ae = autoEscape[i];\n if (rest.indexOf(ae) === -1) { continue; }\n var esc = encodeURIComponent(ae);\n if (esc === ae) {\n esc = escape(ae);\n }\n rest = rest.split(ae).join(esc);\n }\n }\n\n // chop off from the tail first.\n var hash = rest.indexOf('#');\n if (hash !== -1) {\n // got a fragment string.\n this.hash = rest.substr(hash);\n rest = rest.slice(0, hash);\n }\n var qm = rest.indexOf('?');\n if (qm !== -1) {\n this.search = rest.substr(qm);\n this.query = rest.substr(qm + 1);\n if (parseQueryString) {\n this.query = querystring.parse(this.query);\n }\n rest = rest.slice(0, qm);\n } else if (parseQueryString) {\n // no query string, but parseQueryString still requested\n this.search = '';\n this.query = {};\n }\n if (rest) { this.pathname = rest; }\n if (slashedProtocol[lowerProto] && this.hostname && !this.pathname) {\n this.pathname = '/';\n }\n\n // to support http.request\n if (this.pathname || this.search) {\n var p = this.pathname || '';\n var s = this.search || '';\n this.path = p + s;\n }\n\n // finally, reconstruct the href based on what has been validated.\n this.href = this.format();\n return this;\n};\n\n// format a parsed object into a url string\nfunction urlFormat(obj) {\n /*\n * ensure it's an object, and not a string url.\n * If it's an obj, this is a no-op.\n * this way, you can call url_format() on strings\n * to clean up potentially wonky urls.\n */\n if (typeof obj === 'string') { obj = urlParse(obj); }\n if (!(obj instanceof Url)) { return Url.prototype.format.call(obj); }\n return obj.format();\n}\n\nUrl.prototype.format = function () {\n var auth = this.auth || '';\n if (auth) {\n auth = encodeURIComponent(auth);\n auth = auth.replace(/%3A/i, ':');\n auth += '@';\n }\n\n var protocol = this.protocol || '',\n pathname = this.pathname || '',\n hash = this.hash || '',\n host = false,\n query = '';\n\n if (this.host) {\n host = auth + this.host;\n } else if (this.hostname) {\n host = auth + (this.hostname.indexOf(':') === -1 ? this.hostname : '[' + this.hostname + ']');\n if (this.port) {\n host += ':' + this.port;\n }\n }\n\n if (this.query && typeof this.query === 'object' && Object.keys(this.query).length) {\n query = querystring.stringify(this.query, {\n arrayFormat: 'repeat',\n addQueryPrefix: false\n });\n }\n\n var search = this.search || (query && ('?' + query)) || '';\n\n if (protocol && protocol.substr(-1) !== ':') { protocol += ':'; }\n\n /*\n * only the slashedProtocols get the //. Not mailto:, xmpp:, etc.\n * unless they had them to begin with.\n */\n if (this.slashes || (!protocol || slashedProtocol[protocol]) && host !== false) {\n host = '//' + (host || '');\n if (pathname && pathname.charAt(0) !== '/') { pathname = '/' + pathname; }\n } else if (!host) {\n host = '';\n }\n\n if (hash && hash.charAt(0) !== '#') { hash = '#' + hash; }\n if (search && search.charAt(0) !== '?') { search = '?' + search; }\n\n pathname = pathname.replace(/[?#]/g, function (match) {\n return encodeURIComponent(match);\n });\n search = search.replace('#', '%23');\n\n return protocol + host + pathname + search + hash;\n};\n\nfunction urlResolve(source, relative) {\n return urlParse(source, false, true).resolve(relative);\n}\n\nUrl.prototype.resolve = function (relative) {\n return this.resolveObject(urlParse(relative, false, true)).format();\n};\n\nfunction urlResolveObject(source, relative) {\n if (!source) { return relative; }\n return urlParse(source, false, true).resolveObject(relative);\n}\n\nUrl.prototype.resolveObject = function (relative) {\n if (typeof relative === 'string') {\n var rel = new Url();\n rel.parse(relative, false, true);\n relative = rel;\n }\n\n var result = new Url();\n var tkeys = Object.keys(this);\n for (var tk = 0; tk < tkeys.length; tk++) {\n var tkey = tkeys[tk];\n result[tkey] = this[tkey];\n }\n\n /*\n * hash is always overridden, no matter what.\n * even href=\"\" will remove it.\n */\n result.hash = relative.hash;\n\n // if the relative url is empty, then there's nothing left to do here.\n if (relative.href === '') {\n result.href = result.format();\n return result;\n }\n\n // hrefs like //foo/bar always cut to the protocol.\n if (relative.slashes && !relative.protocol) {\n // take everything except the protocol from relative\n var rkeys = Object.keys(relative);\n for (var rk = 0; rk < rkeys.length; rk++) {\n var rkey = rkeys[rk];\n if (rkey !== 'protocol') { result[rkey] = relative[rkey]; }\n }\n\n // urlParse appends trailing / to urls like http://www.example.com\n if (slashedProtocol[result.protocol] && result.hostname && !result.pathname) {\n result.pathname = '/';\n result.path = result.pathname;\n }\n\n result.href = result.format();\n return result;\n }\n\n if (relative.protocol && relative.protocol !== result.protocol) {\n /*\n * if it's a known url protocol, then changing\n * the protocol does weird things\n * first, if it's not file:, then we MUST have a host,\n * and if there was a path\n * to begin with, then we MUST have a path.\n * if it is file:, then the host is dropped,\n * because that's known to be hostless.\n * anything else is assumed to be absolute.\n */\n if (!slashedProtocol[relative.protocol]) {\n var keys = Object.keys(relative);\n for (var v = 0; v < keys.length; v++) {\n var k = keys[v];\n result[k] = relative[k];\n }\n result.href = result.format();\n return result;\n }\n\n result.protocol = relative.protocol;\n if (!relative.host && !hostlessProtocol[relative.protocol]) {\n var relPath = (relative.pathname || '').split('/');\n while (relPath.length && !(relative.host = relPath.shift())) { }\n if (!relative.host) { relative.host = ''; }\n if (!relative.hostname) { relative.hostname = ''; }\n if (relPath[0] !== '') { relPath.unshift(''); }\n if (relPath.length < 2) { relPath.unshift(''); }\n result.pathname = relPath.join('/');\n } else {\n result.pathname = relative.pathname;\n }\n result.search = relative.search;\n result.query = relative.query;\n result.host = relative.host || '';\n result.auth = relative.auth;\n result.hostname = relative.hostname || relative.host;\n result.port = relative.port;\n // to support http.request\n if (result.pathname || result.search) {\n var p = result.pathname || '';\n var s = result.search || '';\n result.path = p + s;\n }\n result.slashes = result.slashes || relative.slashes;\n result.href = result.format();\n return result;\n }\n\n var isSourceAbs = result.pathname && result.pathname.charAt(0) === '/',\n isRelAbs = relative.host || relative.pathname && relative.pathname.charAt(0) === '/',\n mustEndAbs = isRelAbs || isSourceAbs || (result.host && relative.pathname),\n removeAllDots = mustEndAbs,\n srcPath = result.pathname && result.pathname.split('/') || [],\n relPath = relative.pathname && relative.pathname.split('/') || [],\n psychotic = result.protocol && !slashedProtocol[result.protocol];\n\n /*\n * if the url is a non-slashed url, then relative\n * links like ../.. should be able\n * to crawl up to the hostname, as well. This is strange.\n * result.protocol has already been set by now.\n * Later on, put the first path part into the host field.\n */\n if (psychotic) {\n result.hostname = '';\n result.port = null;\n if (result.host) {\n if (srcPath[0] === '') { srcPath[0] = result.host; } else { srcPath.unshift(result.host); }\n }\n result.host = '';\n if (relative.protocol) {\n relative.hostname = null;\n relative.port = null;\n if (relative.host) {\n if (relPath[0] === '') { relPath[0] = relative.host; } else { relPath.unshift(relative.host); }\n }\n relative.host = null;\n }\n mustEndAbs = mustEndAbs && (relPath[0] === '' || srcPath[0] === '');\n }\n\n if (isRelAbs) {\n // it's absolute.\n result.host = relative.host || relative.host === '' ? relative.host : result.host;\n result.hostname = relative.hostname || relative.hostname === '' ? relative.hostname : result.hostname;\n result.search = relative.search;\n result.query = relative.query;\n srcPath = relPath;\n // fall through to the dot-handling below.\n } else if (relPath.length) {\n /*\n * it's relative\n * throw away the existing file, and take the new path instead.\n */\n if (!srcPath) { srcPath = []; }\n srcPath.pop();\n srcPath = srcPath.concat(relPath);\n result.search = relative.search;\n result.query = relative.query;\n } else if (relative.search != null) {\n /*\n * just pull out the search.\n * like href='?foo'.\n * Put this after the other two cases because it simplifies the booleans\n */\n if (psychotic) {\n result.host = srcPath.shift();\n result.hostname = result.host;\n /*\n * occationaly the auth can get stuck only in host\n * this especially happens in cases like\n * url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n */\n var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false;\n if (authInHost) {\n result.auth = authInHost.shift();\n result.hostname = authInHost.shift();\n result.host = result.hostname;\n }\n }\n result.search = relative.search;\n result.query = relative.query;\n // to support http.request\n if (result.pathname !== null || result.search !== null) {\n result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : '');\n }\n result.href = result.format();\n return result;\n }\n\n if (!srcPath.length) {\n /*\n * no path at all. easy.\n * we've already handled the other stuff above.\n */\n result.pathname = null;\n // to support http.request\n if (result.search) {\n result.path = '/' + result.search;\n } else {\n result.path = null;\n }\n result.href = result.format();\n return result;\n }\n\n /*\n * if a url ENDs in . or .., then it must get a trailing slash.\n * however, if it ends in anything else non-slashy,\n * then it must NOT get a trailing slash.\n */\n var last = srcPath.slice(-1)[0];\n var hasTrailingSlash = (result.host || relative.host || srcPath.length > 1) && (last === '.' || last === '..') || last === '';\n\n /*\n * strip single dots, resolve double dots to parent dir\n * if the path tries to go above the root, `up` ends up > 0\n */\n var up = 0;\n for (var i = srcPath.length; i >= 0; i--) {\n last = srcPath[i];\n if (last === '.') {\n srcPath.splice(i, 1);\n } else if (last === '..') {\n srcPath.splice(i, 1);\n up++;\n } else if (up) {\n srcPath.splice(i, 1);\n up--;\n }\n }\n\n // if the path is allowed to go above the root, restore leading ..s\n if (!mustEndAbs && !removeAllDots) {\n for (; up--; up) {\n srcPath.unshift('..');\n }\n }\n\n if (mustEndAbs && srcPath[0] !== '' && (!srcPath[0] || srcPath[0].charAt(0) !== '/')) {\n srcPath.unshift('');\n }\n\n if (hasTrailingSlash && (srcPath.join('/').substr(-1) !== '/')) {\n srcPath.push('');\n }\n\n var isAbsolute = srcPath[0] === '' || (srcPath[0] && srcPath[0].charAt(0) === '/');\n\n // put the host back\n if (psychotic) {\n result.hostname = isAbsolute ? '' : srcPath.length ? srcPath.shift() : '';\n result.host = result.hostname;\n /*\n * occationaly the auth can get stuck only in host\n * this especially happens in cases like\n * url.resolveObject('mailto:local1@domain1', 'local2@domain2')\n */\n var authInHost = result.host && result.host.indexOf('@') > 0 ? result.host.split('@') : false;\n if (authInHost) {\n result.auth = authInHost.shift();\n result.hostname = authInHost.shift();\n result.host = result.hostname;\n }\n }\n\n mustEndAbs = mustEndAbs || (result.host && srcPath.length);\n\n if (mustEndAbs && !isAbsolute) {\n srcPath.unshift('');\n }\n\n if (srcPath.length > 0) {\n result.pathname = srcPath.join('/');\n } else {\n result.pathname = null;\n result.path = null;\n }\n\n // to support request.http\n if (result.pathname !== null || result.search !== null) {\n result.path = (result.pathname ? result.pathname : '') + (result.search ? result.search : '');\n }\n result.auth = relative.auth || result.auth;\n result.slashes = result.slashes || relative.slashes;\n result.href = result.format();\n return result;\n};\n\nUrl.prototype.parseHost = function () {\n var host = this.host;\n var port = portPattern.exec(host);\n if (port) {\n port = port[0];\n if (port !== ':') {\n this.port = port.substr(1);\n }\n host = host.substr(0, host.length - port.length);\n }\n if (host) { this.hostname = host; }\n};\n\nexports.parse = urlParse;\nexports.resolve = urlResolve;\nexports.resolveObject = urlResolveObject;\nexports.format = urlFormat;\n\nexports.Url = Url;\n","\n/**\n * Module exports.\n */\n\nmodule.exports = deprecate;\n\n/**\n * Mark that a method should not be used.\n * Returns a modified function which warns once by default.\n *\n * If `localStorage.noDeprecation = true` is set, then it is a no-op.\n *\n * If `localStorage.throwDeprecation = true` is set, then deprecated functions\n * will throw an Error when invoked.\n *\n * If `localStorage.traceDeprecation = true` is set, then deprecated functions\n * will invoke `console.trace()` instead of `console.error()`.\n *\n * @param {Function} fn - the function to deprecate\n * @param {String} msg - the string to print to the console when `fn` is invoked\n * @returns {Function} a new \"deprecated\" version of `fn`\n * @api public\n */\n\nfunction deprecate (fn, msg) {\n if (config('noDeprecation')) {\n return fn;\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (config('throwDeprecation')) {\n throw new Error(msg);\n } else if (config('traceDeprecation')) {\n console.trace(msg);\n } else {\n console.warn(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n}\n\n/**\n * Checks `localStorage` for boolean values for the given `name`.\n *\n * @param {String} name\n * @returns {Boolean}\n * @api private\n */\n\nfunction config (name) {\n // accessing global.localStorage can trigger a DOMException in sandboxed iframes\n try {\n if (!global.localStorage) return false;\n } catch (_) {\n return false;\n }\n var val = global.localStorage[name];\n if (null == val) return false;\n return String(val).toLowerCase() === 'true';\n}\n","module.exports = function isBuffer(arg) {\n return arg && typeof arg === 'object'\n && typeof arg.copy === 'function'\n && typeof arg.fill === 'function'\n && typeof arg.readUInt8 === 'function';\n}","// Currently in sync with Node.js lib/internal/util/types.js\n// https://github.com/nodejs/node/commit/112cc7c27551254aa2b17098fb774867f05ed0d9\n\n'use strict';\n\nvar isArgumentsObject = require('is-arguments');\nvar isGeneratorFunction = require('is-generator-function');\nvar whichTypedArray = require('which-typed-array');\nvar isTypedArray = require('is-typed-array');\n\nfunction uncurryThis(f) {\n return f.call.bind(f);\n}\n\nvar BigIntSupported = typeof BigInt !== 'undefined';\nvar SymbolSupported = typeof Symbol !== 'undefined';\n\nvar ObjectToString = uncurryThis(Object.prototype.toString);\n\nvar numberValue = uncurryThis(Number.prototype.valueOf);\nvar stringValue = uncurryThis(String.prototype.valueOf);\nvar booleanValue = uncurryThis(Boolean.prototype.valueOf);\n\nif (BigIntSupported) {\n var bigIntValue = uncurryThis(BigInt.prototype.valueOf);\n}\n\nif (SymbolSupported) {\n var symbolValue = uncurryThis(Symbol.prototype.valueOf);\n}\n\nfunction checkBoxedPrimitive(value, prototypeValueOf) {\n if (typeof value !== 'object') {\n return false;\n }\n try {\n prototypeValueOf(value);\n return true;\n } catch(e) {\n return false;\n }\n}\n\nexports.isArgumentsObject = isArgumentsObject;\nexports.isGeneratorFunction = isGeneratorFunction;\nexports.isTypedArray = isTypedArray;\n\n// Taken from here and modified for better browser support\n// https://github.com/sindresorhus/p-is-promise/blob/cda35a513bda03f977ad5cde3a079d237e82d7ef/index.js\nfunction isPromise(input) {\n\treturn (\n\t\t(\n\t\t\ttypeof Promise !== 'undefined' &&\n\t\t\tinput instanceof Promise\n\t\t) ||\n\t\t(\n\t\t\tinput !== null &&\n\t\t\ttypeof input === 'object' &&\n\t\t\ttypeof input.then === 'function' &&\n\t\t\ttypeof input.catch === 'function'\n\t\t)\n\t);\n}\nexports.isPromise = isPromise;\n\nfunction isArrayBufferView(value) {\n if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) {\n return ArrayBuffer.isView(value);\n }\n\n return (\n isTypedArray(value) ||\n isDataView(value)\n );\n}\nexports.isArrayBufferView = isArrayBufferView;\n\n\nfunction isUint8Array(value) {\n return whichTypedArray(value) === 'Uint8Array';\n}\nexports.isUint8Array = isUint8Array;\n\nfunction isUint8ClampedArray(value) {\n return whichTypedArray(value) === 'Uint8ClampedArray';\n}\nexports.isUint8ClampedArray = isUint8ClampedArray;\n\nfunction isUint16Array(value) {\n return whichTypedArray(value) === 'Uint16Array';\n}\nexports.isUint16Array = isUint16Array;\n\nfunction isUint32Array(value) {\n return whichTypedArray(value) === 'Uint32Array';\n}\nexports.isUint32Array = isUint32Array;\n\nfunction isInt8Array(value) {\n return whichTypedArray(value) === 'Int8Array';\n}\nexports.isInt8Array = isInt8Array;\n\nfunction isInt16Array(value) {\n return whichTypedArray(value) === 'Int16Array';\n}\nexports.isInt16Array = isInt16Array;\n\nfunction isInt32Array(value) {\n return whichTypedArray(value) === 'Int32Array';\n}\nexports.isInt32Array = isInt32Array;\n\nfunction isFloat32Array(value) {\n return whichTypedArray(value) === 'Float32Array';\n}\nexports.isFloat32Array = isFloat32Array;\n\nfunction isFloat64Array(value) {\n return whichTypedArray(value) === 'Float64Array';\n}\nexports.isFloat64Array = isFloat64Array;\n\nfunction isBigInt64Array(value) {\n return whichTypedArray(value) === 'BigInt64Array';\n}\nexports.isBigInt64Array = isBigInt64Array;\n\nfunction isBigUint64Array(value) {\n return whichTypedArray(value) === 'BigUint64Array';\n}\nexports.isBigUint64Array = isBigUint64Array;\n\nfunction isMapToString(value) {\n return ObjectToString(value) === '[object Map]';\n}\nisMapToString.working = (\n typeof Map !== 'undefined' &&\n isMapToString(new Map())\n);\n\nfunction isMap(value) {\n if (typeof Map === 'undefined') {\n return false;\n }\n\n return isMapToString.working\n ? isMapToString(value)\n : value instanceof Map;\n}\nexports.isMap = isMap;\n\nfunction isSetToString(value) {\n return ObjectToString(value) === '[object Set]';\n}\nisSetToString.working = (\n typeof Set !== 'undefined' &&\n isSetToString(new Set())\n);\nfunction isSet(value) {\n if (typeof Set === 'undefined') {\n return false;\n }\n\n return isSetToString.working\n ? isSetToString(value)\n : value instanceof Set;\n}\nexports.isSet = isSet;\n\nfunction isWeakMapToString(value) {\n return ObjectToString(value) === '[object WeakMap]';\n}\nisWeakMapToString.working = (\n typeof WeakMap !== 'undefined' &&\n isWeakMapToString(new WeakMap())\n);\nfunction isWeakMap(value) {\n if (typeof WeakMap === 'undefined') {\n return false;\n }\n\n return isWeakMapToString.working\n ? isWeakMapToString(value)\n : value instanceof WeakMap;\n}\nexports.isWeakMap = isWeakMap;\n\nfunction isWeakSetToString(value) {\n return ObjectToString(value) === '[object WeakSet]';\n}\nisWeakSetToString.working = (\n typeof WeakSet !== 'undefined' &&\n isWeakSetToString(new WeakSet())\n);\nfunction isWeakSet(value) {\n return isWeakSetToString(value);\n}\nexports.isWeakSet = isWeakSet;\n\nfunction isArrayBufferToString(value) {\n return ObjectToString(value) === '[object ArrayBuffer]';\n}\nisArrayBufferToString.working = (\n typeof ArrayBuffer !== 'undefined' &&\n isArrayBufferToString(new ArrayBuffer())\n);\nfunction isArrayBuffer(value) {\n if (typeof ArrayBuffer === 'undefined') {\n return false;\n }\n\n return isArrayBufferToString.working\n ? isArrayBufferToString(value)\n : value instanceof ArrayBuffer;\n}\nexports.isArrayBuffer = isArrayBuffer;\n\nfunction isDataViewToString(value) {\n return ObjectToString(value) === '[object DataView]';\n}\nisDataViewToString.working = (\n typeof ArrayBuffer !== 'undefined' &&\n typeof DataView !== 'undefined' &&\n isDataViewToString(new DataView(new ArrayBuffer(1), 0, 1))\n);\nfunction isDataView(value) {\n if (typeof DataView === 'undefined') {\n return false;\n }\n\n return isDataViewToString.working\n ? isDataViewToString(value)\n : value instanceof DataView;\n}\nexports.isDataView = isDataView;\n\n// Store a copy of SharedArrayBuffer in case it's deleted elsewhere\nvar SharedArrayBufferCopy = typeof SharedArrayBuffer !== 'undefined' ? SharedArrayBuffer : undefined;\nfunction isSharedArrayBufferToString(value) {\n return ObjectToString(value) === '[object SharedArrayBuffer]';\n}\nfunction isSharedArrayBuffer(value) {\n if (typeof SharedArrayBufferCopy === 'undefined') {\n return false;\n }\n\n if (typeof isSharedArrayBufferToString.working === 'undefined') {\n isSharedArrayBufferToString.working = isSharedArrayBufferToString(new SharedArrayBufferCopy());\n }\n\n return isSharedArrayBufferToString.working\n ? isSharedArrayBufferToString(value)\n : value instanceof SharedArrayBufferCopy;\n}\nexports.isSharedArrayBuffer = isSharedArrayBuffer;\n\nfunction isAsyncFunction(value) {\n return ObjectToString(value) === '[object AsyncFunction]';\n}\nexports.isAsyncFunction = isAsyncFunction;\n\nfunction isMapIterator(value) {\n return ObjectToString(value) === '[object Map Iterator]';\n}\nexports.isMapIterator = isMapIterator;\n\nfunction isSetIterator(value) {\n return ObjectToString(value) === '[object Set Iterator]';\n}\nexports.isSetIterator = isSetIterator;\n\nfunction isGeneratorObject(value) {\n return ObjectToString(value) === '[object Generator]';\n}\nexports.isGeneratorObject = isGeneratorObject;\n\nfunction isWebAssemblyCompiledModule(value) {\n return ObjectToString(value) === '[object WebAssembly.Module]';\n}\nexports.isWebAssemblyCompiledModule = isWebAssemblyCompiledModule;\n\nfunction isNumberObject(value) {\n return checkBoxedPrimitive(value, numberValue);\n}\nexports.isNumberObject = isNumberObject;\n\nfunction isStringObject(value) {\n return checkBoxedPrimitive(value, stringValue);\n}\nexports.isStringObject = isStringObject;\n\nfunction isBooleanObject(value) {\n return checkBoxedPrimitive(value, booleanValue);\n}\nexports.isBooleanObject = isBooleanObject;\n\nfunction isBigIntObject(value) {\n return BigIntSupported && checkBoxedPrimitive(value, bigIntValue);\n}\nexports.isBigIntObject = isBigIntObject;\n\nfunction isSymbolObject(value) {\n return SymbolSupported && checkBoxedPrimitive(value, symbolValue);\n}\nexports.isSymbolObject = isSymbolObject;\n\nfunction isBoxedPrimitive(value) {\n return (\n isNumberObject(value) ||\n isStringObject(value) ||\n isBooleanObject(value) ||\n isBigIntObject(value) ||\n isSymbolObject(value)\n );\n}\nexports.isBoxedPrimitive = isBoxedPrimitive;\n\nfunction isAnyArrayBuffer(value) {\n return typeof Uint8Array !== 'undefined' && (\n isArrayBuffer(value) ||\n isSharedArrayBuffer(value)\n );\n}\nexports.isAnyArrayBuffer = isAnyArrayBuffer;\n\n['isProxy', 'isExternal', 'isModuleNamespaceObject'].forEach(function(method) {\n Object.defineProperty(exports, method, {\n enumerable: false,\n value: function() {\n throw new Error(method + ' is not supported in userland');\n }\n });\n});\n","// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nvar getOwnPropertyDescriptors = Object.getOwnPropertyDescriptors ||\n function getOwnPropertyDescriptors(obj) {\n var keys = Object.keys(obj);\n var descriptors = {};\n for (var i = 0; i < keys.length; i++) {\n descriptors[keys[i]] = Object.getOwnPropertyDescriptor(obj, keys[i]);\n }\n return descriptors;\n };\n\nvar formatRegExp = /%[sdj%]/g;\nexports.format = function(f) {\n if (!isString(f)) {\n var objects = [];\n for (var i = 0; i < arguments.length; i++) {\n objects.push(inspect(arguments[i]));\n }\n return objects.join(' ');\n }\n\n var i = 1;\n var args = arguments;\n var len = args.length;\n var str = String(f).replace(formatRegExp, function(x) {\n if (x === '%%') return '%';\n if (i >= len) return x;\n switch (x) {\n case '%s': return String(args[i++]);\n case '%d': return Number(args[i++]);\n case '%j':\n try {\n return JSON.stringify(args[i++]);\n } catch (_) {\n return '[Circular]';\n }\n default:\n return x;\n }\n });\n for (var x = args[i]; i < len; x = args[++i]) {\n if (isNull(x) || !isObject(x)) {\n str += ' ' + x;\n } else {\n str += ' ' + inspect(x);\n }\n }\n return str;\n};\n\n\n// Mark that a method should not be used.\n// Returns a modified function which warns once by default.\n// If --no-deprecation is set, then it is a no-op.\nexports.deprecate = function(fn, msg) {\n if (typeof process !== 'undefined' && process.noDeprecation === true) {\n return fn;\n }\n\n // Allow for deprecating things in the process of starting up.\n if (typeof process === 'undefined') {\n return function() {\n return exports.deprecate(fn, msg).apply(this, arguments);\n };\n }\n\n var warned = false;\n function deprecated() {\n if (!warned) {\n if (process.throwDeprecation) {\n throw new Error(msg);\n } else if (process.traceDeprecation) {\n console.trace(msg);\n } else {\n console.error(msg);\n }\n warned = true;\n }\n return fn.apply(this, arguments);\n }\n\n return deprecated;\n};\n\n\nvar debugs = {};\nvar debugEnvRegex = /^$/;\n\nif (process.env.NODE_DEBUG) {\n var debugEnv = process.env.NODE_DEBUG;\n debugEnv = debugEnv.replace(/[|\\\\{}()[\\]^$+?.]/g, '\\\\$&')\n .replace(/\\*/g, '.*')\n .replace(/,/g, '$|^')\n .toUpperCase();\n debugEnvRegex = new RegExp('^' + debugEnv + '$', 'i');\n}\nexports.debuglog = function(set) {\n set = set.toUpperCase();\n if (!debugs[set]) {\n if (debugEnvRegex.test(set)) {\n var pid = process.pid;\n debugs[set] = function() {\n var msg = exports.format.apply(exports, arguments);\n console.error('%s %d: %s', set, pid, msg);\n };\n } else {\n debugs[set] = function() {};\n }\n }\n return debugs[set];\n};\n\n\n/**\n * Echos the value of a value. Trys to print the value out\n * in the best way possible given the different types.\n *\n * @param {Object} obj The object to print out.\n * @param {Object} opts Optional options object that alters the output.\n */\n/* legacy: obj, showHidden, depth, colors*/\nfunction inspect(obj, opts) {\n // default options\n var ctx = {\n seen: [],\n stylize: stylizeNoColor\n };\n // legacy...\n if (arguments.length >= 3) ctx.depth = arguments[2];\n if (arguments.length >= 4) ctx.colors = arguments[3];\n if (isBoolean(opts)) {\n // legacy...\n ctx.showHidden = opts;\n } else if (opts) {\n // got an \"options\" object\n exports._extend(ctx, opts);\n }\n // set default options\n if (isUndefined(ctx.showHidden)) ctx.showHidden = false;\n if (isUndefined(ctx.depth)) ctx.depth = 2;\n if (isUndefined(ctx.colors)) ctx.colors = false;\n if (isUndefined(ctx.customInspect)) ctx.customInspect = true;\n if (ctx.colors) ctx.stylize = stylizeWithColor;\n return formatValue(ctx, obj, ctx.depth);\n}\nexports.inspect = inspect;\n\n\n// http://en.wikipedia.org/wiki/ANSI_escape_code#graphics\ninspect.colors = {\n 'bold' : [1, 22],\n 'italic' : [3, 23],\n 'underline' : [4, 24],\n 'inverse' : [7, 27],\n 'white' : [37, 39],\n 'grey' : [90, 39],\n 'black' : [30, 39],\n 'blue' : [34, 39],\n 'cyan' : [36, 39],\n 'green' : [32, 39],\n 'magenta' : [35, 39],\n 'red' : [31, 39],\n 'yellow' : [33, 39]\n};\n\n// Don't use 'blue' not visible on cmd.exe\ninspect.styles = {\n 'special': 'cyan',\n 'number': 'yellow',\n 'boolean': 'yellow',\n 'undefined': 'grey',\n 'null': 'bold',\n 'string': 'green',\n 'date': 'magenta',\n // \"name\": intentionally not styling\n 'regexp': 'red'\n};\n\n\nfunction stylizeWithColor(str, styleType) {\n var style = inspect.styles[styleType];\n\n if (style) {\n return '\\u001b[' + inspect.colors[style][0] + 'm' + str +\n '\\u001b[' + inspect.colors[style][1] + 'm';\n } else {\n return str;\n }\n}\n\n\nfunction stylizeNoColor(str, styleType) {\n return str;\n}\n\n\nfunction arrayToHash(array) {\n var hash = {};\n\n array.forEach(function(val, idx) {\n hash[val] = true;\n });\n\n return hash;\n}\n\n\nfunction formatValue(ctx, value, recurseTimes) {\n // Provide a hook for user-specified inspect functions.\n // Check that value is an object with an inspect function on it\n if (ctx.customInspect &&\n value &&\n isFunction(value.inspect) &&\n // Filter out the util module, it's inspect function is special\n value.inspect !== exports.inspect &&\n // Also filter out any prototype objects using the circular check.\n !(value.constructor && value.constructor.prototype === value)) {\n var ret = value.inspect(recurseTimes, ctx);\n if (!isString(ret)) {\n ret = formatValue(ctx, ret, recurseTimes);\n }\n return ret;\n }\n\n // Primitive types cannot have properties\n var primitive = formatPrimitive(ctx, value);\n if (primitive) {\n return primitive;\n }\n\n // Look up the keys of the object.\n var keys = Object.keys(value);\n var visibleKeys = arrayToHash(keys);\n\n if (ctx.showHidden) {\n keys = Object.getOwnPropertyNames(value);\n }\n\n // IE doesn't make error fields non-enumerable\n // http://msdn.microsoft.com/en-us/library/ie/dww52sbt(v=vs.94).aspx\n if (isError(value)\n && (keys.indexOf('message') >= 0 || keys.indexOf('description') >= 0)) {\n return formatError(value);\n }\n\n // Some type of object without properties can be shortcutted.\n if (keys.length === 0) {\n if (isFunction(value)) {\n var name = value.name ? ': ' + value.name : '';\n return ctx.stylize('[Function' + name + ']', 'special');\n }\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n }\n if (isDate(value)) {\n return ctx.stylize(Date.prototype.toString.call(value), 'date');\n }\n if (isError(value)) {\n return formatError(value);\n }\n }\n\n var base = '', array = false, braces = ['{', '}'];\n\n // Make Array say that they are Array\n if (isArray(value)) {\n array = true;\n braces = ['[', ']'];\n }\n\n // Make functions say that they are functions\n if (isFunction(value)) {\n var n = value.name ? ': ' + value.name : '';\n base = ' [Function' + n + ']';\n }\n\n // Make RegExps say that they are RegExps\n if (isRegExp(value)) {\n base = ' ' + RegExp.prototype.toString.call(value);\n }\n\n // Make dates with properties first say the date\n if (isDate(value)) {\n base = ' ' + Date.prototype.toUTCString.call(value);\n }\n\n // Make error with message first say the error\n if (isError(value)) {\n base = ' ' + formatError(value);\n }\n\n if (keys.length === 0 && (!array || value.length == 0)) {\n return braces[0] + base + braces[1];\n }\n\n if (recurseTimes < 0) {\n if (isRegExp(value)) {\n return ctx.stylize(RegExp.prototype.toString.call(value), 'regexp');\n } else {\n return ctx.stylize('[Object]', 'special');\n }\n }\n\n ctx.seen.push(value);\n\n var output;\n if (array) {\n output = formatArray(ctx, value, recurseTimes, visibleKeys, keys);\n } else {\n output = keys.map(function(key) {\n return formatProperty(ctx, value, recurseTimes, visibleKeys, key, array);\n });\n }\n\n ctx.seen.pop();\n\n return reduceToSingleString(output, base, braces);\n}\n\n\nfunction formatPrimitive(ctx, value) {\n if (isUndefined(value))\n return ctx.stylize('undefined', 'undefined');\n if (isString(value)) {\n var simple = '\\'' + JSON.stringify(value).replace(/^\"|\"$/g, '')\n .replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"') + '\\'';\n return ctx.stylize(simple, 'string');\n }\n if (isNumber(value))\n return ctx.stylize('' + value, 'number');\n if (isBoolean(value))\n return ctx.stylize('' + value, 'boolean');\n // For some reason typeof null is \"object\", so special case here.\n if (isNull(value))\n return ctx.stylize('null', 'null');\n}\n\n\nfunction formatError(value) {\n return '[' + Error.prototype.toString.call(value) + ']';\n}\n\n\nfunction formatArray(ctx, value, recurseTimes, visibleKeys, keys) {\n var output = [];\n for (var i = 0, l = value.length; i < l; ++i) {\n if (hasOwnProperty(value, String(i))) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n String(i), true));\n } else {\n output.push('');\n }\n }\n keys.forEach(function(key) {\n if (!key.match(/^\\d+$/)) {\n output.push(formatProperty(ctx, value, recurseTimes, visibleKeys,\n key, true));\n }\n });\n return output;\n}\n\n\nfunction formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) {\n var name, str, desc;\n desc = Object.getOwnPropertyDescriptor(value, key) || { value: value[key] };\n if (desc.get) {\n if (desc.set) {\n str = ctx.stylize('[Getter/Setter]', 'special');\n } else {\n str = ctx.stylize('[Getter]', 'special');\n }\n } else {\n if (desc.set) {\n str = ctx.stylize('[Setter]', 'special');\n }\n }\n if (!hasOwnProperty(visibleKeys, key)) {\n name = '[' + key + ']';\n }\n if (!str) {\n if (ctx.seen.indexOf(desc.value) < 0) {\n if (isNull(recurseTimes)) {\n str = formatValue(ctx, desc.value, null);\n } else {\n str = formatValue(ctx, desc.value, recurseTimes - 1);\n }\n if (str.indexOf('\\n') > -1) {\n if (array) {\n str = str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n').slice(2);\n } else {\n str = '\\n' + str.split('\\n').map(function(line) {\n return ' ' + line;\n }).join('\\n');\n }\n }\n } else {\n str = ctx.stylize('[Circular]', 'special');\n }\n }\n if (isUndefined(name)) {\n if (array && key.match(/^\\d+$/)) {\n return str;\n }\n name = JSON.stringify('' + key);\n if (name.match(/^\"([a-zA-Z_][a-zA-Z_0-9]*)\"$/)) {\n name = name.slice(1, -1);\n name = ctx.stylize(name, 'name');\n } else {\n name = name.replace(/'/g, \"\\\\'\")\n .replace(/\\\\\"/g, '\"')\n .replace(/(^\"|\"$)/g, \"'\");\n name = ctx.stylize(name, 'string');\n }\n }\n\n return name + ': ' + str;\n}\n\n\nfunction reduceToSingleString(output, base, braces) {\n var numLinesEst = 0;\n var length = output.reduce(function(prev, cur) {\n numLinesEst++;\n if (cur.indexOf('\\n') >= 0) numLinesEst++;\n return prev + cur.replace(/\\u001b\\[\\d\\d?m/g, '').length + 1;\n }, 0);\n\n if (length > 60) {\n return braces[0] +\n (base === '' ? '' : base + '\\n ') +\n ' ' +\n output.join(',\\n ') +\n ' ' +\n braces[1];\n }\n\n return braces[0] + base + ' ' + output.join(', ') + ' ' + braces[1];\n}\n\n\n// NOTE: These type checking functions intentionally don't use `instanceof`\n// because it is fragile and can be easily faked with `Object.create()`.\nexports.types = require('./support/types');\n\nfunction isArray(ar) {\n return Array.isArray(ar);\n}\nexports.isArray = isArray;\n\nfunction isBoolean(arg) {\n return typeof arg === 'boolean';\n}\nexports.isBoolean = isBoolean;\n\nfunction isNull(arg) {\n return arg === null;\n}\nexports.isNull = isNull;\n\nfunction isNullOrUndefined(arg) {\n return arg == null;\n}\nexports.isNullOrUndefined = isNullOrUndefined;\n\nfunction isNumber(arg) {\n return typeof arg === 'number';\n}\nexports.isNumber = isNumber;\n\nfunction isString(arg) {\n return typeof arg === 'string';\n}\nexports.isString = isString;\n\nfunction isSymbol(arg) {\n return typeof arg === 'symbol';\n}\nexports.isSymbol = isSymbol;\n\nfunction isUndefined(arg) {\n return arg === void 0;\n}\nexports.isUndefined = isUndefined;\n\nfunction isRegExp(re) {\n return isObject(re) && objectToString(re) === '[object RegExp]';\n}\nexports.isRegExp = isRegExp;\nexports.types.isRegExp = isRegExp;\n\nfunction isObject(arg) {\n return typeof arg === 'object' && arg !== null;\n}\nexports.isObject = isObject;\n\nfunction isDate(d) {\n return isObject(d) && objectToString(d) === '[object Date]';\n}\nexports.isDate = isDate;\nexports.types.isDate = isDate;\n\nfunction isError(e) {\n return isObject(e) &&\n (objectToString(e) === '[object Error]' || e instanceof Error);\n}\nexports.isError = isError;\nexports.types.isNativeError = isError;\n\nfunction isFunction(arg) {\n return typeof arg === 'function';\n}\nexports.isFunction = isFunction;\n\nfunction isPrimitive(arg) {\n return arg === null ||\n typeof arg === 'boolean' ||\n typeof arg === 'number' ||\n typeof arg === 'string' ||\n typeof arg === 'symbol' || // ES6 symbol\n typeof arg === 'undefined';\n}\nexports.isPrimitive = isPrimitive;\n\nexports.isBuffer = require('./support/isBuffer');\n\nfunction objectToString(o) {\n return Object.prototype.toString.call(o);\n}\n\n\nfunction pad(n) {\n return n < 10 ? '0' + n.toString(10) : n.toString(10);\n}\n\n\nvar months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',\n 'Oct', 'Nov', 'Dec'];\n\n// 26 Feb 16:19:34\nfunction timestamp() {\n var d = new Date();\n var time = [pad(d.getHours()),\n pad(d.getMinutes()),\n pad(d.getSeconds())].join(':');\n return [d.getDate(), months[d.getMonth()], time].join(' ');\n}\n\n\n// log is just a thin wrapper to console.log that prepends a timestamp\nexports.log = function() {\n console.log('%s - %s', timestamp(), exports.format.apply(exports, arguments));\n};\n\n\n/**\n * Inherit the prototype methods from one constructor into another.\n *\n * The Function.prototype.inherits from lang.js rewritten as a standalone\n * function (not on Function.prototype). NOTE: If this file is to be loaded\n * during bootstrapping this function needs to be rewritten using some native\n * functions as prototype setup using normal JavaScript does not work as\n * expected during bootstrapping (see mirror.js in r114903).\n *\n * @param {function} ctor Constructor function which needs to inherit the\n * prototype.\n * @param {function} superCtor Constructor function to inherit prototype from.\n */\nexports.inherits = require('inherits');\n\nexports._extend = function(origin, add) {\n // Don't do anything if add isn't an object\n if (!add || !isObject(add)) return origin;\n\n var keys = Object.keys(add);\n var i = keys.length;\n while (i--) {\n origin[keys[i]] = add[keys[i]];\n }\n return origin;\n};\n\nfunction hasOwnProperty(obj, prop) {\n return Object.prototype.hasOwnProperty.call(obj, prop);\n}\n\nvar kCustomPromisifiedSymbol = typeof Symbol !== 'undefined' ? Symbol('util.promisify.custom') : undefined;\n\nexports.promisify = function promisify(original) {\n if (typeof original !== 'function')\n throw new TypeError('The \"original\" argument must be of type Function');\n\n if (kCustomPromisifiedSymbol && original[kCustomPromisifiedSymbol]) {\n var fn = original[kCustomPromisifiedSymbol];\n if (typeof fn !== 'function') {\n throw new TypeError('The \"util.promisify.custom\" argument must be of type Function');\n }\n Object.defineProperty(fn, kCustomPromisifiedSymbol, {\n value: fn, enumerable: false, writable: false, configurable: true\n });\n return fn;\n }\n\n function fn() {\n var promiseResolve, promiseReject;\n var promise = new Promise(function (resolve, reject) {\n promiseResolve = resolve;\n promiseReject = reject;\n });\n\n var args = [];\n for (var i = 0; i < arguments.length; i++) {\n args.push(arguments[i]);\n }\n args.push(function (err, value) {\n if (err) {\n promiseReject(err);\n } else {\n promiseResolve(value);\n }\n });\n\n try {\n original.apply(this, args);\n } catch (err) {\n promiseReject(err);\n }\n\n return promise;\n }\n\n Object.setPrototypeOf(fn, Object.getPrototypeOf(original));\n\n if (kCustomPromisifiedSymbol) Object.defineProperty(fn, kCustomPromisifiedSymbol, {\n value: fn, enumerable: false, writable: false, configurable: true\n });\n return Object.defineProperties(\n fn,\n getOwnPropertyDescriptors(original)\n );\n}\n\nexports.promisify.custom = kCustomPromisifiedSymbol\n\nfunction callbackifyOnRejected(reason, cb) {\n // `!reason` guard inspired by bluebird (Ref: https://goo.gl/t5IS6M).\n // Because `null` is a special error value in callbacks which means \"no error\n // occurred\", we error-wrap so the callback consumer can distinguish between\n // \"the promise rejected with null\" or \"the promise fulfilled with undefined\".\n if (!reason) {\n var newReason = new Error('Promise was rejected with a falsy value');\n newReason.reason = reason;\n reason = newReason;\n }\n return cb(reason);\n}\n\nfunction callbackify(original) {\n if (typeof original !== 'function') {\n throw new TypeError('The \"original\" argument must be of type Function');\n }\n\n // We DO NOT return the promise as it gives the user a false sense that\n // the promise is actually somehow related to the callback's execution\n // and that the callback throwing will reject the promise.\n function callbackified() {\n var args = [];\n for (var i = 0; i < arguments.length; i++) {\n args.push(arguments[i]);\n }\n\n var maybeCb = args.pop();\n if (typeof maybeCb !== 'function') {\n throw new TypeError('The last argument must be of type Function');\n }\n var self = this;\n var cb = function() {\n return maybeCb.apply(self, arguments);\n };\n // In true node style we process the callback on `nextTick` with all the\n // implications (stack, `uncaughtException`, `async_hooks`)\n original.apply(this, args)\n .then(function(ret) { process.nextTick(cb.bind(null, null, ret)) },\n function(rej) { process.nextTick(callbackifyOnRejected.bind(null, rej, cb)) });\n }\n\n Object.setPrototypeOf(callbackified, Object.getPrototypeOf(original));\n Object.defineProperties(callbackified,\n getOwnPropertyDescriptors(original));\n return callbackified;\n}\nexports.callbackify = callbackify;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\n/**\n * convert the given Scheme into a Rule that allows undefined value\n * @param scheme the scheme\n */\nfunction optional(scheme) {\n return (value, context) => {\n if (value !== undefined) {\n validate(value, scheme, context);\n }\n return '';\n };\n}\nexports.optional = optional;\n/**\n * convert the given Scheme into a Rule that allows null value\n * @param scheme the scheme\n */\nfunction nullable(scheme) {\n return (value, context) => {\n if (value !== null) {\n validate(value, scheme, context);\n }\n return '';\n };\n}\nexports.nullable = nullable;\n/** Validator class */\nclass Validator {\n constructor(scheme) {\n this.scheme = scheme;\n }\n test(value, context) {\n return validate(value, this.scheme, context);\n }\n}\nexports.Validator = Validator;\n/** Error class describes validation error */\nclass ValidationError extends Error {\n constructor(rawMessage, context) {\n super(context ? `${context}: ${rawMessage}` : rawMessage);\n this.rawMessage = rawMessage;\n this.context = context;\n }\n}\nexports.ValidationError = ValidationError;\nValidationError.prototype.name = 'ValidationError';\n/**\n * direct function to validate value without construct Validator object\n * @param value value to be validated\n * @param scheme scheme\n * @param context context string appears in error object\n */\nfunction validate(value, scheme, context) {\n if (Array.isArray(scheme)) {\n if (!Array.isArray(value)) {\n throw new ValidationError('expected array', context || '');\n }\n value.forEach((el, i) => validate(el, scheme[0], context ? `${context}.#${i}` : `#${i}`));\n }\n else if (scheme instanceof Function) {\n const errMsg = scheme(value, context);\n if (errMsg) {\n throw new ValidationError(errMsg, context || '');\n }\n }\n else {\n if (!(value instanceof Object)) {\n throw new ValidationError('expected object', context || '');\n }\n for (const key in scheme) {\n if (scheme.hasOwnProperty(key)) {\n validate(value[key], scheme[key], context ? `${context}.${key}` : key);\n }\n }\n }\n return value;\n}\nexports.validate = validate;\n//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3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FBSSxlQUFlLENBQUMsTUFBTSxFQUFFLE9BQU8sSUFBSSxFQUFFLENBQUMsQ0FBQTtTQUNuRDtLQUNKO1NBQU07UUFDSCxJQUFJLENBQUMsQ0FBQyxLQUFLLFlBQVksTUFBTSxDQUFDLEVBQUU7WUFDNUIsTUFBTSxJQUFJLGVBQWUsQ0FBQyxpQkFBaUIsRUFBRSxPQUFPLElBQUksRUFBRSxDQUFDLENBQUE7U0FDOUQ7UUFDRCxLQUFLLE1BQU0sR0FBRyxJQUFJLE1BQU0sRUFBRTtZQUN0QixJQUFJLE1BQU0sQ0FBQyxjQUFjLENBQUMsR0FBRyxDQUFDLEVBQUU7Z0JBQzVCLFFBQVEsQ0FBQyxLQUFLLENBQUMsR0FBWSxDQUFDLEVBQUUsTUFBTSxDQUFDLEdBQUcsQ0FBQyxFQUFFLE9BQU8sQ0FBQyxDQUFDLENBQUMsR0FBRyxPQUFPLElBQUksR0FBRyxFQUFFLENBQUMsQ0FBQyxDQUFDLEdBQUcsQ0FBQyxDQUFBO2FBQ2xGO1NBQ0o7S0FDSjtJQUNELE9BQU8sS0FBSyxDQUFBO0FBQ2hCLENBQUM7QUF2QkQsNEJBdUJDIn0=","/**\n * vee-validate v2.1.5\n * (c) 2019 Abdelrahman Awad\n * @license MIT\n */\n// \r\n\r\nvar isTextInput = function (el) {\r\n return includes(['text', 'password', 'search', 'email', 'tel', 'url', 'textarea', 'number'], el.type);\r\n};\r\n\r\nvar isCheckboxOrRadioInput = function (el) {\r\n return includes(['radio', 'checkbox'], el.type);\r\n};\r\n\r\nvar isDateInput = function (el) {\r\n return includes(['date', 'week', 'month', 'datetime-local', 'time'], el.type);\r\n};\r\n\r\n/**\r\n * Gets the data attribute. the name must be kebab-case.\r\n */\r\nvar getDataAttribute = function (el, name) { return el.getAttribute((\"data-vv-\" + name)); };\r\n\r\n/**\r\n * Checks if the values are either null or undefined.\r\n */\r\nvar isNullOrUndefined = function () {\n var values = [], len = arguments.length;\n while ( len-- ) values[ len ] = arguments[ len ];\n\r\n return values.every(function (value) {\r\n return value === null || value === undefined;\r\n });\r\n};\r\n\r\n/**\r\n * Creates the default flags object.\r\n */\r\nvar createFlags = function () { return ({\r\n untouched: true,\r\n touched: false,\r\n dirty: false,\r\n pristine: true,\r\n valid: null,\r\n invalid: null,\r\n validated: false,\r\n pending: false,\r\n required: false,\r\n changed: false\r\n}); };\r\n\r\n/**\r\n * Shallow object comparison.\r\n */\r\nvar isEqual = function (lhs, rhs) {\r\n if (lhs instanceof RegExp && rhs instanceof RegExp) {\r\n return isEqual(lhs.source, rhs.source) && isEqual(lhs.flags, rhs.flags);\r\n }\r\n\r\n if (Array.isArray(lhs) && Array.isArray(rhs)) {\r\n if (lhs.length !== rhs.length) { return false; }\r\n\r\n for (var i = 0; i < lhs.length; i++) {\r\n if (!isEqual(lhs[i], rhs[i])) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n }\r\n\r\n // if both are objects, compare each key recursively.\r\n if (isObject(lhs) && isObject(rhs)) {\r\n return Object.keys(lhs).every(function (key) {\r\n return isEqual(lhs[key], rhs[key]);\r\n }) && Object.keys(rhs).every(function (key) {\r\n return isEqual(lhs[key], rhs[key]);\r\n });\r\n }\r\n\r\n return lhs === rhs;\r\n};\r\n\r\n/**\r\n * Determines the input field scope.\r\n */\r\nvar getScope = function (el) {\r\n var scope = getDataAttribute(el, 'scope');\r\n if (isNullOrUndefined(scope)) {\r\n var form = getForm(el);\r\n\r\n if (form) {\r\n scope = getDataAttribute(form, 'scope');\r\n }\r\n }\r\n\r\n return !isNullOrUndefined(scope) ? scope : null;\r\n};\r\n\r\n/**\r\n * Get the closest form element.\r\n */\r\nvar getForm = function (el) {\r\n if (isNullOrUndefined(el)) { return null; }\r\n\r\n if (el.tagName === 'FORM') { return el; }\r\n\r\n if (!isNullOrUndefined(el.form)) { return el.form; }\r\n\r\n return !isNullOrUndefined(el.parentNode) ? getForm(el.parentNode) : null;\r\n};\r\n\r\n/**\r\n * Gets the value in an object safely.\r\n */\r\nvar getPath = function (path, target, def) {\n if ( def === void 0 ) def = undefined;\n\r\n if (!path || !target) { return def; }\r\n\r\n var value = target;\r\n path.split('.').every(function (prop) {\r\n if (prop in value) {\r\n value = value[prop];\r\n\r\n return true;\r\n }\r\n\r\n value = def;\r\n\r\n return false;\r\n });\r\n\r\n return value;\r\n};\r\n\r\n/**\r\n * Checks if path exists within an object.\r\n */\r\nvar hasPath = function (path, target) {\r\n var obj = target;\r\n return path.split('.').every(function (prop) {\r\n if (prop in obj) {\r\n obj = obj[prop];\r\n\r\n return true;\r\n }\r\n\r\n return false;\r\n });\r\n};\r\n\r\n/**\r\n * Parses a rule string expression.\r\n */\r\nvar parseRule = function (rule) {\r\n var params = [];\r\n var name = rule.split(':')[0];\r\n\r\n if (includes(rule, ':')) {\r\n params = rule.split(':').slice(1).join(':').split(',');\r\n }\r\n\r\n return { name: name, params: params };\r\n};\r\n\r\n/**\r\n * Debounces a function.\r\n */\r\nvar debounce = function (fn, wait, token) {\n if ( wait === void 0 ) wait = 0;\n if ( token === void 0 ) token = { cancelled: false };\n\r\n if (wait === 0) {\r\n return fn;\r\n }\r\n\r\n var timeout;\r\n\r\n return function () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\r\n var later = function () {\r\n timeout = null;\r\n\r\n // check if the fn call was cancelled.\r\n if (!token.cancelled) { fn.apply(void 0, args); }\r\n };\r\n\r\n clearTimeout(timeout);\r\n timeout = setTimeout(later, wait);\r\n if (!timeout) { fn.apply(void 0, args); }\r\n };\r\n};\r\n\r\n/**\r\n * Appends a rule definition to a list of rules.\r\n */\r\nvar appendRule = function (rule, rules) {\r\n if (!rules) {\r\n return normalizeRules(rule);\r\n }\r\n\r\n if (!rule) {\r\n return normalizeRules(rules);\r\n }\r\n\r\n if (typeof rules === 'string') {\r\n rules = normalizeRules(rules);\r\n }\r\n\r\n return assign({}, rules, normalizeRules(rule));\r\n};\r\n\r\n/**\r\n * Normalizes the given rules expression.\r\n */\r\nvar normalizeRules = function (rules) {\r\n // if falsy value return an empty object.\r\n if (!rules) {\r\n return {};\r\n }\r\n\r\n if (isObject(rules)) {\r\n // $FlowFixMe\r\n return Object.keys(rules).reduce(function (prev, curr) {\r\n var params = [];\r\n // $FlowFixMe\r\n if (rules[curr] === true) {\r\n params = [];\r\n } else if (Array.isArray(rules[curr])) {\r\n params = rules[curr];\r\n } else if (isObject(rules[curr])) {\r\n params = rules[curr];\r\n } else {\r\n params = [rules[curr]];\r\n }\r\n\r\n // $FlowFixMe\r\n if (rules[curr] !== false) {\r\n prev[curr] = params;\r\n }\r\n\r\n return prev;\r\n }, {});\r\n }\r\n\r\n if (typeof rules !== 'string') {\r\n warn('rules must be either a string or an object.');\r\n return {};\r\n }\r\n\r\n return rules.split('|').reduce(function (prev, rule) {\r\n var parsedRule = parseRule(rule);\r\n if (!parsedRule.name) {\r\n return prev;\r\n }\r\n\r\n prev[parsedRule.name] = parsedRule.params;\r\n return prev;\r\n }, {});\r\n};\r\n\r\n/**\r\n * Emits a warning to the console.\r\n */\r\nvar warn = function (message) {\r\n console.warn((\"[vee-validate] \" + message)); // eslint-disable-line\r\n};\r\n\r\n/**\r\n * Creates a branded error object.\r\n */\r\nvar createError = function (message) { return new Error((\"[vee-validate] \" + message)); };\r\n\r\n/**\r\n * Checks if the value is an object.\r\n */\r\nvar isObject = function (obj) { return obj !== null && obj && typeof obj === 'object' && ! Array.isArray(obj); };\r\n\r\n/**\r\n * Checks if a function is callable.\r\n */\r\nvar isCallable = function (func) { return typeof func === 'function'; };\r\n\r\n/**\r\n * Check if element has the css class on it.\r\n */\r\nvar hasClass = function (el, className) {\r\n if (el.classList) {\r\n return el.classList.contains(className);\r\n }\r\n\r\n return !!el.className.match(new RegExp((\"(\\\\s|^)\" + className + \"(\\\\s|$)\")));\r\n};\r\n\r\n/**\r\n * Adds the provided css className to the element.\r\n */\r\nvar addClass = function (el, className) {\r\n if (el.classList) {\r\n el.classList.add(className);\r\n return;\r\n }\r\n\r\n if (!hasClass(el, className)) {\r\n el.className += \" \" + className;\r\n }\r\n};\r\n\r\n/**\r\n * Remove the provided css className from the element.\r\n */\r\nvar removeClass = function (el, className) {\r\n if (el.classList) {\r\n el.classList.remove(className);\r\n return;\r\n }\r\n\r\n if (hasClass(el, className)) {\r\n var reg = new RegExp((\"(\\\\s|^)\" + className + \"(\\\\s|$)\"));\r\n el.className = el.className.replace(reg, ' ');\r\n }\r\n};\r\n\r\n/**\r\n * Adds or removes a class name on the input depending on the status flag.\r\n */\r\nvar toggleClass = function (el, className, status) {\r\n if (!el || !className) { return; }\r\n\r\n if (Array.isArray(className)) {\r\n className.forEach(function (item) { return toggleClass(el, item, status); });\r\n return;\r\n }\r\n\r\n if (status) {\r\n return addClass(el, className);\r\n }\r\n\r\n removeClass(el, className);\r\n};\r\n\r\n/**\r\n * Converts an array-like object to array, provides a simple polyfill for Array.from\r\n */\r\nvar toArray = function (arrayLike) {\r\n if (isCallable(Array.from)) {\r\n return Array.from(arrayLike);\r\n }\r\n\r\n var array = [];\r\n var length = arrayLike.length;\r\n /* istanbul ignore next */\r\n for (var i = 0; i < length; i++) {\r\n array.push(arrayLike[i]);\r\n }\r\n\r\n /* istanbul ignore next */\r\n return array;\r\n};\r\n\r\n/**\r\n * Assign polyfill from the mdn.\r\n */\r\nvar assign = function (target) {\n var others = [], len = arguments.length - 1;\n while ( len-- > 0 ) others[ len ] = arguments[ len + 1 ];\n\r\n /* istanbul ignore else */\r\n if (isCallable(Object.assign)) {\r\n return Object.assign.apply(Object, [ target ].concat( others ));\r\n }\r\n\r\n /* istanbul ignore next */\r\n if (target == null) {\r\n throw new TypeError('Cannot convert undefined or null to object');\r\n }\r\n\r\n /* istanbul ignore next */\r\n var to = Object(target);\r\n /* istanbul ignore next */\r\n others.forEach(function (arg) {\r\n // Skip over if undefined or null\r\n if (arg != null) {\r\n Object.keys(arg).forEach(function (key) {\r\n to[key] = arg[key];\r\n });\r\n }\r\n });\r\n /* istanbul ignore next */\r\n return to;\r\n};\r\n\r\nvar id = 0;\r\nvar idTemplate = '{id}';\r\n\r\n/**\r\n * Generates a unique id.\r\n */\r\nvar uniqId = function () {\r\n // handle too many uses of uniqId, although unlikely.\r\n if (id >= 9999) {\r\n id = 0;\r\n // shift the template.\r\n idTemplate = idTemplate.replace('{id}', '_{id}');\r\n }\r\n\r\n id++;\r\n var newId = idTemplate.replace('{id}', String(id));\r\n\r\n return newId;\r\n};\r\n\r\n/**\r\n * finds the first element that satisfies the predicate callback, polyfills array.find\r\n */\r\nvar find = function (arrayLike, predicate) {\r\n var array = Array.isArray(arrayLike) ? arrayLike : toArray(arrayLike);\r\n for (var i = 0; i < array.length; i++) {\r\n if (predicate(array[i])) {\r\n return array[i];\r\n }\r\n }\r\n\r\n return undefined;\r\n};\r\n\r\nvar isBuiltInComponent = function (vnode) {\r\n if (!vnode) {\r\n return false;\r\n }\r\n\r\n var tag = vnode.componentOptions.tag;\r\n\r\n return /^(keep-alive|transition|transition-group)$/.test(tag);\r\n};\r\n\r\nvar makeDelayObject = function (events, delay, delayConfig) {\r\n if (typeof delay === 'number') {\r\n return events.reduce(function (prev, e) {\r\n prev[e] = delay;\r\n return prev;\r\n }, {});\r\n }\r\n\r\n return events.reduce(function (prev, e) {\r\n if (typeof delay === 'object' && e in delay) {\r\n prev[e] = delay[e];\r\n return prev;\r\n }\r\n\r\n if (typeof delayConfig === 'number') {\r\n prev[e] = delayConfig;\r\n return prev;\r\n }\r\n\r\n prev[e] = (delayConfig && delayConfig[e]) || 0;\r\n\r\n return prev;\r\n }, {});\r\n};\r\n\r\nvar deepParseInt = function (input) {\r\n if (typeof input === 'number') { return input; }\r\n\r\n if (typeof input === 'string') { return parseInt(input); }\r\n\r\n var map = {};\r\n for (var element in input) {\r\n map[element] = parseInt(input[element]);\r\n }\r\n\r\n return map;\r\n};\r\n\r\nvar merge = function (target, source) {\r\n if (! (isObject(target) && isObject(source))) {\r\n return target;\r\n }\r\n\r\n Object.keys(source).forEach(function (key) {\n var obj, obj$1;\n\r\n if (isObject(source[key])) {\r\n if (! target[key]) {\r\n assign(target, ( obj = {}, obj[key] = {}, obj ));\r\n }\r\n\r\n merge(target[key], source[key]);\r\n return;\r\n }\r\n\r\n assign(target, ( obj$1 = {}, obj$1[key] = source[key], obj$1 ));\r\n });\r\n\r\n return target;\r\n};\r\n\r\nvar fillRulesFromElement = function (el, rules) {\r\n if (el.required) {\r\n rules = appendRule('required', rules);\r\n }\r\n\r\n if (isTextInput(el)) {\r\n if (el.type === 'email') {\r\n rules = appendRule((\"email\" + (el.multiple ? ':multiple' : '')), rules);\r\n }\r\n\r\n if (el.pattern) {\r\n rules = appendRule({ regex: el.pattern }, rules);\r\n }\r\n\r\n // 524288 is the max on some browsers and test environments.\r\n if (el.maxLength >= 0 && el.maxLength < 524288) {\r\n rules = appendRule((\"max:\" + (el.maxLength)), rules);\r\n }\r\n\r\n if (el.minLength > 0) {\r\n rules = appendRule((\"min:\" + (el.minLength)), rules);\r\n }\r\n\r\n if (el.type === 'number') {\r\n rules = appendRule('decimal', rules);\r\n if (el.min !== '') {\r\n rules = appendRule((\"min_value:\" + (el.min)), rules);\r\n }\r\n\r\n if (el.max !== '') {\r\n rules = appendRule((\"max_value:\" + (el.max)), rules);\r\n }\r\n }\r\n\r\n return rules;\r\n }\r\n\r\n if (isDateInput(el)) {\r\n var timeFormat = el.step && Number(el.step) < 60 ? 'HH:mm:ss' : 'HH:mm';\r\n\r\n if (el.type === 'date') {\r\n return appendRule('date_format:YYYY-MM-DD', rules);\r\n }\r\n\r\n if (el.type === 'datetime-local') {\r\n return appendRule((\"date_format:YYYY-MM-DDT\" + timeFormat), rules);\r\n }\r\n\r\n if (el.type === 'month') {\r\n return appendRule('date_format:YYYY-MM', rules);\r\n }\r\n\r\n if (el.type === 'week') {\r\n return appendRule('date_format:YYYY-[W]WW', rules);\r\n }\r\n\r\n if (el.type === 'time') {\r\n return appendRule((\"date_format:\" + timeFormat), rules);\r\n }\r\n }\r\n\r\n return rules;\r\n};\r\n\r\nvar values = function (obj) {\r\n if (isCallable(Object.values)) {\r\n return Object.values(obj);\r\n }\r\n\r\n // fallback to keys()\r\n /* istanbul ignore next */\r\n return Object.keys(obj).map(function (k) { return obj[k]; });\r\n};\r\n\r\nvar parseSelector = function (selector) {\r\n var rule = null;\r\n if (includes(selector, ':')) {\r\n rule = selector.split(':').pop();\r\n selector = selector.replace((\":\" + rule), '');\r\n }\r\n\r\n if (selector[0] === '#') {\r\n return {\r\n id: selector.slice(1),\r\n rule: rule,\r\n name: null,\r\n scope: null\r\n };\r\n }\r\n\r\n var scope = null;\r\n var name = selector;\r\n if (includes(selector, '.')) {\r\n var parts = selector.split('.');\r\n scope = parts[0];\r\n name = parts.slice(1).join('.');\r\n }\r\n\r\n return {\r\n id: null,\r\n scope: scope,\r\n name: name,\r\n rule: rule\r\n };\r\n};\r\n\r\nvar includes = function (collection, item) {\r\n return collection.indexOf(item) !== -1;\r\n};\r\n\r\nvar isEmptyArray = function (arr) {\r\n return Array.isArray(arr) && arr.length === 0;\r\n};\n\n// \r\n\r\nvar LOCALE = 'en';\r\n\r\nvar Dictionary = function Dictionary (dictionary) {\n if ( dictionary === void 0 ) dictionary = {};\n\r\n this.container = {};\r\n this.merge(dictionary);\r\n};\n\nvar prototypeAccessors = { locale: { configurable: true } };\r\n\r\nprototypeAccessors.locale.get = function () {\r\n return LOCALE;\r\n};\r\n\r\nprototypeAccessors.locale.set = function (value) {\r\n LOCALE = value || 'en';\r\n};\r\n\r\nDictionary.prototype.hasLocale = function hasLocale (locale) {\r\n return !!this.container[locale];\r\n};\r\n\r\nDictionary.prototype.setDateFormat = function setDateFormat (locale, format) {\r\n if (!this.container[locale]) {\r\n this.container[locale] = {};\r\n }\r\n\r\n this.container[locale].dateFormat = format;\r\n};\r\n\r\nDictionary.prototype.getDateFormat = function getDateFormat (locale) {\r\n if (!this.container[locale] || !this.container[locale].dateFormat) {\r\n return null;\r\n }\r\n\r\n return this.container[locale].dateFormat;\r\n};\r\n\r\nDictionary.prototype.getMessage = function getMessage (locale, key, data) {\r\n var message = null;\r\n if (!this.hasMessage(locale, key)) {\r\n message = this._getDefaultMessage(locale);\r\n } else {\r\n message = this.container[locale].messages[key];\r\n }\r\n\r\n return isCallable(message) ? message.apply(void 0, data) : message;\r\n};\r\n\r\n/**\r\n * Gets a specific message for field. falls back to the rule message.\r\n */\r\nDictionary.prototype.getFieldMessage = function getFieldMessage (locale, field, key, data) {\r\n if (!this.hasLocale(locale)) {\r\n return this.getMessage(locale, key, data);\r\n }\r\n\r\n var dict = this.container[locale].custom && this.container[locale].custom[field];\r\n if (!dict || !dict[key]) {\r\n return this.getMessage(locale, key, data);\r\n }\r\n\r\n var message = dict[key];\r\n return isCallable(message) ? message.apply(void 0, data) : message;\r\n};\r\n\r\nDictionary.prototype._getDefaultMessage = function _getDefaultMessage (locale) {\r\n if (this.hasMessage(locale, '_default')) {\r\n return this.container[locale].messages._default;\r\n }\r\n\r\n return this.container.en.messages._default;\r\n};\r\n\r\nDictionary.prototype.getAttribute = function getAttribute (locale, key, fallback) {\n if ( fallback === void 0 ) fallback = '';\n\r\n if (!this.hasAttribute(locale, key)) {\r\n return fallback;\r\n }\r\n\r\n return this.container[locale].attributes[key];\r\n};\r\n\r\nDictionary.prototype.hasMessage = function hasMessage (locale, key) {\r\n return !! (\r\n this.hasLocale(locale) &&\r\n this.container[locale].messages &&\r\n this.container[locale].messages[key]\r\n );\r\n};\r\n\r\nDictionary.prototype.hasAttribute = function hasAttribute (locale, key) {\r\n return !! (\r\n this.hasLocale(locale) &&\r\n this.container[locale].attributes &&\r\n this.container[locale].attributes[key]\r\n );\r\n};\r\n\r\nDictionary.prototype.merge = function merge$1 (dictionary) {\r\n merge(this.container, dictionary);\r\n};\r\n\r\nDictionary.prototype.setMessage = function setMessage (locale, key, message) {\r\n if (! this.hasLocale(locale)) {\r\n this.container[locale] = {\r\n messages: {},\r\n attributes: {}\r\n };\r\n }\r\n\r\n this.container[locale].messages[key] = message;\r\n};\r\n\r\nDictionary.prototype.setAttribute = function setAttribute (locale, key, attribute) {\r\n if (! this.hasLocale(locale)) {\r\n this.container[locale] = {\r\n messages: {},\r\n attributes: {}\r\n };\r\n }\r\n\r\n this.container[locale].attributes[key] = attribute;\r\n};\n\nObject.defineProperties( Dictionary.prototype, prototypeAccessors );\n\nvar drivers = {\r\n default: new Dictionary({\r\n en: {\r\n messages: {},\r\n attributes: {},\r\n custom: {}\r\n }\r\n })\r\n};\r\n\r\nvar currentDriver = 'default';\r\n\r\nvar DictionaryResolver = function DictionaryResolver () {};\n\nDictionaryResolver._checkDriverName = function _checkDriverName (driver) {\r\n if (!driver) {\r\n throw createError('you must provide a name to the dictionary driver');\r\n }\r\n};\r\n\r\nDictionaryResolver.setDriver = function setDriver (driver, implementation) {\n if ( implementation === void 0 ) implementation = null;\n\r\n this._checkDriverName(driver);\r\n if (implementation) {\r\n drivers[driver] = implementation;\r\n }\r\n\r\n currentDriver = driver;\r\n};\r\n\r\nDictionaryResolver.getDriver = function getDriver () {\r\n return drivers[currentDriver];\r\n};\n\n// \r\n\r\nvar ErrorBag = function ErrorBag (errorBag, id) {\n if ( errorBag === void 0 ) errorBag = null;\n if ( id === void 0 ) id = null;\n\r\n this.vmId = id || null;\r\n // make this bag a mirror of the provided one, sharing the same items reference.\r\n if (errorBag && errorBag instanceof ErrorBag) {\r\n this.items = errorBag.items;\r\n } else {\r\n this.items = [];\r\n }\r\n};\r\n\r\nErrorBag.prototype[typeof Symbol === 'function' ? Symbol.iterator : '@@iterator'] = function () {\n var this$1 = this;\n\r\n var index = 0;\r\n return {\r\n next: function () {\r\n return { value: this$1.items[index++], done: index > this$1.items.length };\r\n }\r\n };\r\n};\r\n\r\n/**\r\n * Adds an error to the internal array.\r\n */\r\nErrorBag.prototype.add = function add (error) {\n var ref;\n\r\n (ref = this.items).push.apply(\r\n ref, this._normalizeError(error)\r\n );\r\n};\r\n\r\n/**\r\n * Normalizes passed errors to an error array.\r\n */\r\nErrorBag.prototype._normalizeError = function _normalizeError (error) {\n var this$1 = this;\n\r\n if (Array.isArray(error)) {\r\n return error.map(function (e) {\r\n e.scope = !isNullOrUndefined(e.scope) ? e.scope : null;\r\n e.vmId = !isNullOrUndefined(e.vmId) ? e.vmId : (this$1.vmId || null);\r\n\r\n return e;\r\n });\r\n }\r\n\r\n error.scope = !isNullOrUndefined(error.scope) ? error.scope : null;\r\n error.vmId = !isNullOrUndefined(error.vmId) ? error.vmId : (this.vmId || null);\r\n\r\n return [error];\r\n};\r\n\r\n/**\r\n * Regenrates error messages if they have a generator function.\r\n */\r\nErrorBag.prototype.regenerate = function regenerate () {\r\n this.items.forEach(function (i) {\r\n i.msg = isCallable(i.regenerate) ? i.regenerate() : i.msg;\r\n });\r\n};\r\n\r\n/**\r\n * Updates a field error with the new field scope.\r\n */\r\nErrorBag.prototype.update = function update (id, error) {\r\n var item = find(this.items, function (i) { return i.id === id; });\r\n if (!item) {\r\n return;\r\n }\r\n\r\n var idx = this.items.indexOf(item);\r\n this.items.splice(idx, 1);\r\n item.scope = error.scope;\r\n this.items.push(item);\r\n};\r\n\r\n/**\r\n * Gets all error messages from the internal array.\r\n */\r\nErrorBag.prototype.all = function all (scope) {\n var this$1 = this;\n\r\n var filterFn = function (item) {\r\n var matchesScope = true;\r\n var matchesVM = true;\r\n if (!isNullOrUndefined(scope)) {\r\n matchesScope = item.scope === scope;\r\n }\r\n\r\n if (!isNullOrUndefined(this$1.vmId)) {\r\n matchesVM = item.vmId === this$1.vmId;\r\n }\r\n\r\n return matchesVM && matchesScope;\r\n };\r\n\r\n return this.items.filter(filterFn).map(function (e) { return e.msg; });\r\n};\r\n\r\n/**\r\n * Checks if there are any errors in the internal array.\r\n */\r\nErrorBag.prototype.any = function any (scope) {\n var this$1 = this;\n\r\n var filterFn = function (item) {\r\n var matchesScope = true;\r\n var matchesVM = true;\r\n if (!isNullOrUndefined(scope)) {\r\n matchesScope = item.scope === scope;\r\n }\r\n\r\n if (!isNullOrUndefined(this$1.vmId)) {\r\n matchesVM = item.vmId === this$1.vmId;\r\n }\r\n\r\n return matchesVM && matchesScope;\r\n };\r\n\r\n return !!this.items.filter(filterFn).length;\r\n};\r\n\r\n/**\r\n * Removes all items from the internal array.\r\n */\r\nErrorBag.prototype.clear = function clear (scope) {\n var this$1 = this;\n\r\n var matchesVM = isNullOrUndefined(this.vmId) ? function () { return true; } : function (i) { return i.vmId === this$1.vmId; };\r\n if (isNullOrUndefined(scope)) {\r\n scope = null;\r\n }\r\n\r\n for (var i = 0; i < this.items.length; ++i) {\r\n if (matchesVM(this.items[i]) && this.items[i].scope === scope) {\r\n this.items.splice(i, 1);\r\n --i;\r\n }\r\n }\r\n};\r\n\r\n/**\r\n * Collects errors into groups or for a specific field.\r\n */\r\nErrorBag.prototype.collect = function collect (field, scope, map) {\n var this$1 = this;\n if ( map === void 0 ) map = true;\n\r\n var isSingleField = !isNullOrUndefined(field) && !field.includes('*');\r\n var groupErrors = function (items) {\r\n var errors = items.reduce(function (collection, error) {\r\n if (!isNullOrUndefined(this$1.vmId) && error.vmId !== this$1.vmId) {\r\n return collection;\r\n }\r\n\r\n if (!collection[error.field]) {\r\n collection[error.field] = [];\r\n }\r\n\r\n collection[error.field].push(map ? error.msg : error);\r\n\r\n return collection;\r\n }, {});\r\n\r\n // reduce the collection to be a single array.\r\n if (isSingleField) {\r\n return values(errors)[0] || [];\r\n }\r\n\r\n return errors;\r\n };\r\n\r\n if (isNullOrUndefined(field)) {\r\n return groupErrors(this.items);\r\n }\r\n\r\n var selector = isNullOrUndefined(scope) ? String(field) : (scope + \".\" + field);\r\n var ref = this._makeCandidateFilters(selector);\n var isPrimary = ref.isPrimary;\n var isAlt = ref.isAlt;\r\n\r\n var collected = this.items.reduce(function (prev, curr) {\r\n if (isPrimary(curr)) {\r\n prev.primary.push(curr);\r\n }\r\n\r\n if (isAlt(curr)) {\r\n prev.alt.push(curr);\r\n }\r\n\r\n return prev;\r\n }, { primary: [], alt: [] });\r\n\r\n collected = collected.primary.length ? collected.primary : collected.alt;\r\n\r\n return groupErrors(collected);\r\n};\r\n\r\n/**\r\n * Gets the internal array length.\r\n */\r\nErrorBag.prototype.count = function count () {\n var this$1 = this;\n\r\n if (this.vmId) {\r\n return this.items.filter(function (e) { return e.vmId === this$1.vmId; }).length;\r\n }\r\n\r\n return this.items.length;\r\n};\r\n\r\n/**\r\n * Finds and fetches the first error message for the specified field id.\r\n */\r\nErrorBag.prototype.firstById = function firstById (id) {\r\n var error = find(this.items, function (i) { return i.id === id; });\r\n\r\n return error ? error.msg : undefined;\r\n};\r\n\r\n/**\r\n * Gets the first error message for a specific field.\r\n */\r\nErrorBag.prototype.first = function first (field, scope) {\n if ( scope === void 0 ) scope = null;\n\r\n var selector = isNullOrUndefined(scope) ? field : (scope + \".\" + field);\r\n var match = this._match(selector);\r\n\r\n return match && match.msg;\r\n};\r\n\r\n/**\r\n * Returns the first error rule for the specified field\r\n */\r\nErrorBag.prototype.firstRule = function firstRule (field, scope) {\r\n var errors = this.collect(field, scope, false);\r\n\r\n return (errors.length && errors[0].rule) || undefined;\r\n};\r\n\r\n/**\r\n * Checks if the internal array has at least one error for the specified field.\r\n */\r\nErrorBag.prototype.has = function has (field, scope) {\n if ( scope === void 0 ) scope = null;\n\r\n return !!this.first(field, scope);\r\n};\r\n\r\n/**\r\n * Gets the first error message for a specific field and a rule.\r\n */\r\nErrorBag.prototype.firstByRule = function firstByRule (name, rule, scope) {\n if ( scope === void 0 ) scope = null;\n\r\n var error = this.collect(name, scope, false).filter(function (e) { return e.rule === rule; })[0];\r\n\r\n return (error && error.msg) || undefined;\r\n};\r\n\r\n/**\r\n * Gets the first error message for a specific field that not match the rule.\r\n */\r\nErrorBag.prototype.firstNot = function firstNot (name, rule, scope) {\n if ( rule === void 0 ) rule = 'required';\n if ( scope === void 0 ) scope = null;\n\r\n var error = this.collect(name, scope, false).filter(function (e) { return e.rule !== rule; })[0];\r\n\r\n return (error && error.msg) || undefined;\r\n};\r\n\r\n/**\r\n * Removes errors by matching against the id or ids.\r\n */\r\nErrorBag.prototype.removeById = function removeById (id) {\r\n var condition = function (item) { return item.id === id; };\r\n if (Array.isArray(id)) {\r\n condition = function (item) { return id.indexOf(item.id) !== -1; };\r\n }\r\n\r\n for (var i = 0; i < this.items.length; ++i) {\r\n if (condition(this.items[i])) {\r\n this.items.splice(i, 1);\r\n --i;\r\n }\r\n }\r\n};\r\n\r\n/**\r\n * Removes all error messages associated with a specific field.\r\n */\r\nErrorBag.prototype.remove = function remove (field, scope, vmId) {\r\n if (isNullOrUndefined(field)) {\r\n return;\r\n }\r\n\r\n var selector = isNullOrUndefined(scope) ? String(field) : (scope + \".\" + field);\r\n var ref = this._makeCandidateFilters(selector);\n var isPrimary = ref.isPrimary;\n var isAlt = ref.isAlt;\r\n var matches = function (item) { return isPrimary(item) || isAlt(item); };\r\n var shouldRemove = function (item) {\r\n if (isNullOrUndefined(vmId)) { return matches(item); }\r\n\r\n return matches(item) && item.vmId === vmId;\r\n };\r\n\r\n for (var i = 0; i < this.items.length; ++i) {\r\n if (shouldRemove(this.items[i])) {\r\n this.items.splice(i, 1);\r\n --i;\r\n }\r\n }\r\n};\r\n\r\nErrorBag.prototype._makeCandidateFilters = function _makeCandidateFilters (selector) {\n var this$1 = this;\n\r\n var matchesRule = function () { return true; };\r\n var matchesScope = function () { return true; };\r\n var matchesName = function () { return true; };\r\n var matchesVM = function () { return true; };\r\n\r\n var ref = parseSelector(selector);\n var id = ref.id;\n var rule = ref.rule;\n var scope = ref.scope;\n var name = ref.name;\r\n\r\n if (rule) {\r\n matchesRule = function (item) { return item.rule === rule; };\r\n }\r\n\r\n // match by id, can be combined with rule selection.\r\n if (id) {\r\n return {\r\n isPrimary: function (item) { return matchesRule(item) && (function (item) { return id === item.id; }); },\r\n isAlt: function () { return false; }\r\n };\r\n }\r\n\r\n if (isNullOrUndefined(scope)) {\r\n // if no scope specified, make sure the found error has no scope.\r\n matchesScope = function (item) { return isNullOrUndefined(item.scope); };\r\n } else {\r\n matchesScope = function (item) { return item.scope === scope; };\r\n }\r\n\r\n if (!isNullOrUndefined(name) && name !== '*') {\r\n matchesName = function (item) { return item.field === name; };\r\n }\r\n\r\n if (!isNullOrUndefined(this.vmId)) {\r\n matchesVM = function (item) { return item.vmId === this$1.vmId; };\r\n }\r\n\r\n // matches the first candidate.\r\n var isPrimary = function (item) {\r\n return matchesVM(item) && matchesName(item) && matchesRule(item) && matchesScope(item);\r\n };\r\n\r\n // matches a second candidate, which is a field with a name containing the '.' character.\r\n var isAlt = function (item) {\r\n return matchesVM(item) && matchesRule(item) && item.field === (scope + \".\" + name);\r\n };\r\n\r\n return {\r\n isPrimary: isPrimary,\r\n isAlt: isAlt\r\n };\r\n};\r\n\r\nErrorBag.prototype._match = function _match (selector) {\r\n if (isNullOrUndefined(selector)) {\r\n return undefined;\r\n }\r\n\r\n var ref = this._makeCandidateFilters(selector);\n var isPrimary = ref.isPrimary;\n var isAlt = ref.isAlt;\r\n\r\n return this.items.reduce(function (prev, item, idx, arr) {\r\n var isLast = idx === arr.length - 1;\r\n if (prev.primary) {\r\n return isLast ? prev.primary : prev;\r\n }\r\n\r\n if (isPrimary(item)) {\r\n prev.primary = item;\r\n }\r\n\r\n if (isAlt(item)) {\r\n prev.alt = item;\r\n }\r\n\r\n // keep going.\r\n if (!isLast) {\r\n return prev;\r\n }\r\n\r\n return prev.primary || prev.alt;\r\n }, {});\r\n};\n\n// VNode Utils\r\n\r\n// Gets the model object on the vnode.\r\nfunction findModel (vnode) {\r\n if (!vnode.data) {\r\n return null;\r\n }\r\n\r\n // Component Model\r\n if (vnode.data.model) {\r\n return vnode.data.model;\r\n }\r\n\r\n return !!(vnode.data.directives) && find(vnode.data.directives, function (d) { return d.name === 'model'; });\r\n}\r\n\r\nfunction extractChildren (vnode) {\r\n if (Array.isArray(vnode)) {\r\n return vnode;\r\n }\r\n\r\n if (Array.isArray(vnode.children)) {\r\n return vnode.children;\r\n }\r\n\r\n if (vnode.componentOptions && Array.isArray(vnode.componentOptions.children)) {\r\n return vnode.componentOptions.children;\r\n }\r\n\r\n return [];\r\n}\r\n\r\nfunction extractVNodes (vnode) {\r\n if (findModel(vnode)) {\r\n return [vnode];\r\n }\r\n\r\n var children = extractChildren(vnode);\r\n\r\n return children.reduce(function (nodes, node) {\r\n var candidates = extractVNodes(node);\r\n if (candidates.length) {\r\n nodes.push.apply(nodes, candidates);\r\n }\r\n\r\n return nodes;\r\n }, []);\r\n}\r\n\r\n// Resolves v-model config if exists.\r\nfunction findModelConfig (vnode) {\r\n if (!vnode.componentOptions) { return null; }\r\n\r\n return vnode.componentOptions.Ctor.options.model;\r\n}\r\n// Adds a listener to vnode listener object.\r\nfunction mergeVNodeListeners (obj, eventName, handler) {\r\n // Has a single listener.\r\n if (isCallable(obj[eventName])) {\r\n var prevHandler = obj[eventName];\r\n obj[eventName] = [prevHandler];\r\n }\r\n\r\n // has other listeners.\r\n if (Array.isArray(obj[eventName])) {\r\n obj[eventName].push(handler);\r\n return;\r\n }\r\n\r\n // no listener at all.\r\n if (isNullOrUndefined(obj[eventName])) {\r\n obj[eventName] = [handler];\r\n }\r\n}\r\n\r\n// Adds a listener to a native HTML vnode.\r\nfunction addNativeNodeListener (node, eventName, handler) {\r\n if (isNullOrUndefined(node.data.on)) {\r\n node.data.on = {};\r\n }\r\n\r\n mergeVNodeListeners(node.data.on, eventName, handler);\r\n}\r\n\r\n// Adds a listener to a Vue component vnode.\r\nfunction addComponentNodeListener (node, eventName, handler) {\r\n /* istanbul ignore next */\r\n if (!node.componentOptions.listeners) {\r\n node.componentOptions.listeners = {};\r\n }\r\n\r\n mergeVNodeListeners(node.componentOptions.listeners, eventName, handler);\r\n}\r\nfunction addVNodeListener (vnode, eventName, handler) {\r\n if (vnode.componentOptions) {\r\n addComponentNodeListener(vnode, eventName, handler);\r\n }\r\n\r\n addNativeNodeListener(vnode, eventName, handler);\r\n}\r\n// Determines if `change` should be used over `input` for listeners.\r\nfunction getInputEventName (vnode, model) {\r\n // Is a component.\r\n if (vnode.componentOptions) {\r\n var ref = findModelConfig(vnode) || { event: 'input' };\n var event = ref.event;\r\n\r\n return event;\r\n }\r\n\r\n // Lazy Models typically use change event\r\n if (model && model.modifiers && model.modifiers.lazy) {\r\n return 'change';\r\n }\r\n\r\n // is a textual-type input.\r\n if (vnode.data.attrs && isTextInput({ type: vnode.data.attrs.type || 'text' })) {\r\n return 'input';\r\n }\r\n\r\n return 'change';\r\n}\r\n\r\nfunction normalizeSlots (slots, ctx) {\r\n return Object.keys(slots).reduce(function (arr, key) {\r\n slots[key].forEach(function (vnode) {\r\n if (!vnode.context) {\r\n slots[key].context = ctx;\r\n if (!vnode.data) {\r\n vnode.data = {};\r\n }\r\n vnode.data.slot = key;\r\n }\r\n });\r\n\r\n return arr.concat(slots[key]);\r\n }, []);\r\n}\r\n\r\nfunction createRenderless (h, vnode) {\r\n // a single-root slot yay!\r\n if (!Array.isArray(vnode)) {\r\n return vnode;\r\n }\r\n\r\n if (vnode.length === 1) {\r\n return vnode[0];\r\n }\r\n\r\n if (process.env.NODE_ENV !== 'production') {\r\n warn('Your slot should have one root element. Rendering a span as the root.');\r\n }\r\n\r\n // Renders a multi-root node, should throw a Vue error.\r\n return vnode;\r\n}\n\n/**\r\n * Generates the options required to construct a field.\r\n */\r\nvar Resolver = function Resolver () {};\n\nResolver.generate = function generate (el, binding, vnode) {\r\n var model = Resolver.resolveModel(binding, vnode);\r\n var options = pluginInstance.resolveConfig(vnode.context);\r\n\r\n return {\r\n name: Resolver.resolveName(el, vnode),\r\n el: el,\r\n listen: !binding.modifiers.disable,\r\n bails: binding.modifiers.bails ? true : (binding.modifiers.continues === true ? false : undefined),\r\n scope: Resolver.resolveScope(el, binding, vnode),\r\n vm: Resolver.makeVM(vnode.context),\r\n expression: binding.value,\r\n component: vnode.componentInstance,\r\n classes: options.classes,\r\n classNames: options.classNames,\r\n getter: Resolver.resolveGetter(el, vnode, model),\r\n events: Resolver.resolveEvents(el, vnode) || options.events,\r\n model: model,\r\n delay: Resolver.resolveDelay(el, vnode, options),\r\n rules: Resolver.resolveRules(el, binding, vnode),\r\n immediate: !!binding.modifiers.initial || !!binding.modifiers.immediate,\r\n validity: options.validity,\r\n aria: options.aria,\r\n initialValue: Resolver.resolveInitialValue(vnode)\r\n };\r\n};\r\n\r\nResolver.getCtorConfig = function getCtorConfig (vnode) {\r\n if (!vnode.componentInstance) { return null; }\r\n\r\n var config = getPath('componentInstance.$options.$_veeValidate', vnode);\r\n\r\n return config;\r\n};\r\n\r\n/**\r\n * Resolves the rules defined on an element.\r\n */\r\nResolver.resolveRules = function resolveRules (el, binding, vnode) {\r\n var rules = '';\r\n if (!binding.value && (!binding || !binding.expression)) {\r\n rules = getDataAttribute(el, 'rules');\r\n }\r\n\r\n if (binding.value && includes(['string', 'object'], typeof binding.value.rules)) {\r\n rules = binding.value.rules;\r\n } else if (binding.value) {\r\n rules = binding.value;\r\n }\r\n\r\n if (vnode.componentInstance) {\r\n return rules;\r\n }\r\n\r\n // If validity is disabled, ignore field rules.\r\n var normalized = normalizeRules(rules);\r\n if (!pluginInstance.config.validity) {\r\n return normalized;\r\n }\r\n\r\n return assign({}, fillRulesFromElement(el, {}), normalized);\r\n};\r\n\r\n/**\r\n * @param {*} vnode\r\n */\r\nResolver.resolveInitialValue = function resolveInitialValue (vnode) {\r\n var model = vnode.data.model || find(vnode.data.directives, function (d) { return d.name === 'model'; });\r\n\r\n return model && model.value;\r\n};\r\n\r\n/**\r\n * Creates a non-circular partial VM instance from a Vue instance.\r\n * @param {*} vm\r\n */\r\nResolver.makeVM = function makeVM (vm) {\r\n return {\r\n get $el () {\r\n return vm.$el;\r\n },\r\n get $refs () {\r\n return vm.$refs;\r\n },\r\n $watch: vm.$watch ? vm.$watch.bind(vm) : function () {},\r\n $validator: vm.$validator ? {\r\n errors: vm.$validator.errors,\r\n validate: vm.$validator.validate.bind(vm.$validator),\r\n update: vm.$validator.update.bind(vm.$validator)\r\n } : null\r\n };\r\n};\r\n\r\n/**\r\n * Resolves the delay value.\r\n * @param {*} el\r\n * @param {*} vnode\r\n * @param {Object} options\r\n */\r\nResolver.resolveDelay = function resolveDelay (el, vnode, options) {\r\n var delay = getDataAttribute(el, 'delay');\r\n var globalDelay = (options && 'delay' in options) ? options.delay : 0;\r\n\r\n if (!delay && vnode.componentInstance && vnode.componentInstance.$attrs) {\r\n delay = vnode.componentInstance.$attrs['data-vv-delay'];\r\n }\r\n\r\n if (!isObject(globalDelay)) {\r\n return deepParseInt(delay || globalDelay);\r\n }\r\n\r\n if (!isNullOrUndefined(delay)) {\r\n globalDelay.input = delay;\r\n }\r\n\r\n return deepParseInt(globalDelay);\r\n};\r\n\r\n/**\r\n * Resolves the events to validate in response to.\r\n * @param {*} el\r\n * @param {*} vnode\r\n */\r\nResolver.resolveEvents = function resolveEvents (el, vnode) {\r\n // resolve it from the root element.\r\n var events = getDataAttribute(el, 'validate-on');\r\n\r\n // resolve from data-vv-validate-on if its a vue component.\r\n if (!events && vnode.componentInstance && vnode.componentInstance.$attrs) {\r\n events = vnode.componentInstance.$attrs['data-vv-validate-on'];\r\n }\r\n\r\n // resolve it from $_veeValidate options.\r\n if (!events && vnode.componentInstance) {\r\n var config = Resolver.getCtorConfig(vnode);\r\n events = config && config.events;\r\n }\r\n\r\n if (!events && pluginInstance.config.events) {\r\n events = pluginInstance.config.events;\r\n }\r\n\r\n // resolve the model event if its configured for custom components.\r\n if (events && vnode.componentInstance && includes(events, 'input')) {\r\n var ref = vnode.componentInstance.$options.model || { event: 'input' };\n var event = ref.event;\r\n // if the prop was configured but not the model.\r\n if (!event) {\r\n return events;\r\n }\r\n\r\n events = events.replace('input', event);\r\n }\r\n\r\n return events;\r\n};\r\n\r\n/**\r\n * Resolves the scope for the field.\r\n * @param {*} el\r\n * @param {*} binding\r\n */\r\nResolver.resolveScope = function resolveScope (el, binding, vnode) {\n if ( vnode === void 0 ) vnode = {};\n\r\n var scope = null;\r\n if (vnode.componentInstance && isNullOrUndefined(scope)) {\r\n scope = vnode.componentInstance.$attrs && vnode.componentInstance.$attrs['data-vv-scope'];\r\n }\r\n\r\n return !isNullOrUndefined(scope) ? scope : getScope(el);\r\n};\r\n\r\n/**\r\n * Checks if the node directives contains a v-model or a specified arg.\r\n * Args take priority over models.\r\n *\r\n * @return {Object}\r\n */\r\nResolver.resolveModel = function resolveModel (binding, vnode) {\r\n if (binding.arg) {\r\n return { expression: binding.arg };\r\n }\r\n\r\n var model = findModel(vnode);\r\n if (!model) {\r\n return null;\r\n }\r\n\r\n // https://github.com/vuejs/vue/blob/dev/src/core/util/lang.js#L26\r\n var watchable = !/[^\\w.$]/.test(model.expression) && hasPath(model.expression, vnode.context);\r\n var lazy = !!(model.modifiers && model.modifiers.lazy);\r\n\r\n if (!watchable) {\r\n return { expression: null, lazy: lazy };\r\n }\r\n\r\n return { expression: model.expression, lazy: lazy };\r\n};\r\n\r\n/**\r\n * Resolves the field name to trigger validations.\r\n * @return {String} The field name.\r\n */\r\nResolver.resolveName = function resolveName (el, vnode) {\r\n var name = getDataAttribute(el, 'name');\r\n\r\n if (!name && !vnode.componentInstance) {\r\n return el.name;\r\n }\r\n\r\n if (!name && vnode.componentInstance && vnode.componentInstance.$attrs) {\r\n name = vnode.componentInstance.$attrs['data-vv-name'] || vnode.componentInstance.$attrs['name'];\r\n }\r\n\r\n if (!name && vnode.componentInstance) {\r\n var config = Resolver.getCtorConfig(vnode);\r\n if (config && isCallable(config.name)) {\r\n var boundGetter = config.name.bind(vnode.componentInstance);\r\n\r\n return boundGetter();\r\n }\r\n\r\n return vnode.componentInstance.name;\r\n }\r\n\r\n return name;\r\n};\r\n\r\n/**\r\n * Returns a value getter input type.\r\n */\r\nResolver.resolveGetter = function resolveGetter (el, vnode, model) {\r\n if (model && model.expression) {\r\n return function () {\r\n return getPath(model.expression, vnode.context);\r\n };\r\n }\r\n\r\n if (vnode.componentInstance) {\r\n var path = getDataAttribute(el, 'value-path') || (vnode.componentInstance.$attrs && vnode.componentInstance.$attrs['data-vv-value-path']);\r\n if (path) {\r\n return function () {\r\n return getPath(path, vnode.componentInstance);\r\n };\r\n }\r\n\r\n var config = Resolver.getCtorConfig(vnode);\r\n if (config && isCallable(config.value)) {\r\n var boundGetter = config.value.bind(vnode.componentInstance);\r\n\r\n return function () {\r\n return boundGetter();\r\n };\r\n }\r\n\r\n var ref = vnode.componentInstance.$options.model || { prop: 'value' };\n var prop = ref.prop;\r\n\r\n return function () {\r\n return vnode.componentInstance[prop];\r\n };\r\n }\r\n\r\n switch (el.type) {\r\n case 'checkbox': return function () {\r\n var els = document.querySelectorAll((\"input[name=\\\"\" + (el.name) + \"\\\"]\"));\r\n\r\n els = toArray(els).filter(function (el) { return el.checked; });\r\n if (!els.length) { return undefined; }\r\n\r\n return els.map(function (checkbox) { return checkbox.value; });\r\n };\r\n case 'radio': return function () {\r\n var els = document.querySelectorAll((\"input[name=\\\"\" + (el.name) + \"\\\"]\"));\r\n var elm = find(els, function (el) { return el.checked; });\r\n\r\n return elm && elm.value;\r\n };\r\n case 'file': return function (context) {\r\n return toArray(el.files);\r\n };\r\n case 'select-multiple': return function () {\r\n return toArray(el.options).filter(function (opt) { return opt.selected; }).map(function (opt) { return opt.value; });\r\n };\r\n default: return function () {\r\n return el && el.value;\r\n };\r\n }\r\n};\n\nvar RULES = {};\r\n\r\nvar RuleContainer = function RuleContainer () {};\n\nvar staticAccessors = { rules: { configurable: true } };\n\nRuleContainer.add = function add (name, ref) {\n var validate = ref.validate;\n var options = ref.options;\n var paramNames = ref.paramNames;\n\r\n RULES[name] = {\r\n validate: validate,\r\n options: options,\r\n paramNames: paramNames\r\n };\r\n};\r\n\r\nstaticAccessors.rules.get = function () {\r\n return RULES;\r\n};\r\n\r\nRuleContainer.has = function has (name) {\r\n return !!RULES[name];\r\n};\r\n\r\nRuleContainer.isImmediate = function isImmediate (name) {\r\n return !!(RULES[name] && RULES[name].options.immediate);\r\n};\r\n\r\nRuleContainer.isTargetRule = function isTargetRule (name) {\r\n return !!(RULES[name] && RULES[name].options.hasTarget);\r\n};\r\n\r\nRuleContainer.remove = function remove (ruleName) {\r\n delete RULES[ruleName];\r\n};\r\n\r\nRuleContainer.getParamNames = function getParamNames (ruleName) {\r\n return RULES[ruleName] && RULES[ruleName].paramNames;\r\n};\r\n\r\nRuleContainer.getOptions = function getOptions (ruleName) {\r\n return RULES[ruleName] && RULES[ruleName].options;\r\n};\r\n\r\nRuleContainer.getValidatorMethod = function getValidatorMethod (ruleName) {\r\n return RULES[ruleName] ? RULES[ruleName].validate : null;\r\n};\n\nObject.defineProperties( RuleContainer, staticAccessors );\n\n// \r\n\r\nvar isEvent = function (evt) {\r\n return (typeof Event !== 'undefined' && isCallable(Event) && evt instanceof Event) || (evt && evt.srcElement);\r\n};\r\n\r\nvar normalizeEvents = function (evts) {\r\n if (!evts) { return []; }\r\n\r\n return (typeof evts === 'string' ? evts.split('|') : evts);\r\n};\r\n\r\nvar supportsPassive = true;\r\n\r\nvar detectPassiveSupport = function () {\r\n try {\r\n var opts = Object.defineProperty({}, 'passive', {\r\n get: function get () {\r\n supportsPassive = true;\r\n }\r\n });\r\n window.addEventListener('testPassive', null, opts);\r\n window.removeEventListener('testPassive', null, opts);\r\n } catch (e) {\r\n supportsPassive = false;\r\n }\r\n return supportsPassive;\r\n};\r\n\r\nvar addEventListener = function (el, eventName, cb) {\r\n el.addEventListener(eventName, cb, supportsPassive ? { passive: true } : false);\r\n};\n\n// \r\n\r\nvar DEFAULT_OPTIONS = {\r\n targetOf: null,\r\n immediate: false,\r\n scope: null,\r\n listen: true,\r\n name: null,\r\n rules: {},\r\n vm: null,\r\n classes: false,\r\n validity: true,\r\n aria: true,\r\n events: 'input|blur',\r\n delay: 0,\r\n classNames: {\r\n touched: 'touched', // the control has been blurred\r\n untouched: 'untouched', // the control hasn't been blurred\r\n valid: 'valid', // model is valid\r\n invalid: 'invalid', // model is invalid\r\n pristine: 'pristine', // control has not been interacted with\r\n dirty: 'dirty' // control has been interacted with\r\n }\r\n};\r\n\r\nvar Field = function Field (options) {\n if ( options === void 0 ) options = {};\n\r\n this.id = uniqId();\r\n this.el = options.el;\r\n this.updated = false;\r\n this.dependencies = [];\r\n this.vmId = options.vmId;\r\n this.watchers = [];\r\n this.events = [];\r\n this.delay = 0;\r\n this.rules = {};\r\n this._cacheId(options);\r\n this.classNames = assign({}, DEFAULT_OPTIONS.classNames);\r\n options = assign({}, DEFAULT_OPTIONS, options);\r\n this._delay = !isNullOrUndefined(options.delay) ? options.delay : 0; // cache initial delay\r\n this.validity = options.validity;\r\n this.aria = options.aria;\r\n this.flags = createFlags();\r\n this.vm = options.vm;\r\n this.componentInstance = options.component;\r\n this.ctorConfig = this.componentInstance ? getPath('$options.$_veeValidate', this.componentInstance) : undefined;\r\n this.update(options);\r\n // set initial value.\r\n this.initialValue = this.value;\r\n this.updated = false;\r\n};\n\nvar prototypeAccessors$1 = { validator: { configurable: true },isRequired: { configurable: true },isDisabled: { configurable: true },alias: { configurable: true },value: { configurable: true },bails: { configurable: true },rejectsFalse: { configurable: true } };\r\n\r\nprototypeAccessors$1.validator.get = function () {\r\n if (!this.vm || !this.vm.$validator) {\r\n return { validate: function () {} };\r\n }\r\n\r\n return this.vm.$validator;\r\n};\r\n\r\nprototypeAccessors$1.isRequired.get = function () {\r\n return !!this.rules.required;\r\n};\r\n\r\nprototypeAccessors$1.isDisabled.get = function () {\r\n return !!(this.componentInstance && this.componentInstance.disabled) || !!(this.el && this.el.disabled);\r\n};\r\n\r\n/**\r\n * Gets the display name (user-friendly name).\r\n */\r\nprototypeAccessors$1.alias.get = function () {\r\n if (this._alias) {\r\n return this._alias;\r\n }\r\n\r\n var alias = null;\r\n if (this.ctorConfig && this.ctorConfig.alias) {\r\n alias = isCallable(this.ctorConfig.alias) ? this.ctorConfig.alias.call(this.componentInstance) : this.ctorConfig.alias;\r\n }\r\n\r\n if (!alias && this.el) {\r\n alias = getDataAttribute(this.el, 'as');\r\n }\r\n\r\n if (!alias && this.componentInstance) {\r\n return this.componentInstance.$attrs && this.componentInstance.$attrs['data-vv-as'];\r\n }\r\n\r\n return alias;\r\n};\r\n\r\n/**\r\n * Gets the input value.\r\n */\r\n\r\nprototypeAccessors$1.value.get = function () {\r\n if (!isCallable(this.getter)) {\r\n return undefined;\r\n }\r\n\r\n return this.getter();\r\n};\r\n\r\nprototypeAccessors$1.bails.get = function () {\r\n return this._bails;\r\n};\r\n\r\n/**\r\n * If the field rejects false as a valid value for the required rule.\r\n */\r\n\r\nprototypeAccessors$1.rejectsFalse.get = function () {\r\n if (this.componentInstance && this.ctorConfig) {\r\n return !!this.ctorConfig.rejectsFalse;\r\n }\r\n\r\n if (!this.el) {\r\n return false;\r\n }\r\n\r\n return this.el.type === 'checkbox';\r\n};\r\n\r\n/**\r\n * Determines if the instance matches the options provided.\r\n */\r\nField.prototype.matches = function matches (options) {\n var this$1 = this;\n\r\n if (!options) {\r\n return true;\r\n }\r\n\r\n if (options.id) {\r\n return this.id === options.id;\r\n }\r\n\r\n var matchesComponentId = isNullOrUndefined(options.vmId) ? function () { return true; } : function (id) { return id === this$1.vmId; };\r\n if (!matchesComponentId(options.vmId)) {\r\n return false;\r\n }\r\n\r\n if (options.name === undefined && options.scope === undefined) {\r\n return true;\r\n }\r\n\r\n if (options.scope === undefined) {\r\n return this.name === options.name;\r\n }\r\n\r\n if (options.name === undefined) {\r\n return this.scope === options.scope;\r\n }\r\n\r\n return options.name === this.name && options.scope === this.scope;\r\n};\r\n\r\n/**\r\n * Caches the field id.\r\n */\r\nField.prototype._cacheId = function _cacheId (options) {\r\n if (this.el && !options.targetOf) {\r\n this.el._veeValidateId = this.id;\r\n }\r\n};\r\n\r\n/**\r\n * Keeps a reference of the most current validation run.\r\n */\r\nField.prototype.waitFor = function waitFor (pendingPromise) {\r\n this._waitingFor = pendingPromise;\r\n};\r\n\r\nField.prototype.isWaitingFor = function isWaitingFor (promise) {\r\n return this._waitingFor === promise;\r\n};\r\n\r\n/**\r\n * Updates the field with changed data.\r\n */\r\nField.prototype.update = function update (options) {\r\n this.targetOf = options.targetOf || null;\r\n this.immediate = options.immediate || this.immediate || false;\r\n\r\n // update errors scope if the field scope was changed.\r\n if (!isNullOrUndefined(options.scope) && options.scope !== this.scope && isCallable(this.validator.update)) {\r\n this.validator.update(this.id, { scope: options.scope });\r\n }\r\n this.scope = !isNullOrUndefined(options.scope) ? options.scope\r\n : !isNullOrUndefined(this.scope) ? this.scope : null;\r\n this.name = (!isNullOrUndefined(options.name) ? String(options.name) : options.name) || this.name || null;\r\n this.rules = options.rules !== undefined ? normalizeRules(options.rules) : this.rules;\r\n this._bails = options.bails !== undefined ? options.bails : this._bails;\r\n this.model = options.model || this.model;\r\n this.listen = options.listen !== undefined ? options.listen : this.listen;\r\n this.classes = (options.classes || this.classes || false) && !this.componentInstance;\r\n this.classNames = isObject(options.classNames) ? merge(this.classNames, options.classNames) : this.classNames;\r\n this.getter = isCallable(options.getter) ? options.getter : this.getter;\r\n this._alias = options.alias || this._alias;\r\n this.events = (options.events) ? normalizeEvents(options.events) : this.events;\r\n this.delay = makeDelayObject(this.events, options.delay || this.delay, this._delay);\r\n this.updateDependencies();\r\n this.addActionListeners();\r\n\r\n if (process.env.NODE_ENV !== 'production' && !this.name && !this.targetOf) {\r\n warn('A field is missing a \"name\" or \"data-vv-name\" attribute');\r\n }\r\n\r\n // update required flag flags\r\n if (options.rules !== undefined) {\r\n this.flags.required = this.isRequired;\r\n }\r\n\r\n // validate if it was validated before and field was updated and there was a rules mutation.\r\n if (this.flags.validated && options.rules !== undefined && this.updated) {\r\n this.validator.validate((\"#\" + (this.id)));\r\n }\r\n\r\n this.updated = true;\r\n this.addValueListeners();\r\n\r\n // no need to continue.\r\n if (!this.el) {\r\n return;\r\n }\r\n this.updateClasses();\r\n this.updateAriaAttrs();\r\n};\r\n\r\n/**\r\n * Resets field flags and errors.\r\n */\r\nField.prototype.reset = function reset () {\n var this$1 = this;\n\r\n if (this._cancellationToken) {\r\n this._cancellationToken.cancelled = true;\r\n delete this._cancellationToken;\r\n }\r\n\r\n var defaults = createFlags();\r\n Object.keys(this.flags).filter(function (flag) { return flag !== 'required'; }).forEach(function (flag) {\r\n this$1.flags[flag] = defaults[flag];\r\n });\r\n\r\n this.addValueListeners();\r\n this.addActionListeners();\r\n this.updateClasses(true);\r\n this.updateAriaAttrs();\r\n this.updateCustomValidity();\r\n};\r\n\r\n/**\r\n * Sets the flags and their negated counterparts, and updates the classes and re-adds action listeners.\r\n */\r\nField.prototype.setFlags = function setFlags (flags) {\n var this$1 = this;\n\r\n var negated = {\r\n pristine: 'dirty',\r\n dirty: 'pristine',\r\n valid: 'invalid',\r\n invalid: 'valid',\r\n touched: 'untouched',\r\n untouched: 'touched'\r\n };\r\n\r\n Object.keys(flags).forEach(function (flag) {\r\n this$1.flags[flag] = flags[flag];\r\n // if it has a negation and was not specified, set it as well.\r\n if (negated[flag] && flags[negated[flag]] === undefined) {\r\n this$1.flags[negated[flag]] = !flags[flag];\r\n }\r\n });\r\n\r\n if (\r\n flags.untouched !== undefined ||\r\n flags.touched !== undefined ||\r\n flags.dirty !== undefined ||\r\n flags.pristine !== undefined\r\n ) {\r\n this.addActionListeners();\r\n }\r\n this.updateClasses();\r\n this.updateAriaAttrs();\r\n this.updateCustomValidity();\r\n};\r\n\r\n/**\r\n * Determines if the field requires references to target fields.\r\n*/\r\nField.prototype.updateDependencies = function updateDependencies () {\n var this$1 = this;\n\r\n // reset dependencies.\r\n this.dependencies.forEach(function (d) { return d.field.destroy(); });\r\n this.dependencies = [];\r\n\r\n // we get the selectors for each field.\r\n var fields = Object.keys(this.rules).reduce(function (prev, r) {\r\n if (RuleContainer.isTargetRule(r)) {\r\n prev.push({ selector: this$1.rules[r][0], name: r });\r\n }\r\n\r\n return prev;\r\n }, []);\r\n\r\n if (!fields.length || !this.vm || !this.vm.$el) { return; }\r\n\r\n // must be contained within the same component, so we use the vm root element constrain our dom search.\r\n fields.forEach(function (ref$1) {\n var selector = ref$1.selector;\n var name = ref$1.name;\n\r\n var ref = this$1.vm.$refs[selector];\r\n var el = Array.isArray(ref) ? ref[0] : ref;\r\n if (!el) {\r\n return;\r\n }\r\n\r\n var options = {\r\n vm: this$1.vm,\r\n classes: this$1.classes,\r\n classNames: this$1.classNames,\r\n delay: this$1.delay,\r\n scope: this$1.scope,\r\n events: this$1.events.join('|'),\r\n immediate: this$1.immediate,\r\n targetOf: this$1.id\r\n };\r\n\r\n // probably a component.\r\n if (isCallable(el.$watch)) {\r\n options.component = el;\r\n options.el = el.$el;\r\n options.getter = Resolver.resolveGetter(el.$el, el.$vnode);\r\n } else {\r\n options.el = el;\r\n options.getter = Resolver.resolveGetter(el, {});\r\n }\r\n\r\n this$1.dependencies.push({ name: name, field: new Field(options) });\r\n });\r\n};\r\n\r\n/**\r\n * Removes listeners.\r\n */\r\nField.prototype.unwatch = function unwatch (tag) {\n if ( tag === void 0 ) tag = null;\n\r\n if (!tag) {\r\n this.watchers.forEach(function (w) { return w.unwatch(); });\r\n this.watchers = [];\r\n return;\r\n }\r\n\r\n this.watchers.filter(function (w) { return tag.test(w.tag); }).forEach(function (w) { return w.unwatch(); });\r\n this.watchers = this.watchers.filter(function (w) { return !tag.test(w.tag); });\r\n};\r\n\r\n/**\r\n * Updates the element classes depending on each field flag status.\r\n */\r\nField.prototype.updateClasses = function updateClasses (isReset) {\n var this$1 = this;\n if ( isReset === void 0 ) isReset = false;\n\r\n if (!this.classes || this.isDisabled) { return; }\r\n var applyClasses = function (el) {\r\n toggleClass(el, this$1.classNames.dirty, this$1.flags.dirty);\r\n toggleClass(el, this$1.classNames.pristine, this$1.flags.pristine);\r\n toggleClass(el, this$1.classNames.touched, this$1.flags.touched);\r\n toggleClass(el, this$1.classNames.untouched, this$1.flags.untouched);\r\n\r\n // remove valid/invalid classes on reset.\r\n if (isReset) {\r\n toggleClass(el, this$1.classNames.valid, false);\r\n toggleClass(el, this$1.classNames.invalid, false);\r\n }\r\n\r\n // make sure we don't set any classes if the state is undetermined.\r\n if (!isNullOrUndefined(this$1.flags.valid) && this$1.flags.validated) {\r\n toggleClass(el, this$1.classNames.valid, this$1.flags.valid);\r\n }\r\n\r\n if (!isNullOrUndefined(this$1.flags.invalid) && this$1.flags.validated) {\r\n toggleClass(el, this$1.classNames.invalid, this$1.flags.invalid);\r\n }\r\n };\r\n\r\n if (!isCheckboxOrRadioInput(this.el)) {\r\n applyClasses(this.el);\r\n return;\r\n }\r\n\r\n var els = document.querySelectorAll((\"input[name=\\\"\" + (this.el.name) + \"\\\"]\"));\r\n toArray(els).forEach(applyClasses);\r\n};\r\n\r\n/**\r\n * Adds the listeners required for automatic classes and some flags.\r\n */\r\nField.prototype.addActionListeners = function addActionListeners () {\n var this$1 = this;\n\r\n // remove previous listeners.\r\n this.unwatch(/class/);\r\n\r\n if (!this.el) { return; }\r\n\r\n var onBlur = function () {\r\n this$1.flags.touched = true;\r\n this$1.flags.untouched = false;\r\n if (this$1.classes) {\r\n toggleClass(this$1.el, this$1.classNames.touched, true);\r\n toggleClass(this$1.el, this$1.classNames.untouched, false);\r\n }\r\n\r\n // only needed once.\r\n this$1.unwatch(/^class_blur$/);\r\n };\r\n\r\n var inputEvent = isTextInput(this.el) ? 'input' : 'change';\r\n var onInput = function () {\r\n this$1.flags.dirty = true;\r\n this$1.flags.pristine = false;\r\n if (this$1.classes) {\r\n toggleClass(this$1.el, this$1.classNames.pristine, false);\r\n toggleClass(this$1.el, this$1.classNames.dirty, true);\r\n }\r\n\r\n // only needed once.\r\n this$1.unwatch(/^class_input$/);\r\n };\r\n\r\n if (this.componentInstance && isCallable(this.componentInstance.$once)) {\r\n this.componentInstance.$once('input', onInput);\r\n this.componentInstance.$once('blur', onBlur);\r\n this.watchers.push({\r\n tag: 'class_input',\r\n unwatch: function () {\r\n this$1.componentInstance.$off('input', onInput);\r\n }\r\n });\r\n this.watchers.push({\r\n tag: 'class_blur',\r\n unwatch: function () {\r\n this$1.componentInstance.$off('blur', onBlur);\r\n }\r\n });\r\n return;\r\n }\r\n\r\n if (!this.el) { return; }\r\n\r\n addEventListener(this.el, inputEvent, onInput);\r\n // Checkboxes and radio buttons on Mac don't emit blur naturally, so we listen on click instead.\r\n var blurEvent = isCheckboxOrRadioInput(this.el) ? 'change' : 'blur';\r\n addEventListener(this.el, blurEvent, onBlur);\r\n this.watchers.push({\r\n tag: 'class_input',\r\n unwatch: function () {\r\n this$1.el.removeEventListener(inputEvent, onInput);\r\n }\r\n });\r\n\r\n this.watchers.push({\r\n tag: 'class_blur',\r\n unwatch: function () {\r\n this$1.el.removeEventListener(blurEvent, onBlur);\r\n }\r\n });\r\n};\r\n\r\nField.prototype.checkValueChanged = function checkValueChanged () {\r\n // handle some people initialize the value to null, since text inputs have empty string value.\r\n if (this.initialValue === null && this.value === '' && isTextInput(this.el)) {\r\n return false;\r\n }\r\n\r\n return this.value !== this.initialValue;\r\n};\r\n\r\n/**\r\n * Determines the suitable primary event to listen for.\r\n */\r\nField.prototype._determineInputEvent = function _determineInputEvent () {\r\n // if its a custom component, use the customized model event or the input event.\r\n if (this.componentInstance) {\r\n return (this.componentInstance.$options.model && this.componentInstance.$options.model.event) || 'input';\r\n }\r\n\r\n if (this.model && this.model.lazy) {\r\n return 'change';\r\n }\r\n\r\n if (isTextInput(this.el)) {\r\n return 'input';\r\n }\r\n\r\n return 'change';\r\n};\r\n\r\n/**\r\n * Determines the list of events to listen to.\r\n */\r\nField.prototype._determineEventList = function _determineEventList (defaultInputEvent) {\n var this$1 = this;\n\r\n // if no event is configured, or it is a component or a text input then respect the user choice.\r\n if (!this.events.length || this.componentInstance || isTextInput(this.el)) {\r\n return [].concat( this.events ).map(function (evt) {\r\n if (evt === 'input' && this$1.model && this$1.model.lazy) {\r\n return 'change';\r\n }\r\n\r\n return evt;\r\n });\r\n }\r\n\r\n // force suitable event for non-text type fields.\r\n return this.events.map(function (e) {\r\n if (e === 'input') {\r\n return defaultInputEvent;\r\n }\r\n\r\n return e;\r\n });\r\n};\r\n\r\n/**\r\n * Adds the listeners required for validation.\r\n */\r\nField.prototype.addValueListeners = function addValueListeners () {\n var this$1 = this;\n\r\n this.unwatch(/^input_.+/);\r\n if (!this.listen || !this.el) { return; }\r\n\r\n var token = { cancelled: false };\r\n var fn = this.targetOf ? function () {\r\n this$1.flags.changed = this$1.checkValueChanged(); this$1.validator.validate((\"#\" + (this$1.targetOf)));\r\n } : function () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\r\n // if its a DOM event, resolve the value, otherwise use the first parameter as the value.\r\n if (args.length === 0 || isEvent(args[0])) {\r\n args[0] = this$1.value;\r\n }\r\n\r\n this$1.flags.changed = this$1.checkValueChanged();\r\n this$1.validator.validate((\"#\" + (this$1.id)), args[0]);\r\n };\r\n\r\n var inputEvent = this._determineInputEvent();\r\n var events = this._determineEventList(inputEvent);\r\n\r\n // if there is a model and an on input validation is requested.\r\n if (this.model && includes(events, inputEvent)) {\r\n var ctx = null;\r\n var expression = this.model.expression;\r\n // if its watchable from the context vm.\r\n if (this.model.expression) {\r\n ctx = this.vm;\r\n expression = this.model.expression;\r\n }\r\n\r\n // watch it from the custom component vm instead.\r\n if (!expression && this.componentInstance && this.componentInstance.$options.model) {\r\n ctx = this.componentInstance;\r\n expression = this.componentInstance.$options.model.prop || 'value';\r\n }\r\n\r\n if (ctx && expression) {\r\n var debouncedFn = debounce(fn, this.delay[inputEvent], token);\r\n var unwatch = ctx.$watch(expression, function () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\r\n this$1.flags.pending = true;\r\n this$1._cancellationToken = token;\r\n debouncedFn.apply(void 0, args);\r\n });\r\n this.watchers.push({\r\n tag: 'input_model',\r\n unwatch: unwatch\r\n });\r\n\r\n // filter out input event as it is already handled by the watcher API.\r\n events = events.filter(function (e) { return e !== inputEvent; });\r\n }\r\n }\r\n\r\n // Add events.\r\n events.forEach(function (e) {\r\n var debouncedFn = debounce(fn, this$1.delay[e], token);\r\n var validate = function () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\r\n this$1.flags.pending = true;\r\n this$1._cancellationToken = token;\r\n debouncedFn.apply(void 0, args);\r\n };\r\n\r\n this$1._addComponentEventListener(e, validate);\r\n this$1._addHTMLEventListener(e, validate);\r\n });\r\n};\r\n\r\nField.prototype._addComponentEventListener = function _addComponentEventListener (evt, validate) {\n var this$1 = this;\n\r\n if (!this.componentInstance) { return; }\r\n\r\n this.componentInstance.$on(evt, validate);\r\n this.watchers.push({\r\n tag: 'input_vue',\r\n unwatch: function () {\r\n this$1.componentInstance.$off(evt, validate);\r\n }\r\n });\r\n};\r\n\r\nField.prototype._addHTMLEventListener = function _addHTMLEventListener (evt, validate) {\n var this$1 = this;\n\r\n if (!this.el || this.componentInstance) { return; }\r\n\r\n // listen for the current element.\r\n var addListener = function (el) {\r\n addEventListener(el, evt, validate);\r\n this$1.watchers.push({\r\n tag: 'input_native',\r\n unwatch: function () {\r\n el.removeEventListener(evt, validate);\r\n }\r\n });\r\n };\r\n\r\n addListener(this.el);\r\n if (!isCheckboxOrRadioInput(this.el)) {\r\n return;\r\n }\r\n\r\n var els = document.querySelectorAll((\"input[name=\\\"\" + (this.el.name) + \"\\\"]\"));\r\n toArray(els).forEach(function (el) {\r\n // skip if it is added by v-validate and is not the current element.\r\n if (el._veeValidateId && el !== this$1.el) {\r\n return;\r\n }\r\n\r\n addListener(el);\r\n });\r\n};\r\n\r\n/**\r\n * Updates aria attributes on the element.\r\n */\r\nField.prototype.updateAriaAttrs = function updateAriaAttrs () {\n var this$1 = this;\n\r\n if (!this.aria || !this.el || !isCallable(this.el.setAttribute)) { return; }\r\n\r\n var applyAriaAttrs = function (el) {\r\n el.setAttribute('aria-required', this$1.isRequired ? 'true' : 'false');\r\n el.setAttribute('aria-invalid', this$1.flags.invalid ? 'true' : 'false');\r\n };\r\n\r\n if (!isCheckboxOrRadioInput(this.el)) {\r\n applyAriaAttrs(this.el);\r\n return;\r\n }\r\n\r\n var els = document.querySelectorAll((\"input[name=\\\"\" + (this.el.name) + \"\\\"]\"));\r\n toArray(els).forEach(applyAriaAttrs);\r\n};\r\n\r\n/**\r\n * Updates the custom validity for the field.\r\n */\r\nField.prototype.updateCustomValidity = function updateCustomValidity () {\r\n if (!this.validity || !this.el || !isCallable(this.el.setCustomValidity) || !this.validator.errors) { return; }\r\n\r\n this.el.setCustomValidity(this.flags.valid ? '' : (this.validator.errors.firstById(this.id) || ''));\r\n};\r\n\r\n/**\r\n * Removes all listeners.\r\n */\r\nField.prototype.destroy = function destroy () {\r\n // ignore the result of any ongoing validation.\r\n if (this._cancellationToken) {\r\n this._cancellationToken.cancelled = true;\r\n }\r\n\r\n this.unwatch();\r\n this.dependencies.forEach(function (d) { return d.field.destroy(); });\r\n this.dependencies = [];\r\n};\n\nObject.defineProperties( Field.prototype, prototypeAccessors$1 );\n\n// \r\n\r\nvar FieldBag = function FieldBag (items) {\n if ( items === void 0 ) items = [];\n\r\n this.items = items || [];\r\n};\n\nvar prototypeAccessors$2 = { length: { configurable: true } };\r\n\r\nFieldBag.prototype[typeof Symbol === 'function' ? Symbol.iterator : '@@iterator'] = function () {\n var this$1 = this;\n\r\n var index = 0;\r\n return {\r\n next: function () {\r\n return { value: this$1.items[index++], done: index > this$1.items.length };\r\n }\r\n };\r\n};\r\n\r\n/**\r\n * Gets the current items length.\r\n */\r\n\r\nprototypeAccessors$2.length.get = function () {\r\n return this.items.length;\r\n};\r\n\r\n/**\r\n * Finds the first field that matches the provided matcher object.\r\n */\r\nFieldBag.prototype.find = function find$1 (matcher) {\r\n return find(this.items, function (item) { return item.matches(matcher); });\r\n};\r\n\r\n/**\r\n * Filters the items down to the matched fields.\r\n */\r\nFieldBag.prototype.filter = function filter (matcher) {\r\n // multiple matchers to be tried.\r\n if (Array.isArray(matcher)) {\r\n return this.items.filter(function (item) { return matcher.some(function (m) { return item.matches(m); }); });\r\n }\r\n\r\n return this.items.filter(function (item) { return item.matches(matcher); });\r\n};\r\n\r\n/**\r\n * Maps the field items using the mapping function.\r\n */\r\nFieldBag.prototype.map = function map (mapper) {\r\n return this.items.map(mapper);\r\n};\r\n\r\n/**\r\n * Finds and removes the first field that matches the provided matcher object, returns the removed item.\r\n */\r\nFieldBag.prototype.remove = function remove (matcher) {\r\n var item = null;\r\n if (matcher instanceof Field) {\r\n item = matcher;\r\n } else {\r\n item = this.find(matcher);\r\n }\r\n\r\n if (!item) { return null; }\r\n\r\n var index = this.items.indexOf(item);\r\n this.items.splice(index, 1);\r\n\r\n return item;\r\n};\r\n\r\n/**\r\n * Adds a field item to the list.\r\n */\r\nFieldBag.prototype.push = function push (item) {\r\n if (! (item instanceof Field)) {\r\n throw createError('FieldBag only accepts instances of Field that has an id defined.');\r\n }\r\n\r\n if (!item.id) {\r\n throw createError('Field id must be defined.');\r\n }\r\n\r\n if (this.find({ id: item.id })) {\r\n throw createError((\"Field with id \" + (item.id) + \" is already added.\"));\r\n }\r\n\r\n this.items.push(item);\r\n};\n\nObject.defineProperties( FieldBag.prototype, prototypeAccessors$2 );\n\nvar ScopedValidator = function ScopedValidator (base, vm) {\r\n this.id = vm._uid;\r\n this._base = base;\r\n this._paused = false;\r\n\r\n // create a mirror bag with limited component scope.\r\n this.errors = new ErrorBag(base.errors, this.id);\r\n};\n\nvar prototypeAccessors$3 = { flags: { configurable: true },rules: { configurable: true },fields: { configurable: true },dictionary: { configurable: true },locale: { configurable: true } };\r\n\r\nprototypeAccessors$3.flags.get = function () {\n var this$1 = this;\n\r\n return this._base.fields.items.filter(function (f) { return f.vmId === this$1.id; }).reduce(function (acc, field) {\r\n if (field.scope) {\r\n if (!acc[(\"$\" + (field.scope))]) {\r\n acc[(\"$\" + (field.scope))] = {};\r\n }\r\n\r\n acc[(\"$\" + (field.scope))][field.name] = field.flags;\r\n }\r\n\r\n acc[field.name] = field.flags;\r\n\r\n return acc;\r\n }, {});\r\n};\r\n\r\nprototypeAccessors$3.rules.get = function () {\r\n return this._base.rules;\r\n};\r\n\r\nprototypeAccessors$3.fields.get = function () {\r\n return new FieldBag(this._base.fields.filter({ vmId: this.id }));\r\n};\r\n\r\nprototypeAccessors$3.dictionary.get = function () {\r\n return this._base.dictionary;\r\n};\r\n\r\nprototypeAccessors$3.locale.get = function () {\r\n return this._base.locale;\r\n};\r\n\r\nprototypeAccessors$3.locale.set = function (val) {\r\n this._base.locale = val;\r\n};\r\n\r\nScopedValidator.prototype.localize = function localize () {\n var ref;\n\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\r\n return (ref = this._base).localize.apply(ref, args);\r\n};\r\n\r\nScopedValidator.prototype.update = function update () {\n var ref;\n\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\r\n return (ref = this._base).update.apply(ref, args);\r\n};\r\n\r\nScopedValidator.prototype.attach = function attach (opts) {\r\n var attachOpts = assign({}, opts, { vmId: this.id });\r\n\r\n return this._base.attach(attachOpts);\r\n};\r\n\r\nScopedValidator.prototype.pause = function pause () {\r\n this._paused = true;\r\n};\r\n\r\nScopedValidator.prototype.resume = function resume () {\r\n this._paused = false;\r\n};\r\n\r\nScopedValidator.prototype.remove = function remove (ruleName) {\r\n return this._base.remove(ruleName);\r\n};\r\n\r\nScopedValidator.prototype.detach = function detach (name, scope) {\r\n return this._base.detach(name, scope, this.id);\r\n};\r\n\r\nScopedValidator.prototype.extend = function extend () {\n var ref;\n\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\r\n return (ref = this._base).extend.apply(ref, args);\r\n};\r\n\r\nScopedValidator.prototype.validate = function validate (descriptor, value, opts) {\n if ( opts === void 0 ) opts = {};\n\r\n if (this._paused) { return Promise.resolve(true); }\r\n\r\n return this._base.validate(descriptor, value, assign({}, { vmId: this.id }, opts || {}));\r\n};\r\n\r\nScopedValidator.prototype.validateAll = function validateAll (values$$1, opts) {\n if ( opts === void 0 ) opts = {};\n\r\n if (this._paused) { return Promise.resolve(true); }\r\n\r\n return this._base.validateAll(values$$1, assign({}, { vmId: this.id }, opts || {}));\r\n};\r\n\r\nScopedValidator.prototype.validateScopes = function validateScopes (opts) {\n if ( opts === void 0 ) opts = {};\n\r\n if (this._paused) { return Promise.resolve(true); }\r\n\r\n return this._base.validateScopes(assign({}, { vmId: this.id }, opts || {}));\r\n};\r\n\r\nScopedValidator.prototype.destroy = function destroy () {\r\n delete this.id;\r\n delete this._base;\r\n};\r\n\r\nScopedValidator.prototype.reset = function reset (matcher) {\r\n return this._base.reset(Object.assign({}, matcher || {}, { vmId: this.id }));\r\n};\r\n\r\nScopedValidator.prototype.flag = function flag () {\n var ref;\n\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\r\n return (ref = this._base).flag.apply(ref, args.concat( [this.id] ));\r\n};\n\nObject.defineProperties( ScopedValidator.prototype, prototypeAccessors$3 );\n\n// \r\n\r\n/**\r\n * Checks if a parent validator instance was requested.\r\n */\r\nvar requestsValidator = function (injections) {\r\n if (isObject(injections) && injections.$validator) {\r\n return true;\r\n }\r\n\r\n return false;\r\n};\r\n\r\nvar mixin = {\r\n provide: function provide () {\r\n if (this.$validator && !isBuiltInComponent(this.$vnode)) {\r\n return {\r\n $validator: this.$validator\r\n };\r\n }\r\n\r\n return {};\r\n },\r\n beforeCreate: function beforeCreate () {\r\n // if built in do nothing.\r\n if (isBuiltInComponent(this.$vnode) || this.$options.$__veeInject === false) {\r\n return;\r\n }\r\n\r\n // if its a root instance set the config if it exists.\r\n if (!this.$parent) {\r\n pluginInstance.configure(this.$options.$_veeValidate || {});\r\n }\r\n\r\n var options = pluginInstance.resolveConfig(this);\r\n\r\n // if its a root instance, inject anyways, or if it requested a new instance.\r\n if (!this.$parent || (this.$options.$_veeValidate && /new/.test(this.$options.$_veeValidate.validator))) {\r\n this.$validator = new ScopedValidator(pluginInstance._validator, this);\r\n }\r\n\r\n var requested = requestsValidator(this.$options.inject);\r\n\r\n // if automatic injection is enabled and no instance was requested.\r\n if (! this.$validator && options.inject && !requested) {\r\n this.$validator = new ScopedValidator(pluginInstance._validator, this);\r\n }\r\n\r\n // don't inject errors or fieldBag as no validator was resolved.\r\n if (! requested && ! this.$validator) {\r\n return;\r\n }\r\n\r\n // There is a validator but it isn't injected, mark as reactive.\r\n if (!requested && this.$validator) {\r\n var Vue = this.$options._base; // the vue constructor.\r\n Vue.util.defineReactive(this.$validator, 'errors', this.$validator.errors);\r\n }\r\n\r\n if (! this.$options.computed) {\r\n this.$options.computed = {};\r\n }\r\n\r\n this.$options.computed[options.errorBagName || 'errors'] = function errorBagGetter () {\r\n return this.$validator.errors;\r\n };\r\n this.$options.computed[options.fieldsBagName || 'fields'] = function fieldBagGetter () {\r\n return this.$validator.fields.items.reduce(function (acc, field) {\r\n if (field.scope) {\r\n if (!acc[(\"$\" + (field.scope))]) {\r\n acc[(\"$\" + (field.scope))] = {};\r\n }\r\n\r\n acc[(\"$\" + (field.scope))][field.name] = field.flags;\r\n\r\n return acc;\r\n }\r\n\r\n acc[field.name] = field.flags;\r\n\r\n return acc;\r\n }, {});\r\n };\r\n },\r\n beforeDestroy: function beforeDestroy () {\r\n if (this.$validator && this._uid === this.$validator.id) {\r\n this.$validator.errors.clear(); // remove errors generated by this component.\r\n }\r\n }\r\n};\n\n// \r\n\r\n/**\r\n * Finds the requested field by id from the context object.\r\n */\r\nfunction findField (el, context) {\r\n if (!context || !context.$validator) {\r\n return null;\r\n }\r\n\r\n return context.$validator.fields.find({ id: el._veeValidateId });\r\n}\r\nvar directive = {\r\n bind: function bind (el, binding, vnode) {\r\n var validator = vnode.context.$validator;\r\n if (!validator) {\r\n if (process.env.NODE_ENV !== 'production') {\r\n warn(\"No validator instance is present on vm, did you forget to inject '$validator'?\");\r\n }\r\n\r\n return;\r\n }\r\n\r\n var fieldOptions = Resolver.generate(el, binding, vnode);\r\n validator.attach(fieldOptions);\r\n },\r\n inserted: function inserted (el, binding, vnode) {\r\n var field = findField(el, vnode.context);\r\n var scope = Resolver.resolveScope(el, binding, vnode);\r\n\r\n // skip if scope hasn't changed.\r\n if (!field || scope === field.scope) { return; }\r\n\r\n // only update scope.\r\n field.update({ scope: scope });\r\n\r\n // allows the field to re-evaluated once more in the update hook.\r\n field.updated = false;\r\n },\r\n update: function update (el, binding, vnode) {\r\n var field = findField(el, vnode.context);\r\n\r\n // make sure we don't do unneccasary work if no important change was done.\r\n if (!field || (field.updated && isEqual(binding.value, binding.oldValue))) { return; }\r\n var scope = Resolver.resolveScope(el, binding, vnode);\r\n var rules = Resolver.resolveRules(el, binding, vnode);\r\n\r\n field.update({\r\n scope: scope,\r\n rules: rules\r\n });\r\n },\r\n unbind: function unbind (el, binding, ref) {\n var context = ref.context;\n\r\n var field = findField(el, context);\r\n if (!field) { return; }\r\n\r\n context.$validator.detach(field);\r\n }\r\n};\n\n// \r\n\r\nvar Validator = function Validator (validations, options) {\n if ( options === void 0 ) options = { fastExit: true };\n\r\n this.errors = new ErrorBag();\r\n this.fields = new FieldBag();\r\n this._createFields(validations);\r\n this.paused = false;\r\n this.fastExit = !isNullOrUndefined(options && options.fastExit) ? options.fastExit : true;\r\n};\n\nvar prototypeAccessors$4 = { rules: { configurable: true },dictionary: { configurable: true },flags: { configurable: true },locale: { configurable: true } };\nvar staticAccessors$1 = { rules: { configurable: true },dictionary: { configurable: true },locale: { configurable: true } };\r\n\r\nstaticAccessors$1.rules.get = function () {\r\n return RuleContainer.rules;\r\n};\r\n\r\nprototypeAccessors$4.rules.get = function () {\r\n return RuleContainer.rules;\r\n};\r\n\r\nprototypeAccessors$4.dictionary.get = function () {\r\n return VeeValidate$1.i18nDriver;\r\n};\r\n\r\nstaticAccessors$1.dictionary.get = function () {\r\n return VeeValidate$1.i18nDriver;\r\n};\r\n\r\nprototypeAccessors$4.flags.get = function () {\r\n return this.fields.items.reduce(function (acc, field) {\n var obj;\n\r\n if (field.scope) {\r\n acc[(\"$\" + (field.scope))] = ( obj = {}, obj[field.name] = field.flags, obj );\r\n\r\n return acc;\r\n }\r\n\r\n acc[field.name] = field.flags;\r\n\r\n return acc;\r\n }, {});\r\n};\r\n\r\n/**\r\n * Getter for the current locale.\r\n */\r\nprototypeAccessors$4.locale.get = function () {\r\n return Validator.locale;\r\n};\r\n\r\n/**\r\n * Setter for the validator locale.\r\n */\r\nprototypeAccessors$4.locale.set = function (value) {\r\n Validator.locale = value;\r\n};\r\n\r\nstaticAccessors$1.locale.get = function () {\r\n return VeeValidate$1.i18nDriver.locale;\r\n};\r\n\r\n/**\r\n * Setter for the validator locale.\r\n */\r\nstaticAccessors$1.locale.set = function (value) {\r\n var hasChanged = value !== VeeValidate$1.i18nDriver.locale;\r\n VeeValidate$1.i18nDriver.locale = value;\r\n if (hasChanged && VeeValidate$1.instance && VeeValidate$1.instance._vm) {\r\n VeeValidate$1.instance._vm.$emit('localeChanged');\r\n }\r\n};\r\n\r\n/**\r\n * Static constructor.\r\n */\r\nValidator.create = function create (validations, options) {\r\n return new Validator(validations, options);\r\n};\r\n\r\n/**\r\n * Adds a custom validator to the list of validation rules.\r\n */\r\nValidator.extend = function extend (name, validator, options) {\n if ( options === void 0 ) options = {};\n\r\n Validator._guardExtend(name, validator);\r\n Validator._merge(name, {\r\n validator: validator,\r\n paramNames: options && options.paramNames,\r\n options: assign({}, { hasTarget: false, immediate: true }, options || {})\r\n });\r\n};\r\n\r\n/**\r\n * Removes a rule from the list of validators.\r\n */\r\nValidator.remove = function remove (name) {\r\n RuleContainer.remove(name);\r\n};\r\n\r\n/**\r\n * Checks if the given rule name is a rule that targets other fields.\r\n */\r\nValidator.isTargetRule = function isTargetRule (name) {\r\n return RuleContainer.isTargetRule(name);\r\n};\r\n\r\n/**\r\n * Adds and sets the current locale for the validator.\r\n */\r\nValidator.prototype.localize = function localize (lang, dictionary) {\r\n Validator.localize(lang, dictionary);\r\n};\r\n\r\n/**\r\n * Adds and sets the current locale for the validator.\r\n */\r\nValidator.localize = function localize (lang, dictionary) {\n var obj;\n\r\n if (isObject(lang)) {\r\n VeeValidate$1.i18nDriver.merge(lang);\r\n return;\r\n }\r\n\r\n // merge the dictionary.\r\n if (dictionary) {\r\n var locale = lang || dictionary.name;\r\n dictionary = assign({}, dictionary);\r\n VeeValidate$1.i18nDriver.merge(( obj = {}, obj[locale] = dictionary, obj ));\r\n }\r\n\r\n if (lang) {\r\n // set the locale.\r\n Validator.locale = lang;\r\n }\r\n};\r\n\r\n/**\r\n * Registers a field to be validated.\r\n */\r\nValidator.prototype.attach = function attach (fieldOpts) {\n var this$1 = this;\n\r\n // fixes initial value detection with v-model and select elements.\r\n var value = fieldOpts.initialValue;\r\n var field = new Field(fieldOpts);\r\n this.fields.push(field);\r\n\r\n // validate the field initially\r\n if (field.immediate) {\r\n VeeValidate$1.instance._vm.$nextTick(function () { return this$1.validate((\"#\" + (field.id)), value || field.value, { vmId: fieldOpts.vmId }); });\r\n } else {\r\n this._validate(field, value || field.value, { initial: true }).then(function (result) {\r\n field.flags.valid = result.valid;\r\n field.flags.invalid = !result.valid;\r\n });\r\n }\r\n\r\n return field;\r\n};\r\n\r\n/**\r\n * Sets the flags on a field.\r\n */\r\nValidator.prototype.flag = function flag (name, flags, uid) {\n if ( uid === void 0 ) uid = null;\n\r\n var field = this._resolveField(name, undefined, uid);\r\n if (!field || !flags) {\r\n return;\r\n }\r\n\r\n field.setFlags(flags);\r\n};\r\n\r\n/**\r\n * Removes a field from the validator.\r\n */\r\nValidator.prototype.detach = function detach (name, scope, uid) {\r\n var field = isCallable(name.destroy) ? name : this._resolveField(name, scope, uid);\r\n if (!field) { return; }\r\n\r\n field.destroy();\r\n this.errors.remove(field.name, field.scope, field.vmId);\r\n this.fields.remove(field);\r\n};\r\n\r\n/**\r\n * Adds a custom validator to the list of validation rules.\r\n */\r\nValidator.prototype.extend = function extend (name, validator, options) {\n if ( options === void 0 ) options = {};\n\r\n Validator.extend(name, validator, options);\r\n};\r\n\r\nValidator.prototype.reset = function reset (matcher) {\n var this$1 = this;\n\r\n // two ticks\r\n return VeeValidate$1.instance._vm.$nextTick().then(function () {\r\n return VeeValidate$1.instance._vm.$nextTick();\r\n }).then(function () {\r\n this$1.fields.filter(matcher).forEach(function (field) {\r\n field.waitFor(null);\r\n field.reset(); // reset field flags.\r\n this$1.errors.remove(field.name, field.scope, matcher && matcher.vmId);\r\n });\r\n });\r\n};\r\n\r\n/**\r\n * Updates a field, updating both errors and flags.\r\n */\r\nValidator.prototype.update = function update (id, ref) {\n var scope = ref.scope;\n\r\n var field = this._resolveField((\"#\" + id));\r\n if (!field) { return; }\r\n\r\n // remove old scope.\r\n this.errors.update(id, { scope: scope });\r\n};\r\n\r\n/**\r\n * Removes a rule from the list of validators.\r\n */\r\nValidator.prototype.remove = function remove (name) {\r\n Validator.remove(name);\r\n};\r\n\r\n/**\r\n * Validates a value against a registered field validations.\r\n */\r\nValidator.prototype.validate = function validate (fieldDescriptor, value, ref) {\n var this$1 = this;\n if ( ref === void 0 ) ref = {};\n var silent = ref.silent;\n var vmId = ref.vmId;\n\r\n if (this.paused) { return Promise.resolve(true); }\r\n\r\n // overload to validate all.\r\n if (isNullOrUndefined(fieldDescriptor)) {\r\n return this.validateScopes({ silent: silent, vmId: vmId });\r\n }\r\n\r\n // overload to validate scope-less fields.\r\n if (fieldDescriptor === '*') {\r\n return this.validateAll(undefined, { silent: silent, vmId: vmId });\r\n }\r\n\r\n // if scope validation was requested.\r\n if (/^(.+)\\.\\*$/.test(fieldDescriptor)) {\r\n var matched = fieldDescriptor.match(/^(.+)\\.\\*$/)[1];\r\n return this.validateAll(matched);\r\n }\r\n\r\n var field = this._resolveField(fieldDescriptor);\r\n if (!field) {\r\n return this._handleFieldNotFound(name);\r\n }\r\n\r\n if (!silent) { field.flags.pending = true; }\r\n if (value === undefined) {\r\n value = field.value;\r\n }\r\n\r\n var validationPromise = this._validate(field, value);\r\n field.waitFor(validationPromise);\r\n\r\n return validationPromise.then(function (result) {\r\n if (!silent && field.isWaitingFor(validationPromise)) {\r\n // allow next validation to mutate the state.\r\n field.waitFor(null);\r\n this$1._handleValidationResults([result], vmId);\r\n }\r\n\r\n return result.valid;\r\n });\r\n};\r\n\r\n/**\r\n * Pauses the validator.\r\n */\r\nValidator.prototype.pause = function pause () {\r\n this.paused = true;\r\n\r\n return this;\r\n};\r\n\r\n/**\r\n * Resumes the validator.\r\n */\r\nValidator.prototype.resume = function resume () {\r\n this.paused = false;\r\n\r\n return this;\r\n};\r\n\r\n/**\r\n * Validates each value against the corresponding field validations.\r\n */\r\nValidator.prototype.validateAll = function validateAll (values$$1, ref) {\n var this$1 = this;\n if ( ref === void 0 ) ref = {};\n var silent = ref.silent;\n var vmId = ref.vmId;\n\r\n if (this.paused) { return Promise.resolve(true); }\r\n\r\n var matcher = null;\r\n var providedValues = false;\r\n\r\n if (typeof values$$1 === 'string') {\r\n matcher = { scope: values$$1, vmId: vmId };\r\n } else if (isObject(values$$1)) {\r\n matcher = Object.keys(values$$1).map(function (key) {\r\n return { name: key, vmId: vmId, scope: null };\r\n });\r\n providedValues = true;\r\n } else if (Array.isArray(values$$1)) {\r\n matcher = values$$1.map(function (key) {\r\n return { name: key, vmId: vmId };\r\n });\r\n } else {\r\n matcher = { scope: null, vmId: vmId };\r\n }\r\n\r\n return Promise.all(\r\n this.fields.filter(matcher).map(function (field) { return this$1._validate(field, providedValues ? values$$1[field.name] : field.value); })\r\n ).then(function (results) {\r\n if (!silent) {\r\n this$1._handleValidationResults(results, vmId);\r\n }\r\n\r\n return results.every(function (t) { return t.valid; });\r\n });\r\n};\r\n\r\n/**\r\n * Validates all scopes.\r\n */\r\nValidator.prototype.validateScopes = function validateScopes (ref) {\n var this$1 = this;\n if ( ref === void 0 ) ref = {};\n var silent = ref.silent;\n var vmId = ref.vmId;\n\r\n if (this.paused) { return Promise.resolve(true); }\r\n\r\n return Promise.all(\r\n this.fields.filter({ vmId: vmId }).map(function (field) { return this$1._validate(field, field.value); })\r\n ).then(function (results) {\r\n if (!silent) {\r\n this$1._handleValidationResults(results, vmId);\r\n }\r\n\r\n return results.every(function (t) { return t.valid; });\r\n });\r\n};\r\n\r\n/**\r\n * Validates a value against the rules.\r\n */\r\nValidator.prototype.verify = function verify (value, rules, options) {\n if ( options === void 0 ) options = {};\n\r\n var field = {\r\n name: (options && options.name) || '{field}',\r\n rules: normalizeRules(rules),\r\n bails: getPath('bails', options, true)\r\n };\r\n\r\n field.isRequired = field.rules.required;\r\n var targetRules = Object.keys(field.rules).filter(Validator.isTargetRule);\r\n if (targetRules.length && options && isObject(options.values)) {\r\n // patch the field params with the targets' values.\r\n targetRules.forEach(function (rule) {\r\n var ref = field.rules[rule];\n var first = ref[0];\n var rest = ref.slice(1);\r\n field.rules[rule] = [options.values[first] ].concat( rest);\r\n });\r\n }\r\n\r\n return this._validate(field, value).then(function (result) {\r\n return { valid: result.valid, errors: result.errors.map(function (e) { return e.msg; }) };\r\n });\r\n};\r\n\r\n/**\r\n * Perform cleanup.\r\n */\r\nValidator.prototype.destroy = function destroy () {\r\n VeeValidate$1.instance._vm.$off('localeChanged');\r\n};\r\n\r\n/**\r\n * Creates the fields to be validated.\r\n */\r\nValidator.prototype._createFields = function _createFields (validations) {\n var this$1 = this;\n\r\n if (!validations) { return; }\r\n\r\n Object.keys(validations).forEach(function (field) {\r\n var options = assign({}, { name: field, rules: validations[field] });\r\n this$1.attach(options);\r\n });\r\n};\r\n\r\n/**\r\n * Date rules need the existence of a format, so date_format must be supplied.\r\n */\r\nValidator.prototype._getDateFormat = function _getDateFormat (validations) {\r\n var format = null;\r\n if (validations.date_format && Array.isArray(validations.date_format)) {\r\n format = validations.date_format[0];\r\n }\r\n\r\n return format || VeeValidate$1.i18nDriver.getDateFormat(this.locale);\r\n};\r\n\r\n/**\r\n * Formats an error message for field and a rule.\r\n */\r\nValidator.prototype._formatErrorMessage = function _formatErrorMessage (field, rule, data, targetName) {\n if ( data === void 0 ) data = {};\n if ( targetName === void 0 ) targetName = null;\n\r\n var name = this._getFieldDisplayName(field);\r\n var params = this._getLocalizedParams(rule, targetName);\r\n\r\n return VeeValidate$1.i18nDriver.getFieldMessage(this.locale, field.name, rule.name, [name, params, data]);\r\n};\r\n\r\n/**\r\n * We need to convert any object param to an array format since the locales do not handle params as objects yet.\r\n */\r\nValidator.prototype._convertParamObjectToArray = function _convertParamObjectToArray (obj, ruleName) {\r\n if (Array.isArray(obj)) {\r\n return obj;\r\n }\r\n\r\n var paramNames = RuleContainer.getParamNames(ruleName);\r\n if (!paramNames || !isObject(obj)) {\r\n return obj;\r\n }\r\n\r\n return paramNames.reduce(function (prev, paramName) {\r\n if (paramName in obj) {\r\n prev.push(obj[paramName]);\r\n }\r\n\r\n return prev;\r\n }, []);\r\n};\r\n\r\n/**\r\n * Translates the parameters passed to the rule (mainly for target fields).\r\n */\r\nValidator.prototype._getLocalizedParams = function _getLocalizedParams (rule, targetName) {\n if ( targetName === void 0 ) targetName = null;\n\r\n var params = this._convertParamObjectToArray(rule.params, rule.name);\r\n if (rule.options.hasTarget && params && params[0]) {\r\n var localizedName = targetName || VeeValidate$1.i18nDriver.getAttribute(this.locale, params[0], params[0]);\r\n return [localizedName].concat(params.slice(1));\r\n }\r\n\r\n return params;\r\n};\r\n\r\n/**\r\n * Resolves an appropriate display name, first checking 'data-as' or the registered 'prettyName'\r\n */\r\nValidator.prototype._getFieldDisplayName = function _getFieldDisplayName (field) {\r\n return field.alias || VeeValidate$1.i18nDriver.getAttribute(this.locale, field.name, field.name);\r\n};\r\n\r\n/**\r\n * Converts an array of params to an object with named properties.\r\n * Only works if the rule is configured with a paramNames array.\r\n * Returns the same params if it cannot convert it.\r\n */\r\nValidator.prototype._convertParamArrayToObj = function _convertParamArrayToObj (params, ruleName) {\r\n var paramNames = RuleContainer.getParamNames(ruleName);\r\n if (!paramNames) {\r\n return params;\r\n }\r\n\r\n if (isObject(params)) {\r\n // check if the object is either a config object or a single parameter that is an object.\r\n var hasKeys = paramNames.some(function (name) { return Object.keys(params).indexOf(name) !== -1; });\r\n // if it has some of the keys, return it as is.\r\n if (hasKeys) {\r\n return params;\r\n }\r\n // otherwise wrap the object in an array.\r\n params = [params];\r\n }\r\n\r\n // Reduce the paramsNames to a param object.\r\n return params.reduce(function (prev, value, idx) {\r\n prev[paramNames[idx]] = value;\r\n\r\n return prev;\r\n }, {});\r\n};\r\n\r\n/**\r\n * Tests a single input value against a rule.\r\n */\r\nValidator.prototype._test = function _test (field, value, rule) {\n var this$1 = this;\n\r\n var validator = RuleContainer.getValidatorMethod(rule.name);\r\n var params = Array.isArray(rule.params) ? toArray(rule.params) : rule.params;\r\n if (!params) {\r\n params = [];\r\n }\r\n\r\n var targetName = null;\r\n if (!validator || typeof validator !== 'function') {\r\n return Promise.reject(createError((\"No such validator '\" + (rule.name) + \"' exists.\")));\r\n }\r\n\r\n // has field dependencies.\r\n if (rule.options.hasTarget && field.dependencies) {\r\n var target = find(field.dependencies, function (d) { return d.name === rule.name; });\r\n if (target) {\r\n targetName = target.field.alias;\r\n params = [target.field.value].concat(params.slice(1));\r\n }\r\n } else if (rule.name === 'required' && field.rejectsFalse) {\r\n // invalidate false if no args were specified and the field rejects false by default.\r\n params = params.length ? params : [true];\r\n }\r\n\r\n if (rule.options.isDate) {\r\n var dateFormat = this._getDateFormat(field.rules);\r\n if (rule.name !== 'date_format') {\r\n params.push(dateFormat);\r\n }\r\n }\r\n\r\n var result = validator(value, this._convertParamArrayToObj(params, rule.name));\r\n\r\n // If it is a promise.\r\n if (isCallable(result.then)) {\r\n return result.then(function (values$$1) {\r\n var allValid = true;\r\n var data = {};\r\n if (Array.isArray(values$$1)) {\r\n allValid = values$$1.every(function (t) { return (isObject(t) ? t.valid : t); });\r\n } else { // Is a single object/boolean.\r\n allValid = isObject(values$$1) ? values$$1.valid : values$$1;\r\n data = values$$1.data;\r\n }\r\n\r\n return {\r\n valid: allValid,\r\n errors: allValid ? [] : [this$1._createFieldError(field, rule, data, targetName)]\r\n };\r\n });\r\n }\r\n\r\n if (!isObject(result)) {\r\n result = { valid: result, data: {} };\r\n }\r\n\r\n return {\r\n valid: result.valid,\r\n errors: result.valid ? [] : [this._createFieldError(field, rule, result.data, targetName)]\r\n };\r\n};\r\n\r\n/**\r\n * Merges a validator object into the RULES and Messages.\r\n */\r\nValidator._merge = function _merge (name, ref) {\n var validator = ref.validator;\n var options = ref.options;\n var paramNames = ref.paramNames;\n\r\n var validate = isCallable(validator) ? validator : validator.validate;\r\n if (validator.getMessage) {\r\n VeeValidate$1.i18nDriver.setMessage(Validator.locale, name, validator.getMessage);\r\n }\r\n\r\n RuleContainer.add(name, {\r\n validate: validate,\r\n options: options,\r\n paramNames: paramNames\r\n });\r\n};\r\n\r\n/**\r\n * Guards from extension violations.\r\n */\r\nValidator._guardExtend = function _guardExtend (name, validator) {\r\n if (isCallable(validator)) {\r\n return;\r\n }\r\n\r\n if (!isCallable(validator.validate)) {\r\n throw createError(\r\n (\"Extension Error: The validator '\" + name + \"' must be a function or have a 'validate' method.\")\r\n );\r\n }\r\n};\r\n\r\n/**\r\n * Creates a Field Error Object.\r\n */\r\nValidator.prototype._createFieldError = function _createFieldError (field, rule, data, targetName) {\n var this$1 = this;\n\r\n return {\r\n id: field.id,\r\n vmId: field.vmId,\r\n field: field.name,\r\n msg: this._formatErrorMessage(field, rule, data, targetName),\r\n rule: rule.name,\r\n scope: field.scope,\r\n regenerate: function () {\r\n return this$1._formatErrorMessage(field, rule, data, targetName);\r\n }\r\n };\r\n};\r\n\r\n/**\r\n * Tries different strategies to find a field.\r\n */\r\nValidator.prototype._resolveField = function _resolveField (name, scope, uid) {\r\n if (name[0] === '#') {\r\n return this.fields.find({ id: name.slice(1) });\r\n }\r\n\r\n if (!isNullOrUndefined(scope)) {\r\n return this.fields.find({ name: name, scope: scope, vmId: uid });\r\n }\r\n\r\n if (includes(name, '.')) {\r\n var ref = name.split('.');\n var fieldScope = ref[0];\n var fieldName = ref.slice(1);\r\n var field = this.fields.find({ name: fieldName.join('.'), scope: fieldScope, vmId: uid });\r\n if (field) {\r\n return field;\r\n }\r\n }\r\n\r\n return this.fields.find({ name: name, scope: null, vmId: uid });\r\n};\r\n\r\n/**\r\n * Handles when a field is not found.\r\n */\r\nValidator.prototype._handleFieldNotFound = function _handleFieldNotFound (name, scope) {\r\n var fullName = isNullOrUndefined(scope) ? name : (\"\" + (!isNullOrUndefined(scope) ? scope + '.' : '') + name);\r\n\r\n return Promise.reject(createError(\r\n (\"Validating a non-existent field: \\\"\" + fullName + \"\\\". Use \\\"attach()\\\" first.\")\r\n ));\r\n};\r\n\r\n/**\r\n * Handles validation results.\r\n */\r\nValidator.prototype._handleValidationResults = function _handleValidationResults (results, vmId) {\n var this$1 = this;\n\r\n var matchers = results.map(function (result) { return ({ id: result.id }); });\r\n this.errors.removeById(matchers.map(function (m) { return m.id; }));\r\n // remove by name and scope to remove any custom errors added.\r\n results.forEach(function (result) {\r\n this$1.errors.remove(result.field, result.scope, vmId);\r\n });\r\n var allErrors = results.reduce(function (prev, curr) {\r\n prev.push.apply(prev, curr.errors);\r\n\r\n return prev;\r\n }, []);\r\n\r\n this.errors.add(allErrors);\r\n\r\n // handle flags.\r\n this.fields.filter(matchers).forEach(function (field) {\r\n var result = find(results, function (r) { return r.id === field.id; });\r\n field.setFlags({\r\n pending: false,\r\n valid: result.valid,\r\n validated: true\r\n });\r\n });\r\n};\r\n\r\nValidator.prototype._shouldSkip = function _shouldSkip (field, value) {\r\n // field is configured to run through the pipeline regardless\r\n if (field.bails === false) {\r\n return false;\r\n }\r\n\r\n // disabled fields are skipped\r\n if (field.isDisabled) {\r\n return true;\r\n }\r\n\r\n // skip if the field is not required and has an empty value.\r\n return !field.isRequired && (isNullOrUndefined(value) || value === '' || isEmptyArray(value));\r\n};\r\n\r\nValidator.prototype._shouldBail = function _shouldBail (field) {\r\n // if the field was configured explicitly.\r\n if (field.bails !== undefined) {\r\n return field.bails;\r\n }\r\n\r\n return this.fastExit;\r\n};\r\n\r\n/**\r\n * Starts the validation process.\r\n */\r\nValidator.prototype._validate = function _validate (field, value, ref) {\n var this$1 = this;\n if ( ref === void 0 ) ref = {};\n var initial = ref.initial;\n\r\n if (this._shouldSkip(field, value)) {\r\n return Promise.resolve({ valid: true, id: field.id, field: field.name, scope: field.scope, errors: [] });\r\n }\r\n\r\n var promises = [];\r\n var errors = [];\r\n var isExitEarly = false;\r\n // use of '.some()' is to break iteration in middle by returning true\r\n Object.keys(field.rules).filter(function (rule) {\r\n if (!initial || !RuleContainer.has(rule)) { return true; }\r\n\r\n return RuleContainer.isImmediate(rule);\r\n }).some(function (rule) {\r\n var ruleOptions = RuleContainer.getOptions(rule);\r\n var result = this$1._test(field, value, { name: rule, params: field.rules[rule], options: ruleOptions });\r\n if (isCallable(result.then)) {\r\n promises.push(result);\r\n } else if (!result.valid && this$1._shouldBail(field)) {\r\n errors.push.apply(errors, result.errors);\r\n isExitEarly = true;\r\n } else {\r\n // promisify the result.\r\n promises.push(new Promise(function (resolve) { return resolve(result); }));\r\n }\r\n\r\n return isExitEarly;\r\n });\r\n\r\n if (isExitEarly) {\r\n return Promise.resolve({ valid: false, errors: errors, id: field.id, field: field.name, scope: field.scope });\r\n }\r\n\r\n return Promise.all(promises).then(function (results) {\r\n return results.reduce(function (prev, v) {\n var ref;\n\r\n if (!v.valid) {\r\n (ref = prev.errors).push.apply(ref, v.errors);\r\n }\r\n\r\n prev.valid = prev.valid && v.valid;\r\n\r\n return prev;\r\n }, { valid: true, errors: errors, id: field.id, field: field.name, scope: field.scope });\r\n });\r\n};\n\nObject.defineProperties( Validator.prototype, prototypeAccessors$4 );\nObject.defineProperties( Validator, staticAccessors$1 );\n\n// \r\n\r\nvar normalize = function (fields) {\r\n if (Array.isArray(fields)) {\r\n return fields.reduce(function (prev, curr) {\r\n if (includes(curr, '.')) {\r\n prev[curr.split('.')[1]] = curr;\r\n } else {\r\n prev[curr] = curr;\r\n }\r\n\r\n return prev;\r\n }, {});\r\n }\r\n\r\n return fields;\r\n};\r\n\r\n// Combines two flags using either AND or OR depending on the flag type.\r\nvar combine = function (lhs, rhs) {\r\n var mapper = {\r\n pristine: function (lhs, rhs) { return lhs && rhs; },\r\n dirty: function (lhs, rhs) { return lhs || rhs; },\r\n touched: function (lhs, rhs) { return lhs || rhs; },\r\n untouched: function (lhs, rhs) { return lhs && rhs; },\r\n valid: function (lhs, rhs) { return lhs && rhs; },\r\n invalid: function (lhs, rhs) { return lhs || rhs; },\r\n pending: function (lhs, rhs) { return lhs || rhs; },\r\n required: function (lhs, rhs) { return lhs || rhs; },\r\n validated: function (lhs, rhs) { return lhs && rhs; }\r\n };\r\n\r\n return Object.keys(mapper).reduce(function (flags, flag) {\r\n flags[flag] = mapper[flag](lhs[flag], rhs[flag]);\r\n\r\n return flags;\r\n }, {});\r\n};\r\n\r\nvar mapScope = function (scope, deep) {\n if ( deep === void 0 ) deep = true;\n\r\n return Object.keys(scope).reduce(function (flags, field) {\r\n if (!flags) {\r\n flags = assign({}, scope[field]);\r\n return flags;\r\n }\r\n\r\n // scope.\r\n var isScope = field.indexOf('$') === 0;\r\n if (deep && isScope) {\r\n return combine(mapScope(scope[field]), flags);\r\n } else if (!deep && isScope) {\r\n return flags;\r\n }\r\n\r\n flags = combine(flags, scope[field]);\r\n\r\n return flags;\r\n }, null);\r\n};\r\n\r\n/**\r\n * Maps fields to computed functions.\r\n */\r\nvar mapFields = function (fields) {\r\n if (!fields) {\r\n return function () {\r\n return mapScope(this.$validator.flags);\r\n };\r\n }\r\n\r\n var normalized = normalize(fields);\r\n return Object.keys(normalized).reduce(function (prev, curr) {\r\n var field = normalized[curr];\r\n prev[curr] = function mappedField () {\r\n // if field exists\r\n if (this.$validator.flags[field]) {\r\n return this.$validator.flags[field];\r\n }\r\n\r\n // scopeless fields were selected.\r\n if (normalized[curr] === '*') {\r\n return mapScope(this.$validator.flags, false);\r\n }\r\n\r\n // if it has a scope defined\r\n var index = field.indexOf('.');\r\n if (index <= 0) {\r\n return {};\r\n }\r\n\r\n var ref = field.split('.');\n var scope = ref[0];\n var name = ref.slice(1);\r\n\r\n scope = this.$validator.flags[(\"$\" + scope)];\r\n name = name.join('.');\r\n\r\n // an entire scope was selected: scope.*\r\n if (name === '*' && scope) {\r\n return mapScope(scope);\r\n }\r\n\r\n if (scope && scope[name]) {\r\n return scope[name];\r\n }\r\n\r\n return {};\r\n };\r\n\r\n return prev;\r\n }, {});\r\n};\n\nvar $validator = null;\r\n\r\nvar PROVIDER_COUNTER = 0;\r\n\r\nfunction createValidationCtx (ctx) {\r\n return {\r\n errors: ctx.messages,\r\n flags: ctx.flags,\r\n classes: ctx.classes,\r\n valid: ctx.isValid,\r\n reset: function () { return ctx.reset(); },\r\n validate: function () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n return ctx.validate.apply(ctx, args);\n },\r\n aria: {\r\n 'aria-invalid': ctx.flags.invalid ? 'true' : 'false',\r\n 'aria-required': ctx.isRequired ? 'true' : 'false'\r\n }\r\n };\r\n}\r\n\r\nfunction onRenderUpdate (model) {\n var this$1 = this;\n\r\n var validateNow = this.value !== model.value || this._needsValidation;\r\n var shouldRevalidate = this.flags.validated;\r\n if (!this.initialized) {\r\n this.initialValue = model.value;\r\n }\r\n\r\n if (!this.initialized && model.value === undefined) {\r\n validateNow = true;\r\n }\r\n\r\n if (validateNow) {\r\n var silentHandler = function (ref) {\n var valid = ref.valid;\n\r\n // initially assign the valid/invalid flags.\r\n this$1.setFlags({\r\n valid: valid,\r\n invalid: !valid\r\n });\r\n };\r\n\r\n this.value = model.value;\r\n this.validateSilent().then(this.immediate || shouldRevalidate ? this.applyResult : silentHandler);\r\n }\r\n\r\n this._needsValidation = false;\r\n}\r\n\r\n// Creates the common handlers for a validatable context.\r\nfunction createCommonHandlers (ctx) {\r\n var onInput = function (e) {\r\n ctx.syncValue(e); // track and keep the value updated.\r\n ctx.setFlags({ dirty: true, pristine: false });\r\n };\r\n\r\n // Blur event listener.\r\n var onBlur = function () {\r\n ctx.setFlags({ touched: true, untouched: false });\r\n };\r\n\r\n var onValidate = debounce(\r\n function () {\r\n var pendingPromise = ctx.validate();\r\n // avoids race conditions between successive validations.\r\n ctx._waiting = pendingPromise;\r\n pendingPromise.then(function (result) {\r\n if (pendingPromise === ctx._waiting) {\r\n ctx.applyResult(result);\r\n ctx._waiting = null;\r\n }\r\n });\r\n },\r\n ctx.debounce\r\n );\r\n\r\n return { onInput: onInput, onBlur: onBlur, onValidate: onValidate };\r\n}\r\n\r\n// Adds all plugin listeners to the vnode.\r\nfunction addListeners (node) {\r\n var model = findModel(node);\r\n // cache the input eventName.\r\n this._inputEventName = this._inputEventName || getInputEventName(node, model);\r\n\r\n onRenderUpdate.call(this, model);\r\n\r\n var ref = createCommonHandlers(this);\n var onInput = ref.onInput;\n var onBlur = ref.onBlur;\n var onValidate = ref.onValidate;\r\n addVNodeListener(node, this._inputEventName, onInput);\r\n addVNodeListener(node, 'blur', onBlur);\r\n\r\n // add the validation listeners.\r\n this.normalizedEvents.forEach(function (evt) {\r\n addVNodeListener(node, evt, onValidate);\r\n });\r\n\r\n this.initialized = true;\r\n}\r\n\r\nfunction createValuesLookup (ctx) {\r\n var providers = ctx.$_veeObserver.refs;\r\n\r\n return ctx.fieldDeps.reduce(function (acc, depName) {\r\n if (!providers[depName]) {\r\n return acc;\r\n }\r\n\r\n acc[depName] = providers[depName].value;\r\n\r\n return acc;\r\n }, {});\r\n}\r\n\r\nfunction updateRenderingContextRefs (ctx) {\r\n // IDs should not be nullable.\r\n if (isNullOrUndefined(ctx.id) && ctx.id === ctx.vid) {\r\n ctx.id = PROVIDER_COUNTER;\r\n PROVIDER_COUNTER++;\r\n }\r\n\r\n var id = ctx.id;\n var vid = ctx.vid;\r\n // Nothing has changed.\r\n if (id === vid && ctx.$_veeObserver.refs[id]) {\r\n return;\r\n }\r\n\r\n // vid was changed.\r\n if (id !== vid && ctx.$_veeObserver.refs[id] === ctx) {\r\n ctx.$_veeObserver.$unsubscribe(ctx);\r\n }\r\n\r\n ctx.$_veeObserver.$subscribe(ctx);\r\n ctx.id = vid;\r\n}\r\n\r\nfunction createObserver () {\r\n return {\r\n refs: {},\r\n $subscribe: function $subscribe (ctx) {\r\n this.refs[ctx.vid] = ctx;\r\n },\r\n $unsubscribe: function $unsubscribe (ctx) {\r\n delete this.refs[ctx.vid];\r\n }\r\n };\r\n}\r\n\r\nvar ValidationProvider = {\r\n $__veeInject: false,\r\n inject: {\r\n $_veeObserver: {\r\n from: '$_veeObserver',\r\n default: function default$1 () {\r\n if (!this.$vnode.context.$_veeObserver) {\r\n this.$vnode.context.$_veeObserver = createObserver();\r\n }\r\n\r\n return this.$vnode.context.$_veeObserver;\r\n }\r\n }\r\n },\r\n props: {\r\n vid: {\r\n type: [String, Number],\r\n default: function () {\r\n PROVIDER_COUNTER++;\r\n\r\n return PROVIDER_COUNTER;\r\n }\r\n },\r\n name: {\r\n type: String,\r\n default: null\r\n },\r\n events: {\r\n type: [Array, String],\r\n default: function () { return ['input']; }\r\n },\r\n rules: {\r\n type: [Object, String],\r\n default: null\r\n },\r\n immediate: {\r\n type: Boolean,\r\n default: false\r\n },\r\n bails: {\r\n type: Boolean,\r\n default: function () { return VeeValidate$1.config.fastExit; }\r\n },\r\n debounce: {\r\n type: Number,\r\n default: function () { return VeeValidate$1.config.delay || 0; }\r\n }\r\n },\r\n watch: {\r\n rules: {\r\n deep: true,\r\n handler: function handler () {\r\n this._needsValidation = true;\r\n }\r\n }\r\n },\r\n data: function () { return ({\r\n messages: [],\r\n value: undefined,\r\n initialized: false,\r\n initialValue: undefined,\r\n flags: createFlags(),\r\n id: null\r\n }); },\r\n methods: {\r\n setFlags: function setFlags (flags) {\n var this$1 = this;\n\r\n Object.keys(flags).forEach(function (flag) {\r\n this$1.flags[flag] = flags[flag];\r\n });\r\n },\r\n syncValue: function syncValue (e) {\r\n var value = isEvent(e) ? e.target.value : e;\r\n\r\n this.value = value;\r\n this.flags.changed = this.initialValue === value;\r\n },\r\n reset: function reset () {\r\n this.messages = [];\r\n this._waiting = null;\r\n this.initialValue = this.value;\r\n var flags = createFlags();\r\n this.setFlags(flags);\r\n },\r\n validate: function validate () {\n var this$1 = this;\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\r\n if (args[0]) {\r\n this.syncValue(args[0]);\r\n }\r\n\r\n return this.validateSilent().then(function (result) {\r\n this$1.applyResult(result);\r\n\r\n return result;\r\n });\r\n },\r\n validateSilent: function validateSilent () {\n var this$1 = this;\n\r\n this.setFlags({ pending: true });\r\n\r\n return $validator.verify(this.value, this.rules, {\r\n name: this.name,\r\n values: createValuesLookup(this),\r\n bails: this.bails\r\n }).then(function (result) {\r\n this$1.setFlags({ pending: false });\r\n\r\n return result;\r\n });\r\n },\r\n applyResult: function applyResult (ref) {\n var errors = ref.errors;\n\r\n this.messages = errors;\r\n this.setFlags({\r\n valid: !errors.length,\r\n changed: this.value !== this.initialValue,\r\n invalid: !!errors.length,\r\n validated: true\r\n });\r\n },\r\n registerField: function registerField () {\r\n if (!$validator) {\r\n /* istanbul ignore next */\r\n if (process.env.NODE_ENV !== 'production') {\r\n if (!VeeValidate$1.instance) {\r\n warn('You must install vee-validate first before using this component.');\r\n }\r\n }\r\n\r\n $validator = VeeValidate$1.instance._validator;\r\n }\r\n\r\n updateRenderingContextRefs(this);\r\n }\r\n },\r\n computed: {\r\n isValid: function isValid () {\r\n return this.flags.valid;\r\n },\r\n fieldDeps: function fieldDeps () {\n var this$1 = this;\n\r\n var rules = normalizeRules(this.rules);\r\n var providers = this.$_veeObserver.refs;\r\n\r\n return Object.keys(rules).filter(RuleContainer.isTargetRule).map(function (rule) {\r\n var depName = rules[rule][0];\r\n var watcherName = \"$__\" + depName;\r\n if (!isCallable(this$1[watcherName])) {\r\n this$1[watcherName] = providers[depName].$watch('value', function () {\r\n this$1.validate();\r\n });\r\n }\r\n\r\n return depName;\r\n });\r\n },\r\n normalizedEvents: function normalizedEvents () {\n var this$1 = this;\n\r\n return normalizeEvents(this.events).map(function (e) {\r\n if (e === 'input') {\r\n return this$1._inputEventName;\r\n }\r\n\r\n return e;\r\n });\r\n },\r\n isRequired: function isRequired () {\r\n var rules = normalizeRules(this.rules);\r\n\r\n return !!rules.required;\r\n },\r\n classes: function classes () {\n var this$1 = this;\n\r\n var names = VeeValidate$1.config.classNames;\r\n return Object.keys(this.flags).reduce(function (classes, flag) {\r\n var className = (names && names[flag]) || flag;\r\n if (flag === 'invalid') {\r\n classes[className] = !!this$1.messages.length;\r\n\r\n return classes;\r\n }\r\n\r\n if (flag === 'valid') {\r\n classes[className] = !this$1.messages.length;\r\n\r\n return classes;\r\n }\r\n\r\n if (className) {\r\n classes[className] = this$1.flags[flag];\r\n }\r\n\r\n return classes;\r\n }, {});\r\n }\r\n },\r\n render: function render (h) {\n var this$1 = this;\n\r\n this.registerField();\r\n var ctx = createValidationCtx(this);\r\n\r\n // Gracefully handle non-existent scoped slots.\r\n var slot = this.$scopedSlots.default;\r\n if (!isCallable(slot)) {\r\n if (process.env.NODE_ENV !== 'production') {\r\n warn('ValidationProvider expects a scoped slot. Did you forget to add \"slot-scope\" to your slot?');\r\n }\r\n\r\n return createRenderless(h, this.$slots.default);\r\n }\r\n\r\n var nodes = slot(ctx);\r\n // Handle single-root slot.\r\n extractVNodes(nodes).forEach(function (input) {\r\n addListeners.call(this$1, input);\r\n });\r\n\r\n return createRenderless(h, nodes);\r\n },\r\n beforeDestroy: function beforeDestroy () {\r\n // cleanup reference.\r\n this.$_veeObserver.$unsubscribe(this);\r\n }\r\n};\n\nvar flagMergingStrategy = {\r\n pristine: 'every',\r\n dirty: 'some',\r\n touched: 'some',\r\n untouched: 'every',\r\n valid: 'every',\r\n invalid: 'some',\r\n pending: 'some',\r\n validated: 'every'\r\n};\r\n\r\nfunction mergeFlags (lhs, rhs, strategy) {\r\n var stratName = flagMergingStrategy[strategy];\r\n\r\n return [lhs, rhs][stratName](function (f) { return f; });\r\n}\r\n\r\nvar ValidationObserver = {\r\n name: 'ValidationObserver',\r\n provide: function provide () {\r\n return {\r\n $_veeObserver: this\r\n };\r\n },\r\n data: function () { return ({\r\n refs: {}\r\n }); },\r\n methods: {\r\n $subscribe: function $subscribe (provider) {\n var obj;\n\r\n this.refs = Object.assign({}, this.refs, ( obj = {}, obj[provider.vid] = provider, obj ));\r\n },\r\n $unsubscribe: function $unsubscribe (ref) {\n var vid = ref.vid;\n\r\n delete this.refs[vid];\r\n this.refs = Object.assign({}, this.refs);\r\n },\r\n validate: function validate () {\r\n return Promise.all(\r\n values(this.refs).map(function (ref) { return ref.validate(); })\r\n ).then(function (results) { return results.every(function (r) { return r.valid; }); });\r\n },\r\n reset: function reset () {\r\n return values(this.refs).forEach(function (ref) { return ref.reset(); });\r\n }\r\n },\r\n computed: {\r\n ctx: function ctx () {\n var this$1 = this;\n\r\n var ctx = {\r\n errors: {},\r\n validate: function () {\r\n var promise = this$1.validate();\r\n\r\n return {\r\n then: function then (thenable) {\r\n promise.then(function (success) {\r\n if (success && isCallable(thenable)) {\r\n return Promise.resolve(thenable());\r\n }\r\n\r\n return Promise.resolve(success);\r\n });\r\n }\r\n };\r\n },\r\n reset: function () { return this$1.reset(); }\r\n };\r\n\r\n return values(this.refs).reduce(function (acc, provider) {\r\n Object.keys(flagMergingStrategy).forEach(function (flag) {\r\n if (!(flag in acc)) {\r\n acc[flag] = provider.flags[flag];\r\n return;\r\n }\r\n\r\n acc[flag] = mergeFlags(acc[flag], provider.flags[flag], flag);\r\n });\r\n\r\n acc.errors[provider.vid] = provider.messages;\r\n\r\n return acc;\r\n }, ctx);\r\n }\r\n },\r\n render: function render (h) {\r\n var slots = this.$scopedSlots.default;\r\n if (!isCallable(slots)) {\r\n return createRenderless(h, this.$slots.default);\r\n }\r\n\r\n return createRenderless(h, slots(this.ctx));\r\n }\r\n};\n\nfunction withValidation (component, ctxToProps) {\n if ( ctxToProps === void 0 ) ctxToProps = null;\n\r\n var options = isCallable(component) ? component.options : component;\r\n options.$__veeInject = false;\r\n var hoc = {\r\n name: ((options.name || 'AnonymousHoc') + \"WithValidation\"),\r\n props: assign({}, ValidationProvider.props),\r\n data: ValidationProvider.data,\r\n computed: assign({}, ValidationProvider.computed),\r\n methods: assign({}, ValidationProvider.methods),\r\n $__veeInject: false,\r\n beforeDestroy: ValidationProvider.beforeDestroy,\r\n inject: ValidationProvider.inject\r\n };\r\n\r\n // Default ctx converts ctx props to component props.\r\n if (!ctxToProps) {\r\n ctxToProps = function (ctx) { return ctx; };\r\n }\r\n\r\n var eventName = (options.model && options.model.event) || 'input';\r\n\r\n hoc.render = function (h) {\n var obj;\n\r\n this.registerField();\r\n var vctx = createValidationCtx(this);\r\n var listeners = assign({}, this.$listeners);\r\n\r\n var model = findModel(this.$vnode);\r\n this._inputEventName = this._inputEventName || getInputEventName(this.$vnode, model);\r\n onRenderUpdate.call(this, model);\r\n\r\n var ref = createCommonHandlers(this);\n var onInput = ref.onInput;\n var onBlur = ref.onBlur;\n var onValidate = ref.onValidate;\r\n\r\n mergeVNodeListeners(listeners, eventName, onInput);\r\n mergeVNodeListeners(listeners, 'blur', onBlur);\r\n this.normalizedEvents.forEach(function (evt, idx) {\r\n mergeVNodeListeners(listeners, evt, onValidate);\r\n });\r\n\r\n // Props are any attrs not associated with ValidationProvider Plus the model prop.\r\n // WARNING: Accidental prop overwrite will probably happen.\r\n var ref$1 = findModelConfig(this.$vnode) || { prop: 'value' };\n var prop = ref$1.prop;\r\n var props = assign({}, this.$attrs, ( obj = {}, obj[prop] = model.value, obj ), ctxToProps(vctx));\r\n\r\n return h(options, {\r\n attrs: this.$attrs,\r\n props: props,\r\n on: listeners\r\n }, normalizeSlots(this.$slots, this.$vnode.context));\r\n };\r\n\r\n return hoc;\r\n}\n\n// \r\n\r\nvar normalizeValue = function (value) {\r\n if (isObject(value)) {\r\n return Object.keys(value).reduce(function (prev, key) {\r\n prev[key] = normalizeValue(value[key]);\r\n\r\n return prev;\r\n }, {});\r\n }\r\n\r\n if (isCallable(value)) {\r\n return value('{0}', ['{1}', '{2}', '{3}']);\r\n }\r\n\r\n return value;\r\n};\r\n\r\nvar normalizeFormat = function (locale) {\r\n // normalize messages\r\n var dictionary = {};\r\n if (locale.messages) {\r\n dictionary.messages = normalizeValue(locale.messages);\r\n }\r\n\r\n if (locale.custom) {\r\n dictionary.custom = normalizeValue(locale.custom);\r\n }\r\n\r\n if (locale.attributes) {\r\n dictionary.attributes = locale.attributes;\r\n }\r\n\r\n if (!isNullOrUndefined(locale.dateFormat)) {\r\n dictionary.dateFormat = locale.dateFormat;\r\n }\r\n\r\n return dictionary;\r\n};\r\n\r\nvar I18nDictionary = function I18nDictionary (i18n, rootKey) {\r\n this.i18n = i18n;\r\n this.rootKey = rootKey;\r\n};\n\nvar prototypeAccessors$5 = { locale: { configurable: true } };\r\n\r\nprototypeAccessors$5.locale.get = function () {\r\n return this.i18n.locale;\r\n};\r\n\r\nprototypeAccessors$5.locale.set = function (value) {\r\n warn('Cannot set locale from the validator when using vue-i18n, use i18n.locale setter instead');\r\n};\r\n\r\nI18nDictionary.prototype.getDateFormat = function getDateFormat (locale) {\r\n return this.i18n.getDateTimeFormat(locale || this.locale);\r\n};\r\n\r\nI18nDictionary.prototype.setDateFormat = function setDateFormat (locale, value) {\r\n this.i18n.setDateTimeFormat(locale || this.locale, value);\r\n};\r\n\r\nI18nDictionary.prototype.getMessage = function getMessage (_, key, data) {\r\n var path = (this.rootKey) + \".messages.\" + key;\r\n if (this.i18n.te(path)) {\r\n return this.i18n.t(path, data);\r\n }\r\n\r\n // fallback to the fallback message\r\n if (this.i18n.te(path, this.i18n.fallbackLocale)) {\r\n return this.i18n.t(path, this.i18n.fallbackLocale, data);\r\n }\r\n\r\n // fallback to the root message\r\n return this.i18n.t(((this.rootKey) + \".messages._default\"), data);\r\n};\r\n\r\nI18nDictionary.prototype.getAttribute = function getAttribute (_, key, fallback) {\n if ( fallback === void 0 ) fallback = '';\n\r\n var path = (this.rootKey) + \".attributes.\" + key;\r\n if (this.i18n.te(path)) {\r\n return this.i18n.t(path);\r\n }\r\n\r\n return fallback;\r\n};\r\n\r\nI18nDictionary.prototype.getFieldMessage = function getFieldMessage (_, field, key, data) {\r\n var path = (this.rootKey) + \".custom.\" + field + \".\" + key;\r\n if (this.i18n.te(path)) {\r\n return this.i18n.t(path, data);\r\n }\r\n\r\n return this.getMessage(_, key, data);\r\n};\r\n\r\nI18nDictionary.prototype.merge = function merge$1 (dictionary) {\n var this$1 = this;\n\r\n Object.keys(dictionary).forEach(function (localeKey) {\n var obj;\n\r\n // i18n doesn't deep merge\r\n // first clone the existing locale (avoid mutations to locale)\r\n var clone = merge({}, getPath((localeKey + \".\" + (this$1.rootKey)), this$1.i18n.messages, {}));\r\n // Merge cloned locale with new one\r\n var locale = merge(clone, normalizeFormat(dictionary[localeKey]));\r\n this$1.i18n.mergeLocaleMessage(localeKey, ( obj = {}, obj[this$1.rootKey] = locale, obj ));\r\n if (locale.dateFormat) {\r\n this$1.i18n.setDateTimeFormat(localeKey, locale.dateFormat);\r\n }\r\n });\r\n};\r\n\r\nI18nDictionary.prototype.setMessage = function setMessage (locale, key, value) {\n var obj, obj$1;\n\r\n this.merge(( obj$1 = {}, obj$1[locale] = {\r\n messages: ( obj = {}, obj[key] = value, obj )\r\n }, obj$1 ));\r\n};\r\n\r\nI18nDictionary.prototype.setAttribute = function setAttribute (locale, key, value) {\n var obj, obj$1;\n\r\n this.merge(( obj$1 = {}, obj$1[locale] = {\r\n attributes: ( obj = {}, obj[key] = value, obj )\r\n }, obj$1 ));\r\n};\n\nObject.defineProperties( I18nDictionary.prototype, prototypeAccessors$5 );\n\n// \r\n\r\nvar defaultConfig = {\r\n locale: 'en',\r\n delay: 0,\r\n errorBagName: 'errors',\r\n dictionary: null,\r\n fieldsBagName: 'fields',\r\n classes: false,\r\n classNames: null,\r\n events: 'input',\r\n inject: true,\r\n fastExit: true,\r\n aria: true,\r\n validity: false,\r\n i18n: null,\r\n i18nRootKey: 'validation'\r\n};\r\n\r\nvar Vue;\r\nvar pendingPlugins;\r\nvar currentConfig = assign({}, defaultConfig);\r\nvar pluginInstance;\r\n\r\nvar VeeValidate$1 = function VeeValidate (config, _Vue) {\r\n this.configure(config);\r\n pluginInstance = this;\r\n if (_Vue) {\r\n Vue = _Vue;\r\n }\r\n this._validator = new Validator(null, { fastExit: config && config.fastExit });\r\n this._initVM(this.config);\r\n this._initI18n(this.config);\r\n};\n\nvar prototypeAccessors$6 = { i18nDriver: { configurable: true },config: { configurable: true } };\nvar staticAccessors$2 = { instance: { configurable: true },i18nDriver: { configurable: true },config: { configurable: true } };\r\n\r\nVeeValidate$1.setI18nDriver = function setI18nDriver (driver, instance) {\r\n DictionaryResolver.setDriver(driver, instance);\r\n};\r\n\r\nVeeValidate$1.configure = function configure (cfg) {\r\n currentConfig = assign({}, currentConfig, cfg);\r\n};\r\n\r\nVeeValidate$1.use = function use (plugin, options) {\n if ( options === void 0 ) options = {};\n\r\n if (!isCallable(plugin)) {\r\n return warn('The plugin must be a callable function');\r\n }\r\n\r\n // Don't install plugins until vee-validate is installed.\r\n if (!pluginInstance) {\r\n if (!pendingPlugins) {\r\n pendingPlugins = [];\r\n }\r\n pendingPlugins.push({ plugin: plugin, options: options });\r\n return;\r\n }\r\n\r\n plugin({ Validator: Validator, ErrorBag: ErrorBag, Rules: Validator.rules }, options);\r\n};\r\nVeeValidate$1.install = function install (_Vue, opts) {\r\n if (Vue && _Vue === Vue) {\r\n if (process.env.NODE_ENV !== 'production') {\r\n warn('already installed, Vue.use(VeeValidate) should only be called once.');\r\n }\r\n return;\r\n }\r\n\r\n Vue = _Vue;\r\n pluginInstance = new VeeValidate$1(opts);\r\n\r\n detectPassiveSupport();\r\n\r\n Vue.mixin(mixin);\r\n Vue.directive('validate', directive);\r\n if (pendingPlugins) {\r\n pendingPlugins.forEach(function (ref) {\n var plugin = ref.plugin;\n var options = ref.options;\n\r\n VeeValidate$1.use(plugin, options);\r\n });\r\n pendingPlugins = null;\r\n }\r\n};\r\n\r\nstaticAccessors$2.instance.get = function () {\r\n return pluginInstance;\r\n};\r\n\r\nprototypeAccessors$6.i18nDriver.get = function () {\r\n return DictionaryResolver.getDriver();\r\n};\r\n\r\nstaticAccessors$2.i18nDriver.get = function () {\r\n return DictionaryResolver.getDriver();\r\n};\r\n\r\nprototypeAccessors$6.config.get = function () {\r\n return currentConfig;\r\n};\r\n\r\nstaticAccessors$2.config.get = function () {\r\n return currentConfig;\r\n};\r\n\r\nVeeValidate$1.prototype._initVM = function _initVM (config) {\n var this$1 = this;\n\r\n this._vm = new Vue({\r\n data: function () { return ({\r\n errors: this$1._validator.errors,\r\n fields: this$1._validator.fields\r\n }); }\r\n });\r\n};\r\n\r\nVeeValidate$1.prototype._initI18n = function _initI18n (config) {\n var this$1 = this;\n\r\n var dictionary = config.dictionary;\n var i18n = config.i18n;\n var i18nRootKey = config.i18nRootKey;\n var locale = config.locale;\r\n var onLocaleChanged = function () {\r\n this$1._validator.errors.regenerate();\r\n };\r\n\r\n // i18 is being used for localization.\r\n if (i18n) {\r\n VeeValidate$1.setI18nDriver('i18n', new I18nDictionary(i18n, i18nRootKey));\r\n i18n._vm.$watch('locale', onLocaleChanged);\r\n } else if (typeof window !== 'undefined') {\r\n this._vm.$on('localeChanged', onLocaleChanged);\r\n }\r\n\r\n if (dictionary) {\r\n this.i18nDriver.merge(dictionary);\r\n }\r\n\r\n if (locale && !i18n) {\r\n this._validator.localize(locale);\r\n }\r\n};\r\n\r\nVeeValidate$1.prototype.configure = function configure (cfg) {\r\n VeeValidate$1.configure(cfg);\r\n};\r\n\r\nVeeValidate$1.prototype.resolveConfig = function resolveConfig (ctx) {\r\n var selfConfig = getPath('$options.$_veeValidate', ctx, {});\r\n\r\n return assign({}, this.config, selfConfig);\r\n};\n\nObject.defineProperties( VeeValidate$1.prototype, prototypeAccessors$6 );\nObject.defineProperties( VeeValidate$1, staticAccessors$2 );\r\n\r\nVeeValidate$1.version = '2.1.5';\r\nVeeValidate$1.mixin = mixin;\r\nVeeValidate$1.directive = directive;\r\nVeeValidate$1.Validator = Validator;\r\nVeeValidate$1.ErrorBag = ErrorBag;\r\nVeeValidate$1.mapFields = mapFields;\r\nVeeValidate$1.ValidationProvider = ValidationProvider;\r\nVeeValidate$1.ValidationObserver = ValidationObserver;\r\nVeeValidate$1.withValidation = withValidation;\n\n/**\r\n * Formates file size.\r\n *\r\n * @param {Number|String} size\r\n */\r\nvar formatFileSize = function (size) {\r\n var units = ['Byte', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];\r\n var threshold = 1024;\r\n size = Number(size) * threshold;\r\n var i = size === 0 ? 0 : Math.floor(Math.log(size) / Math.log(threshold));\r\n return (((size / Math.pow(threshold, i)).toFixed(2) * 1) + \" \" + (units[i]));\r\n};\r\n\r\n/**\r\n * Checks if vee-validate is defined globally.\r\n */\r\nvar isDefinedGlobally = function () {\r\n return typeof VeeValidate !== 'undefined';\r\n};\n\nvar obj;\n\r\nvar messages = {\r\n _default: function (field) { return (\"The \" + field + \" value is not valid.\"); },\r\n after: function (field, ref) {\n var target = ref[0];\n var inclusion = ref[1];\n\n return (\"The \" + field + \" must be after \" + (inclusion ? 'or equal to ' : '') + target + \".\");\n},\r\n alpha: function (field) { return (\"The \" + field + \" field may only contain alphabetic characters.\"); },\r\n alpha_dash: function (field) { return (\"The \" + field + \" field may contain alpha-numeric characters as well as dashes and underscores.\"); },\r\n alpha_num: function (field) { return (\"The \" + field + \" field may only contain alpha-numeric characters.\"); },\r\n alpha_spaces: function (field) { return (\"The \" + field + \" field may only contain alphabetic characters as well as spaces.\"); },\r\n before: function (field, ref) {\n var target = ref[0];\n var inclusion = ref[1];\n\n return (\"The \" + field + \" must be before \" + (inclusion ? 'or equal to ' : '') + target + \".\");\n},\r\n between: function (field, ref) {\n var min = ref[0];\n var max = ref[1];\n\n return (\"The \" + field + \" field must be between \" + min + \" and \" + max + \".\");\n},\r\n confirmed: function (field) { return (\"The \" + field + \" confirmation does not match.\"); },\r\n credit_card: function (field) { return (\"The \" + field + \" field is invalid.\"); },\r\n date_between: function (field, ref) {\n var min = ref[0];\n var max = ref[1];\n\n return (\"The \" + field + \" must be between \" + min + \" and \" + max + \".\");\n},\r\n date_format: function (field, ref) {\n var format = ref[0];\n\n return (\"The \" + field + \" must be in the format \" + format + \".\");\n},\r\n decimal: function (field, ref) {\n if ( ref === void 0 ) ref = [];\n var decimals = ref[0]; if ( decimals === void 0 ) decimals = '*';\n\n return (\"The \" + field + \" field must be numeric and may contain \" + (!decimals || decimals === '*' ? '' : decimals) + \" decimal points.\");\n},\r\n digits: function (field, ref) {\n var length = ref[0];\n\n return (\"The \" + field + \" field must be numeric and exactly contain \" + length + \" digits.\");\n},\r\n dimensions: function (field, ref) {\n var width = ref[0];\n var height = ref[1];\n\n return (\"The \" + field + \" field must be \" + width + \" pixels by \" + height + \" pixels.\");\n},\r\n email: function (field) { return (\"The \" + field + \" field must be a valid email.\"); },\r\n excluded: function (field) { return (\"The \" + field + \" field must be a valid value.\"); },\r\n ext: function (field) { return (\"The \" + field + \" field must be a valid file.\"); },\r\n image: function (field) { return (\"The \" + field + \" field must be an image.\"); },\r\n included: function (field) { return (\"The \" + field + \" field must be a valid value.\"); },\r\n integer: function (field) { return (\"The \" + field + \" field must be an integer.\"); },\r\n ip: function (field) { return (\"The \" + field + \" field must be a valid ip address.\"); },\r\n length: function (field, ref) {\n var length = ref[0];\n var max = ref[1];\n\r\n if (max) {\r\n return (\"The \" + field + \" length must be between \" + length + \" and \" + max + \".\");\r\n }\r\n\r\n return (\"The \" + field + \" length must be \" + length + \".\");\r\n },\r\n max: function (field, ref) {\n var length = ref[0];\n\n return (\"The \" + field + \" field may not be greater than \" + length + \" characters.\");\n},\r\n max_value: function (field, ref) {\n var max = ref[0];\n\n return (\"The \" + field + \" field must be \" + max + \" or less.\");\n},\r\n mimes: function (field) { return (\"The \" + field + \" field must have a valid file type.\"); },\r\n min: function (field, ref) {\n var length = ref[0];\n\n return (\"The \" + field + \" field must be at least \" + length + \" characters.\");\n},\r\n min_value: function (field, ref) {\n var min = ref[0];\n\n return (\"The \" + field + \" field must be \" + min + \" or more.\");\n},\r\n numeric: function (field) { return (\"The \" + field + \" field may only contain numeric characters.\"); },\r\n regex: function (field) { return (\"The \" + field + \" field format is invalid.\"); },\r\n required: function (field) { return (\"The \" + field + \" field is required.\"); },\r\n size: function (field, ref) {\n var size = ref[0];\n\n return (\"The \" + field + \" size must be less than \" + (formatFileSize(size)) + \".\");\n},\r\n url: function (field) { return (\"The \" + field + \" field is not a valid URL.\"); }\r\n};\r\n\r\nvar locale = {\r\n name: 'en',\r\n messages: messages,\r\n attributes: {}\r\n};\r\n\r\nif (isDefinedGlobally()) {\r\n // eslint-disable-next-line\r\n VeeValidate.Validator.localize(( obj = {}, obj[locale.name] = locale, obj ));\r\n}\n\nvar MILLISECONDS_IN_HOUR = 3600000;\nvar MILLISECONDS_IN_MINUTE = 60000;\nvar DEFAULT_ADDITIONAL_DIGITS = 2;\n\nvar patterns = {\n dateTimeDelimeter: /[T ]/,\n plainTime: /:/,\n\n // year tokens\n YY: /^(\\d{2})$/,\n YYY: [\n /^([+-]\\d{2})$/, // 0 additional digits\n /^([+-]\\d{3})$/, // 1 additional digit\n /^([+-]\\d{4})$/ // 2 additional digits\n ],\n YYYY: /^(\\d{4})/,\n YYYYY: [\n /^([+-]\\d{4})/, // 0 additional digits\n /^([+-]\\d{5})/, // 1 additional digit\n /^([+-]\\d{6})/ // 2 additional digits\n ],\n\n // date tokens\n MM: /^-(\\d{2})$/,\n DDD: /^-?(\\d{3})$/,\n MMDD: /^-?(\\d{2})-?(\\d{2})$/,\n Www: /^-?W(\\d{2})$/,\n WwwD: /^-?W(\\d{2})-?(\\d{1})$/,\n\n HH: /^(\\d{2}([.,]\\d*)?)$/,\n HHMM: /^(\\d{2}):?(\\d{2}([.,]\\d*)?)$/,\n HHMMSS: /^(\\d{2}):?(\\d{2}):?(\\d{2}([.,]\\d*)?)$/,\n\n // timezone tokens\n timezone: /([Z+-].*)$/,\n timezoneZ: /^(Z)$/,\n timezoneHH: /^([+-])(\\d{2})$/,\n timezoneHHMM: /^([+-])(\\d{2}):?(\\d{2})$/\n};\n\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If an argument is a string, the function tries to parse it.\n * Function accepts complete ISO 8601 formats as well as partial implementations.\n * ISO 8601: http://en.wikipedia.org/wiki/ISO_8601\n *\n * If the argument is null, it is treated as an invalid date.\n *\n * If all above fails, the function passes the given argument to Date constructor.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n * All *date-fns* functions will throw `RangeError` if `options.additionalDigits` is not 0, 1, 2 or undefined.\n *\n * @param {*} argument - the value to convert\n * @param {Options} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}\n * @param {0|1|2} [options.additionalDigits=2] - the additional number of digits in the extended year format\n * @returns {Date} the parsed date in the local time zone\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n *\n * @example\n * // Convert string '2014-02-11T11:30:30' to date:\n * var result = toDate('2014-02-11T11:30:30')\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert string '+02014101' to date,\n * // if the additional number of digits in the extended year format is 1:\n * var result = toDate('+02014101', {additionalDigits: 1})\n * //=> Fri Apr 11 2014 00:00:00\n */\nfunction toDate (argument, dirtyOptions) {\n if (arguments.length < 1) {\n throw new TypeError('1 argument required, but only ' + arguments.length + ' present')\n }\n\n if (argument === null) {\n return new Date(NaN)\n }\n\n var options = dirtyOptions || {};\n\n var additionalDigits = options.additionalDigits === undefined ? DEFAULT_ADDITIONAL_DIGITS : Number(options.additionalDigits);\n if (additionalDigits !== 2 && additionalDigits !== 1 && additionalDigits !== 0) {\n throw new RangeError('additionalDigits must be 0, 1 or 2')\n }\n\n // Clone the date\n if (argument instanceof Date) {\n // Prevent the date to lose the milliseconds when passed to new Date() in IE10\n return new Date(argument.getTime())\n } else if (typeof argument !== 'string') {\n return new Date(argument)\n }\n\n var dateStrings = splitDateString(argument);\n\n var parseYearResult = parseYear(dateStrings.date, additionalDigits);\n var year = parseYearResult.year;\n var restDateString = parseYearResult.restDateString;\n\n var date = parseDate(restDateString, year);\n\n if (date) {\n var timestamp = date.getTime();\n var time = 0;\n var offset;\n\n if (dateStrings.time) {\n time = parseTime(dateStrings.time);\n }\n\n if (dateStrings.timezone) {\n offset = parseTimezone(dateStrings.timezone);\n } else {\n // get offset accurate to hour in timezones that change offset\n offset = new Date(timestamp + time).getTimezoneOffset();\n offset = new Date(timestamp + time + offset * MILLISECONDS_IN_MINUTE).getTimezoneOffset();\n }\n\n return new Date(timestamp + time + offset * MILLISECONDS_IN_MINUTE)\n } else {\n return new Date(argument)\n }\n}\n\nfunction splitDateString (dateString) {\n var dateStrings = {};\n var array = dateString.split(patterns.dateTimeDelimeter);\n var timeString;\n\n if (patterns.plainTime.test(array[0])) {\n dateStrings.date = null;\n timeString = array[0];\n } else {\n dateStrings.date = array[0];\n timeString = array[1];\n }\n\n if (timeString) {\n var token = patterns.timezone.exec(timeString);\n if (token) {\n dateStrings.time = timeString.replace(token[1], '');\n dateStrings.timezone = token[1];\n } else {\n dateStrings.time = timeString;\n }\n }\n\n return dateStrings\n}\n\nfunction parseYear (dateString, additionalDigits) {\n var patternYYY = patterns.YYY[additionalDigits];\n var patternYYYYY = patterns.YYYYY[additionalDigits];\n\n var token;\n\n // YYYY or ±YYYYY\n token = patterns.YYYY.exec(dateString) || patternYYYYY.exec(dateString);\n if (token) {\n var yearString = token[1];\n return {\n year: parseInt(yearString, 10),\n restDateString: dateString.slice(yearString.length)\n }\n }\n\n // YY or ±YYY\n token = patterns.YY.exec(dateString) || patternYYY.exec(dateString);\n if (token) {\n var centuryString = token[1];\n return {\n year: parseInt(centuryString, 10) * 100,\n restDateString: dateString.slice(centuryString.length)\n }\n }\n\n // Invalid ISO-formatted year\n return {\n year: null\n }\n}\n\nfunction parseDate (dateString, year) {\n // Invalid ISO-formatted year\n if (year === null) {\n return null\n }\n\n var token;\n var date;\n var month;\n var week;\n\n // YYYY\n if (dateString.length === 0) {\n date = new Date(0);\n date.setUTCFullYear(year);\n return date\n }\n\n // YYYY-MM\n token = patterns.MM.exec(dateString);\n if (token) {\n date = new Date(0);\n month = parseInt(token[1], 10) - 1;\n date.setUTCFullYear(year, month);\n return date\n }\n\n // YYYY-DDD or YYYYDDD\n token = patterns.DDD.exec(dateString);\n if (token) {\n date = new Date(0);\n var dayOfYear = parseInt(token[1], 10);\n date.setUTCFullYear(year, 0, dayOfYear);\n return date\n }\n\n // YYYY-MM-DD or YYYYMMDD\n token = patterns.MMDD.exec(dateString);\n if (token) {\n date = new Date(0);\n month = parseInt(token[1], 10) - 1;\n var day = parseInt(token[2], 10);\n date.setUTCFullYear(year, month, day);\n return date\n }\n\n // YYYY-Www or YYYYWww\n token = patterns.Www.exec(dateString);\n if (token) {\n week = parseInt(token[1], 10) - 1;\n return dayOfISOYear(year, week)\n }\n\n // YYYY-Www-D or YYYYWwwD\n token = patterns.WwwD.exec(dateString);\n if (token) {\n week = parseInt(token[1], 10) - 1;\n var dayOfWeek = parseInt(token[2], 10) - 1;\n return dayOfISOYear(year, week, dayOfWeek)\n }\n\n // Invalid ISO-formatted date\n return null\n}\n\nfunction parseTime (timeString) {\n var token;\n var hours;\n var minutes;\n\n // hh\n token = patterns.HH.exec(timeString);\n if (token) {\n hours = parseFloat(token[1].replace(',', '.'));\n return (hours % 24) * MILLISECONDS_IN_HOUR\n }\n\n // hh:mm or hhmm\n token = patterns.HHMM.exec(timeString);\n if (token) {\n hours = parseInt(token[1], 10);\n minutes = parseFloat(token[2].replace(',', '.'));\n return (hours % 24) * MILLISECONDS_IN_HOUR +\n minutes * MILLISECONDS_IN_MINUTE\n }\n\n // hh:mm:ss or hhmmss\n token = patterns.HHMMSS.exec(timeString);\n if (token) {\n hours = parseInt(token[1], 10);\n minutes = parseInt(token[2], 10);\n var seconds = parseFloat(token[3].replace(',', '.'));\n return (hours % 24) * MILLISECONDS_IN_HOUR +\n minutes * MILLISECONDS_IN_MINUTE +\n seconds * 1000\n }\n\n // Invalid ISO-formatted time\n return null\n}\n\nfunction parseTimezone (timezoneString) {\n var token;\n var absoluteOffset;\n\n // Z\n token = patterns.timezoneZ.exec(timezoneString);\n if (token) {\n return 0\n }\n\n // ±hh\n token = patterns.timezoneHH.exec(timezoneString);\n if (token) {\n absoluteOffset = parseInt(token[2], 10) * 60;\n return (token[1] === '+') ? -absoluteOffset : absoluteOffset\n }\n\n // ±hh:mm or ±hhmm\n token = patterns.timezoneHHMM.exec(timezoneString);\n if (token) {\n absoluteOffset = parseInt(token[2], 10) * 60 + parseInt(token[3], 10);\n return (token[1] === '+') ? -absoluteOffset : absoluteOffset\n }\n\n return 0\n}\n\nfunction dayOfISOYear (isoYear, week, day) {\n week = week || 0;\n day = day || 0;\n var date = new Date(0);\n date.setUTCFullYear(isoYear, 0, 4);\n var fourthOfJanuaryDay = date.getUTCDay() || 7;\n var diff = week * 7 + day + 1 - fourthOfJanuaryDay;\n date.setUTCDate(date.getUTCDate() + diff);\n return date\n}\n\n/**\n * @name addMilliseconds\n * @category Millisecond Helpers\n * @summary Add the specified number of milliseconds to the given date.\n *\n * @description\n * Add the specified number of milliseconds to the given date.\n *\n * @param {Date|String|Number} date - the date to be changed\n * @param {Number} amount - the amount of milliseconds to be added\n * @param {Options} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}\n * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n * @returns {Date} the new date with the milliseconds added\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n *\n * @example\n * // Add 750 milliseconds to 10 July 2014 12:45:30.000:\n * var result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)\n * //=> Thu Jul 10 2014 12:45:30.750\n */\nfunction addMilliseconds (dirtyDate, dirtyAmount, dirtyOptions) {\n if (arguments.length < 2) {\n throw new TypeError('2 arguments required, but only ' + arguments.length + ' present')\n }\n\n var timestamp = toDate(dirtyDate, dirtyOptions).getTime();\n var amount = Number(dirtyAmount);\n return new Date(timestamp + amount)\n}\n\nfunction cloneObject (dirtyObject) {\n dirtyObject = dirtyObject || {};\n var object = {};\n\n for (var property in dirtyObject) {\n if (dirtyObject.hasOwnProperty(property)) {\n object[property] = dirtyObject[property];\n }\n }\n\n return object\n}\n\nvar MILLISECONDS_IN_MINUTE$2 = 60000;\n\n/**\n * @name addMinutes\n * @category Minute Helpers\n * @summary Add the specified number of minutes to the given date.\n *\n * @description\n * Add the specified number of minutes to the given date.\n *\n * @param {Date|String|Number} date - the date to be changed\n * @param {Number} amount - the amount of minutes to be added\n * @param {Options} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}\n * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n * @returns {Date} the new date with the minutes added\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n *\n * @example\n * // Add 30 minutes to 10 July 2014 12:00:00:\n * var result = addMinutes(new Date(2014, 6, 10, 12, 0), 30)\n * //=> Thu Jul 10 2014 12:30:00\n */\nfunction addMinutes (dirtyDate, dirtyAmount, dirtyOptions) {\n if (arguments.length < 2) {\n throw new TypeError('2 arguments required, but only ' + arguments.length + ' present')\n }\n\n var amount = Number(dirtyAmount);\n return addMilliseconds(dirtyDate, amount * MILLISECONDS_IN_MINUTE$2, dirtyOptions)\n}\n\n/**\n * @name isValid\n * @category Common Helpers\n * @summary Is the given date valid?\n *\n * @description\n * Returns false if argument is Invalid Date and true otherwise.\n * Argument is converted to Date using `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n * Invalid Date is a Date, whose time value is NaN.\n *\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @param {*} date - the date to check\n * @param {Options} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}\n * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n * @returns {Boolean} the date is valid\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n *\n * @example\n * // For the valid date:\n * var result = isValid(new Date(2014, 1, 31))\n * //=> true\n *\n * @example\n * // For the value, convertable into a date:\n * var result = isValid('2014-02-31')\n * //=> true\n *\n * @example\n * // For the invalid date:\n * var result = isValid(new Date(''))\n * //=> false\n */\nfunction isValid (dirtyDate, dirtyOptions) {\n if (arguments.length < 1) {\n throw new TypeError('1 argument required, but only ' + arguments.length + ' present')\n }\n\n var date = toDate(dirtyDate, dirtyOptions);\n return !isNaN(date)\n}\n\nvar formatDistanceLocale = {\n lessThanXSeconds: {\n one: 'less than a second',\n other: 'less than {{count}} seconds'\n },\n\n xSeconds: {\n one: '1 second',\n other: '{{count}} seconds'\n },\n\n halfAMinute: 'half a minute',\n\n lessThanXMinutes: {\n one: 'less than a minute',\n other: 'less than {{count}} minutes'\n },\n\n xMinutes: {\n one: '1 minute',\n other: '{{count}} minutes'\n },\n\n aboutXHours: {\n one: 'about 1 hour',\n other: 'about {{count}} hours'\n },\n\n xHours: {\n one: '1 hour',\n other: '{{count}} hours'\n },\n\n xDays: {\n one: '1 day',\n other: '{{count}} days'\n },\n\n aboutXMonths: {\n one: 'about 1 month',\n other: 'about {{count}} months'\n },\n\n xMonths: {\n one: '1 month',\n other: '{{count}} months'\n },\n\n aboutXYears: {\n one: 'about 1 year',\n other: 'about {{count}} years'\n },\n\n xYears: {\n one: '1 year',\n other: '{{count}} years'\n },\n\n overXYears: {\n one: 'over 1 year',\n other: 'over {{count}} years'\n },\n\n almostXYears: {\n one: 'almost 1 year',\n other: 'almost {{count}} years'\n }\n};\n\nfunction formatDistance (token, count, options) {\n options = options || {};\n\n var result;\n if (typeof formatDistanceLocale[token] === 'string') {\n result = formatDistanceLocale[token];\n } else if (count === 1) {\n result = formatDistanceLocale[token].one;\n } else {\n result = formatDistanceLocale[token].other.replace('{{count}}', count);\n }\n\n if (options.addSuffix) {\n if (options.comparison > 0) {\n return 'in ' + result\n } else {\n return result + ' ago'\n }\n }\n\n return result\n}\n\nvar tokensToBeShortedPattern = /MMMM|MM|DD|dddd/g;\n\nfunction buildShortLongFormat (format) {\n return format.replace(tokensToBeShortedPattern, function (token) {\n return token.slice(1)\n })\n}\n\n/**\n * @name buildFormatLongFn\n * @category Locale Helpers\n * @summary Build `formatLong` property for locale used by `format`, `formatRelative` and `parse` functions.\n *\n * @description\n * Build `formatLong` property for locale used by `format`, `formatRelative` and `parse` functions.\n * Returns a function which takes one of the following tokens as the argument:\n * `'LTS'`, `'LT'`, `'L'`, `'LL'`, `'LLL'`, `'l'`, `'ll'`, `'lll'`, `'llll'`\n * and returns a long format string written as `format` token strings.\n * See [format]{@link https://date-fns.org/docs/format}\n *\n * `'l'`, `'ll'`, `'lll'` and `'llll'` formats are built automatically\n * by shortening some of the tokens from corresponding unshortened formats\n * (e.g., if `LL` is `'MMMM DD YYYY'` then `ll` will be `MMM D YYYY`)\n *\n * @param {Object} obj - the object with long formats written as `format` token strings\n * @param {String} obj.LT - time format: hours and minutes\n * @param {String} obj.LTS - time format: hours, minutes and seconds\n * @param {String} obj.L - short date format: numeric day, month and year\n * @param {String} [obj.l] - short date format: numeric day, month and year (shortened)\n * @param {String} obj.LL - long date format: day, month in words, and year\n * @param {String} [obj.ll] - long date format: day, month in words, and year (shortened)\n * @param {String} obj.LLL - long date and time format\n * @param {String} [obj.lll] - long date and time format (shortened)\n * @param {String} obj.LLLL - long date, time and weekday format\n * @param {String} [obj.llll] - long date, time and weekday format (shortened)\n * @returns {Function} `formatLong` property of the locale\n *\n * @example\n * // For `en-US` locale:\n * locale.formatLong = buildFormatLongFn({\n * LT: 'h:mm aa',\n * LTS: 'h:mm:ss aa',\n * L: 'MM/DD/YYYY',\n * LL: 'MMMM D YYYY',\n * LLL: 'MMMM D YYYY h:mm aa',\n * LLLL: 'dddd, MMMM D YYYY h:mm aa'\n * })\n */\nfunction buildFormatLongFn (obj) {\n var formatLongLocale = {\n LTS: obj.LTS,\n LT: obj.LT,\n L: obj.L,\n LL: obj.LL,\n LLL: obj.LLL,\n LLLL: obj.LLLL,\n l: obj.l || buildShortLongFormat(obj.L),\n ll: obj.ll || buildShortLongFormat(obj.LL),\n lll: obj.lll || buildShortLongFormat(obj.LLL),\n llll: obj.llll || buildShortLongFormat(obj.LLLL)\n };\n\n return function (token) {\n return formatLongLocale[token]\n }\n}\n\nvar formatLong = buildFormatLongFn({\n LT: 'h:mm aa',\n LTS: 'h:mm:ss aa',\n L: 'MM/DD/YYYY',\n LL: 'MMMM D YYYY',\n LLL: 'MMMM D YYYY h:mm aa',\n LLLL: 'dddd, MMMM D YYYY h:mm aa'\n});\n\nvar formatRelativeLocale = {\n lastWeek: '[last] dddd [at] LT',\n yesterday: '[yesterday at] LT',\n today: '[today at] LT',\n tomorrow: '[tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n other: 'L'\n};\n\nfunction formatRelative (token, date, baseDate, options) {\n return formatRelativeLocale[token]\n}\n\n/**\n * @name buildLocalizeFn\n * @category Locale Helpers\n * @summary Build `localize.weekday`, `localize.month` and `localize.timeOfDay` properties for the locale.\n *\n * @description\n * Build `localize.weekday`, `localize.month` and `localize.timeOfDay` properties for the locale\n * used by `format` function.\n * If no `type` is supplied to the options of the resulting function, `defaultType` will be used (see example).\n *\n * `localize.weekday` function takes the weekday index as argument (0 - Sunday).\n * `localize.month` takes the month index (0 - January).\n * `localize.timeOfDay` takes the hours. Use `indexCallback` to convert them to an array index (see example).\n *\n * @param {Object} values - the object with arrays of values\n * @param {String} defaultType - the default type for the localize function\n * @param {Function} [indexCallback] - the callback which takes the resulting function argument\n * and converts it into value array index\n * @returns {Function} the resulting function\n *\n * @example\n * var timeOfDayValues = {\n * uppercase: ['AM', 'PM'],\n * lowercase: ['am', 'pm'],\n * long: ['a.m.', 'p.m.']\n * }\n * locale.localize.timeOfDay = buildLocalizeFn(timeOfDayValues, 'long', function (hours) {\n * // 0 is a.m. array index, 1 is p.m. array index\n * return (hours / 12) >= 1 ? 1 : 0\n * })\n * locale.localize.timeOfDay(16, {type: 'uppercase'}) //=> 'PM'\n * locale.localize.timeOfDay(5) //=> 'a.m.'\n */\nfunction buildLocalizeFn (values, defaultType, indexCallback) {\n return function (dirtyIndex, dirtyOptions) {\n var options = dirtyOptions || {};\n var type = options.type ? String(options.type) : defaultType;\n var valuesArray = values[type] || values[defaultType];\n var index = indexCallback ? indexCallback(Number(dirtyIndex)) : Number(dirtyIndex);\n return valuesArray[index]\n }\n}\n\n/**\n * @name buildLocalizeArrayFn\n * @category Locale Helpers\n * @summary Build `localize.weekdays`, `localize.months` and `localize.timesOfDay` properties for the locale.\n *\n * @description\n * Build `localize.weekdays`, `localize.months` and `localize.timesOfDay` properties for the locale.\n * If no `type` is supplied to the options of the resulting function, `defaultType` will be used (see example).\n *\n * @param {Object} values - the object with arrays of values\n * @param {String} defaultType - the default type for the localize function\n * @returns {Function} the resulting function\n *\n * @example\n * var weekdayValues = {\n * narrow: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n * short: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n * long: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']\n * }\n * locale.localize.weekdays = buildLocalizeArrayFn(weekdayValues, 'long')\n * locale.localize.weekdays({type: 'narrow'}) //=> ['Su', 'Mo', ...]\n * locale.localize.weekdays() //=> ['Sunday', 'Monday', ...]\n */\nfunction buildLocalizeArrayFn (values, defaultType) {\n return function (dirtyOptions) {\n var options = dirtyOptions || {};\n var type = options.type ? String(options.type) : defaultType;\n return values[type] || values[defaultType]\n }\n}\n\n// Note: in English, the names of days of the week and months are capitalized.\n// If you are making a new locale based on this one, check if the same is true for the language you're working on.\n// Generally, formatted dates should look like they are in the middle of a sentence,\n// e.g. in Spanish language the weekdays and months should be in the lowercase.\nvar weekdayValues = {\n narrow: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],\n short: ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],\n long: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday']\n};\n\nvar monthValues = {\n short: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],\n long: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December']\n};\n\n// `timeOfDay` is used to designate which part of the day it is, when used with 12-hour clock.\n// Use the system which is used the most commonly in the locale.\n// For example, if the country doesn't use a.m./p.m., you can use `night`/`morning`/`afternoon`/`evening`:\n//\n// var timeOfDayValues = {\n// any: ['in the night', 'in the morning', 'in the afternoon', 'in the evening']\n// }\n//\n// And later:\n//\n// var localize = {\n// // The callback takes the hours as the argument and returns the array index\n// timeOfDay: buildLocalizeFn(timeOfDayValues, 'any', function (hours) {\n// if (hours >= 17) {\n// return 3\n// } else if (hours >= 12) {\n// return 2\n// } else if (hours >= 4) {\n// return 1\n// } else {\n// return 0\n// }\n// }),\n// timesOfDay: buildLocalizeArrayFn(timeOfDayValues, 'any')\n// }\nvar timeOfDayValues = {\n uppercase: ['AM', 'PM'],\n lowercase: ['am', 'pm'],\n long: ['a.m.', 'p.m.']\n};\n\nfunction ordinalNumber (dirtyNumber, dirtyOptions) {\n var number = Number(dirtyNumber);\n\n // If ordinal numbers depend on context, for example,\n // if they are different for different grammatical genders,\n // use `options.unit`:\n //\n // var options = dirtyOptions || {}\n // var unit = String(options.unit)\n //\n // where `unit` can be 'month', 'quarter', 'week', 'isoWeek', 'dayOfYear',\n // 'dayOfMonth' or 'dayOfWeek'\n\n var rem100 = number % 100;\n if (rem100 > 20 || rem100 < 10) {\n switch (rem100 % 10) {\n case 1:\n return number + 'st'\n case 2:\n return number + 'nd'\n case 3:\n return number + 'rd'\n }\n }\n return number + 'th'\n}\n\nvar localize = {\n ordinalNumber: ordinalNumber,\n weekday: buildLocalizeFn(weekdayValues, 'long'),\n weekdays: buildLocalizeArrayFn(weekdayValues, 'long'),\n month: buildLocalizeFn(monthValues, 'long'),\n months: buildLocalizeArrayFn(monthValues, 'long'),\n timeOfDay: buildLocalizeFn(timeOfDayValues, 'long', function (hours) {\n return (hours / 12) >= 1 ? 1 : 0\n }),\n timesOfDay: buildLocalizeArrayFn(timeOfDayValues, 'long')\n};\n\n/**\n * @name buildMatchFn\n * @category Locale Helpers\n * @summary Build `match.weekdays`, `match.months` and `match.timesOfDay` properties for the locale.\n *\n * @description\n * Build `match.weekdays`, `match.months` and `match.timesOfDay` properties for the locale used by `parse` function.\n * If no `type` is supplied to the options of the resulting function, `defaultType` will be used (see example).\n * The result of the match function will be passed into corresponding parser function\n * (`match.weekday`, `match.month` or `match.timeOfDay` respectively. See `buildParseFn`).\n *\n * @param {Object} values - the object with RegExps\n * @param {String} defaultType - the default type for the match function\n * @returns {Function} the resulting function\n *\n * @example\n * var matchWeekdaysPatterns = {\n * narrow: /^(su|mo|tu|we|th|fr|sa)/i,\n * short: /^(sun|mon|tue|wed|thu|fri|sat)/i,\n * long: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i\n * }\n * locale.match.weekdays = buildMatchFn(matchWeekdaysPatterns, 'long')\n * locale.match.weekdays('Sunday', {type: 'narrow'}) //=> ['Su', 'Su', ...]\n * locale.match.weekdays('Sunday') //=> ['Sunday', 'Sunday', ...]\n */\nfunction buildMatchFn (patterns, defaultType) {\n return function (dirtyString, dirtyOptions) {\n var options = dirtyOptions || {};\n var type = options.type ? String(options.type) : defaultType;\n var pattern = patterns[type] || patterns[defaultType];\n var string = String(dirtyString);\n return string.match(pattern)\n }\n}\n\n/**\n * @name buildParseFn\n * @category Locale Helpers\n * @summary Build `match.weekday`, `match.month` and `match.timeOfDay` properties for the locale.\n *\n * @description\n * Build `match.weekday`, `match.month` and `match.timeOfDay` properties for the locale used by `parse` function.\n * The argument of the resulting function is the result of the corresponding match function\n * (`match.weekdays`, `match.months` or `match.timesOfDay` respectively. See `buildMatchFn`).\n *\n * @param {Object} values - the object with arrays of RegExps\n * @param {String} defaultType - the default type for the parser function\n * @returns {Function} the resulting function\n *\n * @example\n * var parseWeekdayPatterns = {\n * any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]\n * }\n * locale.match.weekday = buildParseFn(matchWeekdaysPatterns, 'long')\n * var matchResult = locale.match.weekdays('Friday')\n * locale.match.weekday(matchResult) //=> 5\n */\nfunction buildParseFn (patterns, defaultType) {\n return function (matchResult, dirtyOptions) {\n var options = dirtyOptions || {};\n var type = options.type ? String(options.type) : defaultType;\n var patternsArray = patterns[type] || patterns[defaultType];\n var string = matchResult[1];\n\n return patternsArray.findIndex(function (pattern) {\n return pattern.test(string)\n })\n }\n}\n\n/**\n * @name buildMatchPatternFn\n * @category Locale Helpers\n * @summary Build match function from a single RegExp.\n *\n * @description\n * Build match function from a single RegExp.\n * Usually used for building `match.ordinalNumbers` property of the locale.\n *\n * @param {Object} pattern - the RegExp\n * @returns {Function} the resulting function\n *\n * @example\n * locale.match.ordinalNumbers = buildMatchPatternFn(/^(\\d+)(th|st|nd|rd)?/i)\n * locale.match.ordinalNumbers('3rd') //=> ['3rd', '3', 'rd', ...]\n */\nfunction buildMatchPatternFn (pattern) {\n return function (dirtyString) {\n var string = String(dirtyString);\n return string.match(pattern)\n }\n}\n\n/**\n * @name parseDecimal\n * @category Locale Helpers\n * @summary Parses the match result into decimal number.\n *\n * @description\n * Parses the match result into decimal number.\n * Uses the string matched with the first set of parentheses of match RegExp.\n *\n * @param {Array} matchResult - the object returned by matching function\n * @returns {Number} the parsed value\n *\n * @example\n * locale.match = {\n * ordinalNumbers: (dirtyString) {\n * return String(dirtyString).match(/^(\\d+)(th|st|nd|rd)?/i)\n * },\n * ordinalNumber: parseDecimal\n * }\n */\nfunction parseDecimal (matchResult) {\n return parseInt(matchResult[1], 10)\n}\n\nvar matchOrdinalNumbersPattern = /^(\\d+)(th|st|nd|rd)?/i;\n\nvar matchWeekdaysPatterns = {\n narrow: /^(su|mo|tu|we|th|fr|sa)/i,\n short: /^(sun|mon|tue|wed|thu|fri|sat)/i,\n long: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i\n};\n\nvar parseWeekdayPatterns = {\n any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]\n};\n\nvar matchMonthsPatterns = {\n short: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,\n long: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i\n};\n\nvar parseMonthPatterns = {\n 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]\n};\n\n// `timeOfDay` is used to designate which part of the day it is, when used with 12-hour clock.\n// Use the system which is used the most commonly in the locale.\n// For example, if the country doesn't use a.m./p.m., you can use `night`/`morning`/`afternoon`/`evening`:\n//\n// var matchTimesOfDayPatterns = {\n// long: /^((in the)? (night|morning|afternoon|evening?))/i\n// }\n//\n// var parseTimeOfDayPatterns = {\n// any: [/(night|morning)/i, /(afternoon|evening)/i]\n// }\nvar matchTimesOfDayPatterns = {\n short: /^(am|pm)/i,\n long: /^([ap]\\.?\\s?m\\.?)/i\n};\n\nvar parseTimeOfDayPatterns = {\n any: [/^a/i, /^p/i]\n};\n\nvar match = {\n ordinalNumbers: buildMatchPatternFn(matchOrdinalNumbersPattern),\n ordinalNumber: parseDecimal,\n weekdays: buildMatchFn(matchWeekdaysPatterns, 'long'),\n weekday: buildParseFn(parseWeekdayPatterns, 'any'),\n months: buildMatchFn(matchMonthsPatterns, 'long'),\n month: buildParseFn(parseMonthPatterns, 'any'),\n timesOfDay: buildMatchFn(matchTimesOfDayPatterns, 'long'),\n timeOfDay: buildParseFn(parseTimeOfDayPatterns, 'any')\n};\n\n/**\n * @type {Locale}\n * @category Locales\n * @summary English locale (United States).\n * @language English\n * @iso-639-2 eng\n */\nvar locale$1 = {\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 0 /* Sunday */,\n firstWeekContainsDate: 1\n }\n};\n\nvar MILLISECONDS_IN_DAY$1 = 86400000;\n\n// This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\nfunction getUTCDayOfYear (dirtyDate, dirtyOptions) {\n var date = toDate(dirtyDate, dirtyOptions);\n var timestamp = date.getTime();\n date.setUTCMonth(0, 1);\n date.setUTCHours(0, 0, 0, 0);\n var startOfYearTimestamp = date.getTime();\n var difference = timestamp - startOfYearTimestamp;\n return Math.floor(difference / MILLISECONDS_IN_DAY$1) + 1\n}\n\n// This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\nfunction startOfUTCISOWeek (dirtyDate, dirtyOptions) {\n var weekStartsOn = 1;\n\n var date = toDate(dirtyDate, dirtyOptions);\n var day = date.getUTCDay();\n var diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n\n date.setUTCDate(date.getUTCDate() - diff);\n date.setUTCHours(0, 0, 0, 0);\n return date\n}\n\n// This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\nfunction getUTCISOWeekYear (dirtyDate, dirtyOptions) {\n var date = toDate(dirtyDate, dirtyOptions);\n var year = date.getUTCFullYear();\n\n var fourthOfJanuaryOfNextYear = new Date(0);\n fourthOfJanuaryOfNextYear.setUTCFullYear(year + 1, 0, 4);\n fourthOfJanuaryOfNextYear.setUTCHours(0, 0, 0, 0);\n var startOfNextYear = startOfUTCISOWeek(fourthOfJanuaryOfNextYear, dirtyOptions);\n\n var fourthOfJanuaryOfThisYear = new Date(0);\n fourthOfJanuaryOfThisYear.setUTCFullYear(year, 0, 4);\n fourthOfJanuaryOfThisYear.setUTCHours(0, 0, 0, 0);\n var startOfThisYear = startOfUTCISOWeek(fourthOfJanuaryOfThisYear, dirtyOptions);\n\n if (date.getTime() >= startOfNextYear.getTime()) {\n return year + 1\n } else if (date.getTime() >= startOfThisYear.getTime()) {\n return year\n } else {\n return year - 1\n }\n}\n\n// This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\nfunction startOfUTCISOWeekYear (dirtyDate, dirtyOptions) {\n var year = getUTCISOWeekYear(dirtyDate, dirtyOptions);\n var fourthOfJanuary = new Date(0);\n fourthOfJanuary.setUTCFullYear(year, 0, 4);\n fourthOfJanuary.setUTCHours(0, 0, 0, 0);\n var date = startOfUTCISOWeek(fourthOfJanuary, dirtyOptions);\n return date\n}\n\nvar MILLISECONDS_IN_WEEK$2 = 604800000;\n\n// This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\nfunction getUTCISOWeek (dirtyDate, dirtyOptions) {\n var date = toDate(dirtyDate, dirtyOptions);\n var diff = startOfUTCISOWeek(date, dirtyOptions).getTime() - startOfUTCISOWeekYear(date, dirtyOptions).getTime();\n\n // Round the number of days to the nearest integer\n // because the number of milliseconds in a week is not constant\n // (e.g. it's different in the week of the daylight saving time clock shift)\n return Math.round(diff / MILLISECONDS_IN_WEEK$2) + 1\n}\n\nvar formatters = {\n // Month: 1, 2, ..., 12\n 'M': function (date) {\n return date.getUTCMonth() + 1\n },\n\n // Month: 1st, 2nd, ..., 12th\n 'Mo': function (date, options) {\n var month = date.getUTCMonth() + 1;\n return options.locale.localize.ordinalNumber(month, {unit: 'month'})\n },\n\n // Month: 01, 02, ..., 12\n 'MM': function (date) {\n return addLeadingZeros(date.getUTCMonth() + 1, 2)\n },\n\n // Month: Jan, Feb, ..., Dec\n 'MMM': function (date, options) {\n return options.locale.localize.month(date.getUTCMonth(), {type: 'short'})\n },\n\n // Month: January, February, ..., December\n 'MMMM': function (date, options) {\n return options.locale.localize.month(date.getUTCMonth(), {type: 'long'})\n },\n\n // Quarter: 1, 2, 3, 4\n 'Q': function (date) {\n return Math.ceil((date.getUTCMonth() + 1) / 3)\n },\n\n // Quarter: 1st, 2nd, 3rd, 4th\n 'Qo': function (date, options) {\n var quarter = Math.ceil((date.getUTCMonth() + 1) / 3);\n return options.locale.localize.ordinalNumber(quarter, {unit: 'quarter'})\n },\n\n // Day of month: 1, 2, ..., 31\n 'D': function (date) {\n return date.getUTCDate()\n },\n\n // Day of month: 1st, 2nd, ..., 31st\n 'Do': function (date, options) {\n return options.locale.localize.ordinalNumber(date.getUTCDate(), {unit: 'dayOfMonth'})\n },\n\n // Day of month: 01, 02, ..., 31\n 'DD': function (date) {\n return addLeadingZeros(date.getUTCDate(), 2)\n },\n\n // Day of year: 1, 2, ..., 366\n 'DDD': function (date) {\n return getUTCDayOfYear(date)\n },\n\n // Day of year: 1st, 2nd, ..., 366th\n 'DDDo': function (date, options) {\n return options.locale.localize.ordinalNumber(getUTCDayOfYear(date), {unit: 'dayOfYear'})\n },\n\n // Day of year: 001, 002, ..., 366\n 'DDDD': function (date) {\n return addLeadingZeros(getUTCDayOfYear(date), 3)\n },\n\n // Day of week: Su, Mo, ..., Sa\n 'dd': function (date, options) {\n return options.locale.localize.weekday(date.getUTCDay(), {type: 'narrow'})\n },\n\n // Day of week: Sun, Mon, ..., Sat\n 'ddd': function (date, options) {\n return options.locale.localize.weekday(date.getUTCDay(), {type: 'short'})\n },\n\n // Day of week: Sunday, Monday, ..., Saturday\n 'dddd': function (date, options) {\n return options.locale.localize.weekday(date.getUTCDay(), {type: 'long'})\n },\n\n // Day of week: 0, 1, ..., 6\n 'd': function (date) {\n return date.getUTCDay()\n },\n\n // Day of week: 0th, 1st, 2nd, ..., 6th\n 'do': function (date, options) {\n return options.locale.localize.ordinalNumber(date.getUTCDay(), {unit: 'dayOfWeek'})\n },\n\n // Day of ISO week: 1, 2, ..., 7\n 'E': function (date) {\n return date.getUTCDay() || 7\n },\n\n // ISO week: 1, 2, ..., 53\n 'W': function (date) {\n return getUTCISOWeek(date)\n },\n\n // ISO week: 1st, 2nd, ..., 53th\n 'Wo': function (date, options) {\n return options.locale.localize.ordinalNumber(getUTCISOWeek(date), {unit: 'isoWeek'})\n },\n\n // ISO week: 01, 02, ..., 53\n 'WW': function (date) {\n return addLeadingZeros(getUTCISOWeek(date), 2)\n },\n\n // Year: 00, 01, ..., 99\n 'YY': function (date) {\n return addLeadingZeros(date.getUTCFullYear(), 4).substr(2)\n },\n\n // Year: 1900, 1901, ..., 2099\n 'YYYY': function (date) {\n return addLeadingZeros(date.getUTCFullYear(), 4)\n },\n\n // ISO week-numbering year: 00, 01, ..., 99\n 'GG': function (date) {\n return String(getUTCISOWeekYear(date)).substr(2)\n },\n\n // ISO week-numbering year: 1900, 1901, ..., 2099\n 'GGGG': function (date) {\n return getUTCISOWeekYear(date)\n },\n\n // Hour: 0, 1, ... 23\n 'H': function (date) {\n return date.getUTCHours()\n },\n\n // Hour: 00, 01, ..., 23\n 'HH': function (date) {\n return addLeadingZeros(date.getUTCHours(), 2)\n },\n\n // Hour: 1, 2, ..., 12\n 'h': function (date) {\n var hours = date.getUTCHours();\n if (hours === 0) {\n return 12\n } else if (hours > 12) {\n return hours % 12\n } else {\n return hours\n }\n },\n\n // Hour: 01, 02, ..., 12\n 'hh': function (date) {\n return addLeadingZeros(formatters['h'](date), 2)\n },\n\n // Minute: 0, 1, ..., 59\n 'm': function (date) {\n return date.getUTCMinutes()\n },\n\n // Minute: 00, 01, ..., 59\n 'mm': function (date) {\n return addLeadingZeros(date.getUTCMinutes(), 2)\n },\n\n // Second: 0, 1, ..., 59\n 's': function (date) {\n return date.getUTCSeconds()\n },\n\n // Second: 00, 01, ..., 59\n 'ss': function (date) {\n return addLeadingZeros(date.getUTCSeconds(), 2)\n },\n\n // 1/10 of second: 0, 1, ..., 9\n 'S': function (date) {\n return Math.floor(date.getUTCMilliseconds() / 100)\n },\n\n // 1/100 of second: 00, 01, ..., 99\n 'SS': function (date) {\n return addLeadingZeros(Math.floor(date.getUTCMilliseconds() / 10), 2)\n },\n\n // Millisecond: 000, 001, ..., 999\n 'SSS': function (date) {\n return addLeadingZeros(date.getUTCMilliseconds(), 3)\n },\n\n // Timezone: -01:00, +00:00, ... +12:00\n 'Z': function (date, options) {\n var originalDate = options._originalDate || date;\n return formatTimezone(originalDate.getTimezoneOffset(), ':')\n },\n\n // Timezone: -0100, +0000, ... +1200\n 'ZZ': function (date, options) {\n var originalDate = options._originalDate || date;\n return formatTimezone(originalDate.getTimezoneOffset())\n },\n\n // Seconds timestamp: 512969520\n 'X': function (date, options) {\n var originalDate = options._originalDate || date;\n return Math.floor(originalDate.getTime() / 1000)\n },\n\n // Milliseconds timestamp: 512969520900\n 'x': function (date, options) {\n var originalDate = options._originalDate || date;\n return originalDate.getTime()\n },\n\n // AM, PM\n 'A': function (date, options) {\n return options.locale.localize.timeOfDay(date.getUTCHours(), {type: 'uppercase'})\n },\n\n // am, pm\n 'a': function (date, options) {\n return options.locale.localize.timeOfDay(date.getUTCHours(), {type: 'lowercase'})\n },\n\n // a.m., p.m.\n 'aa': function (date, options) {\n return options.locale.localize.timeOfDay(date.getUTCHours(), {type: 'long'})\n }\n};\n\nfunction formatTimezone (offset, delimeter) {\n delimeter = delimeter || '';\n var sign = offset > 0 ? '-' : '+';\n var absOffset = Math.abs(offset);\n var hours = Math.floor(absOffset / 60);\n var minutes = absOffset % 60;\n return sign + addLeadingZeros(hours, 2) + delimeter + addLeadingZeros(minutes, 2)\n}\n\nfunction addLeadingZeros (number, targetLength) {\n var output = Math.abs(number).toString();\n while (output.length < targetLength) {\n output = '0' + output;\n }\n return output\n}\n\n// This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\nfunction addUTCMinutes (dirtyDate, dirtyAmount, dirtyOptions) {\n var date = toDate(dirtyDate, dirtyOptions);\n var amount = Number(dirtyAmount);\n date.setUTCMinutes(date.getUTCMinutes() + amount);\n return date\n}\n\nvar longFormattingTokensRegExp = /(\\[[^[]*])|(\\\\)?(LTS|LT|LLLL|LLL|LL|L|llll|lll|ll|l)/g;\nvar defaultFormattingTokensRegExp = /(\\[[^[]*])|(\\\\)?(x|ss|s|mm|m|hh|h|do|dddd|ddd|dd|d|aa|a|ZZ|Z|YYYY|YY|X|Wo|WW|W|SSS|SS|S|Qo|Q|Mo|MMMM|MMM|MM|M|HH|H|GGGG|GG|E|Do|DDDo|DDDD|DDD|DD|D|A|.)/g;\n\n/**\n * @name format\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format.\n *\n * Accepted tokens:\n * | Unit | Token | Result examples |\n * |-------------------------|-------|----------------------------------|\n * | Month | M | 1, 2, ..., 12 |\n * | | Mo | 1st, 2nd, ..., 12th |\n * | | MM | 01, 02, ..., 12 |\n * | | MMM | Jan, Feb, ..., Dec |\n * | | MMMM | January, February, ..., December |\n * | Quarter | Q | 1, 2, 3, 4 |\n * | | Qo | 1st, 2nd, 3rd, 4th |\n * | Day of month | D | 1, 2, ..., 31 |\n * | | Do | 1st, 2nd, ..., 31st |\n * | | DD | 01, 02, ..., 31 |\n * | Day of year | DDD | 1, 2, ..., 366 |\n * | | DDDo | 1st, 2nd, ..., 366th |\n * | | DDDD | 001, 002, ..., 366 |\n * | Day of week | d | 0, 1, ..., 6 |\n * | | do | 0th, 1st, ..., 6th |\n * | | dd | Su, Mo, ..., Sa |\n * | | ddd | Sun, Mon, ..., Sat |\n * | | dddd | Sunday, Monday, ..., Saturday |\n * | Day of ISO week | E | 1, 2, ..., 7 |\n * | ISO week | W | 1, 2, ..., 53 |\n * | | Wo | 1st, 2nd, ..., 53rd |\n * | | WW | 01, 02, ..., 53 |\n * | Year | YY | 00, 01, ..., 99 |\n * | | YYYY | 1900, 1901, ..., 2099 |\n * | ISO week-numbering year | GG | 00, 01, ..., 99 |\n * | | GGGG | 1900, 1901, ..., 2099 |\n * | AM/PM | A | AM, PM |\n * | | a | am, pm |\n * | | aa | a.m., p.m. |\n * | Hour | H | 0, 1, ... 23 |\n * | | HH | 00, 01, ... 23 |\n * | | h | 1, 2, ..., 12 |\n * | | hh | 01, 02, ..., 12 |\n * | Minute | m | 0, 1, ..., 59 |\n * | | mm | 00, 01, ..., 59 |\n * | Second | s | 0, 1, ..., 59 |\n * | | ss | 00, 01, ..., 59 |\n * | 1/10 of second | S | 0, 1, ..., 9 |\n * | 1/100 of second | SS | 00, 01, ..., 99 |\n * | Millisecond | SSS | 000, 001, ..., 999 |\n * | Timezone | Z | -01:00, +00:00, ... +12:00 |\n * | | ZZ | -0100, +0000, ..., +1200 |\n * | Seconds timestamp | X | 512969520 |\n * | Milliseconds timestamp | x | 512969520900 |\n * | Long format | LT | 05:30 a.m. |\n * | | LTS | 05:30:15 a.m. |\n * | | L | 07/02/1995 |\n * | | l | 7/2/1995 |\n * | | LL | July 2 1995 |\n * | | ll | Jul 2 1995 |\n * | | LLL | July 2 1995 05:30 a.m. |\n * | | lll | Jul 2 1995 05:30 a.m. |\n * | | LLLL | Sunday, July 2 1995 05:30 a.m. |\n * | | llll | Sun, Jul 2 1995 05:30 a.m. |\n *\n * The characters wrapped in square brackets are escaped.\n *\n * The result may vary by locale.\n *\n * @param {Date|String|Number} date - the original date\n * @param {String} format - the string of tokens\n * @param {Options} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}\n * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the formatted date string\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n * @throws {RangeError} `options.locale` must contain `localize` property\n * @throws {RangeError} `options.locale` must contain `formatLong` property\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * var result = format(\n * new Date(2014, 1, 11),\n * 'MM/DD/YYYY'\n * )\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * var result = format(\n * new Date(2014, 6, 2),\n * 'Do [de] MMMM YYYY',\n * {locale: eoLocale}\n * )\n * //=> '2-a de julio 2014'\n */\nfunction format (dirtyDate, dirtyFormatStr, dirtyOptions) {\n if (arguments.length < 2) {\n throw new TypeError('2 arguments required, but only ' + arguments.length + ' present')\n }\n\n var formatStr = String(dirtyFormatStr);\n var options = dirtyOptions || {};\n\n var locale = options.locale || locale$1;\n\n if (!locale.localize) {\n throw new RangeError('locale must contain localize property')\n }\n\n if (!locale.formatLong) {\n throw new RangeError('locale must contain formatLong property')\n }\n\n var localeFormatters = locale.formatters || {};\n var formattingTokensRegExp = locale.formattingTokensRegExp || defaultFormattingTokensRegExp;\n var formatLong = locale.formatLong;\n\n var originalDate = toDate(dirtyDate, options);\n\n if (!isValid(originalDate, options)) {\n return 'Invalid Date'\n }\n\n // Convert the date in system timezone to the same date in UTC+00:00 timezone.\n // This ensures that when UTC functions will be implemented, locales will be compatible with them.\n // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/376\n var timezoneOffset = originalDate.getTimezoneOffset();\n var utcDate = addUTCMinutes(originalDate, -timezoneOffset, options);\n\n var formatterOptions = cloneObject(options);\n formatterOptions.locale = locale;\n formatterOptions.formatters = formatters;\n\n // When UTC functions will be implemented, options._originalDate will likely be a part of public API.\n // Right now, please don't use it in locales. If you have to use an original date,\n // please restore it from `date`, adding a timezone offset to it.\n formatterOptions._originalDate = originalDate;\n\n var result = formatStr\n .replace(longFormattingTokensRegExp, function (substring) {\n if (substring[0] === '[') {\n return substring\n }\n\n if (substring[0] === '\\\\') {\n return cleanEscapedString(substring)\n }\n\n return formatLong(substring)\n })\n .replace(formattingTokensRegExp, function (substring) {\n var formatter = localeFormatters[substring] || formatters[substring];\n\n if (formatter) {\n return formatter(utcDate, formatterOptions)\n } else {\n return cleanEscapedString(substring)\n }\n });\n\n return result\n}\n\nfunction cleanEscapedString (input) {\n if (input.match(/\\[[\\s\\S]/)) {\n return input.replace(/^\\[|]$/g, '')\n }\n return input.replace(/\\\\/g, '')\n}\n\n/**\n * @name subMinutes\n * @category Minute Helpers\n * @summary Subtract the specified number of minutes from the given date.\n *\n * @description\n * Subtract the specified number of minutes from the given date.\n *\n * @param {Date|String|Number} date - the date to be changed\n * @param {Number} amount - the amount of minutes to be subtracted\n * @param {Options} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}\n * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n * @returns {Date} the new date with the mintues subtracted\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n *\n * @example\n * // Subtract 30 minutes from 10 July 2014 12:00:00:\n * var result = subMinutes(new Date(2014, 6, 10, 12, 0), 30)\n * //=> Thu Jul 10 2014 11:30:00\n */\nfunction subMinutes (dirtyDate, dirtyAmount, dirtyOptions) {\n if (arguments.length < 2) {\n throw new TypeError('2 arguments required, but only ' + arguments.length + ' present')\n }\n\n var amount = Number(dirtyAmount);\n return addMinutes(dirtyDate, -amount, dirtyOptions)\n}\n\n/**\n * @name isAfter\n * @category Common Helpers\n * @summary Is the first date after the second one?\n *\n * @description\n * Is the first date after the second one?\n *\n * @param {Date|String|Number} date - the date that should be after the other one to return true\n * @param {Date|String|Number} dateToCompare - the date to compare with\n * @param {Options} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}\n * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n * @returns {Boolean} the first date is after the second date\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n *\n * @example\n * // Is 10 July 1989 after 11 February 1987?\n * var result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> true\n */\nfunction isAfter (dirtyDate, dirtyDateToCompare, dirtyOptions) {\n if (arguments.length < 2) {\n throw new TypeError('2 arguments required, but only ' + arguments.length + ' present')\n }\n\n var date = toDate(dirtyDate, dirtyOptions);\n var dateToCompare = toDate(dirtyDateToCompare, dirtyOptions);\n return date.getTime() > dateToCompare.getTime()\n}\n\n/**\n * @name isBefore\n * @category Common Helpers\n * @summary Is the first date before the second one?\n *\n * @description\n * Is the first date before the second one?\n *\n * @param {Date|String|Number} date - the date that should be before the other one to return true\n * @param {Date|String|Number} dateToCompare - the date to compare with\n * @param {Options} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}\n * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n * @returns {Boolean} the first date is before the second date\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n *\n * @example\n * // Is 10 July 1989 before 11 February 1987?\n * var result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> false\n */\nfunction isBefore (dirtyDate, dirtyDateToCompare, dirtyOptions) {\n if (arguments.length < 2) {\n throw new TypeError('2 arguments required, but only ' + arguments.length + ' present')\n }\n\n var date = toDate(dirtyDate, dirtyOptions);\n var dateToCompare = toDate(dirtyDateToCompare, dirtyOptions);\n return date.getTime() < dateToCompare.getTime()\n}\n\n/**\n * @name isEqual\n * @category Common Helpers\n * @summary Are the given dates equal?\n *\n * @description\n * Are the given dates equal?\n *\n * @param {Date|String|Number} dateLeft - the first date to compare\n * @param {Date|String|Number} dateRight - the second date to compare\n * @param {Options} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}\n * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n * @returns {Boolean} the dates are equal\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n *\n * @example\n * // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal?\n * var result = isEqual(\n * new Date(2014, 6, 2, 6, 30, 45, 0)\n * new Date(2014, 6, 2, 6, 30, 45, 500)\n * )\n * //=> false\n */\nfunction isEqual$1 (dirtyLeftDate, dirtyRightDate, dirtyOptions) {\n if (arguments.length < 2) {\n throw new TypeError('2 arguments required, but only ' + arguments.length + ' present')\n }\n\n var dateLeft = toDate(dirtyLeftDate, dirtyOptions);\n var dateRight = toDate(dirtyRightDate, dirtyOptions);\n return dateLeft.getTime() === dateRight.getTime()\n}\n\nvar patterns$1 = {\n 'M': /^(1[0-2]|0?\\d)/, // 0 to 12\n 'D': /^(3[0-1]|[0-2]?\\d)/, // 0 to 31\n 'DDD': /^(36[0-6]|3[0-5]\\d|[0-2]?\\d?\\d)/, // 0 to 366\n 'W': /^(5[0-3]|[0-4]?\\d)/, // 0 to 53\n 'YYYY': /^(\\d{1,4})/, // 0 to 9999\n 'H': /^(2[0-3]|[0-1]?\\d)/, // 0 to 23\n 'm': /^([0-5]?\\d)/, // 0 to 59\n 'Z': /^([+-])(\\d{2}):(\\d{2})/,\n 'ZZ': /^([+-])(\\d{2})(\\d{2})/,\n singleDigit: /^(\\d)/,\n twoDigits: /^(\\d{2})/,\n threeDigits: /^(\\d{3})/,\n fourDigits: /^(\\d{4})/,\n anyDigits: /^(\\d+)/\n};\n\nfunction parseDecimal$1 (matchResult) {\n return parseInt(matchResult[1], 10)\n}\n\nvar parsers = {\n // Year: 00, 01, ..., 99\n 'YY': {\n unit: 'twoDigitYear',\n match: patterns$1.twoDigits,\n parse: function (matchResult) {\n return parseDecimal$1(matchResult)\n }\n },\n\n // Year: 1900, 1901, ..., 2099\n 'YYYY': {\n unit: 'year',\n match: patterns$1.YYYY,\n parse: parseDecimal$1\n },\n\n // ISO week-numbering year: 00, 01, ..., 99\n 'GG': {\n unit: 'isoYear',\n match: patterns$1.twoDigits,\n parse: function (matchResult) {\n return parseDecimal$1(matchResult) + 1900\n }\n },\n\n // ISO week-numbering year: 1900, 1901, ..., 2099\n 'GGGG': {\n unit: 'isoYear',\n match: patterns$1.YYYY,\n parse: parseDecimal$1\n },\n\n // Quarter: 1, 2, 3, 4\n 'Q': {\n unit: 'quarter',\n match: patterns$1.singleDigit,\n parse: parseDecimal$1\n },\n\n // Ordinal quarter\n 'Qo': {\n unit: 'quarter',\n match: function (string, options) {\n return options.locale.match.ordinalNumbers(string, {unit: 'quarter'})\n },\n parse: function (matchResult, options) {\n return options.locale.match.ordinalNumber(matchResult, {unit: 'quarter'})\n }\n },\n\n // Month: 1, 2, ..., 12\n 'M': {\n unit: 'month',\n match: patterns$1.M,\n parse: function (matchResult) {\n return parseDecimal$1(matchResult) - 1\n }\n },\n\n // Ordinal month\n 'Mo': {\n unit: 'month',\n match: function (string, options) {\n return options.locale.match.ordinalNumbers(string, {unit: 'month'})\n },\n parse: function (matchResult, options) {\n return options.locale.match.ordinalNumber(matchResult, {unit: 'month'}) - 1\n }\n },\n\n // Month: 01, 02, ..., 12\n 'MM': {\n unit: 'month',\n match: patterns$1.twoDigits,\n parse: function (matchResult) {\n return parseDecimal$1(matchResult) - 1\n }\n },\n\n // Month: Jan, Feb, ..., Dec\n 'MMM': {\n unit: 'month',\n match: function (string, options) {\n return options.locale.match.months(string, {type: 'short'})\n },\n parse: function (matchResult, options) {\n return options.locale.match.month(matchResult, {type: 'short'})\n }\n },\n\n // Month: January, February, ..., December\n 'MMMM': {\n unit: 'month',\n match: function (string, options) {\n return options.locale.match.months(string, {type: 'long'}) ||\n options.locale.match.months(string, {type: 'short'})\n },\n parse: function (matchResult, options) {\n var parseResult = options.locale.match.month(matchResult, {type: 'long'});\n\n if (parseResult == null) {\n parseResult = options.locale.match.month(matchResult, {type: 'short'});\n }\n\n return parseResult\n }\n },\n\n // ISO week: 1, 2, ..., 53\n 'W': {\n unit: 'isoWeek',\n match: patterns$1.W,\n parse: parseDecimal$1\n },\n\n // Ordinal ISO week\n 'Wo': {\n unit: 'isoWeek',\n match: function (string, options) {\n return options.locale.match.ordinalNumbers(string, {unit: 'isoWeek'})\n },\n parse: function (matchResult, options) {\n return options.locale.match.ordinalNumber(matchResult, {unit: 'isoWeek'})\n }\n },\n\n // ISO week: 01, 02, ..., 53\n 'WW': {\n unit: 'isoWeek',\n match: patterns$1.twoDigits,\n parse: parseDecimal$1\n },\n\n // Day of week: 0, 1, ..., 6\n 'd': {\n unit: 'dayOfWeek',\n match: patterns$1.singleDigit,\n parse: parseDecimal$1\n },\n\n // Ordinal day of week\n 'do': {\n unit: 'dayOfWeek',\n match: function (string, options) {\n return options.locale.match.ordinalNumbers(string, {unit: 'dayOfWeek'})\n },\n parse: function (matchResult, options) {\n return options.locale.match.ordinalNumber(matchResult, {unit: 'dayOfWeek'})\n }\n },\n\n // Day of week: Su, Mo, ..., Sa\n 'dd': {\n unit: 'dayOfWeek',\n match: function (string, options) {\n return options.locale.match.weekdays(string, {type: 'narrow'})\n },\n parse: function (matchResult, options) {\n return options.locale.match.weekday(matchResult, {type: 'narrow'})\n }\n },\n\n // Day of week: Sun, Mon, ..., Sat\n 'ddd': {\n unit: 'dayOfWeek',\n match: function (string, options) {\n return options.locale.match.weekdays(string, {type: 'short'}) ||\n options.locale.match.weekdays(string, {type: 'narrow'})\n },\n parse: function (matchResult, options) {\n var parseResult = options.locale.match.weekday(matchResult, {type: 'short'});\n\n if (parseResult == null) {\n parseResult = options.locale.match.weekday(matchResult, {type: 'narrow'});\n }\n\n return parseResult\n }\n },\n\n // Day of week: Sunday, Monday, ..., Saturday\n 'dddd': {\n unit: 'dayOfWeek',\n match: function (string, options) {\n return options.locale.match.weekdays(string, {type: 'long'}) ||\n options.locale.match.weekdays(string, {type: 'short'}) ||\n options.locale.match.weekdays(string, {type: 'narrow'})\n },\n parse: function (matchResult, options) {\n var parseResult = options.locale.match.weekday(matchResult, {type: 'long'});\n\n if (parseResult == null) {\n parseResult = options.locale.match.weekday(matchResult, {type: 'short'});\n\n if (parseResult == null) {\n parseResult = options.locale.match.weekday(matchResult, {type: 'narrow'});\n }\n }\n\n return parseResult\n }\n },\n\n // Day of ISO week: 1, 2, ..., 7\n 'E': {\n unit: 'dayOfISOWeek',\n match: patterns$1.singleDigit,\n parse: function (matchResult) {\n return parseDecimal$1(matchResult)\n }\n },\n\n // Day of month: 1, 2, ..., 31\n 'D': {\n unit: 'dayOfMonth',\n match: patterns$1.D,\n parse: parseDecimal$1\n },\n\n // Ordinal day of month\n 'Do': {\n unit: 'dayOfMonth',\n match: function (string, options) {\n return options.locale.match.ordinalNumbers(string, {unit: 'dayOfMonth'})\n },\n parse: function (matchResult, options) {\n return options.locale.match.ordinalNumber(matchResult, {unit: 'dayOfMonth'})\n }\n },\n\n // Day of month: 01, 02, ..., 31\n 'DD': {\n unit: 'dayOfMonth',\n match: patterns$1.twoDigits,\n parse: parseDecimal$1\n },\n\n // Day of year: 1, 2, ..., 366\n 'DDD': {\n unit: 'dayOfYear',\n match: patterns$1.DDD,\n parse: parseDecimal$1\n },\n\n // Ordinal day of year\n 'DDDo': {\n unit: 'dayOfYear',\n match: function (string, options) {\n return options.locale.match.ordinalNumbers(string, {unit: 'dayOfYear'})\n },\n parse: function (matchResult, options) {\n return options.locale.match.ordinalNumber(matchResult, {unit: 'dayOfYear'})\n }\n },\n\n // Day of year: 001, 002, ..., 366\n 'DDDD': {\n unit: 'dayOfYear',\n match: patterns$1.threeDigits,\n parse: parseDecimal$1\n },\n\n // AM, PM\n 'A': {\n unit: 'timeOfDay',\n match: function (string, options) {\n return options.locale.match.timesOfDay(string, {type: 'short'})\n },\n parse: function (matchResult, options) {\n return options.locale.match.timeOfDay(matchResult, {type: 'short'})\n }\n },\n\n // a.m., p.m.\n 'aa': {\n unit: 'timeOfDay',\n match: function (string, options) {\n return options.locale.match.timesOfDay(string, {type: 'long'}) ||\n options.locale.match.timesOfDay(string, {type: 'short'})\n },\n parse: function (matchResult, options) {\n var parseResult = options.locale.match.timeOfDay(matchResult, {type: 'long'});\n\n if (parseResult == null) {\n parseResult = options.locale.match.timeOfDay(matchResult, {type: 'short'});\n }\n\n return parseResult\n }\n },\n\n // Hour: 0, 1, ... 23\n 'H': {\n unit: 'hours',\n match: patterns$1.H,\n parse: parseDecimal$1\n },\n\n // Hour: 00, 01, ..., 23\n 'HH': {\n unit: 'hours',\n match: patterns$1.twoDigits,\n parse: parseDecimal$1\n },\n\n // Hour: 1, 2, ..., 12\n 'h': {\n unit: 'timeOfDayHours',\n match: patterns$1.M,\n parse: parseDecimal$1\n },\n\n // Hour: 01, 02, ..., 12\n 'hh': {\n unit: 'timeOfDayHours',\n match: patterns$1.twoDigits,\n parse: parseDecimal$1\n },\n\n // Minute: 0, 1, ..., 59\n 'm': {\n unit: 'minutes',\n match: patterns$1.m,\n parse: parseDecimal$1\n },\n\n // Minute: 00, 01, ..., 59\n 'mm': {\n unit: 'minutes',\n match: patterns$1.twoDigits,\n parse: parseDecimal$1\n },\n\n // Second: 0, 1, ..., 59\n 's': {\n unit: 'seconds',\n match: patterns$1.m,\n parse: parseDecimal$1\n },\n\n // Second: 00, 01, ..., 59\n 'ss': {\n unit: 'seconds',\n match: patterns$1.twoDigits,\n parse: parseDecimal$1\n },\n\n // 1/10 of second: 0, 1, ..., 9\n 'S': {\n unit: 'milliseconds',\n match: patterns$1.singleDigit,\n parse: function (matchResult) {\n return parseDecimal$1(matchResult) * 100\n }\n },\n\n // 1/100 of second: 00, 01, ..., 99\n 'SS': {\n unit: 'milliseconds',\n match: patterns$1.twoDigits,\n parse: function (matchResult) {\n return parseDecimal$1(matchResult) * 10\n }\n },\n\n // Millisecond: 000, 001, ..., 999\n 'SSS': {\n unit: 'milliseconds',\n match: patterns$1.threeDigits,\n parse: parseDecimal$1\n },\n\n // Timezone: -01:00, +00:00, ... +12:00\n 'Z': {\n unit: 'timezone',\n match: patterns$1.Z,\n parse: function (matchResult) {\n var sign = matchResult[1];\n var hours = parseInt(matchResult[2], 10);\n var minutes = parseInt(matchResult[3], 10);\n var absoluteOffset = hours * 60 + minutes;\n return (sign === '+') ? absoluteOffset : -absoluteOffset\n }\n },\n\n // Timezone: -0100, +0000, ... +1200\n 'ZZ': {\n unit: 'timezone',\n match: patterns$1.ZZ,\n parse: function (matchResult) {\n var sign = matchResult[1];\n var hours = parseInt(matchResult[2], 10);\n var minutes = parseInt(matchResult[3], 10);\n var absoluteOffset = hours * 60 + minutes;\n return (sign === '+') ? absoluteOffset : -absoluteOffset\n }\n },\n\n // Seconds timestamp: 512969520\n 'X': {\n unit: 'timestamp',\n match: patterns$1.anyDigits,\n parse: function (matchResult) {\n return parseDecimal$1(matchResult) * 1000\n }\n },\n\n // Milliseconds timestamp: 512969520900\n 'x': {\n unit: 'timestamp',\n match: patterns$1.anyDigits,\n parse: parseDecimal$1\n }\n};\n\nparsers['a'] = parsers['A'];\n\n// This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\nfunction setUTCDay (dirtyDate, dirtyDay, dirtyOptions) {\n var options = dirtyOptions || {};\n var locale = options.locale;\n var localeWeekStartsOn = locale && locale.options && locale.options.weekStartsOn;\n var defaultWeekStartsOn = localeWeekStartsOn === undefined ? 0 : Number(localeWeekStartsOn);\n var weekStartsOn = options.weekStartsOn === undefined ? defaultWeekStartsOn : Number(options.weekStartsOn);\n\n // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n throw new RangeError('weekStartsOn must be between 0 and 6 inclusively')\n }\n\n var date = toDate(dirtyDate, dirtyOptions);\n var day = Number(dirtyDay);\n\n var currentDay = date.getUTCDay();\n\n var remainder = day % 7;\n var dayIndex = (remainder + 7) % 7;\n\n var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;\n\n date.setUTCDate(date.getUTCDate() + diff);\n return date\n}\n\n// This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\nfunction setUTCISODay (dirtyDate, dirtyDay, dirtyOptions) {\n var day = Number(dirtyDay);\n\n if (day % 7 === 0) {\n day = day - 7;\n }\n\n var weekStartsOn = 1;\n var date = toDate(dirtyDate, dirtyOptions);\n var currentDay = date.getUTCDay();\n\n var remainder = day % 7;\n var dayIndex = (remainder + 7) % 7;\n\n var diff = (dayIndex < weekStartsOn ? 7 : 0) + day - currentDay;\n\n date.setUTCDate(date.getUTCDate() + diff);\n return date\n}\n\n// This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\nfunction setUTCISOWeek (dirtyDate, dirtyISOWeek, dirtyOptions) {\n var date = toDate(dirtyDate, dirtyOptions);\n var isoWeek = Number(dirtyISOWeek);\n var diff = getUTCISOWeek(date, dirtyOptions) - isoWeek;\n date.setUTCDate(date.getUTCDate() - diff * 7);\n return date\n}\n\nvar MILLISECONDS_IN_DAY$3 = 86400000;\n\n// This function will be a part of public API when UTC function will be implemented.\n// See issue: https://github.com/date-fns/date-fns/issues/376\nfunction setUTCISOWeekYear (dirtyDate, dirtyISOYear, dirtyOptions) {\n var date = toDate(dirtyDate, dirtyOptions);\n var isoYear = Number(dirtyISOYear);\n var dateStartOfYear = startOfUTCISOWeekYear(date, dirtyOptions);\n var diff = Math.floor((date.getTime() - dateStartOfYear.getTime()) / MILLISECONDS_IN_DAY$3);\n var fourthOfJanuary = new Date(0);\n fourthOfJanuary.setUTCFullYear(isoYear, 0, 4);\n fourthOfJanuary.setUTCHours(0, 0, 0, 0);\n date = startOfUTCISOWeekYear(fourthOfJanuary, dirtyOptions);\n date.setUTCDate(date.getUTCDate() + diff);\n return date\n}\n\nvar MILLISECONDS_IN_MINUTE$6 = 60000;\n\nfunction setTimeOfDay (hours, timeOfDay) {\n var isAM = timeOfDay === 0;\n\n if (isAM) {\n if (hours === 12) {\n return 0\n }\n } else {\n if (hours !== 12) {\n return 12 + hours\n }\n }\n\n return hours\n}\n\nvar units = {\n twoDigitYear: {\n priority: 10,\n set: function (dateValues, value) {\n var century = Math.floor(dateValues.date.getUTCFullYear() / 100);\n var year = century * 100 + value;\n dateValues.date.setUTCFullYear(year, 0, 1);\n dateValues.date.setUTCHours(0, 0, 0, 0);\n return dateValues\n }\n },\n\n year: {\n priority: 10,\n set: function (dateValues, value) {\n dateValues.date.setUTCFullYear(value, 0, 1);\n dateValues.date.setUTCHours(0, 0, 0, 0);\n return dateValues\n }\n },\n\n isoYear: {\n priority: 10,\n set: function (dateValues, value, options) {\n dateValues.date = startOfUTCISOWeekYear(setUTCISOWeekYear(dateValues.date, value, options), options);\n return dateValues\n }\n },\n\n quarter: {\n priority: 20,\n set: function (dateValues, value) {\n dateValues.date.setUTCMonth((value - 1) * 3, 1);\n dateValues.date.setUTCHours(0, 0, 0, 0);\n return dateValues\n }\n },\n\n month: {\n priority: 30,\n set: function (dateValues, value) {\n dateValues.date.setUTCMonth(value, 1);\n dateValues.date.setUTCHours(0, 0, 0, 0);\n return dateValues\n }\n },\n\n isoWeek: {\n priority: 40,\n set: function (dateValues, value, options) {\n dateValues.date = startOfUTCISOWeek(setUTCISOWeek(dateValues.date, value, options), options);\n return dateValues\n }\n },\n\n dayOfWeek: {\n priority: 50,\n set: function (dateValues, value, options) {\n dateValues.date = setUTCDay(dateValues.date, value, options);\n dateValues.date.setUTCHours(0, 0, 0, 0);\n return dateValues\n }\n },\n\n dayOfISOWeek: {\n priority: 50,\n set: function (dateValues, value, options) {\n dateValues.date = setUTCISODay(dateValues.date, value, options);\n dateValues.date.setUTCHours(0, 0, 0, 0);\n return dateValues\n }\n },\n\n dayOfMonth: {\n priority: 50,\n set: function (dateValues, value) {\n dateValues.date.setUTCDate(value);\n dateValues.date.setUTCHours(0, 0, 0, 0);\n return dateValues\n }\n },\n\n dayOfYear: {\n priority: 50,\n set: function (dateValues, value) {\n dateValues.date.setUTCMonth(0, value);\n dateValues.date.setUTCHours(0, 0, 0, 0);\n return dateValues\n }\n },\n\n timeOfDay: {\n priority: 60,\n set: function (dateValues, value, options) {\n dateValues.timeOfDay = value;\n return dateValues\n }\n },\n\n hours: {\n priority: 70,\n set: function (dateValues, value, options) {\n dateValues.date.setUTCHours(value, 0, 0, 0);\n return dateValues\n }\n },\n\n timeOfDayHours: {\n priority: 70,\n set: function (dateValues, value, options) {\n var timeOfDay = dateValues.timeOfDay;\n if (timeOfDay != null) {\n value = setTimeOfDay(value, timeOfDay);\n }\n dateValues.date.setUTCHours(value, 0, 0, 0);\n return dateValues\n }\n },\n\n minutes: {\n priority: 80,\n set: function (dateValues, value) {\n dateValues.date.setUTCMinutes(value, 0, 0);\n return dateValues\n }\n },\n\n seconds: {\n priority: 90,\n set: function (dateValues, value) {\n dateValues.date.setUTCSeconds(value, 0);\n return dateValues\n }\n },\n\n milliseconds: {\n priority: 100,\n set: function (dateValues, value) {\n dateValues.date.setUTCMilliseconds(value);\n return dateValues\n }\n },\n\n timezone: {\n priority: 110,\n set: function (dateValues, value) {\n dateValues.date = new Date(dateValues.date.getTime() - value * MILLISECONDS_IN_MINUTE$6);\n return dateValues\n }\n },\n\n timestamp: {\n priority: 120,\n set: function (dateValues, value) {\n dateValues.date = new Date(value);\n return dateValues\n }\n }\n};\n\nvar TIMEZONE_UNIT_PRIORITY = 110;\nvar MILLISECONDS_IN_MINUTE$7 = 60000;\n\nvar longFormattingTokensRegExp$1 = /(\\[[^[]*])|(\\\\)?(LTS|LT|LLLL|LLL|LL|L|llll|lll|ll|l)/g;\nvar defaultParsingTokensRegExp = /(\\[[^[]*])|(\\\\)?(x|ss|s|mm|m|hh|h|do|dddd|ddd|dd|d|aa|a|ZZ|Z|YYYY|YY|X|Wo|WW|W|SSS|SS|S|Qo|Q|Mo|MMMM|MMM|MM|M|HH|H|GGGG|GG|E|Do|DDDo|DDDD|DDD|DD|D|A|.)/g;\n\n/**\n * @name parse\n * @category Common Helpers\n * @summary Parse the date.\n *\n * @description\n * Return the date parsed from string using the given format.\n *\n * Accepted format tokens:\n * | Unit | Priority | Token | Input examples |\n * |-------------------------|----------|-------|----------------------------------|\n * | Year | 10 | YY | 00, 01, ..., 99 |\n * | | | YYYY | 1900, 1901, ..., 2099 |\n * | ISO week-numbering year | 10 | GG | 00, 01, ..., 99 |\n * | | | GGGG | 1900, 1901, ..., 2099 |\n * | Quarter | 20 | Q | 1, 2, 3, 4 |\n * | | | Qo | 1st, 2nd, 3rd, 4th |\n * | Month | 30 | M | 1, 2, ..., 12 |\n * | | | Mo | 1st, 2nd, ..., 12th |\n * | | | MM | 01, 02, ..., 12 |\n * | | | MMM | Jan, Feb, ..., Dec |\n * | | | MMMM | January, February, ..., December |\n * | ISO week | 40 | W | 1, 2, ..., 53 |\n * | | | Wo | 1st, 2nd, ..., 53rd |\n * | | | WW | 01, 02, ..., 53 |\n * | Day of week | 50 | d | 0, 1, ..., 6 |\n * | | | do | 0th, 1st, ..., 6th |\n * | | | dd | Su, Mo, ..., Sa |\n * | | | ddd | Sun, Mon, ..., Sat |\n * | | | dddd | Sunday, Monday, ..., Saturday |\n * | Day of ISO week | 50 | E | 1, 2, ..., 7 |\n * | Day of month | 50 | D | 1, 2, ..., 31 |\n * | | | Do | 1st, 2nd, ..., 31st |\n * | | | DD | 01, 02, ..., 31 |\n * | Day of year | 50 | DDD | 1, 2, ..., 366 |\n * | | | DDDo | 1st, 2nd, ..., 366th |\n * | | | DDDD | 001, 002, ..., 366 |\n * | Time of day | 60 | A | AM, PM |\n * | | | a | am, pm |\n * | | | aa | a.m., p.m. |\n * | Hour | 70 | H | 0, 1, ... 23 |\n * | | | HH | 00, 01, ... 23 |\n * | Time of day hour | 70 | h | 1, 2, ..., 12 |\n * | | | hh | 01, 02, ..., 12 |\n * | Minute | 80 | m | 0, 1, ..., 59 |\n * | | | mm | 00, 01, ..., 59 |\n * | Second | 90 | s | 0, 1, ..., 59 |\n * | | | ss | 00, 01, ..., 59 |\n * | 1/10 of second | 100 | S | 0, 1, ..., 9 |\n * | 1/100 of second | 100 | SS | 00, 01, ..., 99 |\n * | Millisecond | 100 | SSS | 000, 001, ..., 999 |\n * | Timezone | 110 | Z | -01:00, +00:00, ... +12:00 |\n * | | | ZZ | -0100, +0000, ..., +1200 |\n * | Seconds timestamp | 120 | X | 512969520 |\n * | Milliseconds timestamp | 120 | x | 512969520900 |\n *\n * Values will be assigned to the date in the ascending order of its unit's priority.\n * Units of an equal priority overwrite each other in the order of appearance.\n *\n * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),\n * the values will be taken from 3rd argument `baseDate` which works as a context of parsing.\n *\n * `baseDate` must be passed for correct work of the function.\n * If you're not sure which `baseDate` to supply, create a new instance of Date:\n * `parse('02/11/2014', 'MM/DD/YYYY', new Date())`\n * In this case parsing will be done in the context of the current date.\n * If `baseDate` is `Invalid Date` or a value not convertible to valid `Date`,\n * then `Invalid Date` will be returned.\n *\n * Also, `parse` unfolds long formats like those in [format]{@link https://date-fns.org/docs/format}:\n * | Token | Input examples |\n * |-------|--------------------------------|\n * | LT | 05:30 a.m. |\n * | LTS | 05:30:15 a.m. |\n * | L | 07/02/1995 |\n * | l | 7/2/1995 |\n * | LL | July 2 1995 |\n * | ll | Jul 2 1995 |\n * | LLL | July 2 1995 05:30 a.m. |\n * | lll | Jul 2 1995 05:30 a.m. |\n * | LLLL | Sunday, July 2 1995 05:30 a.m. |\n * | llll | Sun, Jul 2 1995 05:30 a.m. |\n *\n * The characters wrapped in square brackets in the format string are escaped.\n *\n * The result may vary by locale.\n *\n * If `formatString` matches with `dateString` but does not provides tokens, `baseDate` will be returned.\n *\n * If parsing failed, `Invalid Date` will be returned.\n * Invalid Date is a Date, whose time value is NaN.\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @param {String} dateString - the string to parse\n * @param {String} formatString - the string of tokens\n * @param {Date|String|Number} baseDate - the date to took the missing higher priority values from\n * @param {Options} [options] - the object with options. See [Options]{@link https://date-fns.org/docs/Options}\n * @param {0|1|2} [options.additionalDigits=2] - passed to `toDate`. See [toDate]{@link https://date-fns.org/docs/toDate}\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @param {0|1|2|3|4|5|6} [options.weekStartsOn=0] - the index of the first day of the week (0 - Sunday)\n * @returns {Date} the parsed date\n * @throws {TypeError} 3 arguments required\n * @throws {RangeError} `options.additionalDigits` must be 0, 1 or 2\n * @throws {RangeError} `options.weekStartsOn` must be between 0 and 6\n * @throws {RangeError} `options.locale` must contain `match` property\n * @throws {RangeError} `options.locale` must contain `formatLong` property\n *\n * @example\n * // Parse 11 February 2014 from middle-endian format:\n * var result = parse(\n * '02/11/2014',\n * 'MM/DD/YYYY',\n * new Date()\n * )\n * //=> Tue Feb 11 2014 00:00:00\n *\n * @example\n * // Parse 28th of February in English locale in the context of 2010 year:\n * import eoLocale from 'date-fns/locale/eo'\n * var result = parse(\n * '28-a de februaro',\n * 'Do [de] MMMM',\n * new Date(2010, 0, 1)\n * {locale: eoLocale}\n * )\n * //=> Sun Feb 28 2010 00:00:00\n */\nfunction parse (dirtyDateString, dirtyFormatString, dirtyBaseDate, dirtyOptions) {\n if (arguments.length < 3) {\n throw new TypeError('3 arguments required, but only ' + arguments.length + ' present')\n }\n\n var dateString = String(dirtyDateString);\n var options = dirtyOptions || {};\n\n var weekStartsOn = options.weekStartsOn === undefined ? 0 : Number(options.weekStartsOn);\n\n // Test if weekStartsOn is between 0 and 6 _and_ is not NaN\n if (!(weekStartsOn >= 0 && weekStartsOn <= 6)) {\n throw new RangeError('weekStartsOn must be between 0 and 6 inclusively')\n }\n\n var locale = options.locale || locale$1;\n var localeParsers = locale.parsers || {};\n var localeUnits = locale.units || {};\n\n if (!locale.match) {\n throw new RangeError('locale must contain match property')\n }\n\n if (!locale.formatLong) {\n throw new RangeError('locale must contain formatLong property')\n }\n\n var formatString = String(dirtyFormatString)\n .replace(longFormattingTokensRegExp$1, function (substring) {\n if (substring[0] === '[') {\n return substring\n }\n\n if (substring[0] === '\\\\') {\n return cleanEscapedString$1(substring)\n }\n\n return locale.formatLong(substring)\n });\n\n if (formatString === '') {\n if (dateString === '') {\n return toDate(dirtyBaseDate, options)\n } else {\n return new Date(NaN)\n }\n }\n\n var subFnOptions = cloneObject(options);\n subFnOptions.locale = locale;\n\n var tokens = formatString.match(locale.parsingTokensRegExp || defaultParsingTokensRegExp);\n var tokensLength = tokens.length;\n\n // If timezone isn't specified, it will be set to the system timezone\n var setters = [{\n priority: TIMEZONE_UNIT_PRIORITY,\n set: dateToSystemTimezone,\n index: 0\n }];\n\n var i;\n for (i = 0; i < tokensLength; i++) {\n var token = tokens[i];\n var parser = localeParsers[token] || parsers[token];\n if (parser) {\n var matchResult;\n\n if (parser.match instanceof RegExp) {\n matchResult = parser.match.exec(dateString);\n } else {\n matchResult = parser.match(dateString, subFnOptions);\n }\n\n if (!matchResult) {\n return new Date(NaN)\n }\n\n var unitName = parser.unit;\n var unit = localeUnits[unitName] || units[unitName];\n\n setters.push({\n priority: unit.priority,\n set: unit.set,\n value: parser.parse(matchResult, subFnOptions),\n index: setters.length\n });\n\n var substring = matchResult[0];\n dateString = dateString.slice(substring.length);\n } else {\n var head = tokens[i].match(/^\\[.*]$/) ? tokens[i].replace(/^\\[|]$/g, '') : tokens[i];\n if (dateString.indexOf(head) === 0) {\n dateString = dateString.slice(head.length);\n } else {\n return new Date(NaN)\n }\n }\n }\n\n var uniquePrioritySetters = setters\n .map(function (setter) {\n return setter.priority\n })\n .sort(function (a, b) {\n return a - b\n })\n .filter(function (priority, index, array) {\n return array.indexOf(priority) === index\n })\n .map(function (priority) {\n return setters\n .filter(function (setter) {\n return setter.priority === priority\n })\n .reverse()\n })\n .map(function (setterArray) {\n return setterArray[0]\n });\n\n var date = toDate(dirtyBaseDate, options);\n\n if (isNaN(date)) {\n return new Date(NaN)\n }\n\n // Convert the date in system timezone to the same date in UTC+00:00 timezone.\n // This ensures that when UTC functions will be implemented, locales will be compatible with them.\n // See an issue about UTC functions: https://github.com/date-fns/date-fns/issues/37\n var utcDate = subMinutes(date, date.getTimezoneOffset());\n\n var dateValues = {date: utcDate};\n\n var settersLength = uniquePrioritySetters.length;\n for (i = 0; i < settersLength; i++) {\n var setter = uniquePrioritySetters[i];\n dateValues = setter.set(dateValues, setter.value, subFnOptions);\n }\n\n return dateValues.date\n}\n\nfunction dateToSystemTimezone (dateValues) {\n var date = dateValues.date;\n var time = date.getTime();\n\n // Get the system timezone offset at (moment of time - offset)\n var offset = date.getTimezoneOffset();\n\n // Get the system timezone offset at the exact moment of time\n offset = new Date(time + offset * MILLISECONDS_IN_MINUTE$7).getTimezoneOffset();\n\n // Convert date in timezone \"UTC+00:00\" to the system timezone\n dateValues.date = new Date(time + offset * MILLISECONDS_IN_MINUTE$7);\n\n return dateValues\n}\n\nfunction cleanEscapedString$1 (input) {\n if (input.match(/\\[[\\s\\S]/)) {\n return input.replace(/^\\[|]$/g, '')\n }\n return input.replace(/\\\\/g, '')\n}\n\n// This file is generated automatically by `scripts/build/indices.js`. Please, don't change it.\n\n// \r\n\r\n/**\r\n * Custom parse behavior on top of date-fns parse function.\r\n */\r\nfunction parseDate$1 (date, format$$1) {\r\n if (typeof date !== 'string') {\r\n return isValid(date) ? date : null;\r\n }\r\n\r\n var parsed = parse(date, format$$1, new Date());\r\n\r\n // if date is not valid or the formatted output after parsing does not match\r\n // the string value passed in (avoids overflows)\r\n if (!isValid(parsed) || format(parsed, format$$1) !== date) {\r\n return null;\r\n }\r\n\r\n return parsed;\r\n}\n\nvar afterValidator = function (value, ref) {\n if ( ref === void 0 ) ref = {};\n var targetValue = ref.targetValue;\n var inclusion = ref.inclusion; if ( inclusion === void 0 ) inclusion = false;\n var format$$1 = ref.format;\n\r\n if (typeof format$$1 === 'undefined') {\r\n format$$1 = inclusion;\r\n inclusion = false;\r\n }\r\n\r\n value = parseDate$1(value, format$$1);\r\n targetValue = parseDate$1(targetValue, format$$1);\r\n\r\n // if either is not valid.\r\n if (!value || !targetValue) {\r\n return false;\r\n }\r\n\r\n return isAfter(value, targetValue) || (inclusion && isEqual$1(value, targetValue));\r\n};\r\n\r\nvar options = {\r\n hasTarget: true,\r\n isDate: true\r\n};\r\n\r\n// required to convert from a list of array values to an object.\r\nvar paramNames = ['targetValue', 'inclusion', 'format'];\r\n\r\nvar after = {\r\n validate: afterValidator,\r\n options: options,\r\n paramNames: paramNames\r\n};\n\n/**\r\n * Some Alpha Regex helpers.\r\n * https://github.com/chriso/validator.js/blob/master/src/lib/alpha.js\r\n */\r\n\r\nvar alpha = {\r\n en: /^[A-Z]*$/i,\r\n cs: /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]*$/i,\r\n da: /^[A-ZÆØÅ]*$/i,\r\n de: /^[A-ZÄÖÜß]*$/i,\r\n es: /^[A-ZÁÉÍÑÓÚÜ]*$/i,\r\n fr: /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]*$/i,\r\n lt: /^[A-ZĄČĘĖĮŠŲŪŽ]*$/i,\r\n nl: /^[A-ZÉËÏÓÖÜ]*$/i,\r\n hu: /^[A-ZÁÉÍÓÖŐÚÜŰ]*$/i,\r\n pl: /^[A-ZĄĆĘŚŁŃÓŻŹ]*$/i,\r\n pt: /^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]*$/i,\r\n ru: /^[А-ЯЁ]*$/i,\r\n sk: /^[A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ]*$/i,\r\n sr: /^[A-ZČĆŽŠĐ]*$/i,\r\n sv: /^[A-ZÅÄÖ]*$/i,\r\n tr: /^[A-ZÇĞİıÖŞÜ]*$/i,\r\n uk: /^[А-ЩЬЮЯЄІЇҐ]*$/i,\r\n ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]*$/\r\n};\r\n\r\nvar alphaSpaces = {\r\n en: /^[A-Z\\s]*$/i,\r\n cs: /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ\\s]*$/i,\r\n da: /^[A-ZÆØÅ\\s]*$/i,\r\n de: /^[A-ZÄÖÜß\\s]*$/i,\r\n es: /^[A-ZÁÉÍÑÓÚÜ\\s]*$/i,\r\n fr: /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ\\s]*$/i,\r\n lt: /^[A-ZĄČĘĖĮŠŲŪŽ\\s]*$/i,\r\n nl: /^[A-ZÉËÏÓÖÜ\\s]*$/i,\r\n hu: /^[A-ZÁÉÍÓÖŐÚÜŰ\\s]*$/i,\r\n pl: /^[A-ZĄĆĘŚŁŃÓŻŹ\\s]*$/i,\r\n pt: /^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ\\s]*$/i,\r\n ru: /^[А-ЯЁ\\s]*$/i,\r\n sk: /^[A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ\\s]*$/i,\r\n sr: /^[A-ZČĆŽŠĐ\\s]*$/i,\r\n sv: /^[A-ZÅÄÖ\\s]*$/i,\r\n tr: /^[A-ZÇĞİıÖŞÜ\\s]*$/i,\r\n uk: /^[А-ЩЬЮЯЄІЇҐ\\s]*$/i,\r\n ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ\\s]*$/\r\n};\r\n\r\nvar alphanumeric = {\r\n en: /^[0-9A-Z]*$/i,\r\n cs: /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]*$/i,\r\n da: /^[0-9A-ZÆØÅ]$/i,\r\n de: /^[0-9A-ZÄÖÜß]*$/i,\r\n es: /^[0-9A-ZÁÉÍÑÓÚÜ]*$/i,\r\n fr: /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]*$/i,\r\n lt: /^[0-9A-ZĄČĘĖĮŠŲŪŽ]*$/i,\r\n hu: /^[0-9A-ZÁÉÍÓÖŐÚÜŰ]*$/i,\r\n nl: /^[0-9A-ZÉËÏÓÖÜ]*$/i,\r\n pl: /^[0-9A-ZĄĆĘŚŁŃÓŻŹ]*$/i,\r\n pt: /^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]*$/i,\r\n ru: /^[0-9А-ЯЁ]*$/i,\r\n sk: /^[0-9A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ]*$/i,\r\n sr: /^[0-9A-ZČĆŽŠĐ]*$/i,\r\n sv: /^[0-9A-ZÅÄÖ]*$/i,\r\n tr: /^[0-9A-ZÇĞİıÖŞÜ]*$/i,\r\n uk: /^[0-9А-ЩЬЮЯЄІЇҐ]*$/i,\r\n ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]*$/\r\n};\r\n\r\nvar alphaDash = {\r\n en: /^[0-9A-Z_-]*$/i,\r\n cs: /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ_-]*$/i,\r\n da: /^[0-9A-ZÆØÅ_-]*$/i,\r\n de: /^[0-9A-ZÄÖÜß_-]*$/i,\r\n es: /^[0-9A-ZÁÉÍÑÓÚÜ_-]*$/i,\r\n fr: /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ_-]*$/i,\r\n lt: /^[0-9A-ZĄČĘĖĮŠŲŪŽ_-]*$/i,\r\n nl: /^[0-9A-ZÉËÏÓÖÜ_-]*$/i,\r\n hu: /^[0-9A-ZÁÉÍÓÖŐÚÜŰ_-]*$/i,\r\n pl: /^[0-9A-ZĄĆĘŚŁŃÓŻŹ_-]*$/i,\r\n pt: /^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ_-]*$/i,\r\n ru: /^[0-9А-ЯЁ_-]*$/i,\r\n sk: /^[0-9A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ_-]*$/i,\r\n sr: /^[0-9A-ZČĆŽŠĐ_-]*$/i,\r\n sv: /^[0-9A-ZÅÄÖ_-]*$/i,\r\n tr: /^[0-9A-ZÇĞİıÖŞÜ_-]*$/i,\r\n uk: /^[0-9А-ЩЬЮЯЄІЇҐ_-]*$/i,\r\n ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ_-]*$/\r\n};\n\nvar validate = function (value, ref) {\n if ( ref === void 0 ) ref = {};\n var locale = ref.locale;\n\r\n if (Array.isArray(value)) {\r\n return value.every(function (val) { return validate(val, [locale]); });\r\n }\r\n\r\n // Match at least one locale.\r\n if (! locale) {\r\n return Object.keys(alpha).some(function (loc) { return alpha[loc].test(value); });\r\n }\r\n\r\n return (alpha[locale] || alpha.en).test(value);\r\n};\r\n\r\nvar paramNames$1 = ['locale'];\r\n\r\nvar alpha$1 = {\r\n validate: validate,\r\n paramNames: paramNames$1\r\n};\n\nvar validate$1 = function (value, ref) {\n if ( ref === void 0 ) ref = {};\n var locale = ref.locale;\n\r\n if (Array.isArray(value)) {\r\n return value.every(function (val) { return validate$1(val, [locale]); });\r\n }\r\n\r\n // Match at least one locale.\r\n if (! locale) {\r\n return Object.keys(alphaDash).some(function (loc) { return alphaDash[loc].test(value); });\r\n }\r\n\r\n return (alphaDash[locale] || alphaDash.en).test(value);\r\n};\r\n\r\nvar paramNames$2 = ['locale'];\r\n\r\nvar alpha_dash = {\r\n validate: validate$1,\r\n paramNames: paramNames$2\r\n};\n\nvar validate$2 = function (value, ref) {\n if ( ref === void 0 ) ref = {};\n var locale = ref.locale;\n\r\n if (Array.isArray(value)) {\r\n return value.every(function (val) { return validate$2(val, [locale]); });\r\n }\r\n\r\n // Match at least one locale.\r\n if (! locale) {\r\n return Object.keys(alphanumeric).some(function (loc) { return alphanumeric[loc].test(value); });\r\n }\r\n\r\n return (alphanumeric[locale] || alphanumeric.en).test(value);\r\n};\r\n\r\nvar paramNames$3 = ['locale'];\r\n\r\nvar alpha_num = {\r\n validate: validate$2,\r\n paramNames: paramNames$3\r\n};\n\nvar validate$3 = function (value, ref) {\n if ( ref === void 0 ) ref = {};\n var locale = ref.locale;\n\r\n if (Array.isArray(value)) {\r\n return value.every(function (val) { return validate$3(val, [locale]); });\r\n }\r\n\r\n // Match at least one locale.\r\n if (! locale) {\r\n return Object.keys(alphaSpaces).some(function (loc) { return alphaSpaces[loc].test(value); });\r\n }\r\n\r\n return (alphaSpaces[locale] || alphaSpaces.en).test(value);\r\n};\r\n\r\nvar paramNames$4 = ['locale'];\r\n\r\nvar alpha_spaces = {\r\n validate: validate$3,\r\n paramNames: paramNames$4\r\n};\n\nvar validate$4 = function (value, ref) {\n if ( ref === void 0 ) ref = {};\n var targetValue = ref.targetValue;\n var inclusion = ref.inclusion; if ( inclusion === void 0 ) inclusion = false;\n var format$$1 = ref.format;\n\r\n if (typeof format$$1 === 'undefined') {\r\n format$$1 = inclusion;\r\n inclusion = false;\r\n }\r\n\r\n value = parseDate$1(value, format$$1);\r\n targetValue = parseDate$1(targetValue, format$$1);\r\n\r\n // if either is not valid.\r\n if (!value || !targetValue) {\r\n return false;\r\n }\r\n\r\n return isBefore(value, targetValue) || (inclusion && isEqual$1(value, targetValue));\r\n};\r\n\r\nvar options$1 = {\r\n hasTarget: true,\r\n isDate: true\r\n};\r\n\r\nvar paramNames$5 = ['targetValue', 'inclusion', 'format'];\r\n\r\nvar before = {\r\n validate: validate$4,\r\n options: options$1,\r\n paramNames: paramNames$5\r\n};\n\nvar validate$5 = function (value, ref) {\n if ( ref === void 0 ) ref = {};\n var min = ref.min;\n var max = ref.max;\n\r\n if (Array.isArray(value)) {\r\n return value.every(function (val) { return validate$5(val, { min: min, max: max }); });\r\n }\r\n\r\n return Number(min) <= value && Number(max) >= value;\r\n};\r\n\r\nvar paramNames$6 = ['min', 'max'];\r\n\r\nvar between = {\r\n validate: validate$5,\r\n paramNames: paramNames$6\r\n};\n\nvar validate$6 = function (value, ref) {\n var targetValue = ref.targetValue;\n\n return String(value) === String(targetValue);\n};\r\nvar options$2 = {\r\n hasTarget: true\r\n};\r\n\r\nvar paramNames$7 = ['targetValue'];\r\n\r\nvar confirmed = {\r\n validate: validate$6,\r\n options: options$2,\r\n paramNames: paramNames$7\r\n};\n\nfunction unwrapExports (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x.default : x;\n}\n\nfunction createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nvar assertString_1 = createCommonjsModule(function (module, exports) {\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexports.default = assertString;\nfunction assertString(input) {\n var isString = typeof input === 'string' || input instanceof String;\n\n if (!isString) {\n var invalidType = void 0;\n if (input === null) {\n invalidType = 'null';\n } else {\n invalidType = typeof input === 'undefined' ? 'undefined' : _typeof(input);\n if (invalidType === 'object' && input.constructor && input.constructor.hasOwnProperty('name')) {\n invalidType = input.constructor.name;\n } else {\n invalidType = 'a ' + invalidType;\n }\n }\n throw new TypeError('Expected string but received ' + invalidType + '.');\n }\n}\nmodule.exports = exports['default'];\n});\n\nunwrapExports(assertString_1);\n\nvar isCreditCard_1 = createCommonjsModule(function (module, exports) {\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isCreditCard;\n\n\n\nvar _assertString2 = _interopRequireDefault(assertString_1);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/* eslint-disable max-len */\nvar creditCard = /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\\d{3})\\d{11}|6[27][0-9]{14})$/;\n/* eslint-enable max-len */\n\nfunction isCreditCard(str) {\n (0, _assertString2.default)(str);\n var sanitized = str.replace(/[- ]+/g, '');\n if (!creditCard.test(sanitized)) {\n return false;\n }\n var sum = 0;\n var digit = void 0;\n var tmpNum = void 0;\n var shouldDouble = void 0;\n for (var i = sanitized.length - 1; i >= 0; i--) {\n digit = sanitized.substring(i, i + 1);\n tmpNum = parseInt(digit, 10);\n if (shouldDouble) {\n tmpNum *= 2;\n if (tmpNum >= 10) {\n sum += tmpNum % 10 + 1;\n } else {\n sum += tmpNum;\n }\n } else {\n sum += tmpNum;\n }\n shouldDouble = !shouldDouble;\n }\n return !!(sum % 10 === 0 ? sanitized : false);\n}\nmodule.exports = exports['default'];\n});\n\nvar isCreditCard = unwrapExports(isCreditCard_1);\n\nvar validate$7 = function (value) { return isCreditCard(String(value)); };\r\n\r\nvar credit_card = {\r\n validate: validate$7\r\n};\n\nvar validate$8 = function (value, ref) {\n if ( ref === void 0 ) ref = {};\n var min$$1 = ref.min;\n var max$$1 = ref.max;\n var inclusivity = ref.inclusivity; if ( inclusivity === void 0 ) inclusivity = '()';\n var format$$1 = ref.format;\n\r\n if (typeof format$$1 === 'undefined') {\r\n format$$1 = inclusivity;\r\n inclusivity = '()';\r\n }\r\n\r\n var minDate = parseDate$1(String(min$$1), format$$1);\r\n var maxDate = parseDate$1(String(max$$1), format$$1);\r\n var dateVal = parseDate$1(String(value), format$$1);\r\n\r\n if (!minDate || !maxDate || !dateVal) {\r\n return false;\r\n }\r\n\r\n if (inclusivity === '()') {\r\n return isAfter(dateVal, minDate) && isBefore(dateVal, maxDate);\r\n }\r\n\r\n if (inclusivity === '(]') {\r\n return isAfter(dateVal, minDate) && (isEqual$1(dateVal, maxDate) || isBefore(dateVal, maxDate));\r\n }\r\n\r\n if (inclusivity === '[)') {\r\n return isBefore(dateVal, maxDate) && (isEqual$1(dateVal, minDate) || isAfter(dateVal, minDate));\r\n }\r\n\r\n return isEqual$1(dateVal, maxDate) || isEqual$1(dateVal, minDate) ||\r\n (isBefore(dateVal, maxDate) && isAfter(dateVal, minDate));\r\n};\r\n\r\nvar options$3 = {\r\n isDate: true\r\n};\r\n\r\nvar paramNames$8 = ['min', 'max', 'inclusivity', 'format'];\r\n\r\nvar date_between = {\r\n validate: validate$8,\r\n options: options$3,\r\n paramNames: paramNames$8\r\n};\n\nvar validate$9 = function (value, ref) {\n var format = ref.format;\n\r\n return !!parseDate$1(value, format);\r\n};\r\n\r\nvar options$4 = {\r\n isDate: true\r\n};\r\n\r\nvar paramNames$9 = ['format'];\r\n\r\nvar date_format = {\r\n validate: validate$9,\r\n options: options$4,\r\n paramNames: paramNames$9\r\n};\n\nvar validate$a = function (value, ref) {\n if ( ref === void 0 ) ref = {};\n var decimals = ref.decimals; if ( decimals === void 0 ) decimals = '*';\n var separator = ref.separator; if ( separator === void 0 ) separator = '.';\n\r\n if (Array.isArray(value)) {\r\n return value.every(function (val) { return validate$a(val, { decimals: decimals, separator: separator }); });\r\n }\r\n\r\n if (value === null || value === undefined || value === '') {\r\n return false;\r\n }\r\n\r\n // if is 0.\r\n if (Number(decimals) === 0) {\r\n return /^-?\\d*$/.test(value);\r\n }\r\n\r\n var regexPart = decimals === '*' ? '+' : (\"{1,\" + decimals + \"}\");\r\n var regex = new RegExp((\"^[-+]?\\\\d*(\\\\\" + separator + \"\\\\d\" + regexPart + \")?$\"));\r\n\r\n if (! regex.test(value)) {\r\n return false;\r\n }\r\n\r\n var parsedValue = parseFloat(value);\r\n\r\n // eslint-disable-next-line\r\n return parsedValue === parsedValue;\r\n};\r\n\r\nvar paramNames$a = ['decimals', 'separator'];\r\n\r\nvar decimal = {\r\n validate: validate$a,\r\n paramNames: paramNames$a\r\n};\n\nvar validate$b = function (value, ref) {\n var length = ref[0];\n\r\n if (Array.isArray(value)) {\r\n return value.every(function (val) { return validate$b(val, [length]); });\r\n }\r\n var strVal = String(value);\r\n\r\n return /^[0-9]*$/.test(strVal) && strVal.length === Number(length);\r\n};\r\n\r\nvar digits = {\r\n validate: validate$b\r\n};\n\nvar validateImage = function (file, width, height) {\r\n var URL = window.URL || window.webkitURL;\r\n return new Promise(function (resolve) {\r\n var image = new Image();\r\n image.onerror = function () { return resolve({ valid: false }); };\r\n image.onload = function () { return resolve({\r\n valid: image.width === Number(width) && image.height === Number(height)\r\n }); };\r\n\r\n image.src = URL.createObjectURL(file);\r\n });\r\n};\r\n\r\nvar validate$c = function (files, ref) {\n var width = ref[0];\n var height = ref[1];\n\r\n var list = [];\r\n for (var i = 0; i < files.length; i++) {\r\n // if file is not an image, reject.\r\n if (! /\\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(files[i].name)) {\r\n return false;\r\n }\r\n\r\n list.push(files[i]);\r\n }\r\n\r\n return Promise.all(list.map(function (file) { return validateImage(file, width, height); }));\r\n};\r\n\r\nvar dimensions = {\r\n validate: validate$c\r\n};\n\nvar merge_1 = createCommonjsModule(function (module, exports) {\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = merge;\nfunction merge() {\n var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var defaults = arguments[1];\n\n for (var key in defaults) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = defaults[key];\n }\n }\n return obj;\n}\nmodule.exports = exports['default'];\n});\n\nunwrapExports(merge_1);\n\nvar isByteLength_1 = createCommonjsModule(function (module, exports) {\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nexports.default = isByteLength;\n\n\n\nvar _assertString2 = _interopRequireDefault(assertString_1);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\n/* eslint-disable prefer-rest-params */\nfunction isByteLength(str, options) {\n (0, _assertString2.default)(str);\n var min = void 0;\n var max = void 0;\n if ((typeof options === 'undefined' ? 'undefined' : _typeof(options)) === 'object') {\n min = options.min || 0;\n max = options.max;\n } else {\n // backwards compatibility: isByteLength(str, min [, max])\n min = arguments[1];\n max = arguments[2];\n }\n var len = encodeURI(str).split(/%..|./).length - 1;\n return len >= min && (typeof max === 'undefined' || len <= max);\n}\nmodule.exports = exports['default'];\n});\n\nunwrapExports(isByteLength_1);\n\nvar isFQDN_1 = createCommonjsModule(function (module, exports) {\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isFQDN;\n\n\n\nvar _assertString2 = _interopRequireDefault(assertString_1);\n\n\n\nvar _merge2 = _interopRequireDefault(merge_1);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar default_fqdn_options = {\n require_tld: true,\n allow_underscores: false,\n allow_trailing_dot: false\n};\n\nfunction isFQDN(str, options) {\n (0, _assertString2.default)(str);\n options = (0, _merge2.default)(options, default_fqdn_options);\n\n /* Remove the optional trailing dot before checking validity */\n if (options.allow_trailing_dot && str[str.length - 1] === '.') {\n str = str.substring(0, str.length - 1);\n }\n var parts = str.split('.');\n for (var i = 0; i < parts.length; i++) {\n if (parts[i].length > 63) {\n return false;\n }\n }\n if (options.require_tld) {\n var tld = parts.pop();\n if (!parts.length || !/^([a-z\\u00a1-\\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {\n return false;\n }\n // disallow spaces\n if (/[\\s\\u2002-\\u200B\\u202F\\u205F\\u3000\\uFEFF\\uDB40\\uDC20]/.test(tld)) {\n return false;\n }\n }\n for (var part, _i = 0; _i < parts.length; _i++) {\n part = parts[_i];\n if (options.allow_underscores) {\n part = part.replace(/_/g, '');\n }\n if (!/^[a-z\\u00a1-\\uffff0-9-]+$/i.test(part)) {\n return false;\n }\n // disallow full-width chars\n if (/[\\uff01-\\uff5e]/.test(part)) {\n return false;\n }\n if (part[0] === '-' || part[part.length - 1] === '-') {\n return false;\n }\n }\n return true;\n}\nmodule.exports = exports['default'];\n});\n\nunwrapExports(isFQDN_1);\n\nvar isIP_1 = createCommonjsModule(function (module, exports) {\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isIP;\n\n\n\nvar _assertString2 = _interopRequireDefault(assertString_1);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar ipv4Maybe = /^(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})\\.(\\d{1,3})$/;\nvar ipv6Block = /^[0-9A-F]{1,4}$/i;\n\nfunction isIP(str) {\n var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n\n (0, _assertString2.default)(str);\n version = String(version);\n if (!version) {\n return isIP(str, 4) || isIP(str, 6);\n } else if (version === '4') {\n if (!ipv4Maybe.test(str)) {\n return false;\n }\n var parts = str.split('.').sort(function (a, b) {\n return a - b;\n });\n return parts[3] <= 255;\n } else if (version === '6') {\n var blocks = str.split(':');\n var foundOmissionBlock = false; // marker to indicate ::\n\n // At least some OS accept the last 32 bits of an IPv6 address\n // (i.e. 2 of the blocks) in IPv4 notation, and RFC 3493 says\n // that '::ffff:a.b.c.d' is valid for IPv4-mapped IPv6 addresses,\n // and '::a.b.c.d' is deprecated, but also valid.\n var foundIPv4TransitionBlock = isIP(blocks[blocks.length - 1], 4);\n var expectedNumberOfBlocks = foundIPv4TransitionBlock ? 7 : 8;\n\n if (blocks.length > expectedNumberOfBlocks) {\n return false;\n }\n // initial or final ::\n if (str === '::') {\n return true;\n } else if (str.substr(0, 2) === '::') {\n blocks.shift();\n blocks.shift();\n foundOmissionBlock = true;\n } else if (str.substr(str.length - 2) === '::') {\n blocks.pop();\n blocks.pop();\n foundOmissionBlock = true;\n }\n\n for (var i = 0; i < blocks.length; ++i) {\n // test for a :: which can not be at the string start/end\n // since those cases have been handled above\n if (blocks[i] === '' && i > 0 && i < blocks.length - 1) {\n if (foundOmissionBlock) {\n return false; // multiple :: in address\n }\n foundOmissionBlock = true;\n } else if (foundIPv4TransitionBlock && i === blocks.length - 1) ; else if (!ipv6Block.test(blocks[i])) {\n return false;\n }\n }\n if (foundOmissionBlock) {\n return blocks.length >= 1;\n }\n return blocks.length === expectedNumberOfBlocks;\n }\n return false;\n}\nmodule.exports = exports['default'];\n});\n\nvar isIP = unwrapExports(isIP_1);\n\nvar isEmail_1 = createCommonjsModule(function (module, exports) {\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isEmail;\n\n\n\nvar _assertString2 = _interopRequireDefault(assertString_1);\n\n\n\nvar _merge2 = _interopRequireDefault(merge_1);\n\n\n\nvar _isByteLength2 = _interopRequireDefault(isByteLength_1);\n\n\n\nvar _isFQDN2 = _interopRequireDefault(isFQDN_1);\n\n\n\nvar _isIP2 = _interopRequireDefault(isIP_1);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar default_email_options = {\n allow_display_name: false,\n require_display_name: false,\n allow_utf8_local_part: true,\n require_tld: true\n};\n\n/* eslint-disable max-len */\n/* eslint-disable no-control-regex */\nvar displayName = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~\\.\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~\\,\\.\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF\\s]*<(.+)>$/i;\nvar emailUserPart = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]+$/i;\nvar gmailUserPart = /^[a-z\\d]+$/;\nvar quotedEmailUser = /^([\\s\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f\\x21\\x23-\\x5b\\x5d-\\x7e]|(\\\\[\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]))*$/i;\nvar emailUserUtf8Part = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+$/i;\nvar quotedEmailUserUtf8 = /^([\\s\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f\\x21\\x23-\\x5b\\x5d-\\x7e\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]|(\\\\[\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))*$/i;\n/* eslint-enable max-len */\n/* eslint-enable no-control-regex */\n\nfunction isEmail(str, options) {\n (0, _assertString2.default)(str);\n options = (0, _merge2.default)(options, default_email_options);\n\n if (options.require_display_name || options.allow_display_name) {\n var display_email = str.match(displayName);\n if (display_email) {\n str = display_email[1];\n } else if (options.require_display_name) {\n return false;\n }\n }\n\n var parts = str.split('@');\n var domain = parts.pop();\n var user = parts.join('@');\n\n var lower_domain = domain.toLowerCase();\n\n if (options.domain_specific_validation && (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com')) {\n /*\n Previously we removed dots for gmail addresses before validating.\n This was removed because it allows `multiple..dots@gmail.com`\n to be reported as valid, but it is not.\n Gmail only normalizes single dots, removing them from here is pointless,\n should be done in normalizeEmail\n */\n user = user.toLowerCase();\n\n // Removing sub-address from username before gmail validation\n var username = user.split('+')[0];\n\n // Dots are not included in gmail length restriction\n if (!(0, _isByteLength2.default)(username.replace('.', ''), { min: 6, max: 30 })) {\n return false;\n }\n\n var _user_parts = username.split('.');\n for (var i = 0; i < _user_parts.length; i++) {\n if (!gmailUserPart.test(_user_parts[i])) {\n return false;\n }\n }\n }\n\n if (!(0, _isByteLength2.default)(user, { max: 64 }) || !(0, _isByteLength2.default)(domain, { max: 254 })) {\n return false;\n }\n\n if (!(0, _isFQDN2.default)(domain, { require_tld: options.require_tld })) {\n if (!options.allow_ip_domain) {\n return false;\n }\n\n if (!(0, _isIP2.default)(domain)) {\n if (!domain.startsWith('[') || !domain.endsWith(']')) {\n return false;\n }\n\n var noBracketdomain = domain.substr(1, domain.length - 2);\n\n if (noBracketdomain.length === 0 || !(0, _isIP2.default)(noBracketdomain)) {\n return false;\n }\n }\n }\n\n if (user[0] === '\"') {\n user = user.slice(1, user.length - 1);\n return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user);\n }\n\n var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;\n\n var user_parts = user.split('.');\n for (var _i = 0; _i < user_parts.length; _i++) {\n if (!pattern.test(user_parts[_i])) {\n return false;\n }\n }\n\n return true;\n}\nmodule.exports = exports['default'];\n});\n\nvar isEmail = unwrapExports(isEmail_1);\n\nvar validate$d = function (value, options) {\n if ( options === void 0 ) options = {};\n\r\n if (options.multiple) {\r\n value = value.split(',').map(function (emailStr) { return emailStr.trim(); });\r\n }\r\n\r\n if (Array.isArray(value)) {\r\n return value.every(function (val) { return isEmail(String(val), options); });\r\n }\r\n\r\n return isEmail(String(value), options);\r\n};\r\n\r\nvar email = {\r\n validate: validate$d\r\n};\n\nvar validate$e = function (value, options) {\r\n if (Array.isArray(value)) {\r\n return value.every(function (val) { return validate$e(val, options); });\r\n }\r\n\r\n return toArray(options).some(function (item) {\r\n // eslint-disable-next-line\r\n return item == value;\r\n });\r\n};\r\n\r\nvar included = {\r\n validate: validate$e\r\n};\n\nvar validate$f = function () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\r\n return !validate$e.apply(void 0, args);\r\n};\r\n\r\nvar excluded = {\r\n validate: validate$f\r\n};\n\nvar validate$g = function (files, extensions) {\r\n var regex = new RegExp((\".(\" + (extensions.join('|')) + \")$\"), 'i');\r\n\r\n return files.every(function (file) { return regex.test(file.name); });\r\n};\r\n\r\nvar ext = {\r\n validate: validate$g\r\n};\n\nvar validate$h = function (files) { return files.every(function (file) { return /\\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(file.name); }); };\r\n\r\nvar image = {\r\n validate: validate$h\r\n};\n\nvar validate$i = function (value) {\r\n if (Array.isArray(value)) {\r\n return value.every(function (val) { return /^-?[0-9]+$/.test(String(val)); });\r\n }\r\n\r\n return /^-?[0-9]+$/.test(String(value));\r\n};\r\n\r\nvar integer = {\r\n validate: validate$i\r\n};\n\nvar validate$j = function (value, ref) {\n if ( ref === void 0 ) ref = {};\n var version = ref.version; if ( version === void 0 ) version = 4;\n\r\n if (isNullOrUndefined(value)) {\r\n value = '';\r\n }\r\n\r\n if (Array.isArray(value)) {\r\n return value.every(function (val) { return isIP(val, version); });\r\n }\r\n\r\n return isIP(value, version);\r\n};\r\n\r\nvar paramNames$b = ['version'];\r\n\r\nvar ip = {\r\n validate: validate$j,\r\n paramNames: paramNames$b\r\n};\n\nvar validate$k = function (value, ref) {\n if ( ref === void 0 ) ref = [];\n var other = ref[0];\n\r\n return value === other;\r\n};\r\n\r\nvar is = {\r\n validate: validate$k\r\n};\n\nvar validate$l = function (value, ref) {\n if ( ref === void 0 ) ref = [];\n var other = ref[0];\n\r\n return value !== other;\r\n};\r\n\r\nvar is_not = {\r\n validate: validate$l\r\n};\n\n/**\r\n * @param {Array|String} value\r\n * @param {Number} length\r\n * @param {Number} max\r\n */\r\nvar compare = function (value, length, max) {\r\n if (max === undefined) {\r\n return value.length === length;\r\n }\r\n\r\n // cast to number.\r\n max = Number(max);\r\n\r\n return value.length >= length && value.length <= max;\r\n};\r\n\r\nvar validate$m = function (value, ref) {\n var length = ref[0];\n var max = ref[1]; if ( max === void 0 ) max = undefined;\n\r\n length = Number(length);\r\n if (value === undefined || value === null) {\r\n return false;\r\n }\r\n\r\n if (typeof value === 'number') {\r\n value = String(value);\r\n }\r\n\r\n if (!value.length) {\r\n value = toArray(value);\r\n }\r\n\r\n return compare(value, length, max);\r\n};\r\n\r\nvar length = {\r\n validate: validate$m\r\n};\n\nvar validate$n = function (value, ref) {\n var length = ref[0];\n\r\n if (value === undefined || value === null) {\r\n return length >= 0;\r\n }\r\n\r\n if (Array.isArray(value)) {\r\n return value.every(function (val) { return validate$n(val, [length]); });\r\n }\r\n\r\n return String(value).length <= length;\r\n};\r\n\r\nvar max$1 = {\r\n validate: validate$n\r\n};\n\nvar validate$o = function (value, ref) {\n var max = ref[0];\n\r\n if (value === null || value === undefined || value === '') {\r\n return false;\r\n }\r\n\r\n if (Array.isArray(value)) {\r\n return value.length > 0 && value.every(function (val) { return validate$o(val, [max]); });\r\n }\r\n\r\n return Number(value) <= max;\r\n};\r\n\r\nvar max_value = {\r\n validate: validate$o\r\n};\n\nvar validate$p = function (files, mimes) {\r\n var regex = new RegExp(((mimes.join('|').replace('*', '.+')) + \"$\"), 'i');\r\n\r\n return files.every(function (file) { return regex.test(file.type); });\r\n};\r\n\r\nvar mimes = {\r\n validate: validate$p\r\n};\n\nvar validate$q = function (value, ref) {\n var length = ref[0];\n\r\n if (value === undefined || value === null) {\r\n return false;\r\n }\r\n\r\n if (Array.isArray(value)) {\r\n return value.every(function (val) { return validate$q(val, [length]); });\r\n }\r\n\r\n return String(value).length >= length;\r\n};\r\n\r\nvar min$1 = {\r\n validate: validate$q\r\n};\n\nvar validate$r = function (value, ref) {\n var min = ref[0];\n\r\n if (value === null || value === undefined || value === '') {\r\n return false;\r\n }\r\n\r\n if (Array.isArray(value)) {\r\n return value.length > 0 && value.every(function (val) { return validate$r(val, [min]); });\r\n }\r\n\r\n return Number(value) >= min;\r\n};\r\n\r\nvar min_value = {\r\n validate: validate$r\r\n};\n\nvar validate$s = function (value) {\r\n if (Array.isArray(value)) {\r\n return value.every(function (val) { return /^[0-9]+$/.test(String(val)); });\r\n }\r\n\r\n return /^[0-9]+$/.test(String(value));\r\n};\r\n\r\nvar numeric = {\r\n validate: validate$s\r\n};\n\nvar validate$t = function (value, ref) {\n var expression = ref.expression;\n\r\n if (typeof expression === 'string') {\r\n expression = new RegExp(expression);\r\n }\r\n\r\n if (Array.isArray(value)) {\r\n return value.every(function (val) { return validate$t(val, { expression: expression }); });\r\n }\r\n\r\n return expression.test(String(value));\r\n};\r\n\r\nvar paramNames$c = ['expression'];\r\n\r\nvar regex = {\r\n validate: validate$t,\r\n paramNames: paramNames$c\r\n};\n\nvar validate$u = function (value, ref) {\n if ( ref === void 0 ) ref = [];\n var invalidateFalse = ref[0]; if ( invalidateFalse === void 0 ) invalidateFalse = false;\n\r\n if (isEmptyArray(value)) {\r\n return false;\r\n }\r\n\r\n // incase a field considers `false` as an empty value like checkboxes.\r\n if (value === false && invalidateFalse) {\r\n return false;\r\n }\r\n\r\n if (value === undefined || value === null) {\r\n return false;\r\n }\r\n\r\n return !!String(value).trim().length;\r\n};\r\n\r\nvar required = {\r\n validate: validate$u\r\n};\n\nvar validate$v = function (files, ref) {\n var size = ref[0];\n\r\n if (isNaN(size)) {\r\n return false;\r\n }\r\n\r\n var nSize = Number(size) * 1024;\r\n for (var i = 0; i < files.length; i++) {\r\n if (files[i].size > nSize) {\r\n return false;\r\n }\r\n }\r\n\r\n return true;\r\n};\r\n\r\nvar size = {\r\n validate: validate$v\r\n};\n\nvar isURL_1 = createCommonjsModule(function (module, exports) {\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isURL;\n\n\n\nvar _assertString2 = _interopRequireDefault(assertString_1);\n\n\n\nvar _isFQDN2 = _interopRequireDefault(isFQDN_1);\n\n\n\nvar _isIP2 = _interopRequireDefault(isIP_1);\n\n\n\nvar _merge2 = _interopRequireDefault(merge_1);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n\nvar default_url_options = {\n protocols: ['http', 'https', 'ftp'],\n require_tld: true,\n require_protocol: false,\n require_host: true,\n require_valid_protocol: true,\n allow_underscores: false,\n allow_trailing_dot: false,\n allow_protocol_relative_urls: false\n};\n\nvar wrapped_ipv6 = /^\\[([^\\]]+)\\](?::([0-9]+))?$/;\n\nfunction isRegExp(obj) {\n return Object.prototype.toString.call(obj) === '[object RegExp]';\n}\n\nfunction checkHost(host, matches) {\n for (var i = 0; i < matches.length; i++) {\n var match = matches[i];\n if (host === match || isRegExp(match) && match.test(host)) {\n return true;\n }\n }\n return false;\n}\n\nfunction isURL(url, options) {\n (0, _assertString2.default)(url);\n if (!url || url.length >= 2083 || /[\\s<>]/.test(url)) {\n return false;\n }\n if (url.indexOf('mailto:') === 0) {\n return false;\n }\n options = (0, _merge2.default)(options, default_url_options);\n var protocol = void 0,\n auth = void 0,\n host = void 0,\n hostname = void 0,\n port = void 0,\n port_str = void 0,\n split = void 0,\n ipv6 = void 0;\n\n split = url.split('#');\n url = split.shift();\n\n split = url.split('?');\n url = split.shift();\n\n split = url.split('://');\n if (split.length > 1) {\n protocol = split.shift().toLowerCase();\n if (options.require_valid_protocol && options.protocols.indexOf(protocol) === -1) {\n return false;\n }\n } else if (options.require_protocol) {\n return false;\n } else if (url.substr(0, 2) === '//') {\n if (!options.allow_protocol_relative_urls) {\n return false;\n }\n split[0] = url.substr(2);\n }\n url = split.join('://');\n\n if (url === '') {\n return false;\n }\n\n split = url.split('/');\n url = split.shift();\n\n if (url === '' && !options.require_host) {\n return true;\n }\n\n split = url.split('@');\n if (split.length > 1) {\n auth = split.shift();\n if (auth.indexOf(':') >= 0 && auth.split(':').length > 2) {\n return false;\n }\n }\n hostname = split.join('@');\n\n port_str = null;\n ipv6 = null;\n var ipv6_match = hostname.match(wrapped_ipv6);\n if (ipv6_match) {\n host = '';\n ipv6 = ipv6_match[1];\n port_str = ipv6_match[2] || null;\n } else {\n split = hostname.split(':');\n host = split.shift();\n if (split.length) {\n port_str = split.join(':');\n }\n }\n\n if (port_str !== null) {\n port = parseInt(port_str, 10);\n if (!/^[0-9]+$/.test(port_str) || port <= 0 || port > 65535) {\n return false;\n }\n }\n\n if (!(0, _isIP2.default)(host) && !(0, _isFQDN2.default)(host, options) && (!ipv6 || !(0, _isIP2.default)(ipv6, 6))) {\n return false;\n }\n\n host = host || ipv6;\n\n if (options.host_whitelist && !checkHost(host, options.host_whitelist)) {\n return false;\n }\n if (options.host_blacklist && checkHost(host, options.host_blacklist)) {\n return false;\n }\n\n return true;\n}\nmodule.exports = exports['default'];\n});\n\nvar isURL = unwrapExports(isURL_1);\n\nvar validate$w = function (value, options) {\n if ( options === void 0 ) options = {};\n\r\n if (isNullOrUndefined(value)) {\r\n value = '';\r\n }\r\n\r\n if (Array.isArray(value)) {\r\n return value.every(function (val) { return isURL(val, options); });\r\n }\r\n\r\n return isURL(value, options);\r\n};\r\n\r\nvar url = {\r\n validate: validate$w\r\n};\n\n/* eslint-disable camelcase */\n\nvar Rules = /*#__PURE__*/Object.freeze({\n after: after,\n alpha_dash: alpha_dash,\n alpha_num: alpha_num,\n alpha_spaces: alpha_spaces,\n alpha: alpha$1,\n before: before,\n between: between,\n confirmed: confirmed,\n credit_card: credit_card,\n date_between: date_between,\n date_format: date_format,\n decimal: decimal,\n digits: digits,\n dimensions: dimensions,\n email: email,\n ext: ext,\n image: image,\n included: included,\n integer: integer,\n length: length,\n ip: ip,\n is_not: is_not,\n is: is,\n max: max$1,\n max_value: max_value,\n mimes: mimes,\n min: min$1,\n min_value: min_value,\n excluded: excluded,\n numeric: numeric,\n regex: regex,\n required: required,\n size: size,\n url: url\n});\n\nvar version = '2.1.5';\r\n\r\nObject.keys(Rules).forEach(function (rule) {\r\n Validator.extend(rule, Rules[rule].validate, assign({}, Rules[rule].options, { paramNames: Rules[rule].paramNames }));\r\n});\r\n\r\n// Merge the english messages.\r\nValidator.localize({ en: locale });\r\n\r\nvar install = VeeValidate$1.install;\n\nexport default VeeValidate$1;\nexport { install, directive, mixin, mapFields, Validator, ErrorBag, Rules, version, ValidationProvider, ValidationObserver, withValidation };\n","!function(e,n){if(\"object\"==typeof exports&&\"object\"==typeof module)module.exports=n();else if(\"function\"==typeof define&&define.amd)define([],n);else{var r=n();for(var t in r)(\"object\"==typeof exports?exports:e)[t]=r[t]}}(this,function(){return function(e){function n(t){if(r[t])return r[t].exports;var o=r[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var r={};return n.m=e,n.c=r,n.d=function(e,r,t){n.o(e,r)||Object.defineProperty(e,r,{configurable:!1,enumerable:!0,get:t})},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,\"a\",r),r},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p=\"\",n(n.s=0)}([function(e,n,r){\"use strict\";function t(e){u(F,e)}function o(){return F.id?[].concat(F.id):[]}function i(){}function a(e){return new Promise(function(n,r){var t=document.head||document.getElementsByTagName(\"head\")[0],o=document.createElement(\"script\");o.async=!0,o.src=e,o.charset=\"utf8\",t.appendChild(o),o.onload=n,o.onerror=r})}function c(e,n){var r=n.split(\"/\"),t=e.split(\"/\");return\"\"===r[0]&&\"/\"===e[e.length-1]&&r.shift(),t.join(\"/\")+r.join(\"/\")}function u(e,n){return Object.keys(n).forEach(function(r){if(e[r]&&\"object\"==typeof e[r])return void u(e[r],n[r]);e[r]=n[r]}),e}function f(){return Array.prototype.slice.call(document.getElementsByTagName(\"script\")).filter(function(e){return-1!==e.src.indexOf(\"analytics\")||-1!==e.src.indexOf(\"gtag\")}).length>0}function s(){return!(_.checkDuplicatedScript&&f())}function l(e){return e.name||e.replace(/-/gi,\"\")}function d(){return new Promise(function(e,n){var r=setInterval(function(){\"undefined\"!=typeof window&&window.ga&&(e(),clearInterval(r))},10)})}function p(e,n){if(o().length>1){return l(n)+\".\"+e}return e}function v(e){var n=Object.keys(e).reduce(function(n,r,t,o){var i=t===o.length-1;return n+=r+\"=\"+e[r]+(i?\"\":\"&\")},\"\");return\"\"!==n?\"?\"+n:\"\"}function y(e){return[e.name,e.path].filter(Boolean).find(function(e){return-1!==_.ignoreRoutes.indexOf(e)})}function h(e){return e.query&&e.params}function g(e){return e.currentRoute}function m(e){if(Array.isArray(e)){for(var n=0,r=Array(e.length);n1?n-1:0),t=1;t1?D({},_.fields,t,{name:r}):_.fields;window.ga(\"create\",n.id||n,\"auto\",o)}),_.beforeFirstHit();var n=_.ecommerce;if(n.enabled){var r=n.enhanced?\"ec\":\"ecommerce\";n.options?w(\"require\",r,n.options):w(\"require\",r)}_.linkers.length>0&&(w(\"require\",\"linker\"),w(\"linker:autoLink\",_.linkers)),_.debug.sendHitTask||b(\"sendHitTask\",null)}function x(){for(var e=arguments.length,n=Array(e),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};t(ae({},n,{$vue:e})),e.directive(\"ga\",te),e.prototype.$ga=e.$ga=re,V(e),z()}Object.defineProperty(n,\"__esModule\",{value:!0});var S=Object.assign||function(e){for(var n=1;n0&&void 0!==arguments[0])||arguments[0];\"undefined\"!=typeof window&&o().forEach(function(n){window[\"ga-disable-\"+n]=e})},z=function(){if(\"undefined\"!=typeof document&&\"undefined\"!=typeof window){var e=_.disableScriptLoader,n=_.ready,r=_.debug.enabled?\"analytics_debug\":\"analytics\",o=_.customResourceURL||\"https://www.google-analytics.com/\"+r+\".js\";if(!_.id)throw new Error('[vue-analytics] Missing the \"id\" parameter. Add at least one tracking domain ID');var i=[B(_.id),B(_.disabled)];return!s()||window.ga&&e||i.push(a(o).catch(function(){throw new Error(\"[vue-analytics] An error occured! Please check your connection, if you have any Google Analytics blocker installed in your browser or check your custom resource URL if you have added any.\")})),Promise.all(i).then(function(e){t({id:e[0],disabled:e[1]}),G(_.disabled),k(),Q(),W(),O(),n()}).catch(function(e){console.error(e.message)})}},J=this,K=function(e){w(\"send\",\"exception\",{exDescription:e,exFatal:arguments.length>1&&void 0!==arguments[1]&&arguments[1]})},V=function(e){if(_.autoTracking.exception){window.addEventListener(\"error\",function(e){K(e.message)});var n=e.config.errorHandler;e.config.errorHandler=function(e,r,t){K(e.message),_.autoTracking.exceptionLogs&&(console.error(\"[vue-analytics] Error in \"+t+\": \"+e.message),console.error(e)),\"function\"==typeof n&&n.call(J,e,r,t)}}},X=K,Y=Object.assign||function(e){for(var n=1;n 0) {\n warn('Component class must inherit Vue or its descendant class ' +\n 'when class property is used.');\n }\n }\n return plainData;\n}\n\nvar $internalHooks = [\n 'data',\n 'beforeCreate',\n 'created',\n 'beforeMount',\n 'mounted',\n 'beforeDestroy',\n 'destroyed',\n 'beforeUpdate',\n 'updated',\n 'activated',\n 'deactivated',\n 'render',\n 'errorCaptured' // 2.5\n];\nfunction componentFactory(Component, options) {\n if (options === void 0) { options = {}; }\n options.name = options.name || Component._componentTag || Component.name;\n // prototype props.\n var proto = Component.prototype;\n Object.getOwnPropertyNames(proto).forEach(function (key) {\n if (key === 'constructor') {\n return;\n }\n // hooks\n if ($internalHooks.indexOf(key) > -1) {\n options[key] = proto[key];\n return;\n }\n var descriptor = Object.getOwnPropertyDescriptor(proto, key);\n if (descriptor.value !== void 0) {\n // methods\n if (typeof descriptor.value === 'function') {\n (options.methods || (options.methods = {}))[key] = descriptor.value;\n }\n else {\n // typescript decorated data\n (options.mixins || (options.mixins = [])).push({\n data: function () {\n var _a;\n return _a = {}, _a[key] = descriptor.value, _a;\n }\n });\n }\n }\n else if (descriptor.get || descriptor.set) {\n // computed properties\n (options.computed || (options.computed = {}))[key] = {\n get: descriptor.get,\n set: descriptor.set\n };\n }\n });\n (options.mixins || (options.mixins = [])).push({\n data: function () {\n return collectDataFromConstructor(this, Component);\n }\n });\n // decorate options\n var decorators = Component.__decorators__;\n if (decorators) {\n decorators.forEach(function (fn) { return fn(options); });\n delete Component.__decorators__;\n }\n // find super\n var superProto = Object.getPrototypeOf(Component.prototype);\n var Super = superProto instanceof Vue\n ? superProto.constructor\n : Vue;\n var Extended = Super.extend(options);\n forwardStaticMembers(Extended, Component, Super);\n if (reflectionIsSupported) {\n copyReflectionMetadata(Extended, Component);\n }\n return Extended;\n}\nvar reservedPropertyNames = [\n // Unique id\n 'cid',\n // Super Vue constructor\n 'super',\n // Component options that will be used by the component\n 'options',\n 'superOptions',\n 'extendOptions',\n 'sealedOptions',\n // Private assets\n 'component',\n 'directive',\n 'filter'\n];\nfunction forwardStaticMembers(Extended, Original, Super) {\n // We have to use getOwnPropertyNames since Babel registers methods as non-enumerable\n Object.getOwnPropertyNames(Original).forEach(function (key) {\n // `prototype` should not be overwritten\n if (key === 'prototype') {\n return;\n }\n // Some browsers does not allow reconfigure built-in properties\n var extendedDescriptor = Object.getOwnPropertyDescriptor(Extended, key);\n if (extendedDescriptor && !extendedDescriptor.configurable) {\n return;\n }\n var descriptor = Object.getOwnPropertyDescriptor(Original, key);\n // If the user agent does not support `__proto__` or its family (IE <= 10),\n // the sub class properties may be inherited properties from the super class in TypeScript.\n // We need to exclude such properties to prevent to overwrite\n // the component options object which stored on the extended constructor (See #192).\n // If the value is a referenced value (object or function),\n // we can check equality of them and exclude it if they have the same reference.\n // If it is a primitive value, it will be forwarded for safety.\n if (!hasProto) {\n // Only `cid` is explicitly exluded from property forwarding\n // because we cannot detect whether it is a inherited property or not\n // on the no `__proto__` environment even though the property is reserved.\n if (key === 'cid') {\n return;\n }\n var superDescriptor = Object.getOwnPropertyDescriptor(Super, key);\n if (!isPrimitive(descriptor.value) &&\n superDescriptor &&\n superDescriptor.value === descriptor.value) {\n return;\n }\n }\n // Warn if the users manually declare reserved properties\n if (process.env.NODE_ENV !== 'production' &&\n reservedPropertyNames.indexOf(key) >= 0) {\n warn(\"Static property name '\" + key + \"' declared on class '\" + Original.name + \"' \" +\n 'conflicts with reserved property name of Vue internal. ' +\n 'It may cause unexpected behavior of the component. Consider renaming the property.');\n }\n Object.defineProperty(Extended, key, descriptor);\n });\n}\n\nfunction Component(options) {\n if (typeof options === 'function') {\n return componentFactory(options);\n }\n return function (Component) {\n return componentFactory(Component, options);\n };\n}\nComponent.registerHooks = function registerHooks(keys) {\n $internalHooks.push.apply($internalHooks, keys);\n};\n\nexports.default = Component;\nexports.createDecorator = createDecorator;\nexports.mixins = mixins;\n","/** vue-property-decorator verson 7.3.0 MIT LICENSE copyright 2018 kaorun343 */\n'use strict';\nimport Vue from 'vue';\nimport Component, { createDecorator, mixins } from 'vue-class-component';\nexport { Component, Vue, mixins as Mixins };\n/**\n * decorator of an inject\n * @param from key\n * @return PropertyDecorator\n */\nexport function Inject(options) {\n return createDecorator(function (componentOptions, key) {\n if (typeof componentOptions.inject === 'undefined') {\n componentOptions.inject = {};\n }\n if (!Array.isArray(componentOptions.inject)) {\n componentOptions.inject[key] = options || key;\n }\n });\n}\n/**\n * decorator of a provide\n * @param key key\n * @return PropertyDecorator | void\n */\nexport function Provide(key) {\n return createDecorator(function (componentOptions, k) {\n var provide = componentOptions.provide;\n if (typeof provide !== 'function' || !provide.managed) {\n var original_1 = componentOptions.provide;\n provide = componentOptions.provide = function () {\n var rv = Object.create((typeof original_1 === 'function' ? original_1.call(this) : original_1) || null);\n for (var i in provide.managed)\n rv[provide.managed[i]] = this[i];\n return rv;\n };\n provide.managed = {};\n }\n provide.managed[k] = key || k;\n });\n}\n/**\n * decorator of model\n * @param event event name\n * @param options options\n * @return PropertyDecorator\n */\nexport function Model(event, options) {\n if (options === void 0) { options = {}; }\n return createDecorator(function (componentOptions, k) {\n (componentOptions.props || (componentOptions.props = {}))[k] = options;\n componentOptions.model = { prop: k, event: event || k };\n });\n}\n/**\n * decorator of a prop\n * @param options the options for the prop\n * @return PropertyDecorator | void\n */\nexport function Prop(options) {\n if (options === void 0) { options = {}; }\n return createDecorator(function (componentOptions, k) {\n (componentOptions.props || (componentOptions.props = {}))[k] = options;\n });\n}\n/**\n * decorator of a watch function\n * @param path the path or the expression to observe\n * @param WatchOption\n * @return MethodDecorator\n */\nexport function Watch(path, options) {\n if (options === void 0) { options = {}; }\n var _a = options.deep, deep = _a === void 0 ? false : _a, _b = options.immediate, immediate = _b === void 0 ? false : _b;\n return createDecorator(function (componentOptions, handler) {\n if (typeof componentOptions.watch !== 'object') {\n componentOptions.watch = Object.create(null);\n }\n var watch = componentOptions.watch;\n if (typeof watch[path] === 'object' && !Array.isArray(watch[path])) {\n watch[path] = [watch[path]];\n }\n else if (typeof watch[path] === 'undefined') {\n watch[path] = [];\n }\n watch[path].push({ handler: handler, deep: deep, immediate: immediate });\n });\n}\n// Code copied from Vue/src/shared/util.js\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = function (str) { return str.replace(hyphenateRE, '-$1').toLowerCase(); };\n/**\n * decorator of an event-emitter function\n * @param event The name of the event\n * @return MethodDecorator\n */\nexport function Emit(event) {\n return function (_target, key, descriptor) {\n key = hyphenate(key);\n var original = descriptor.value;\n descriptor.value = function emitter() {\n var _this = this;\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var emit = function (returnValue) {\n if (returnValue !== undefined)\n args.unshift(returnValue);\n _this.$emit.apply(_this, [event || key].concat(args));\n };\n var returnValue = original.apply(this, args);\n if (isPromise(returnValue)) {\n returnValue.then(function (returnValue) {\n emit(returnValue);\n });\n }\n else {\n emit(returnValue);\n }\n };\n };\n}\nfunction isPromise(obj) {\n return obj instanceof Promise || (obj && typeof obj.then === 'function');\n}\n","/**\n * vue-router v3.0.1\n * (c) 2017 Evan You\n * @license MIT\n */\n/* */\n\nfunction assert (condition, message) {\n if (!condition) {\n throw new Error((\"[vue-router] \" + message))\n }\n}\n\nfunction warn (condition, message) {\n if (process.env.NODE_ENV !== 'production' && !condition) {\n typeof console !== 'undefined' && console.warn((\"[vue-router] \" + message));\n }\n}\n\nfunction isError (err) {\n return Object.prototype.toString.call(err).indexOf('Error') > -1\n}\n\nvar View = {\n name: 'router-view',\n functional: true,\n props: {\n name: {\n type: String,\n default: 'default'\n }\n },\n render: function render (_, ref) {\n var props = ref.props;\n var children = ref.children;\n var parent = ref.parent;\n var data = ref.data;\n\n data.routerView = true;\n\n // directly use parent context's createElement() function\n // so that components rendered by router-view can resolve named slots\n var h = parent.$createElement;\n var name = props.name;\n var route = parent.$route;\n var cache = parent._routerViewCache || (parent._routerViewCache = {});\n\n // determine current view depth, also check to see if the tree\n // has been toggled inactive but kept-alive.\n var depth = 0;\n var inactive = false;\n while (parent && parent._routerRoot !== parent) {\n if (parent.$vnode && parent.$vnode.data.routerView) {\n depth++;\n }\n if (parent._inactive) {\n inactive = true;\n }\n parent = parent.$parent;\n }\n data.routerViewDepth = depth;\n\n // render previous view if the tree is inactive and kept-alive\n if (inactive) {\n return h(cache[name], data, children)\n }\n\n var matched = route.matched[depth];\n // render empty node if no matched route\n if (!matched) {\n cache[name] = null;\n return h()\n }\n\n var component = cache[name] = matched.components[name];\n\n // attach instance registration hook\n // this will be called in the instance's injected lifecycle hooks\n data.registerRouteInstance = function (vm, val) {\n // val could be undefined for unregistration\n var current = matched.instances[name];\n if (\n (val && current !== vm) ||\n (!val && current === vm)\n ) {\n matched.instances[name] = val;\n }\n }\n\n // also register instance in prepatch hook\n // in case the same component instance is reused across different routes\n ;(data.hook || (data.hook = {})).prepatch = function (_, vnode) {\n matched.instances[name] = vnode.componentInstance;\n };\n\n // resolve props\n var propsToPass = data.props = resolveProps(route, matched.props && matched.props[name]);\n if (propsToPass) {\n // clone to prevent mutation\n propsToPass = data.props = extend({}, propsToPass);\n // pass non-declared props as attrs\n var attrs = data.attrs = data.attrs || {};\n for (var key in propsToPass) {\n if (!component.props || !(key in component.props)) {\n attrs[key] = propsToPass[key];\n delete propsToPass[key];\n }\n }\n }\n\n return h(component, data, children)\n }\n};\n\nfunction resolveProps (route, config) {\n switch (typeof config) {\n case 'undefined':\n return\n case 'object':\n return config\n case 'function':\n return config(route)\n case 'boolean':\n return config ? route.params : undefined\n default:\n if (process.env.NODE_ENV !== 'production') {\n warn(\n false,\n \"props in \\\"\" + (route.path) + \"\\\" is a \" + (typeof config) + \", \" +\n \"expecting an object, function or boolean.\"\n );\n }\n }\n}\n\nfunction extend (to, from) {\n for (var key in from) {\n to[key] = from[key];\n }\n return to\n}\n\n/* */\n\nvar encodeReserveRE = /[!'()*]/g;\nvar encodeReserveReplacer = function (c) { return '%' + c.charCodeAt(0).toString(16); };\nvar commaRE = /%2C/g;\n\n// fixed encodeURIComponent which is more conformant to RFC3986:\n// - escapes [!'()*]\n// - preserve commas\nvar encode = function (str) { return encodeURIComponent(str)\n .replace(encodeReserveRE, encodeReserveReplacer)\n .replace(commaRE, ','); };\n\nvar decode = decodeURIComponent;\n\nfunction resolveQuery (\n query,\n extraQuery,\n _parseQuery\n) {\n if ( extraQuery === void 0 ) extraQuery = {};\n\n var parse = _parseQuery || parseQuery;\n var parsedQuery;\n try {\n parsedQuery = parse(query || '');\n } catch (e) {\n process.env.NODE_ENV !== 'production' && warn(false, e.message);\n parsedQuery = {};\n }\n for (var key in extraQuery) {\n parsedQuery[key] = extraQuery[key];\n }\n return parsedQuery\n}\n\nfunction parseQuery (query) {\n var res = {};\n\n query = query.trim().replace(/^(\\?|#|&)/, '');\n\n if (!query) {\n return res\n }\n\n query.split('&').forEach(function (param) {\n var parts = param.replace(/\\+/g, ' ').split('=');\n var key = decode(parts.shift());\n var val = parts.length > 0\n ? decode(parts.join('='))\n : null;\n\n if (res[key] === undefined) {\n res[key] = val;\n } else if (Array.isArray(res[key])) {\n res[key].push(val);\n } else {\n res[key] = [res[key], val];\n }\n });\n\n return res\n}\n\nfunction stringifyQuery (obj) {\n var res = obj ? Object.keys(obj).map(function (key) {\n var val = obj[key];\n\n if (val === undefined) {\n return ''\n }\n\n if (val === null) {\n return encode(key)\n }\n\n if (Array.isArray(val)) {\n var result = [];\n val.forEach(function (val2) {\n if (val2 === undefined) {\n return\n }\n if (val2 === null) {\n result.push(encode(key));\n } else {\n result.push(encode(key) + '=' + encode(val2));\n }\n });\n return result.join('&')\n }\n\n return encode(key) + '=' + encode(val)\n }).filter(function (x) { return x.length > 0; }).join('&') : null;\n return res ? (\"?\" + res) : ''\n}\n\n/* */\n\n\nvar trailingSlashRE = /\\/?$/;\n\nfunction createRoute (\n record,\n location,\n redirectedFrom,\n router\n) {\n var stringifyQuery$$1 = router && router.options.stringifyQuery;\n\n var query = location.query || {};\n try {\n query = clone(query);\n } catch (e) {}\n\n var route = {\n name: location.name || (record && record.name),\n meta: (record && record.meta) || {},\n path: location.path || '/',\n hash: location.hash || '',\n query: query,\n params: location.params || {},\n fullPath: getFullPath(location, stringifyQuery$$1),\n matched: record ? formatMatch(record) : []\n };\n if (redirectedFrom) {\n route.redirectedFrom = getFullPath(redirectedFrom, stringifyQuery$$1);\n }\n return Object.freeze(route)\n}\n\nfunction clone (value) {\n if (Array.isArray(value)) {\n return value.map(clone)\n } else if (value && typeof value === 'object') {\n var res = {};\n for (var key in value) {\n res[key] = clone(value[key]);\n }\n return res\n } else {\n return value\n }\n}\n\n// the starting route that represents the initial state\nvar START = createRoute(null, {\n path: '/'\n});\n\nfunction formatMatch (record) {\n var res = [];\n while (record) {\n res.unshift(record);\n record = record.parent;\n }\n return res\n}\n\nfunction getFullPath (\n ref,\n _stringifyQuery\n) {\n var path = ref.path;\n var query = ref.query; if ( query === void 0 ) query = {};\n var hash = ref.hash; if ( hash === void 0 ) hash = '';\n\n var stringify = _stringifyQuery || stringifyQuery;\n return (path || '/') + stringify(query) + hash\n}\n\nfunction isSameRoute (a, b) {\n if (b === START) {\n return a === b\n } else if (!b) {\n return false\n } else if (a.path && b.path) {\n return (\n a.path.replace(trailingSlashRE, '') === b.path.replace(trailingSlashRE, '') &&\n a.hash === b.hash &&\n isObjectEqual(a.query, b.query)\n )\n } else if (a.name && b.name) {\n return (\n a.name === b.name &&\n a.hash === b.hash &&\n isObjectEqual(a.query, b.query) &&\n isObjectEqual(a.params, b.params)\n )\n } else {\n return false\n }\n}\n\nfunction isObjectEqual (a, b) {\n if ( a === void 0 ) a = {};\n if ( b === void 0 ) b = {};\n\n // handle null value #1566\n if (!a || !b) { return a === b }\n var aKeys = Object.keys(a);\n var bKeys = Object.keys(b);\n if (aKeys.length !== bKeys.length) {\n return false\n }\n return aKeys.every(function (key) {\n var aVal = a[key];\n var bVal = b[key];\n // check nested equality\n if (typeof aVal === 'object' && typeof bVal === 'object') {\n return isObjectEqual(aVal, bVal)\n }\n return String(aVal) === String(bVal)\n })\n}\n\nfunction isIncludedRoute (current, target) {\n return (\n current.path.replace(trailingSlashRE, '/').indexOf(\n target.path.replace(trailingSlashRE, '/')\n ) === 0 &&\n (!target.hash || current.hash === target.hash) &&\n queryIncludes(current.query, target.query)\n )\n}\n\nfunction queryIncludes (current, target) {\n for (var key in target) {\n if (!(key in current)) {\n return false\n }\n }\n return true\n}\n\n/* */\n\n// work around weird flow bug\nvar toTypes = [String, Object];\nvar eventTypes = [String, Array];\n\nvar Link = {\n name: 'router-link',\n props: {\n to: {\n type: toTypes,\n required: true\n },\n tag: {\n type: String,\n default: 'a'\n },\n exact: Boolean,\n append: Boolean,\n replace: Boolean,\n activeClass: String,\n exactActiveClass: String,\n event: {\n type: eventTypes,\n default: 'click'\n }\n },\n render: function render (h) {\n var this$1 = this;\n\n var router = this.$router;\n var current = this.$route;\n var ref = router.resolve(this.to, current, this.append);\n var location = ref.location;\n var route = ref.route;\n var href = ref.href;\n\n var classes = {};\n var globalActiveClass = router.options.linkActiveClass;\n var globalExactActiveClass = router.options.linkExactActiveClass;\n // Support global empty active class\n var activeClassFallback = globalActiveClass == null\n ? 'router-link-active'\n : globalActiveClass;\n var exactActiveClassFallback = globalExactActiveClass == null\n ? 'router-link-exact-active'\n : globalExactActiveClass;\n var activeClass = this.activeClass == null\n ? activeClassFallback\n : this.activeClass;\n var exactActiveClass = this.exactActiveClass == null\n ? exactActiveClassFallback\n : this.exactActiveClass;\n var compareTarget = location.path\n ? createRoute(null, location, null, router)\n : route;\n\n classes[exactActiveClass] = isSameRoute(current, compareTarget);\n classes[activeClass] = this.exact\n ? classes[exactActiveClass]\n : isIncludedRoute(current, compareTarget);\n\n var handler = function (e) {\n if (guardEvent(e)) {\n if (this$1.replace) {\n router.replace(location);\n } else {\n router.push(location);\n }\n }\n };\n\n var on = { click: guardEvent };\n if (Array.isArray(this.event)) {\n this.event.forEach(function (e) { on[e] = handler; });\n } else {\n on[this.event] = handler;\n }\n\n var data = {\n class: classes\n };\n\n if (this.tag === 'a') {\n data.on = on;\n data.attrs = { href: href };\n } else {\n // find the first child and apply listener and href\n var a = findAnchor(this.$slots.default);\n if (a) {\n // in case the is a static node\n a.isStatic = false;\n var extend = _Vue.util.extend;\n var aData = a.data = extend({}, a.data);\n aData.on = on;\n var aAttrs = a.data.attrs = extend({}, a.data.attrs);\n aAttrs.href = href;\n } else {\n // doesn't have child, apply listener to self\n data.on = on;\n }\n }\n\n return h(this.tag, data, this.$slots.default)\n }\n};\n\nfunction guardEvent (e) {\n // don't redirect with control keys\n if (e.metaKey || e.altKey || e.ctrlKey || e.shiftKey) { return }\n // don't redirect when preventDefault called\n if (e.defaultPrevented) { return }\n // don't redirect on right click\n if (e.button !== undefined && e.button !== 0) { return }\n // don't redirect if `target=\"_blank\"`\n if (e.currentTarget && e.currentTarget.getAttribute) {\n var target = e.currentTarget.getAttribute('target');\n if (/\\b_blank\\b/i.test(target)) { return }\n }\n // this may be a Weex event which doesn't have this method\n if (e.preventDefault) {\n e.preventDefault();\n }\n return true\n}\n\nfunction findAnchor (children) {\n if (children) {\n var child;\n for (var i = 0; i < children.length; i++) {\n child = children[i];\n if (child.tag === 'a') {\n return child\n }\n if (child.children && (child = findAnchor(child.children))) {\n return child\n }\n }\n }\n}\n\nvar _Vue;\n\nfunction install (Vue) {\n if (install.installed && _Vue === Vue) { return }\n install.installed = true;\n\n _Vue = Vue;\n\n var isDef = function (v) { return v !== undefined; };\n\n var registerInstance = function (vm, callVal) {\n var i = vm.$options._parentVnode;\n if (isDef(i) && isDef(i = i.data) && isDef(i = i.registerRouteInstance)) {\n i(vm, callVal);\n }\n };\n\n Vue.mixin({\n beforeCreate: function beforeCreate () {\n if (isDef(this.$options.router)) {\n this._routerRoot = this;\n this._router = this.$options.router;\n this._router.init(this);\n Vue.util.defineReactive(this, '_route', this._router.history.current);\n } else {\n this._routerRoot = (this.$parent && this.$parent._routerRoot) || this;\n }\n registerInstance(this, this);\n },\n destroyed: function destroyed () {\n registerInstance(this);\n }\n });\n\n Object.defineProperty(Vue.prototype, '$router', {\n get: function get () { return this._routerRoot._router }\n });\n\n Object.defineProperty(Vue.prototype, '$route', {\n get: function get () { return this._routerRoot._route }\n });\n\n Vue.component('router-view', View);\n Vue.component('router-link', Link);\n\n var strats = Vue.config.optionMergeStrategies;\n // use the same hook merging strategy for route hooks\n strats.beforeRouteEnter = strats.beforeRouteLeave = strats.beforeRouteUpdate = strats.created;\n}\n\n/* */\n\nvar inBrowser = typeof window !== 'undefined';\n\n/* */\n\nfunction resolvePath (\n relative,\n base,\n append\n) {\n var firstChar = relative.charAt(0);\n if (firstChar === '/') {\n return relative\n }\n\n if (firstChar === '?' || firstChar === '#') {\n return base + relative\n }\n\n var stack = base.split('/');\n\n // remove trailing segment if:\n // - not appending\n // - appending to trailing slash (last segment is empty)\n if (!append || !stack[stack.length - 1]) {\n stack.pop();\n }\n\n // resolve relative path\n var segments = relative.replace(/^\\//, '').split('/');\n for (var i = 0; i < segments.length; i++) {\n var segment = segments[i];\n if (segment === '..') {\n stack.pop();\n } else if (segment !== '.') {\n stack.push(segment);\n }\n }\n\n // ensure leading slash\n if (stack[0] !== '') {\n stack.unshift('');\n }\n\n return stack.join('/')\n}\n\nfunction parsePath (path) {\n var hash = '';\n var query = '';\n\n var hashIndex = path.indexOf('#');\n if (hashIndex >= 0) {\n hash = path.slice(hashIndex);\n path = path.slice(0, hashIndex);\n }\n\n var queryIndex = path.indexOf('?');\n if (queryIndex >= 0) {\n query = path.slice(queryIndex + 1);\n path = path.slice(0, queryIndex);\n }\n\n return {\n path: path,\n query: query,\n hash: hash\n }\n}\n\nfunction cleanPath (path) {\n return path.replace(/\\/\\//g, '/')\n}\n\nvar isarray = Array.isArray || function (arr) {\n return Object.prototype.toString.call(arr) == '[object Array]';\n};\n\n/**\n * Expose `pathToRegexp`.\n */\nvar pathToRegexp_1 = pathToRegexp;\nvar parse_1 = parse;\nvar compile_1 = compile;\nvar tokensToFunction_1 = tokensToFunction;\nvar tokensToRegExp_1 = tokensToRegExp;\n\n/**\n * The main path matching regexp utility.\n *\n * @type {RegExp}\n */\nvar PATH_REGEXP = new RegExp([\n // Match escaped characters that would otherwise appear in future matches.\n // This allows the user to escape special characters that won't transform.\n '(\\\\\\\\.)',\n // Match Express-style parameters and un-named parameters with a prefix\n // and optional suffixes. Matches appear as:\n //\n // \"/:test(\\\\d+)?\" => [\"/\", \"test\", \"\\d+\", undefined, \"?\", undefined]\n // \"/route(\\\\d+)\" => [undefined, undefined, undefined, \"\\d+\", undefined, undefined]\n // \"/*\" => [\"/\", undefined, undefined, undefined, undefined, \"*\"]\n '([\\\\/.])?(?:(?:\\\\:(\\\\w+)(?:\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))?|\\\\(((?:\\\\\\\\.|[^\\\\\\\\()])+)\\\\))([+*?])?|(\\\\*))'\n].join('|'), 'g');\n\n/**\n * Parse a string for the raw tokens.\n *\n * @param {string} str\n * @param {Object=} options\n * @return {!Array}\n */\nfunction parse (str, options) {\n var tokens = [];\n var key = 0;\n var index = 0;\n var path = '';\n var defaultDelimiter = options && options.delimiter || '/';\n var res;\n\n while ((res = PATH_REGEXP.exec(str)) != null) {\n var m = res[0];\n var escaped = res[1];\n var offset = res.index;\n path += str.slice(index, offset);\n index = offset + m.length;\n\n // Ignore already escaped sequences.\n if (escaped) {\n path += escaped[1];\n continue\n }\n\n var next = str[index];\n var prefix = res[2];\n var name = res[3];\n var capture = res[4];\n var group = res[5];\n var modifier = res[6];\n var asterisk = res[7];\n\n // Push the current path onto the tokens.\n if (path) {\n tokens.push(path);\n path = '';\n }\n\n var partial = prefix != null && next != null && next !== prefix;\n var repeat = modifier === '+' || modifier === '*';\n var optional = modifier === '?' || modifier === '*';\n var delimiter = res[2] || defaultDelimiter;\n var pattern = capture || group;\n\n tokens.push({\n name: name || key++,\n prefix: prefix || '',\n delimiter: delimiter,\n optional: optional,\n repeat: repeat,\n partial: partial,\n asterisk: !!asterisk,\n pattern: pattern ? escapeGroup(pattern) : (asterisk ? '.*' : '[^' + escapeString(delimiter) + ']+?')\n });\n }\n\n // Match any characters still remaining.\n if (index < str.length) {\n path += str.substr(index);\n }\n\n // If the path exists, push it onto the end.\n if (path) {\n tokens.push(path);\n }\n\n return tokens\n}\n\n/**\n * Compile a string to a template function for the path.\n *\n * @param {string} str\n * @param {Object=} options\n * @return {!function(Object=, Object=)}\n */\nfunction compile (str, options) {\n return tokensToFunction(parse(str, options))\n}\n\n/**\n * Prettier encoding of URI path segments.\n *\n * @param {string}\n * @return {string}\n */\nfunction encodeURIComponentPretty (str) {\n return encodeURI(str).replace(/[\\/?#]/g, function (c) {\n return '%' + c.charCodeAt(0).toString(16).toUpperCase()\n })\n}\n\n/**\n * Encode the asterisk parameter. Similar to `pretty`, but allows slashes.\n *\n * @param {string}\n * @return {string}\n */\nfunction encodeAsterisk (str) {\n return encodeURI(str).replace(/[?#]/g, function (c) {\n return '%' + c.charCodeAt(0).toString(16).toUpperCase()\n })\n}\n\n/**\n * Expose a method for transforming tokens into the path function.\n */\nfunction tokensToFunction (tokens) {\n // Compile all the tokens into regexps.\n var matches = new Array(tokens.length);\n\n // Compile all the patterns before compilation.\n for (var i = 0; i < tokens.length; i++) {\n if (typeof tokens[i] === 'object') {\n matches[i] = new RegExp('^(?:' + tokens[i].pattern + ')$');\n }\n }\n\n return function (obj, opts) {\n var path = '';\n var data = obj || {};\n var options = opts || {};\n var encode = options.pretty ? encodeURIComponentPretty : encodeURIComponent;\n\n for (var i = 0; i < tokens.length; i++) {\n var token = tokens[i];\n\n if (typeof token === 'string') {\n path += token;\n\n continue\n }\n\n var value = data[token.name];\n var segment;\n\n if (value == null) {\n if (token.optional) {\n // Prepend partial segment prefixes.\n if (token.partial) {\n path += token.prefix;\n }\n\n continue\n } else {\n throw new TypeError('Expected \"' + token.name + '\" to be defined')\n }\n }\n\n if (isarray(value)) {\n if (!token.repeat) {\n throw new TypeError('Expected \"' + token.name + '\" to not repeat, but received `' + JSON.stringify(value) + '`')\n }\n\n if (value.length === 0) {\n if (token.optional) {\n continue\n } else {\n throw new TypeError('Expected \"' + token.name + '\" to not be empty')\n }\n }\n\n for (var j = 0; j < value.length; j++) {\n segment = encode(value[j]);\n\n if (!matches[i].test(segment)) {\n throw new TypeError('Expected all \"' + token.name + '\" to match \"' + token.pattern + '\", but received `' + JSON.stringify(segment) + '`')\n }\n\n path += (j === 0 ? token.prefix : token.delimiter) + segment;\n }\n\n continue\n }\n\n segment = token.asterisk ? encodeAsterisk(value) : encode(value);\n\n if (!matches[i].test(segment)) {\n throw new TypeError('Expected \"' + token.name + '\" to match \"' + token.pattern + '\", but received \"' + segment + '\"')\n }\n\n path += token.prefix + segment;\n }\n\n return path\n }\n}\n\n/**\n * Escape a regular expression string.\n *\n * @param {string} str\n * @return {string}\n */\nfunction escapeString (str) {\n return str.replace(/([.+*?=^!:${}()[\\]|\\/\\\\])/g, '\\\\$1')\n}\n\n/**\n * Escape the capturing group by escaping special characters and meaning.\n *\n * @param {string} group\n * @return {string}\n */\nfunction escapeGroup (group) {\n return group.replace(/([=!:$\\/()])/g, '\\\\$1')\n}\n\n/**\n * Attach the keys as a property of the regexp.\n *\n * @param {!RegExp} re\n * @param {Array} keys\n * @return {!RegExp}\n */\nfunction attachKeys (re, keys) {\n re.keys = keys;\n return re\n}\n\n/**\n * Get the flags for a regexp from the options.\n *\n * @param {Object} options\n * @return {string}\n */\nfunction flags (options) {\n return options.sensitive ? '' : 'i'\n}\n\n/**\n * Pull out keys from a regexp.\n *\n * @param {!RegExp} path\n * @param {!Array} keys\n * @return {!RegExp}\n */\nfunction regexpToRegexp (path, keys) {\n // Use a negative lookahead to match only capturing groups.\n var groups = path.source.match(/\\((?!\\?)/g);\n\n if (groups) {\n for (var i = 0; i < groups.length; i++) {\n keys.push({\n name: i,\n prefix: null,\n delimiter: null,\n optional: false,\n repeat: false,\n partial: false,\n asterisk: false,\n pattern: null\n });\n }\n }\n\n return attachKeys(path, keys)\n}\n\n/**\n * Transform an array into a regexp.\n *\n * @param {!Array} path\n * @param {Array} keys\n * @param {!Object} options\n * @return {!RegExp}\n */\nfunction arrayToRegexp (path, keys, options) {\n var parts = [];\n\n for (var i = 0; i < path.length; i++) {\n parts.push(pathToRegexp(path[i], keys, options).source);\n }\n\n var regexp = new RegExp('(?:' + parts.join('|') + ')', flags(options));\n\n return attachKeys(regexp, keys)\n}\n\n/**\n * Create a path regexp from string input.\n *\n * @param {string} path\n * @param {!Array} keys\n * @param {!Object} options\n * @return {!RegExp}\n */\nfunction stringToRegexp (path, keys, options) {\n return tokensToRegExp(parse(path, options), keys, options)\n}\n\n/**\n * Expose a function for taking tokens and returning a RegExp.\n *\n * @param {!Array} tokens\n * @param {(Array|Object)=} keys\n * @param {Object=} options\n * @return {!RegExp}\n */\nfunction tokensToRegExp (tokens, keys, options) {\n if (!isarray(keys)) {\n options = /** @type {!Object} */ (keys || options);\n keys = [];\n }\n\n options = options || {};\n\n var strict = options.strict;\n var end = options.end !== false;\n var route = '';\n\n // Iterate over the tokens and create our regexp string.\n for (var i = 0; i < tokens.length; i++) {\n var token = tokens[i];\n\n if (typeof token === 'string') {\n route += escapeString(token);\n } else {\n var prefix = escapeString(token.prefix);\n var capture = '(?:' + token.pattern + ')';\n\n keys.push(token);\n\n if (token.repeat) {\n capture += '(?:' + prefix + capture + ')*';\n }\n\n if (token.optional) {\n if (!token.partial) {\n capture = '(?:' + prefix + '(' + capture + '))?';\n } else {\n capture = prefix + '(' + capture + ')?';\n }\n } else {\n capture = prefix + '(' + capture + ')';\n }\n\n route += capture;\n }\n }\n\n var delimiter = escapeString(options.delimiter || '/');\n var endsWithDelimiter = route.slice(-delimiter.length) === delimiter;\n\n // In non-strict mode we allow a slash at the end of match. If the path to\n // match already ends with a slash, we remove it for consistency. The slash\n // is valid at the end of a path match, not in the middle. This is important\n // in non-ending mode, where \"/test/\" shouldn't match \"/test//route\".\n if (!strict) {\n route = (endsWithDelimiter ? route.slice(0, -delimiter.length) : route) + '(?:' + delimiter + '(?=$))?';\n }\n\n if (end) {\n route += '$';\n } else {\n // In non-ending mode, we need the capturing groups to match as much as\n // possible by using a positive lookahead to the end or next path segment.\n route += strict && endsWithDelimiter ? '' : '(?=' + delimiter + '|$)';\n }\n\n return attachKeys(new RegExp('^' + route, flags(options)), keys)\n}\n\n/**\n * Normalize the given path string, returning a regular expression.\n *\n * An empty array can be passed in for the keys, which will hold the\n * placeholder key descriptions. For example, using `/user/:id`, `keys` will\n * contain `[{ name: 'id', delimiter: '/', optional: false, repeat: false }]`.\n *\n * @param {(string|RegExp|Array)} path\n * @param {(Array|Object)=} keys\n * @param {Object=} options\n * @return {!RegExp}\n */\nfunction pathToRegexp (path, keys, options) {\n if (!isarray(keys)) {\n options = /** @type {!Object} */ (keys || options);\n keys = [];\n }\n\n options = options || {};\n\n if (path instanceof RegExp) {\n return regexpToRegexp(path, /** @type {!Array} */ (keys))\n }\n\n if (isarray(path)) {\n return arrayToRegexp(/** @type {!Array} */ (path), /** @type {!Array} */ (keys), options)\n }\n\n return stringToRegexp(/** @type {string} */ (path), /** @type {!Array} */ (keys), options)\n}\n\npathToRegexp_1.parse = parse_1;\npathToRegexp_1.compile = compile_1;\npathToRegexp_1.tokensToFunction = tokensToFunction_1;\npathToRegexp_1.tokensToRegExp = tokensToRegExp_1;\n\n/* */\n\n// $flow-disable-line\nvar regexpCompileCache = Object.create(null);\n\nfunction fillParams (\n path,\n params,\n routeMsg\n) {\n try {\n var filler =\n regexpCompileCache[path] ||\n (regexpCompileCache[path] = pathToRegexp_1.compile(path));\n return filler(params || {}, { pretty: true })\n } catch (e) {\n if (process.env.NODE_ENV !== 'production') {\n warn(false, (\"missing param for \" + routeMsg + \": \" + (e.message)));\n }\n return ''\n }\n}\n\n/* */\n\nfunction createRouteMap (\n routes,\n oldPathList,\n oldPathMap,\n oldNameMap\n) {\n // the path list is used to control path matching priority\n var pathList = oldPathList || [];\n // $flow-disable-line\n var pathMap = oldPathMap || Object.create(null);\n // $flow-disable-line\n var nameMap = oldNameMap || Object.create(null);\n\n routes.forEach(function (route) {\n addRouteRecord(pathList, pathMap, nameMap, route);\n });\n\n // ensure wildcard routes are always at the end\n for (var i = 0, l = pathList.length; i < l; i++) {\n if (pathList[i] === '*') {\n pathList.push(pathList.splice(i, 1)[0]);\n l--;\n i--;\n }\n }\n\n return {\n pathList: pathList,\n pathMap: pathMap,\n nameMap: nameMap\n }\n}\n\nfunction addRouteRecord (\n pathList,\n pathMap,\n nameMap,\n route,\n parent,\n matchAs\n) {\n var path = route.path;\n var name = route.name;\n if (process.env.NODE_ENV !== 'production') {\n assert(path != null, \"\\\"path\\\" is required in a route configuration.\");\n assert(\n typeof route.component !== 'string',\n \"route config \\\"component\\\" for path: \" + (String(path || name)) + \" cannot be a \" +\n \"string id. Use an actual component instead.\"\n );\n }\n\n var pathToRegexpOptions = route.pathToRegexpOptions || {};\n var normalizedPath = normalizePath(\n path,\n parent,\n pathToRegexpOptions.strict\n );\n\n if (typeof route.caseSensitive === 'boolean') {\n pathToRegexpOptions.sensitive = route.caseSensitive;\n }\n\n var record = {\n path: normalizedPath,\n regex: compileRouteRegex(normalizedPath, pathToRegexpOptions),\n components: route.components || { default: route.component },\n instances: {},\n name: name,\n parent: parent,\n matchAs: matchAs,\n redirect: route.redirect,\n beforeEnter: route.beforeEnter,\n meta: route.meta || {},\n props: route.props == null\n ? {}\n : route.components\n ? route.props\n : { default: route.props }\n };\n\n if (route.children) {\n // Warn if route is named, does not redirect and has a default child route.\n // If users navigate to this route by name, the default child will\n // not be rendered (GH Issue #629)\n if (process.env.NODE_ENV !== 'production') {\n if (route.name && !route.redirect && route.children.some(function (child) { return /^\\/?$/.test(child.path); })) {\n warn(\n false,\n \"Named Route '\" + (route.name) + \"' has a default child route. \" +\n \"When navigating to this named route (:to=\\\"{name: '\" + (route.name) + \"'\\\"), \" +\n \"the default child route will not be rendered. Remove the name from \" +\n \"this route and use the name of the default child route for named \" +\n \"links instead.\"\n );\n }\n }\n route.children.forEach(function (child) {\n var childMatchAs = matchAs\n ? cleanPath((matchAs + \"/\" + (child.path)))\n : undefined;\n addRouteRecord(pathList, pathMap, nameMap, child, record, childMatchAs);\n });\n }\n\n if (route.alias !== undefined) {\n var aliases = Array.isArray(route.alias)\n ? route.alias\n : [route.alias];\n\n aliases.forEach(function (alias) {\n var aliasRoute = {\n path: alias,\n children: route.children\n };\n addRouteRecord(\n pathList,\n pathMap,\n nameMap,\n aliasRoute,\n parent,\n record.path || '/' // matchAs\n );\n });\n }\n\n if (!pathMap[record.path]) {\n pathList.push(record.path);\n pathMap[record.path] = record;\n }\n\n if (name) {\n if (!nameMap[name]) {\n nameMap[name] = record;\n } else if (process.env.NODE_ENV !== 'production' && !matchAs) {\n warn(\n false,\n \"Duplicate named routes definition: \" +\n \"{ name: \\\"\" + name + \"\\\", path: \\\"\" + (record.path) + \"\\\" }\"\n );\n }\n }\n}\n\nfunction compileRouteRegex (path, pathToRegexpOptions) {\n var regex = pathToRegexp_1(path, [], pathToRegexpOptions);\n if (process.env.NODE_ENV !== 'production') {\n var keys = Object.create(null);\n regex.keys.forEach(function (key) {\n warn(!keys[key.name], (\"Duplicate param keys in route with path: \\\"\" + path + \"\\\"\"));\n keys[key.name] = true;\n });\n }\n return regex\n}\n\nfunction normalizePath (path, parent, strict) {\n if (!strict) { path = path.replace(/\\/$/, ''); }\n if (path[0] === '/') { return path }\n if (parent == null) { return path }\n return cleanPath(((parent.path) + \"/\" + path))\n}\n\n/* */\n\n\nfunction normalizeLocation (\n raw,\n current,\n append,\n router\n) {\n var next = typeof raw === 'string' ? { path: raw } : raw;\n // named target\n if (next.name || next._normalized) {\n return next\n }\n\n // relative params\n if (!next.path && next.params && current) {\n next = assign({}, next);\n next._normalized = true;\n var params = assign(assign({}, current.params), next.params);\n if (current.name) {\n next.name = current.name;\n next.params = params;\n } else if (current.matched.length) {\n var rawPath = current.matched[current.matched.length - 1].path;\n next.path = fillParams(rawPath, params, (\"path \" + (current.path)));\n } else if (process.env.NODE_ENV !== 'production') {\n warn(false, \"relative params navigation requires a current route.\");\n }\n return next\n }\n\n var parsedPath = parsePath(next.path || '');\n var basePath = (current && current.path) || '/';\n var path = parsedPath.path\n ? resolvePath(parsedPath.path, basePath, append || next.append)\n : basePath;\n\n var query = resolveQuery(\n parsedPath.query,\n next.query,\n router && router.options.parseQuery\n );\n\n var hash = next.hash || parsedPath.hash;\n if (hash && hash.charAt(0) !== '#') {\n hash = \"#\" + hash;\n }\n\n return {\n _normalized: true,\n path: path,\n query: query,\n hash: hash\n }\n}\n\nfunction assign (a, b) {\n for (var key in b) {\n a[key] = b[key];\n }\n return a\n}\n\n/* */\n\n\nfunction createMatcher (\n routes,\n router\n) {\n var ref = createRouteMap(routes);\n var pathList = ref.pathList;\n var pathMap = ref.pathMap;\n var nameMap = ref.nameMap;\n\n function addRoutes (routes) {\n createRouteMap(routes, pathList, pathMap, nameMap);\n }\n\n function match (\n raw,\n currentRoute,\n redirectedFrom\n ) {\n var location = normalizeLocation(raw, currentRoute, false, router);\n var name = location.name;\n\n if (name) {\n var record = nameMap[name];\n if (process.env.NODE_ENV !== 'production') {\n warn(record, (\"Route with name '\" + name + \"' does not exist\"));\n }\n if (!record) { return _createRoute(null, location) }\n var paramNames = record.regex.keys\n .filter(function (key) { return !key.optional; })\n .map(function (key) { return key.name; });\n\n if (typeof location.params !== 'object') {\n location.params = {};\n }\n\n if (currentRoute && typeof currentRoute.params === 'object') {\n for (var key in currentRoute.params) {\n if (!(key in location.params) && paramNames.indexOf(key) > -1) {\n location.params[key] = currentRoute.params[key];\n }\n }\n }\n\n if (record) {\n location.path = fillParams(record.path, location.params, (\"named route \\\"\" + name + \"\\\"\"));\n return _createRoute(record, location, redirectedFrom)\n }\n } else if (location.path) {\n location.params = {};\n for (var i = 0; i < pathList.length; i++) {\n var path = pathList[i];\n var record$1 = pathMap[path];\n if (matchRoute(record$1.regex, location.path, location.params)) {\n return _createRoute(record$1, location, redirectedFrom)\n }\n }\n }\n // no match\n return _createRoute(null, location)\n }\n\n function redirect (\n record,\n location\n ) {\n var originalRedirect = record.redirect;\n var redirect = typeof originalRedirect === 'function'\n ? originalRedirect(createRoute(record, location, null, router))\n : originalRedirect;\n\n if (typeof redirect === 'string') {\n redirect = { path: redirect };\n }\n\n if (!redirect || typeof redirect !== 'object') {\n if (process.env.NODE_ENV !== 'production') {\n warn(\n false, (\"invalid redirect option: \" + (JSON.stringify(redirect)))\n );\n }\n return _createRoute(null, location)\n }\n\n var re = redirect;\n var name = re.name;\n var path = re.path;\n var query = location.query;\n var hash = location.hash;\n var params = location.params;\n query = re.hasOwnProperty('query') ? re.query : query;\n hash = re.hasOwnProperty('hash') ? re.hash : hash;\n params = re.hasOwnProperty('params') ? re.params : params;\n\n if (name) {\n // resolved named direct\n var targetRecord = nameMap[name];\n if (process.env.NODE_ENV !== 'production') {\n assert(targetRecord, (\"redirect failed: named route \\\"\" + name + \"\\\" not found.\"));\n }\n return match({\n _normalized: true,\n name: name,\n query: query,\n hash: hash,\n params: params\n }, undefined, location)\n } else if (path) {\n // 1. resolve relative redirect\n var rawPath = resolveRecordPath(path, record);\n // 2. resolve params\n var resolvedPath = fillParams(rawPath, params, (\"redirect route with path \\\"\" + rawPath + \"\\\"\"));\n // 3. rematch with existing query and hash\n return match({\n _normalized: true,\n path: resolvedPath,\n query: query,\n hash: hash\n }, undefined, location)\n } else {\n if (process.env.NODE_ENV !== 'production') {\n warn(false, (\"invalid redirect option: \" + (JSON.stringify(redirect))));\n }\n return _createRoute(null, location)\n }\n }\n\n function alias (\n record,\n location,\n matchAs\n ) {\n var aliasedPath = fillParams(matchAs, location.params, (\"aliased route with path \\\"\" + matchAs + \"\\\"\"));\n var aliasedMatch = match({\n _normalized: true,\n path: aliasedPath\n });\n if (aliasedMatch) {\n var matched = aliasedMatch.matched;\n var aliasedRecord = matched[matched.length - 1];\n location.params = aliasedMatch.params;\n return _createRoute(aliasedRecord, location)\n }\n return _createRoute(null, location)\n }\n\n function _createRoute (\n record,\n location,\n redirectedFrom\n ) {\n if (record && record.redirect) {\n return redirect(record, redirectedFrom || location)\n }\n if (record && record.matchAs) {\n return alias(record, location, record.matchAs)\n }\n return createRoute(record, location, redirectedFrom, router)\n }\n\n return {\n match: match,\n addRoutes: addRoutes\n }\n}\n\nfunction matchRoute (\n regex,\n path,\n params\n) {\n var m = path.match(regex);\n\n if (!m) {\n return false\n } else if (!params) {\n return true\n }\n\n for (var i = 1, len = m.length; i < len; ++i) {\n var key = regex.keys[i - 1];\n var val = typeof m[i] === 'string' ? decodeURIComponent(m[i]) : m[i];\n if (key) {\n params[key.name] = val;\n }\n }\n\n return true\n}\n\nfunction resolveRecordPath (path, record) {\n return resolvePath(path, record.parent ? record.parent.path : '/', true)\n}\n\n/* */\n\n\nvar positionStore = Object.create(null);\n\nfunction setupScroll () {\n // Fix for #1585 for Firefox\n window.history.replaceState({ key: getStateKey() }, '');\n window.addEventListener('popstate', function (e) {\n saveScrollPosition();\n if (e.state && e.state.key) {\n setStateKey(e.state.key);\n }\n });\n}\n\nfunction handleScroll (\n router,\n to,\n from,\n isPop\n) {\n if (!router.app) {\n return\n }\n\n var behavior = router.options.scrollBehavior;\n if (!behavior) {\n return\n }\n\n if (process.env.NODE_ENV !== 'production') {\n assert(typeof behavior === 'function', \"scrollBehavior must be a function\");\n }\n\n // wait until re-render finishes before scrolling\n router.app.$nextTick(function () {\n var position = getScrollPosition();\n var shouldScroll = behavior(to, from, isPop ? position : null);\n\n if (!shouldScroll) {\n return\n }\n\n if (typeof shouldScroll.then === 'function') {\n shouldScroll.then(function (shouldScroll) {\n scrollToPosition((shouldScroll), position);\n }).catch(function (err) {\n if (process.env.NODE_ENV !== 'production') {\n assert(false, err.toString());\n }\n });\n } else {\n scrollToPosition(shouldScroll, position);\n }\n });\n}\n\nfunction saveScrollPosition () {\n var key = getStateKey();\n if (key) {\n positionStore[key] = {\n x: window.pageXOffset,\n y: window.pageYOffset\n };\n }\n}\n\nfunction getScrollPosition () {\n var key = getStateKey();\n if (key) {\n return positionStore[key]\n }\n}\n\nfunction getElementPosition (el, offset) {\n var docEl = document.documentElement;\n var docRect = docEl.getBoundingClientRect();\n var elRect = el.getBoundingClientRect();\n return {\n x: elRect.left - docRect.left - offset.x,\n y: elRect.top - docRect.top - offset.y\n }\n}\n\nfunction isValidPosition (obj) {\n return isNumber(obj.x) || isNumber(obj.y)\n}\n\nfunction normalizePosition (obj) {\n return {\n x: isNumber(obj.x) ? obj.x : window.pageXOffset,\n y: isNumber(obj.y) ? obj.y : window.pageYOffset\n }\n}\n\nfunction normalizeOffset (obj) {\n return {\n x: isNumber(obj.x) ? obj.x : 0,\n y: isNumber(obj.y) ? obj.y : 0\n }\n}\n\nfunction isNumber (v) {\n return typeof v === 'number'\n}\n\nfunction scrollToPosition (shouldScroll, position) {\n var isObject = typeof shouldScroll === 'object';\n if (isObject && typeof shouldScroll.selector === 'string') {\n var el = document.querySelector(shouldScroll.selector);\n if (el) {\n var offset = shouldScroll.offset && typeof shouldScroll.offset === 'object' ? shouldScroll.offset : {};\n offset = normalizeOffset(offset);\n position = getElementPosition(el, offset);\n } else if (isValidPosition(shouldScroll)) {\n position = normalizePosition(shouldScroll);\n }\n } else if (isObject && isValidPosition(shouldScroll)) {\n position = normalizePosition(shouldScroll);\n }\n\n if (position) {\n window.scrollTo(position.x, position.y);\n }\n}\n\n/* */\n\nvar supportsPushState = inBrowser && (function () {\n var ua = window.navigator.userAgent;\n\n if (\n (ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) &&\n ua.indexOf('Mobile Safari') !== -1 &&\n ua.indexOf('Chrome') === -1 &&\n ua.indexOf('Windows Phone') === -1\n ) {\n return false\n }\n\n return window.history && 'pushState' in window.history\n})();\n\n// use User Timing api (if present) for more accurate key precision\nvar Time = inBrowser && window.performance && window.performance.now\n ? window.performance\n : Date;\n\nvar _key = genKey();\n\nfunction genKey () {\n return Time.now().toFixed(3)\n}\n\nfunction getStateKey () {\n return _key\n}\n\nfunction setStateKey (key) {\n _key = key;\n}\n\nfunction pushState (url, replace) {\n saveScrollPosition();\n // try...catch the pushState call to get around Safari\n // DOM Exception 18 where it limits to 100 pushState calls\n var history = window.history;\n try {\n if (replace) {\n history.replaceState({ key: _key }, '', url);\n } else {\n _key = genKey();\n history.pushState({ key: _key }, '', url);\n }\n } catch (e) {\n window.location[replace ? 'replace' : 'assign'](url);\n }\n}\n\nfunction replaceState (url) {\n pushState(url, true);\n}\n\n/* */\n\nfunction runQueue (queue, fn, cb) {\n var step = function (index) {\n if (index >= queue.length) {\n cb();\n } else {\n if (queue[index]) {\n fn(queue[index], function () {\n step(index + 1);\n });\n } else {\n step(index + 1);\n }\n }\n };\n step(0);\n}\n\n/* */\n\nfunction resolveAsyncComponents (matched) {\n return function (to, from, next) {\n var hasAsync = false;\n var pending = 0;\n var error = null;\n\n flatMapComponents(matched, function (def, _, match, key) {\n // if it's a function and doesn't have cid attached,\n // assume it's an async component resolve function.\n // we are not using Vue's default async resolving mechanism because\n // we want to halt the navigation until the incoming component has been\n // resolved.\n if (typeof def === 'function' && def.cid === undefined) {\n hasAsync = true;\n pending++;\n\n var resolve = once(function (resolvedDef) {\n if (isESModule(resolvedDef)) {\n resolvedDef = resolvedDef.default;\n }\n // save resolved on async factory in case it's used elsewhere\n def.resolved = typeof resolvedDef === 'function'\n ? resolvedDef\n : _Vue.extend(resolvedDef);\n match.components[key] = resolvedDef;\n pending--;\n if (pending <= 0) {\n next();\n }\n });\n\n var reject = once(function (reason) {\n var msg = \"Failed to resolve async component \" + key + \": \" + reason;\n process.env.NODE_ENV !== 'production' && warn(false, msg);\n if (!error) {\n error = isError(reason)\n ? reason\n : new Error(msg);\n next(error);\n }\n });\n\n var res;\n try {\n res = def(resolve, reject);\n } catch (e) {\n reject(e);\n }\n if (res) {\n if (typeof res.then === 'function') {\n res.then(resolve, reject);\n } else {\n // new syntax in Vue 2.3\n var comp = res.component;\n if (comp && typeof comp.then === 'function') {\n comp.then(resolve, reject);\n }\n }\n }\n }\n });\n\n if (!hasAsync) { next(); }\n }\n}\n\nfunction flatMapComponents (\n matched,\n fn\n) {\n return flatten(matched.map(function (m) {\n return Object.keys(m.components).map(function (key) { return fn(\n m.components[key],\n m.instances[key],\n m, key\n ); })\n }))\n}\n\nfunction flatten (arr) {\n return Array.prototype.concat.apply([], arr)\n}\n\nvar hasSymbol =\n typeof Symbol === 'function' &&\n typeof Symbol.toStringTag === 'symbol';\n\nfunction isESModule (obj) {\n return obj.__esModule || (hasSymbol && obj[Symbol.toStringTag] === 'Module')\n}\n\n// in Webpack 2, require.ensure now also returns a Promise\n// so the resolve/reject functions may get called an extra time\n// if the user uses an arrow function shorthand that happens to\n// return that Promise.\nfunction once (fn) {\n var called = false;\n return function () {\n var args = [], len = arguments.length;\n while ( len-- ) args[ len ] = arguments[ len ];\n\n if (called) { return }\n called = true;\n return fn.apply(this, args)\n }\n}\n\n/* */\n\nvar History = function History (router, base) {\n this.router = router;\n this.base = normalizeBase(base);\n // start with a route object that stands for \"nowhere\"\n this.current = START;\n this.pending = null;\n this.ready = false;\n this.readyCbs = [];\n this.readyErrorCbs = [];\n this.errorCbs = [];\n};\n\nHistory.prototype.listen = function listen (cb) {\n this.cb = cb;\n};\n\nHistory.prototype.onReady = function onReady (cb, errorCb) {\n if (this.ready) {\n cb();\n } else {\n this.readyCbs.push(cb);\n if (errorCb) {\n this.readyErrorCbs.push(errorCb);\n }\n }\n};\n\nHistory.prototype.onError = function onError (errorCb) {\n this.errorCbs.push(errorCb);\n};\n\nHistory.prototype.transitionTo = function transitionTo (location, onComplete, onAbort) {\n var this$1 = this;\n\n var route = this.router.match(location, this.current);\n this.confirmTransition(route, function () {\n this$1.updateRoute(route);\n onComplete && onComplete(route);\n this$1.ensureURL();\n\n // fire ready cbs once\n if (!this$1.ready) {\n this$1.ready = true;\n this$1.readyCbs.forEach(function (cb) { cb(route); });\n }\n }, function (err) {\n if (onAbort) {\n onAbort(err);\n }\n if (err && !this$1.ready) {\n this$1.ready = true;\n this$1.readyErrorCbs.forEach(function (cb) { cb(err); });\n }\n });\n};\n\nHistory.prototype.confirmTransition = function confirmTransition (route, onComplete, onAbort) {\n var this$1 = this;\n\n var current = this.current;\n var abort = function (err) {\n if (isError(err)) {\n if (this$1.errorCbs.length) {\n this$1.errorCbs.forEach(function (cb) { cb(err); });\n } else {\n warn(false, 'uncaught error during route navigation:');\n console.error(err);\n }\n }\n onAbort && onAbort(err);\n };\n if (\n isSameRoute(route, current) &&\n // in the case the route map has been dynamically appended to\n route.matched.length === current.matched.length\n ) {\n this.ensureURL();\n return abort()\n }\n\n var ref = resolveQueue(this.current.matched, route.matched);\n var updated = ref.updated;\n var deactivated = ref.deactivated;\n var activated = ref.activated;\n\n var queue = [].concat(\n // in-component leave guards\n extractLeaveGuards(deactivated),\n // global before hooks\n this.router.beforeHooks,\n // in-component update hooks\n extractUpdateHooks(updated),\n // in-config enter guards\n activated.map(function (m) { return m.beforeEnter; }),\n // async components\n resolveAsyncComponents(activated)\n );\n\n this.pending = route;\n var iterator = function (hook, next) {\n if (this$1.pending !== route) {\n return abort()\n }\n try {\n hook(route, current, function (to) {\n if (to === false || isError(to)) {\n // next(false) -> abort navigation, ensure current URL\n this$1.ensureURL(true);\n abort(to);\n } else if (\n typeof to === 'string' ||\n (typeof to === 'object' && (\n typeof to.path === 'string' ||\n typeof to.name === 'string'\n ))\n ) {\n // next('/') or next({ path: '/' }) -> redirect\n abort();\n if (typeof to === 'object' && to.replace) {\n this$1.replace(to);\n } else {\n this$1.push(to);\n }\n } else {\n // confirm transition and pass on the value\n next(to);\n }\n });\n } catch (e) {\n abort(e);\n }\n };\n\n runQueue(queue, iterator, function () {\n var postEnterCbs = [];\n var isValid = function () { return this$1.current === route; };\n // wait until async components are resolved before\n // extracting in-component enter guards\n var enterGuards = extractEnterGuards(activated, postEnterCbs, isValid);\n var queue = enterGuards.concat(this$1.router.resolveHooks);\n runQueue(queue, iterator, function () {\n if (this$1.pending !== route) {\n return abort()\n }\n this$1.pending = null;\n onComplete(route);\n if (this$1.router.app) {\n this$1.router.app.$nextTick(function () {\n postEnterCbs.forEach(function (cb) { cb(); });\n });\n }\n });\n });\n};\n\nHistory.prototype.updateRoute = function updateRoute (route) {\n var prev = this.current;\n this.current = route;\n this.cb && this.cb(route);\n this.router.afterHooks.forEach(function (hook) {\n hook && hook(route, prev);\n });\n};\n\nfunction normalizeBase (base) {\n if (!base) {\n if (inBrowser) {\n // respect tag\n var baseEl = document.querySelector('base');\n base = (baseEl && baseEl.getAttribute('href')) || '/';\n // strip full URL origin\n base = base.replace(/^https?:\\/\\/[^\\/]+/, '');\n } else {\n base = '/';\n }\n }\n // make sure there's the starting slash\n if (base.charAt(0) !== '/') {\n base = '/' + base;\n }\n // remove trailing slash\n return base.replace(/\\/$/, '')\n}\n\nfunction resolveQueue (\n current,\n next\n) {\n var i;\n var max = Math.max(current.length, next.length);\n for (i = 0; i < max; i++) {\n if (current[i] !== next[i]) {\n break\n }\n }\n return {\n updated: next.slice(0, i),\n activated: next.slice(i),\n deactivated: current.slice(i)\n }\n}\n\nfunction extractGuards (\n records,\n name,\n bind,\n reverse\n) {\n var guards = flatMapComponents(records, function (def, instance, match, key) {\n var guard = extractGuard(def, name);\n if (guard) {\n return Array.isArray(guard)\n ? guard.map(function (guard) { return bind(guard, instance, match, key); })\n : bind(guard, instance, match, key)\n }\n });\n return flatten(reverse ? guards.reverse() : guards)\n}\n\nfunction extractGuard (\n def,\n key\n) {\n if (typeof def !== 'function') {\n // extend now so that global mixins are applied.\n def = _Vue.extend(def);\n }\n return def.options[key]\n}\n\nfunction extractLeaveGuards (deactivated) {\n return extractGuards(deactivated, 'beforeRouteLeave', bindGuard, true)\n}\n\nfunction extractUpdateHooks (updated) {\n return extractGuards(updated, 'beforeRouteUpdate', bindGuard)\n}\n\nfunction bindGuard (guard, instance) {\n if (instance) {\n return function boundRouteGuard () {\n return guard.apply(instance, arguments)\n }\n }\n}\n\nfunction extractEnterGuards (\n activated,\n cbs,\n isValid\n) {\n return extractGuards(activated, 'beforeRouteEnter', function (guard, _, match, key) {\n return bindEnterGuard(guard, match, key, cbs, isValid)\n })\n}\n\nfunction bindEnterGuard (\n guard,\n match,\n key,\n cbs,\n isValid\n) {\n return function routeEnterGuard (to, from, next) {\n return guard(to, from, function (cb) {\n next(cb);\n if (typeof cb === 'function') {\n cbs.push(function () {\n // #750\n // if a router-view is wrapped with an out-in transition,\n // the instance may not have been registered at this time.\n // we will need to poll for registration until current route\n // is no longer valid.\n poll(cb, match.instances, key, isValid);\n });\n }\n })\n }\n}\n\nfunction poll (\n cb, // somehow flow cannot infer this is a function\n instances,\n key,\n isValid\n) {\n if (instances[key]) {\n cb(instances[key]);\n } else if (isValid()) {\n setTimeout(function () {\n poll(cb, instances, key, isValid);\n }, 16);\n }\n}\n\n/* */\n\n\nvar HTML5History = (function (History$$1) {\n function HTML5History (router, base) {\n var this$1 = this;\n\n History$$1.call(this, router, base);\n\n var expectScroll = router.options.scrollBehavior;\n\n if (expectScroll) {\n setupScroll();\n }\n\n var initLocation = getLocation(this.base);\n window.addEventListener('popstate', function (e) {\n var current = this$1.current;\n\n // Avoiding first `popstate` event dispatched in some browsers but first\n // history route not updated since async guard at the same time.\n var location = getLocation(this$1.base);\n if (this$1.current === START && location === initLocation) {\n return\n }\n\n this$1.transitionTo(location, function (route) {\n if (expectScroll) {\n handleScroll(router, route, current, true);\n }\n });\n });\n }\n\n if ( History$$1 ) HTML5History.__proto__ = History$$1;\n HTML5History.prototype = Object.create( History$$1 && History$$1.prototype );\n HTML5History.prototype.constructor = HTML5History;\n\n HTML5History.prototype.go = function go (n) {\n window.history.go(n);\n };\n\n HTML5History.prototype.push = function push (location, onComplete, onAbort) {\n var this$1 = this;\n\n var ref = this;\n var fromRoute = ref.current;\n this.transitionTo(location, function (route) {\n pushState(cleanPath(this$1.base + route.fullPath));\n handleScroll(this$1.router, route, fromRoute, false);\n onComplete && onComplete(route);\n }, onAbort);\n };\n\n HTML5History.prototype.replace = function replace (location, onComplete, onAbort) {\n var this$1 = this;\n\n var ref = this;\n var fromRoute = ref.current;\n this.transitionTo(location, function (route) {\n replaceState(cleanPath(this$1.base + route.fullPath));\n handleScroll(this$1.router, route, fromRoute, false);\n onComplete && onComplete(route);\n }, onAbort);\n };\n\n HTML5History.prototype.ensureURL = function ensureURL (push) {\n if (getLocation(this.base) !== this.current.fullPath) {\n var current = cleanPath(this.base + this.current.fullPath);\n push ? pushState(current) : replaceState(current);\n }\n };\n\n HTML5History.prototype.getCurrentLocation = function getCurrentLocation () {\n return getLocation(this.base)\n };\n\n return HTML5History;\n}(History));\n\nfunction getLocation (base) {\n var path = window.location.pathname;\n if (base && path.indexOf(base) === 0) {\n path = path.slice(base.length);\n }\n return (path || '/') + window.location.search + window.location.hash\n}\n\n/* */\n\n\nvar HashHistory = (function (History$$1) {\n function HashHistory (router, base, fallback) {\n History$$1.call(this, router, base);\n // check history fallback deeplinking\n if (fallback && checkFallback(this.base)) {\n return\n }\n ensureSlash();\n }\n\n if ( History$$1 ) HashHistory.__proto__ = History$$1;\n HashHistory.prototype = Object.create( History$$1 && History$$1.prototype );\n HashHistory.prototype.constructor = HashHistory;\n\n // this is delayed until the app mounts\n // to avoid the hashchange listener being fired too early\n HashHistory.prototype.setupListeners = function setupListeners () {\n var this$1 = this;\n\n var router = this.router;\n var expectScroll = router.options.scrollBehavior;\n var supportsScroll = supportsPushState && expectScroll;\n\n if (supportsScroll) {\n setupScroll();\n }\n\n window.addEventListener(supportsPushState ? 'popstate' : 'hashchange', function () {\n var current = this$1.current;\n if (!ensureSlash()) {\n return\n }\n this$1.transitionTo(getHash(), function (route) {\n if (supportsScroll) {\n handleScroll(this$1.router, route, current, true);\n }\n if (!supportsPushState) {\n replaceHash(route.fullPath);\n }\n });\n });\n };\n\n HashHistory.prototype.push = function push (location, onComplete, onAbort) {\n var this$1 = this;\n\n var ref = this;\n var fromRoute = ref.current;\n this.transitionTo(location, function (route) {\n pushHash(route.fullPath);\n handleScroll(this$1.router, route, fromRoute, false);\n onComplete && onComplete(route);\n }, onAbort);\n };\n\n HashHistory.prototype.replace = function replace (location, onComplete, onAbort) {\n var this$1 = this;\n\n var ref = this;\n var fromRoute = ref.current;\n this.transitionTo(location, function (route) {\n replaceHash(route.fullPath);\n handleScroll(this$1.router, route, fromRoute, false);\n onComplete && onComplete(route);\n }, onAbort);\n };\n\n HashHistory.prototype.go = function go (n) {\n window.history.go(n);\n };\n\n HashHistory.prototype.ensureURL = function ensureURL (push) {\n var current = this.current.fullPath;\n if (getHash() !== current) {\n push ? pushHash(current) : replaceHash(current);\n }\n };\n\n HashHistory.prototype.getCurrentLocation = function getCurrentLocation () {\n return getHash()\n };\n\n return HashHistory;\n}(History));\n\nfunction checkFallback (base) {\n var location = getLocation(base);\n if (!/^\\/#/.test(location)) {\n window.location.replace(\n cleanPath(base + '/#' + location)\n );\n return true\n }\n}\n\nfunction ensureSlash () {\n var path = getHash();\n if (path.charAt(0) === '/') {\n return true\n }\n replaceHash('/' + path);\n return false\n}\n\nfunction getHash () {\n // We can't use window.location.hash here because it's not\n // consistent across browsers - Firefox will pre-decode it!\n var href = window.location.href;\n var index = href.indexOf('#');\n return index === -1 ? '' : href.slice(index + 1)\n}\n\nfunction getUrl (path) {\n var href = window.location.href;\n var i = href.indexOf('#');\n var base = i >= 0 ? href.slice(0, i) : href;\n return (base + \"#\" + path)\n}\n\nfunction pushHash (path) {\n if (supportsPushState) {\n pushState(getUrl(path));\n } else {\n window.location.hash = path;\n }\n}\n\nfunction replaceHash (path) {\n if (supportsPushState) {\n replaceState(getUrl(path));\n } else {\n window.location.replace(getUrl(path));\n }\n}\n\n/* */\n\n\nvar AbstractHistory = (function (History$$1) {\n function AbstractHistory (router, base) {\n History$$1.call(this, router, base);\n this.stack = [];\n this.index = -1;\n }\n\n if ( History$$1 ) AbstractHistory.__proto__ = History$$1;\n AbstractHistory.prototype = Object.create( History$$1 && History$$1.prototype );\n AbstractHistory.prototype.constructor = AbstractHistory;\n\n AbstractHistory.prototype.push = function push (location, onComplete, onAbort) {\n var this$1 = this;\n\n this.transitionTo(location, function (route) {\n this$1.stack = this$1.stack.slice(0, this$1.index + 1).concat(route);\n this$1.index++;\n onComplete && onComplete(route);\n }, onAbort);\n };\n\n AbstractHistory.prototype.replace = function replace (location, onComplete, onAbort) {\n var this$1 = this;\n\n this.transitionTo(location, function (route) {\n this$1.stack = this$1.stack.slice(0, this$1.index).concat(route);\n onComplete && onComplete(route);\n }, onAbort);\n };\n\n AbstractHistory.prototype.go = function go (n) {\n var this$1 = this;\n\n var targetIndex = this.index + n;\n if (targetIndex < 0 || targetIndex >= this.stack.length) {\n return\n }\n var route = this.stack[targetIndex];\n this.confirmTransition(route, function () {\n this$1.index = targetIndex;\n this$1.updateRoute(route);\n });\n };\n\n AbstractHistory.prototype.getCurrentLocation = function getCurrentLocation () {\n var current = this.stack[this.stack.length - 1];\n return current ? current.fullPath : '/'\n };\n\n AbstractHistory.prototype.ensureURL = function ensureURL () {\n // noop\n };\n\n return AbstractHistory;\n}(History));\n\n/* */\n\nvar VueRouter = function VueRouter (options) {\n if ( options === void 0 ) options = {};\n\n this.app = null;\n this.apps = [];\n this.options = options;\n this.beforeHooks = [];\n this.resolveHooks = [];\n this.afterHooks = [];\n this.matcher = createMatcher(options.routes || [], this);\n\n var mode = options.mode || 'hash';\n this.fallback = mode === 'history' && !supportsPushState && options.fallback !== false;\n if (this.fallback) {\n mode = 'hash';\n }\n if (!inBrowser) {\n mode = 'abstract';\n }\n this.mode = mode;\n\n switch (mode) {\n case 'history':\n this.history = new HTML5History(this, options.base);\n break\n case 'hash':\n this.history = new HashHistory(this, options.base, this.fallback);\n break\n case 'abstract':\n this.history = new AbstractHistory(this, options.base);\n break\n default:\n if (process.env.NODE_ENV !== 'production') {\n assert(false, (\"invalid mode: \" + mode));\n }\n }\n};\n\nvar prototypeAccessors = { currentRoute: { configurable: true } };\n\nVueRouter.prototype.match = function match (\n raw,\n current,\n redirectedFrom\n) {\n return this.matcher.match(raw, current, redirectedFrom)\n};\n\nprototypeAccessors.currentRoute.get = function () {\n return this.history && this.history.current\n};\n\nVueRouter.prototype.init = function init (app /* Vue component instance */) {\n var this$1 = this;\n\n process.env.NODE_ENV !== 'production' && assert(\n install.installed,\n \"not installed. Make sure to call `Vue.use(VueRouter)` \" +\n \"before creating root instance.\"\n );\n\n this.apps.push(app);\n\n // main app already initialized.\n if (this.app) {\n return\n }\n\n this.app = app;\n\n var history = this.history;\n\n if (history instanceof HTML5History) {\n history.transitionTo(history.getCurrentLocation());\n } else if (history instanceof HashHistory) {\n var setupHashListener = function () {\n history.setupListeners();\n };\n history.transitionTo(\n history.getCurrentLocation(),\n setupHashListener,\n setupHashListener\n );\n }\n\n history.listen(function (route) {\n this$1.apps.forEach(function (app) {\n app._route = route;\n });\n });\n};\n\nVueRouter.prototype.beforeEach = function beforeEach (fn) {\n return registerHook(this.beforeHooks, fn)\n};\n\nVueRouter.prototype.beforeResolve = function beforeResolve (fn) {\n return registerHook(this.resolveHooks, fn)\n};\n\nVueRouter.prototype.afterEach = function afterEach (fn) {\n return registerHook(this.afterHooks, fn)\n};\n\nVueRouter.prototype.onReady = function onReady (cb, errorCb) {\n this.history.onReady(cb, errorCb);\n};\n\nVueRouter.prototype.onError = function onError (errorCb) {\n this.history.onError(errorCb);\n};\n\nVueRouter.prototype.push = function push (location, onComplete, onAbort) {\n this.history.push(location, onComplete, onAbort);\n};\n\nVueRouter.prototype.replace = function replace (location, onComplete, onAbort) {\n this.history.replace(location, onComplete, onAbort);\n};\n\nVueRouter.prototype.go = function go (n) {\n this.history.go(n);\n};\n\nVueRouter.prototype.back = function back () {\n this.go(-1);\n};\n\nVueRouter.prototype.forward = function forward () {\n this.go(1);\n};\n\nVueRouter.prototype.getMatchedComponents = function getMatchedComponents (to) {\n var route = to\n ? to.matched\n ? to\n : this.resolve(to).route\n : this.currentRoute;\n if (!route) {\n return []\n }\n return [].concat.apply([], route.matched.map(function (m) {\n return Object.keys(m.components).map(function (key) {\n return m.components[key]\n })\n }))\n};\n\nVueRouter.prototype.resolve = function resolve (\n to,\n current,\n append\n) {\n var location = normalizeLocation(\n to,\n current || this.history.current,\n append,\n this\n );\n var route = this.match(location, current);\n var fullPath = route.redirectedFrom || route.fullPath;\n var base = this.history.base;\n var href = createHref(base, fullPath, this.mode);\n return {\n location: location,\n route: route,\n href: href,\n // for backwards compat\n normalizedTo: location,\n resolved: route\n }\n};\n\nVueRouter.prototype.addRoutes = function addRoutes (routes) {\n this.matcher.addRoutes(routes);\n if (this.history.current !== START) {\n this.history.transitionTo(this.history.getCurrentLocation());\n }\n};\n\nObject.defineProperties( VueRouter.prototype, prototypeAccessors );\n\nfunction registerHook (list, fn) {\n list.push(fn);\n return function () {\n var i = list.indexOf(fn);\n if (i > -1) { list.splice(i, 1); }\n }\n}\n\nfunction createHref (base, fullPath, mode) {\n var path = mode === 'hash' ? '#' + fullPath : fullPath;\n return base ? cleanPath(base + '/' + path) : path\n}\n\nVueRouter.install = install;\nVueRouter.version = '3.0.1';\n\nif (inBrowser && window.Vue) {\n window.Vue.use(VueRouter);\n}\n\nexport default VueRouter;\n","/*!\n * Vue.js v2.7.14\n * (c) 2014-2022 Evan You\n * Released under the MIT License.\n */\nvar emptyObject = Object.freeze({});\nvar isArray = Array.isArray;\n// These helpers produce better VM code in JS engines due to their\n// explicitness and function inlining.\nfunction isUndef(v) {\n return v === undefined || v === null;\n}\nfunction isDef(v) {\n return v !== undefined && v !== null;\n}\nfunction isTrue(v) {\n return v === true;\n}\nfunction isFalse(v) {\n return v === false;\n}\n/**\n * Check if value is primitive.\n */\nfunction isPrimitive(value) {\n return (typeof value === 'string' ||\n typeof value === 'number' ||\n // $flow-disable-line\n typeof value === 'symbol' ||\n typeof value === 'boolean');\n}\nfunction isFunction(value) {\n return typeof value === 'function';\n}\n/**\n * Quick object check - this is primarily used to tell\n * objects from primitive values when we know the value\n * is a JSON-compliant type.\n */\nfunction isObject(obj) {\n return obj !== null && typeof obj === 'object';\n}\n/**\n * Get the raw type string of a value, e.g., [object Object].\n */\nvar _toString = Object.prototype.toString;\nfunction toRawType(value) {\n return _toString.call(value).slice(8, -1);\n}\n/**\n * Strict object type check. Only returns true\n * for plain JavaScript objects.\n */\nfunction isPlainObject(obj) {\n return _toString.call(obj) === '[object Object]';\n}\nfunction isRegExp(v) {\n return _toString.call(v) === '[object RegExp]';\n}\n/**\n * Check if val is a valid array index.\n */\nfunction isValidArrayIndex(val) {\n var n = parseFloat(String(val));\n return n >= 0 && Math.floor(n) === n && isFinite(val);\n}\nfunction isPromise(val) {\n return (isDef(val) &&\n typeof val.then === 'function' &&\n typeof val.catch === 'function');\n}\n/**\n * Convert a value to a string that is actually rendered.\n */\nfunction toString(val) {\n return val == null\n ? ''\n : Array.isArray(val) || (isPlainObject(val) && val.toString === _toString)\n ? JSON.stringify(val, null, 2)\n : String(val);\n}\n/**\n * Convert an input value to a number for persistence.\n * If the conversion fails, return original string.\n */\nfunction toNumber(val) {\n var n = parseFloat(val);\n return isNaN(n) ? val : n;\n}\n/**\n * Make a map and return a function for checking if a key\n * is in that map.\n */\nfunction makeMap(str, expectsLowerCase) {\n var map = Object.create(null);\n var list = str.split(',');\n for (var i = 0; i < list.length; i++) {\n map[list[i]] = true;\n }\n return expectsLowerCase ? function (val) { return map[val.toLowerCase()]; } : function (val) { return map[val]; };\n}\n/**\n * Check if a tag is a built-in tag.\n */\nvar isBuiltInTag = makeMap('slot,component', true);\n/**\n * Check if an attribute is a reserved attribute.\n */\nvar isReservedAttribute = makeMap('key,ref,slot,slot-scope,is');\n/**\n * Remove an item from an array.\n */\nfunction remove$2(arr, item) {\n var len = arr.length;\n if (len) {\n // fast path for the only / last item\n if (item === arr[len - 1]) {\n arr.length = len - 1;\n return;\n }\n var index = arr.indexOf(item);\n if (index > -1) {\n return arr.splice(index, 1);\n }\n }\n}\n/**\n * Check whether an object has the property.\n */\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nfunction hasOwn(obj, key) {\n return hasOwnProperty.call(obj, key);\n}\n/**\n * Create a cached version of a pure function.\n */\nfunction cached(fn) {\n var cache = Object.create(null);\n return function cachedFn(str) {\n var hit = cache[str];\n return hit || (cache[str] = fn(str));\n };\n}\n/**\n * Camelize a hyphen-delimited string.\n */\nvar camelizeRE = /-(\\w)/g;\nvar camelize = cached(function (str) {\n return str.replace(camelizeRE, function (_, c) { return (c ? c.toUpperCase() : ''); });\n});\n/**\n * Capitalize a string.\n */\nvar capitalize = cached(function (str) {\n return str.charAt(0).toUpperCase() + str.slice(1);\n});\n/**\n * Hyphenate a camelCase string.\n */\nvar hyphenateRE = /\\B([A-Z])/g;\nvar hyphenate = cached(function (str) {\n return str.replace(hyphenateRE, '-$1').toLowerCase();\n});\n/**\n * Simple bind polyfill for environments that do not support it,\n * e.g., PhantomJS 1.x. Technically, we don't need this anymore\n * since native bind is now performant enough in most browsers.\n * But removing it would mean breaking code that was able to run in\n * PhantomJS 1.x, so this must be kept for backward compatibility.\n */\n/* istanbul ignore next */\nfunction polyfillBind(fn, ctx) {\n function boundFn(a) {\n var l = arguments.length;\n return l\n ? l > 1\n ? fn.apply(ctx, arguments)\n : fn.call(ctx, a)\n : fn.call(ctx);\n }\n boundFn._length = fn.length;\n return boundFn;\n}\nfunction nativeBind(fn, ctx) {\n return fn.bind(ctx);\n}\n// @ts-expect-error bind cannot be `undefined`\nvar bind = Function.prototype.bind ? nativeBind : polyfillBind;\n/**\n * Convert an Array-like object to a real Array.\n */\nfunction toArray(list, start) {\n start = start || 0;\n var i = list.length - start;\n var ret = new Array(i);\n while (i--) {\n ret[i] = list[i + start];\n }\n return ret;\n}\n/**\n * Mix properties into target object.\n */\nfunction extend(to, _from) {\n for (var key in _from) {\n to[key] = _from[key];\n }\n return to;\n}\n/**\n * Merge an Array of Objects into a single Object.\n */\nfunction toObject(arr) {\n var res = {};\n for (var i = 0; i < arr.length; i++) {\n if (arr[i]) {\n extend(res, arr[i]);\n }\n }\n return res;\n}\n/* eslint-disable no-unused-vars */\n/**\n * Perform no operation.\n * Stubbing args to make Flow happy without leaving useless transpiled code\n * with ...rest (https://flow.org/blog/2017/05/07/Strict-Function-Call-Arity/).\n */\nfunction noop(a, b, c) { }\n/**\n * Always return false.\n */\nvar no = function (a, b, c) { return false; };\n/* eslint-enable no-unused-vars */\n/**\n * Return the same value.\n */\nvar identity = function (_) { return _; };\n/**\n * Check if two values are loosely equal - that is,\n * if they are plain objects, do they have the same shape?\n */\nfunction looseEqual(a, b) {\n if (a === b)\n return true;\n var isObjectA = isObject(a);\n var isObjectB = isObject(b);\n if (isObjectA && isObjectB) {\n try {\n var isArrayA = Array.isArray(a);\n var isArrayB = Array.isArray(b);\n if (isArrayA && isArrayB) {\n return (a.length === b.length &&\n a.every(function (e, i) {\n return looseEqual(e, b[i]);\n }));\n }\n else if (a instanceof Date && b instanceof Date) {\n return a.getTime() === b.getTime();\n }\n else if (!isArrayA && !isArrayB) {\n var keysA = Object.keys(a);\n var keysB = Object.keys(b);\n return (keysA.length === keysB.length &&\n keysA.every(function (key) {\n return looseEqual(a[key], b[key]);\n }));\n }\n else {\n /* istanbul ignore next */\n return false;\n }\n }\n catch (e) {\n /* istanbul ignore next */\n return false;\n }\n }\n else if (!isObjectA && !isObjectB) {\n return String(a) === String(b);\n }\n else {\n return false;\n }\n}\n/**\n * Return the first index at which a loosely equal value can be\n * found in the array (if value is a plain object, the array must\n * contain an object of the same shape), or -1 if it is not present.\n */\nfunction looseIndexOf(arr, val) {\n for (var i = 0; i < arr.length; i++) {\n if (looseEqual(arr[i], val))\n return i;\n }\n return -1;\n}\n/**\n * Ensure a function is called only once.\n */\nfunction once(fn) {\n var called = false;\n return function () {\n if (!called) {\n called = true;\n fn.apply(this, arguments);\n }\n };\n}\n// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is#polyfill\nfunction hasChanged(x, y) {\n if (x === y) {\n return x === 0 && 1 / x !== 1 / y;\n }\n else {\n return x === x || y === y;\n }\n}\n\nvar SSR_ATTR = 'data-server-rendered';\nvar ASSET_TYPES = ['component', 'directive', 'filter'];\nvar LIFECYCLE_HOOKS = [\n 'beforeCreate',\n 'created',\n 'beforeMount',\n 'mounted',\n 'beforeUpdate',\n 'updated',\n 'beforeDestroy',\n 'destroyed',\n 'activated',\n 'deactivated',\n 'errorCaptured',\n 'serverPrefetch',\n 'renderTracked',\n 'renderTriggered'\n];\n\nvar config = {\n /**\n * Option merge strategies (used in core/util/options)\n */\n // $flow-disable-line\n optionMergeStrategies: Object.create(null),\n /**\n * Whether to suppress warnings.\n */\n silent: false,\n /**\n * Show production mode tip message on boot?\n */\n productionTip: process.env.NODE_ENV !== 'production',\n /**\n * Whether to enable devtools\n */\n devtools: process.env.NODE_ENV !== 'production',\n /**\n * Whether to record perf\n */\n performance: false,\n /**\n * Error handler for watcher errors\n */\n errorHandler: null,\n /**\n * Warn handler for watcher warns\n */\n warnHandler: null,\n /**\n * Ignore certain custom elements\n */\n ignoredElements: [],\n /**\n * Custom user key aliases for v-on\n */\n // $flow-disable-line\n keyCodes: Object.create(null),\n /**\n * Check if a tag is reserved so that it cannot be registered as a\n * component. This is platform-dependent and may be overwritten.\n */\n isReservedTag: no,\n /**\n * Check if an attribute is reserved so that it cannot be used as a component\n * prop. This is platform-dependent and may be overwritten.\n */\n isReservedAttr: no,\n /**\n * Check if a tag is an unknown element.\n * Platform-dependent.\n */\n isUnknownElement: no,\n /**\n * Get the namespace of an element\n */\n getTagNamespace: noop,\n /**\n * Parse the real tag name for the specific platform.\n */\n parsePlatformTagName: identity,\n /**\n * Check if an attribute must be bound using property, e.g. value\n * Platform-dependent.\n */\n mustUseProp: no,\n /**\n * Perform updates asynchronously. Intended to be used by Vue Test Utils\n * This will significantly reduce performance if set to false.\n */\n async: true,\n /**\n * Exposed for legacy reasons\n */\n _lifecycleHooks: LIFECYCLE_HOOKS\n};\n\n/**\n * unicode letters used for parsing html tags, component names and property paths.\n * using https://www.w3.org/TR/html53/semantics-scripting.html#potentialcustomelementname\n * skipping \\u10000-\\uEFFFF due to it freezing up PhantomJS\n */\nvar unicodeRegExp = /a-zA-Z\\u00B7\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u203F-\\u2040\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD/;\n/**\n * Check if a string starts with $ or _\n */\nfunction isReserved(str) {\n var c = (str + '').charCodeAt(0);\n return c === 0x24 || c === 0x5f;\n}\n/**\n * Define a property.\n */\nfunction def(obj, key, val, enumerable) {\n Object.defineProperty(obj, key, {\n value: val,\n enumerable: !!enumerable,\n writable: true,\n configurable: true\n });\n}\n/**\n * Parse simple path.\n */\nvar bailRE = new RegExp(\"[^\".concat(unicodeRegExp.source, \".$_\\\\d]\"));\nfunction parsePath(path) {\n if (bailRE.test(path)) {\n return;\n }\n var segments = path.split('.');\n return function (obj) {\n for (var i = 0; i < segments.length; i++) {\n if (!obj)\n return;\n obj = obj[segments[i]];\n }\n return obj;\n };\n}\n\n// can we use __proto__?\nvar hasProto = '__proto__' in {};\n// Browser environment sniffing\nvar inBrowser = typeof window !== 'undefined';\nvar UA = inBrowser && window.navigator.userAgent.toLowerCase();\nvar isIE = UA && /msie|trident/.test(UA);\nvar isIE9 = UA && UA.indexOf('msie 9.0') > 0;\nvar isEdge = UA && UA.indexOf('edge/') > 0;\nUA && UA.indexOf('android') > 0;\nvar isIOS = UA && /iphone|ipad|ipod|ios/.test(UA);\nUA && /chrome\\/\\d+/.test(UA) && !isEdge;\nUA && /phantomjs/.test(UA);\nvar isFF = UA && UA.match(/firefox\\/(\\d+)/);\n// Firefox has a \"watch\" function on Object.prototype...\n// @ts-expect-error firebox support\nvar nativeWatch = {}.watch;\nvar supportsPassive = false;\nif (inBrowser) {\n try {\n var opts = {};\n Object.defineProperty(opts, 'passive', {\n get: function () {\n /* istanbul ignore next */\n supportsPassive = true;\n }\n }); // https://github.com/facebook/flow/issues/285\n window.addEventListener('test-passive', null, opts);\n }\n catch (e) { }\n}\n// this needs to be lazy-evaled because vue may be required before\n// vue-server-renderer can set VUE_ENV\nvar _isServer;\nvar isServerRendering = function () {\n if (_isServer === undefined) {\n /* istanbul ignore if */\n if (!inBrowser && typeof global !== 'undefined') {\n // detect presence of vue-server-renderer and avoid\n // Webpack shimming the process\n _isServer =\n global['process'] && global['process'].env.VUE_ENV === 'server';\n }\n else {\n _isServer = false;\n }\n }\n return _isServer;\n};\n// detect devtools\nvar devtools = inBrowser && window.__VUE_DEVTOOLS_GLOBAL_HOOK__;\n/* istanbul ignore next */\nfunction isNative(Ctor) {\n return typeof Ctor === 'function' && /native code/.test(Ctor.toString());\n}\nvar hasSymbol = typeof Symbol !== 'undefined' &&\n isNative(Symbol) &&\n typeof Reflect !== 'undefined' &&\n isNative(Reflect.ownKeys);\nvar _Set; // $flow-disable-line\n/* istanbul ignore if */ if (typeof Set !== 'undefined' && isNative(Set)) {\n // use native Set when available.\n _Set = Set;\n}\nelse {\n // a non-standard Set polyfill that only works with primitive keys.\n _Set = /** @class */ (function () {\n function Set() {\n this.set = Object.create(null);\n }\n Set.prototype.has = function (key) {\n return this.set[key] === true;\n };\n Set.prototype.add = function (key) {\n this.set[key] = true;\n };\n Set.prototype.clear = function () {\n this.set = Object.create(null);\n };\n return Set;\n }());\n}\n\nvar currentInstance = null;\n/**\n * This is exposed for compatibility with v3 (e.g. some functions in VueUse\n * relies on it). Do not use this internally, just use `currentInstance`.\n *\n * @internal this function needs manual type declaration because it relies\n * on previously manually authored types from Vue 2\n */\nfunction getCurrentInstance() {\n return currentInstance && { proxy: currentInstance };\n}\n/**\n * @internal\n */\nfunction setCurrentInstance(vm) {\n if (vm === void 0) { vm = null; }\n if (!vm)\n currentInstance && currentInstance._scope.off();\n currentInstance = vm;\n vm && vm._scope.on();\n}\n\n/**\n * @internal\n */\nvar VNode = /** @class */ (function () {\n function VNode(tag, data, children, text, elm, context, componentOptions, asyncFactory) {\n this.tag = tag;\n this.data = data;\n this.children = children;\n this.text = text;\n this.elm = elm;\n this.ns = undefined;\n this.context = context;\n this.fnContext = undefined;\n this.fnOptions = undefined;\n this.fnScopeId = undefined;\n this.key = data && data.key;\n this.componentOptions = componentOptions;\n this.componentInstance = undefined;\n this.parent = undefined;\n this.raw = false;\n this.isStatic = false;\n this.isRootInsert = true;\n this.isComment = false;\n this.isCloned = false;\n this.isOnce = false;\n this.asyncFactory = asyncFactory;\n this.asyncMeta = undefined;\n this.isAsyncPlaceholder = false;\n }\n Object.defineProperty(VNode.prototype, \"child\", {\n // DEPRECATED: alias for componentInstance for backwards compat.\n /* istanbul ignore next */\n get: function () {\n return this.componentInstance;\n },\n enumerable: false,\n configurable: true\n });\n return VNode;\n}());\nvar createEmptyVNode = function (text) {\n if (text === void 0) { text = ''; }\n var node = new VNode();\n node.text = text;\n node.isComment = true;\n return node;\n};\nfunction createTextVNode(val) {\n return new VNode(undefined, undefined, undefined, String(val));\n}\n// optimized shallow clone\n// used for static nodes and slot nodes because they may be reused across\n// multiple renders, cloning them avoids errors when DOM manipulations rely\n// on their elm reference.\nfunction cloneVNode(vnode) {\n var cloned = new VNode(vnode.tag, vnode.data, \n // #7975\n // clone children array to avoid mutating original in case of cloning\n // a child.\n vnode.children && vnode.children.slice(), vnode.text, vnode.elm, vnode.context, vnode.componentOptions, vnode.asyncFactory);\n cloned.ns = vnode.ns;\n cloned.isStatic = vnode.isStatic;\n cloned.key = vnode.key;\n cloned.isComment = vnode.isComment;\n cloned.fnContext = vnode.fnContext;\n cloned.fnOptions = vnode.fnOptions;\n cloned.fnScopeId = vnode.fnScopeId;\n cloned.asyncMeta = vnode.asyncMeta;\n cloned.isCloned = true;\n return cloned;\n}\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\n\nvar uid$2 = 0;\nvar pendingCleanupDeps = [];\nvar cleanupDeps = function () {\n for (var i = 0; i < pendingCleanupDeps.length; i++) {\n var dep = pendingCleanupDeps[i];\n dep.subs = dep.subs.filter(function (s) { return s; });\n dep._pending = false;\n }\n pendingCleanupDeps.length = 0;\n};\n/**\n * A dep is an observable that can have multiple\n * directives subscribing to it.\n * @internal\n */\nvar Dep = /** @class */ (function () {\n function Dep() {\n // pending subs cleanup\n this._pending = false;\n this.id = uid$2++;\n this.subs = [];\n }\n Dep.prototype.addSub = function (sub) {\n this.subs.push(sub);\n };\n Dep.prototype.removeSub = function (sub) {\n // #12696 deps with massive amount of subscribers are extremely slow to\n // clean up in Chromium\n // to workaround this, we unset the sub for now, and clear them on\n // next scheduler flush.\n this.subs[this.subs.indexOf(sub)] = null;\n if (!this._pending) {\n this._pending = true;\n pendingCleanupDeps.push(this);\n }\n };\n Dep.prototype.depend = function (info) {\n if (Dep.target) {\n Dep.target.addDep(this);\n if (process.env.NODE_ENV !== 'production' && info && Dep.target.onTrack) {\n Dep.target.onTrack(__assign({ effect: Dep.target }, info));\n }\n }\n };\n Dep.prototype.notify = function (info) {\n // stabilize the subscriber list first\n var subs = this.subs.filter(function (s) { return s; });\n if (process.env.NODE_ENV !== 'production' && !config.async) {\n // subs aren't sorted in scheduler if not running async\n // we need to sort them now to make sure they fire in correct\n // order\n subs.sort(function (a, b) { return a.id - b.id; });\n }\n for (var i = 0, l = subs.length; i < l; i++) {\n var sub = subs[i];\n if (process.env.NODE_ENV !== 'production' && info) {\n sub.onTrigger &&\n sub.onTrigger(__assign({ effect: subs[i] }, info));\n }\n sub.update();\n }\n };\n return Dep;\n}());\n// The current target watcher being evaluated.\n// This is globally unique because only one watcher\n// can be evaluated at a time.\nDep.target = null;\nvar targetStack = [];\nfunction pushTarget(target) {\n targetStack.push(target);\n Dep.target = target;\n}\nfunction popTarget() {\n targetStack.pop();\n Dep.target = targetStack[targetStack.length - 1];\n}\n\n/*\n * not type checking this file because flow doesn't play well with\n * dynamically accessing methods on Array prototype\n */\nvar arrayProto = Array.prototype;\nvar arrayMethods = Object.create(arrayProto);\nvar methodsToPatch = [\n 'push',\n 'pop',\n 'shift',\n 'unshift',\n 'splice',\n 'sort',\n 'reverse'\n];\n/**\n * Intercept mutating methods and emit events\n */\nmethodsToPatch.forEach(function (method) {\n // cache original method\n var original = arrayProto[method];\n def(arrayMethods, method, function mutator() {\n var args = [];\n for (var _i = 0; _i < arguments.length; _i++) {\n args[_i] = arguments[_i];\n }\n var result = original.apply(this, args);\n var ob = this.__ob__;\n var inserted;\n switch (method) {\n case 'push':\n case 'unshift':\n inserted = args;\n break;\n case 'splice':\n inserted = args.slice(2);\n break;\n }\n if (inserted)\n ob.observeArray(inserted);\n // notify change\n if (process.env.NODE_ENV !== 'production') {\n ob.dep.notify({\n type: \"array mutation\" /* TriggerOpTypes.ARRAY_MUTATION */,\n target: this,\n key: method\n });\n }\n else {\n ob.dep.notify();\n }\n return result;\n });\n});\n\nvar arrayKeys = Object.getOwnPropertyNames(arrayMethods);\nvar NO_INIITIAL_VALUE = {};\n/**\n * In some cases we may want to disable observation inside a component's\n * update computation.\n */\nvar shouldObserve = true;\nfunction toggleObserving(value) {\n shouldObserve = value;\n}\n// ssr mock dep\nvar mockDep = {\n notify: noop,\n depend: noop,\n addSub: noop,\n removeSub: noop\n};\n/**\n * Observer class that is attached to each observed\n * object. Once attached, the observer converts the target\n * object's property keys into getter/setters that\n * collect dependencies and dispatch updates.\n */\nvar Observer = /** @class */ (function () {\n function Observer(value, shallow, mock) {\n if (shallow === void 0) { shallow = false; }\n if (mock === void 0) { mock = false; }\n this.value = value;\n this.shallow = shallow;\n this.mock = mock;\n // this.value = value\n this.dep = mock ? mockDep : new Dep();\n this.vmCount = 0;\n def(value, '__ob__', this);\n if (isArray(value)) {\n if (!mock) {\n if (hasProto) {\n value.__proto__ = arrayMethods;\n /* eslint-enable no-proto */\n }\n else {\n for (var i = 0, l = arrayKeys.length; i < l; i++) {\n var key = arrayKeys[i];\n def(value, key, arrayMethods[key]);\n }\n }\n }\n if (!shallow) {\n this.observeArray(value);\n }\n }\n else {\n /**\n * Walk through all properties and convert them into\n * getter/setters. This method should only be called when\n * value type is Object.\n */\n var keys = Object.keys(value);\n for (var i = 0; i < keys.length; i++) {\n var key = keys[i];\n defineReactive(value, key, NO_INIITIAL_VALUE, undefined, shallow, mock);\n }\n }\n }\n /**\n * Observe a list of Array items.\n */\n Observer.prototype.observeArray = function (value) {\n for (var i = 0, l = value.length; i < l; i++) {\n observe(value[i], false, this.mock);\n }\n };\n return Observer;\n}());\n// helpers\n/**\n * Attempt to create an observer instance for a value,\n * returns the new observer if successfully observed,\n * or the existing observer if the value already has one.\n */\nfunction observe(value, shallow, ssrMockReactivity) {\n if (value && hasOwn(value, '__ob__') && value.__ob__ instanceof Observer) {\n return value.__ob__;\n }\n if (shouldObserve &&\n (ssrMockReactivity || !isServerRendering()) &&\n (isArray(value) || isPlainObject(value)) &&\n Object.isExtensible(value) &&\n !value.__v_skip /* ReactiveFlags.SKIP */ &&\n !isRef(value) &&\n !(value instanceof VNode)) {\n return new Observer(value, shallow, ssrMockReactivity);\n }\n}\n/**\n * Define a reactive property on an Object.\n */\nfunction defineReactive(obj, key, val, customSetter, shallow, mock) {\n var dep = new Dep();\n var property = Object.getOwnPropertyDescriptor(obj, key);\n if (property && property.configurable === false) {\n return;\n }\n // cater for pre-defined getter/setters\n var getter = property && property.get;\n var setter = property && property.set;\n if ((!getter || setter) &&\n (val === NO_INIITIAL_VALUE || arguments.length === 2)) {\n val = obj[key];\n }\n var childOb = !shallow && observe(val, false, mock);\n Object.defineProperty(obj, key, {\n enumerable: true,\n configurable: true,\n get: function reactiveGetter() {\n var value = getter ? getter.call(obj) : val;\n if (Dep.target) {\n if (process.env.NODE_ENV !== 'production') {\n dep.depend({\n target: obj,\n type: \"get\" /* TrackOpTypes.GET */,\n key: key\n });\n }\n else {\n dep.depend();\n }\n if (childOb) {\n childOb.dep.depend();\n if (isArray(value)) {\n dependArray(value);\n }\n }\n }\n return isRef(value) && !shallow ? value.value : value;\n },\n set: function reactiveSetter(newVal) {\n var value = getter ? getter.call(obj) : val;\n if (!hasChanged(value, newVal)) {\n return;\n }\n if (process.env.NODE_ENV !== 'production' && customSetter) {\n customSetter();\n }\n if (setter) {\n setter.call(obj, newVal);\n }\n else if (getter) {\n // #7981: for accessor properties without setter\n return;\n }\n else if (!shallow && isRef(value) && !isRef(newVal)) {\n value.value = newVal;\n return;\n }\n else {\n val = newVal;\n }\n childOb = !shallow && observe(newVal, false, mock);\n if (process.env.NODE_ENV !== 'production') {\n dep.notify({\n type: \"set\" /* TriggerOpTypes.SET */,\n target: obj,\n key: key,\n newValue: newVal,\n oldValue: value\n });\n }\n else {\n dep.notify();\n }\n }\n });\n return dep;\n}\nfunction set(target, key, val) {\n if (process.env.NODE_ENV !== 'production' && (isUndef(target) || isPrimitive(target))) {\n warn(\"Cannot set reactive property on undefined, null, or primitive value: \".concat(target));\n }\n if (isReadonly(target)) {\n process.env.NODE_ENV !== 'production' && warn(\"Set operation on key \\\"\".concat(key, \"\\\" failed: target is readonly.\"));\n return;\n }\n var ob = target.__ob__;\n if (isArray(target) && isValidArrayIndex(key)) {\n target.length = Math.max(target.length, key);\n target.splice(key, 1, val);\n // when mocking for SSR, array methods are not hijacked\n if (ob && !ob.shallow && ob.mock) {\n observe(val, false, true);\n }\n return val;\n }\n if (key in target && !(key in Object.prototype)) {\n target[key] = val;\n return val;\n }\n if (target._isVue || (ob && ob.vmCount)) {\n process.env.NODE_ENV !== 'production' &&\n warn('Avoid adding reactive properties to a Vue instance or its root $data ' +\n 'at runtime - declare it upfront in the data option.');\n return val;\n }\n if (!ob) {\n target[key] = val;\n return val;\n }\n defineReactive(ob.value, key, val, undefined, ob.shallow, ob.mock);\n if (process.env.NODE_ENV !== 'production') {\n ob.dep.notify({\n type: \"add\" /* TriggerOpTypes.ADD */,\n target: target,\n key: key,\n newValue: val,\n oldValue: undefined\n });\n }\n else {\n ob.dep.notify();\n }\n return val;\n}\nfunction del(target, key) {\n if (process.env.NODE_ENV !== 'production' && (isUndef(target) || isPrimitive(target))) {\n warn(\"Cannot delete reactive property on undefined, null, or primitive value: \".concat(target));\n }\n if (isArray(target) && isValidArrayIndex(key)) {\n target.splice(key, 1);\n return;\n }\n var ob = target.__ob__;\n if (target._isVue || (ob && ob.vmCount)) {\n process.env.NODE_ENV !== 'production' &&\n warn('Avoid deleting properties on a Vue instance or its root $data ' +\n '- just set it to null.');\n return;\n }\n if (isReadonly(target)) {\n process.env.NODE_ENV !== 'production' &&\n warn(\"Delete operation on key \\\"\".concat(key, \"\\\" failed: target is readonly.\"));\n return;\n }\n if (!hasOwn(target, key)) {\n return;\n }\n delete target[key];\n if (!ob) {\n return;\n }\n if (process.env.NODE_ENV !== 'production') {\n ob.dep.notify({\n type: \"delete\" /* TriggerOpTypes.DELETE */,\n target: target,\n key: key\n });\n }\n else {\n ob.dep.notify();\n }\n}\n/**\n * Collect dependencies on array elements when the array is touched, since\n * we cannot intercept array element access like property getters.\n */\nfunction dependArray(value) {\n for (var e = void 0, i = 0, l = value.length; i < l; i++) {\n e = value[i];\n if (e && e.__ob__) {\n e.__ob__.dep.depend();\n }\n if (isArray(e)) {\n dependArray(e);\n }\n }\n}\n\nfunction reactive(target) {\n makeReactive(target, false);\n return target;\n}\n/**\n * Return a shallowly-reactive copy of the original object, where only the root\n * level properties are reactive. It also does not auto-unwrap refs (even at the\n * root level).\n */\nfunction shallowReactive(target) {\n makeReactive(target, true);\n def(target, \"__v_isShallow\" /* ReactiveFlags.IS_SHALLOW */, true);\n return target;\n}\nfunction makeReactive(target, shallow) {\n // if trying to observe a readonly proxy, return the readonly version.\n if (!isReadonly(target)) {\n if (process.env.NODE_ENV !== 'production') {\n if (isArray(target)) {\n warn(\"Avoid using Array as root value for \".concat(shallow ? \"shallowReactive()\" : \"reactive()\", \" as it cannot be tracked in watch() or watchEffect(). Use \").concat(shallow ? \"shallowRef()\" : \"ref()\", \" instead. This is a Vue-2-only limitation.\"));\n }\n var existingOb = target && target.__ob__;\n if (existingOb && existingOb.shallow !== shallow) {\n warn(\"Target is already a \".concat(existingOb.shallow ? \"\" : \"non-\", \"shallow reactive object, and cannot be converted to \").concat(shallow ? \"\" : \"non-\", \"shallow.\"));\n }\n }\n var ob = observe(target, shallow, isServerRendering() /* ssr mock reactivity */);\n if (process.env.NODE_ENV !== 'production' && !ob) {\n if (target == null || isPrimitive(target)) {\n warn(\"value cannot be made reactive: \".concat(String(target)));\n }\n if (isCollectionType(target)) {\n warn(\"Vue 2 does not support reactive collection types such as Map or Set.\");\n }\n }\n }\n}\nfunction isReactive(value) {\n if (isReadonly(value)) {\n return isReactive(value[\"__v_raw\" /* ReactiveFlags.RAW */]);\n }\n return !!(value && value.__ob__);\n}\nfunction isShallow(value) {\n return !!(value && value.__v_isShallow);\n}\nfunction isReadonly(value) {\n return !!(value && value.__v_isReadonly);\n}\nfunction isProxy(value) {\n return isReactive(value) || isReadonly(value);\n}\nfunction toRaw(observed) {\n var raw = observed && observed[\"__v_raw\" /* ReactiveFlags.RAW */];\n return raw ? toRaw(raw) : observed;\n}\nfunction markRaw(value) {\n // non-extensible objects won't be observed anyway\n if (Object.isExtensible(value)) {\n def(value, \"__v_skip\" /* ReactiveFlags.SKIP */, true);\n }\n return value;\n}\n/**\n * @internal\n */\nfunction isCollectionType(value) {\n var type = toRawType(value);\n return (type === 'Map' || type === 'WeakMap' || type === 'Set' || type === 'WeakSet');\n}\n\n/**\n * @internal\n */\nvar RefFlag = \"__v_isRef\";\nfunction isRef(r) {\n return !!(r && r.__v_isRef === true);\n}\nfunction ref$1(value) {\n return createRef(value, false);\n}\nfunction shallowRef(value) {\n return createRef(value, true);\n}\nfunction createRef(rawValue, shallow) {\n if (isRef(rawValue)) {\n return rawValue;\n }\n var ref = {};\n def(ref, RefFlag, true);\n def(ref, \"__v_isShallow\" /* ReactiveFlags.IS_SHALLOW */, shallow);\n def(ref, 'dep', defineReactive(ref, 'value', rawValue, null, shallow, isServerRendering()));\n return ref;\n}\nfunction triggerRef(ref) {\n if (process.env.NODE_ENV !== 'production' && !ref.dep) {\n warn(\"received object is not a triggerable ref.\");\n }\n if (process.env.NODE_ENV !== 'production') {\n ref.dep &&\n ref.dep.notify({\n type: \"set\" /* TriggerOpTypes.SET */,\n target: ref,\n key: 'value'\n });\n }\n else {\n ref.dep && ref.dep.notify();\n }\n}\nfunction unref(ref) {\n return isRef(ref) ? ref.value : ref;\n}\nfunction proxyRefs(objectWithRefs) {\n if (isReactive(objectWithRefs)) {\n return objectWithRefs;\n }\n var proxy = {};\n var keys = Object.keys(objectWithRefs);\n for (var i = 0; i < keys.length; i++) {\n proxyWithRefUnwrap(proxy, objectWithRefs, keys[i]);\n }\n return proxy;\n}\nfunction proxyWithRefUnwrap(target, source, key) {\n Object.defineProperty(target, key, {\n enumerable: true,\n configurable: true,\n get: function () {\n var val = source[key];\n if (isRef(val)) {\n return val.value;\n }\n else {\n var ob = val && val.__ob__;\n if (ob)\n ob.dep.depend();\n return val;\n }\n },\n set: function (value) {\n var oldValue = source[key];\n if (isRef(oldValue) && !isRef(value)) {\n oldValue.value = value;\n }\n else {\n source[key] = value;\n }\n }\n });\n}\nfunction customRef(factory) {\n var dep = new Dep();\n var _a = factory(function () {\n if (process.env.NODE_ENV !== 'production') {\n dep.depend({\n target: ref,\n type: \"get\" /* TrackOpTypes.GET */,\n key: 'value'\n });\n }\n else {\n dep.depend();\n }\n }, function () {\n if (process.env.NODE_ENV !== 'production') {\n dep.notify({\n target: ref,\n type: \"set\" /* TriggerOpTypes.SET */,\n key: 'value'\n });\n }\n else {\n dep.notify();\n }\n }), get = _a.get, set = _a.set;\n var ref = {\n get value() {\n return get();\n },\n set value(newVal) {\n set(newVal);\n }\n };\n def(ref, RefFlag, true);\n return ref;\n}\nfunction toRefs(object) {\n if (process.env.NODE_ENV !== 'production' && !isReactive(object)) {\n warn(\"toRefs() expects a reactive object but received a plain one.\");\n }\n var ret = isArray(object) ? new Array(object.length) : {};\n for (var key in object) {\n ret[key] = toRef(object, key);\n }\n return ret;\n}\nfunction toRef(object, key, defaultValue) {\n var val = object[key];\n if (isRef(val)) {\n return val;\n }\n var ref = {\n get value() {\n var val = object[key];\n return val === undefined ? defaultValue : val;\n },\n set value(newVal) {\n object[key] = newVal;\n }\n };\n def(ref, RefFlag, true);\n return ref;\n}\n\nvar rawToReadonlyFlag = \"__v_rawToReadonly\";\nvar rawToShallowReadonlyFlag = \"__v_rawToShallowReadonly\";\nfunction readonly(target) {\n return createReadonly(target, false);\n}\nfunction createReadonly(target, shallow) {\n if (!isPlainObject(target)) {\n if (process.env.NODE_ENV !== 'production') {\n if (isArray(target)) {\n warn(\"Vue 2 does not support readonly arrays.\");\n }\n else if (isCollectionType(target)) {\n warn(\"Vue 2 does not support readonly collection types such as Map or Set.\");\n }\n else {\n warn(\"value cannot be made readonly: \".concat(typeof target));\n }\n }\n return target;\n }\n if (process.env.NODE_ENV !== 'production' && !Object.isExtensible(target)) {\n warn(\"Vue 2 does not support creating readonly proxy for non-extensible object.\");\n }\n // already a readonly object\n if (isReadonly(target)) {\n return target;\n }\n // already has a readonly proxy\n var existingFlag = shallow ? rawToShallowReadonlyFlag : rawToReadonlyFlag;\n var existingProxy = target[existingFlag];\n if (existingProxy) {\n return existingProxy;\n }\n var proxy = Object.create(Object.getPrototypeOf(target));\n def(target, existingFlag, proxy);\n def(proxy, \"__v_isReadonly\" /* ReactiveFlags.IS_READONLY */, true);\n def(proxy, \"__v_raw\" /* ReactiveFlags.RAW */, target);\n if (isRef(target)) {\n def(proxy, RefFlag, true);\n }\n if (shallow || isShallow(target)) {\n def(proxy, \"__v_isShallow\" /* ReactiveFlags.IS_SHALLOW */, true);\n }\n var keys = Object.keys(target);\n for (var i = 0; i < keys.length; i++) {\n defineReadonlyProperty(proxy, target, keys[i], shallow);\n }\n return proxy;\n}\nfunction defineReadonlyProperty(proxy, target, key, shallow) {\n Object.defineProperty(proxy, key, {\n enumerable: true,\n configurable: true,\n get: function () {\n var val = target[key];\n return shallow || !isPlainObject(val) ? val : readonly(val);\n },\n set: function () {\n process.env.NODE_ENV !== 'production' &&\n warn(\"Set operation on key \\\"\".concat(key, \"\\\" failed: target is readonly.\"));\n }\n });\n}\n/**\n * Returns a reactive-copy of the original object, where only the root level\n * properties are readonly, and does NOT unwrap refs nor recursively convert\n * returned properties.\n * This is used for creating the props proxy object for stateful components.\n */\nfunction shallowReadonly(target) {\n return createReadonly(target, true);\n}\n\nfunction computed(getterOrOptions, debugOptions) {\n var getter;\n var setter;\n var onlyGetter = isFunction(getterOrOptions);\n if (onlyGetter) {\n getter = getterOrOptions;\n setter = process.env.NODE_ENV !== 'production'\n ? function () {\n warn('Write operation failed: computed value is readonly');\n }\n : noop;\n }\n else {\n getter = getterOrOptions.get;\n setter = getterOrOptions.set;\n }\n var watcher = isServerRendering()\n ? null\n : new Watcher(currentInstance, getter, noop, { lazy: true });\n if (process.env.NODE_ENV !== 'production' && watcher && debugOptions) {\n watcher.onTrack = debugOptions.onTrack;\n watcher.onTrigger = debugOptions.onTrigger;\n }\n var ref = {\n // some libs rely on the presence effect for checking computed refs\n // from normal refs, but the implementation doesn't matter\n effect: watcher,\n get value() {\n if (watcher) {\n if (watcher.dirty) {\n watcher.evaluate();\n }\n if (Dep.target) {\n if (process.env.NODE_ENV !== 'production' && Dep.target.onTrack) {\n Dep.target.onTrack({\n effect: Dep.target,\n target: ref,\n type: \"get\" /* TrackOpTypes.GET */,\n key: 'value'\n });\n }\n watcher.depend();\n }\n return watcher.value;\n }\n else {\n return getter();\n }\n },\n set value(newVal) {\n setter(newVal);\n }\n };\n def(ref, RefFlag, true);\n def(ref, \"__v_isReadonly\" /* ReactiveFlags.IS_READONLY */, onlyGetter);\n return ref;\n}\n\nvar WATCHER = \"watcher\";\nvar WATCHER_CB = \"\".concat(WATCHER, \" callback\");\nvar WATCHER_GETTER = \"\".concat(WATCHER, \" getter\");\nvar WATCHER_CLEANUP = \"\".concat(WATCHER, \" cleanup\");\n// Simple effect.\nfunction watchEffect(effect, options) {\n return doWatch(effect, null, options);\n}\nfunction watchPostEffect(effect, options) {\n return doWatch(effect, null, (process.env.NODE_ENV !== 'production'\n ? __assign(__assign({}, options), { flush: 'post' }) : { flush: 'post' }));\n}\nfunction watchSyncEffect(effect, options) {\n return doWatch(effect, null, (process.env.NODE_ENV !== 'production'\n ? __assign(__assign({}, options), { flush: 'sync' }) : { flush: 'sync' }));\n}\n// initial value for watchers to trigger on undefined initial values\nvar INITIAL_WATCHER_VALUE = {};\n// implementation\nfunction watch(source, cb, options) {\n if (process.env.NODE_ENV !== 'production' && typeof cb !== 'function') {\n warn(\"`watch(fn, options?)` signature has been moved to a separate API. \" +\n \"Use `watchEffect(fn, options?)` instead. `watch` now only \" +\n \"supports `watch(source, cb, options?) signature.\");\n }\n return doWatch(source, cb, options);\n}\nfunction doWatch(source, cb, _a) {\n var _b = _a === void 0 ? emptyObject : _a, immediate = _b.immediate, deep = _b.deep, _c = _b.flush, flush = _c === void 0 ? 'pre' : _c, onTrack = _b.onTrack, onTrigger = _b.onTrigger;\n if (process.env.NODE_ENV !== 'production' && !cb) {\n if (immediate !== undefined) {\n warn(\"watch() \\\"immediate\\\" option is only respected when using the \" +\n \"watch(source, callback, options?) signature.\");\n }\n if (deep !== undefined) {\n warn(\"watch() \\\"deep\\\" option is only respected when using the \" +\n \"watch(source, callback, options?) signature.\");\n }\n }\n var warnInvalidSource = function (s) {\n warn(\"Invalid watch source: \".concat(s, \". A watch source can only be a getter/effect \") +\n \"function, a ref, a reactive object, or an array of these types.\");\n };\n var instance = currentInstance;\n var call = function (fn, type, args) {\n if (args === void 0) { args = null; }\n return invokeWithErrorHandling(fn, null, args, instance, type);\n };\n var getter;\n var forceTrigger = false;\n var isMultiSource = false;\n if (isRef(source)) {\n getter = function () { return source.value; };\n forceTrigger = isShallow(source);\n }\n else if (isReactive(source)) {\n getter = function () {\n source.__ob__.dep.depend();\n return source;\n };\n deep = true;\n }\n else if (isArray(source)) {\n isMultiSource = true;\n forceTrigger = source.some(function (s) { return isReactive(s) || isShallow(s); });\n getter = function () {\n return source.map(function (s) {\n if (isRef(s)) {\n return s.value;\n }\n else if (isReactive(s)) {\n return traverse(s);\n }\n else if (isFunction(s)) {\n return call(s, WATCHER_GETTER);\n }\n else {\n process.env.NODE_ENV !== 'production' && warnInvalidSource(s);\n }\n });\n };\n }\n else if (isFunction(source)) {\n if (cb) {\n // getter with cb\n getter = function () { return call(source, WATCHER_GETTER); };\n }\n else {\n // no cb -> simple effect\n getter = function () {\n if (instance && instance._isDestroyed) {\n return;\n }\n if (cleanup) {\n cleanup();\n }\n return call(source, WATCHER, [onCleanup]);\n };\n }\n }\n else {\n getter = noop;\n process.env.NODE_ENV !== 'production' && warnInvalidSource(source);\n }\n if (cb && deep) {\n var baseGetter_1 = getter;\n getter = function () { return traverse(baseGetter_1()); };\n }\n var cleanup;\n var onCleanup = function (fn) {\n cleanup = watcher.onStop = function () {\n call(fn, WATCHER_CLEANUP);\n };\n };\n // in SSR there is no need to setup an actual effect, and it should be noop\n // unless it's eager\n if (isServerRendering()) {\n // we will also not call the invalidate callback (+ runner is not set up)\n onCleanup = noop;\n if (!cb) {\n getter();\n }\n else if (immediate) {\n call(cb, WATCHER_CB, [\n getter(),\n isMultiSource ? [] : undefined,\n onCleanup\n ]);\n }\n return noop;\n }\n var watcher = new Watcher(currentInstance, getter, noop, {\n lazy: true\n });\n watcher.noRecurse = !cb;\n var oldValue = isMultiSource ? [] : INITIAL_WATCHER_VALUE;\n // overwrite default run\n watcher.run = function () {\n if (!watcher.active) {\n return;\n }\n if (cb) {\n // watch(source, cb)\n var newValue = watcher.get();\n if (deep ||\n forceTrigger ||\n (isMultiSource\n ? newValue.some(function (v, i) {\n return hasChanged(v, oldValue[i]);\n })\n : hasChanged(newValue, oldValue))) {\n // cleanup before running cb again\n if (cleanup) {\n cleanup();\n }\n call(cb, WATCHER_CB, [\n newValue,\n // pass undefined as the old value when it's changed for the first time\n oldValue === INITIAL_WATCHER_VALUE ? undefined : oldValue,\n onCleanup\n ]);\n oldValue = newValue;\n }\n }\n else {\n // watchEffect\n watcher.get();\n }\n };\n if (flush === 'sync') {\n watcher.update = watcher.run;\n }\n else if (flush === 'post') {\n watcher.post = true;\n watcher.update = function () { return queueWatcher(watcher); };\n }\n else {\n // pre\n watcher.update = function () {\n if (instance && instance === currentInstance && !instance._isMounted) {\n // pre-watcher triggered before\n var buffer = instance._preWatchers || (instance._preWatchers = []);\n if (buffer.indexOf(watcher) < 0)\n buffer.push(watcher);\n }\n else {\n queueWatcher(watcher);\n }\n };\n }\n if (process.env.NODE_ENV !== 'production') {\n watcher.onTrack = onTrack;\n watcher.onTrigger = onTrigger;\n }\n // initial run\n if (cb) {\n if (immediate) {\n watcher.run();\n }\n else {\n oldValue = watcher.get();\n }\n }\n else if (flush === 'post' && instance) {\n instance.$once('hook:mounted', function () { return watcher.get(); });\n }\n else {\n watcher.get();\n }\n return function () {\n watcher.teardown();\n };\n}\n\nvar activeEffectScope;\nvar EffectScope = /** @class */ (function () {\n function EffectScope(detached) {\n if (detached === void 0) { detached = false; }\n this.detached = detached;\n /**\n * @internal\n */\n this.active = true;\n /**\n * @internal\n */\n this.effects = [];\n /**\n * @internal\n */\n this.cleanups = [];\n this.parent = activeEffectScope;\n if (!detached && activeEffectScope) {\n this.index =\n (activeEffectScope.scopes || (activeEffectScope.scopes = [])).push(this) - 1;\n }\n }\n EffectScope.prototype.run = function (fn) {\n if (this.active) {\n var currentEffectScope = activeEffectScope;\n try {\n activeEffectScope = this;\n return fn();\n }\n finally {\n activeEffectScope = currentEffectScope;\n }\n }\n else if (process.env.NODE_ENV !== 'production') {\n warn(\"cannot run an inactive effect scope.\");\n }\n };\n /**\n * This should only be called on non-detached scopes\n * @internal\n */\n EffectScope.prototype.on = function () {\n activeEffectScope = this;\n };\n /**\n * This should only be called on non-detached scopes\n * @internal\n */\n EffectScope.prototype.off = function () {\n activeEffectScope = this.parent;\n };\n EffectScope.prototype.stop = function (fromParent) {\n if (this.active) {\n var i = void 0, l = void 0;\n for (i = 0, l = this.effects.length; i < l; i++) {\n this.effects[i].teardown();\n }\n for (i = 0, l = this.cleanups.length; i < l; i++) {\n this.cleanups[i]();\n }\n if (this.scopes) {\n for (i = 0, l = this.scopes.length; i < l; i++) {\n this.scopes[i].stop(true);\n }\n }\n // nested scope, dereference from parent to avoid memory leaks\n if (!this.detached && this.parent && !fromParent) {\n // optimized O(1) removal\n var last = this.parent.scopes.pop();\n if (last && last !== this) {\n this.parent.scopes[this.index] = last;\n last.index = this.index;\n }\n }\n this.parent = undefined;\n this.active = false;\n }\n };\n return EffectScope;\n}());\nfunction effectScope(detached) {\n return new EffectScope(detached);\n}\n/**\n * @internal\n */\nfunction recordEffectScope(effect, scope) {\n if (scope === void 0) { scope = activeEffectScope; }\n if (scope && scope.active) {\n scope.effects.push(effect);\n }\n}\nfunction getCurrentScope() {\n return activeEffectScope;\n}\nfunction onScopeDispose(fn) {\n if (activeEffectScope) {\n activeEffectScope.cleanups.push(fn);\n }\n else if (process.env.NODE_ENV !== 'production') {\n warn(\"onScopeDispose() is called when there is no active effect scope\" +\n \" to be associated with.\");\n }\n}\n\nfunction provide(key, value) {\n if (!currentInstance) {\n if (process.env.NODE_ENV !== 'production') {\n warn(\"provide() can only be used inside setup().\");\n }\n }\n else {\n // TS doesn't allow symbol as index type\n resolveProvided(currentInstance)[key] = value;\n }\n}\nfunction resolveProvided(vm) {\n // by default an instance inherits its parent's provides object\n // but when it needs to provide values of its own, it creates its\n // own provides object using parent provides object as prototype.\n // this way in `inject` we can simply look up injections from direct\n // parent and let the prototype chain do the work.\n var existing = vm._provided;\n var parentProvides = vm.$parent && vm.$parent._provided;\n if (parentProvides === existing) {\n return (vm._provided = Object.create(parentProvides));\n }\n else {\n return existing;\n }\n}\nfunction inject(key, defaultValue, treatDefaultAsFactory) {\n if (treatDefaultAsFactory === void 0) { treatDefaultAsFactory = false; }\n // fallback to `currentRenderingInstance` so that this can be called in\n // a functional component\n var instance = currentInstance;\n if (instance) {\n // #2400\n // to support `app.use` plugins,\n // fallback to appContext's `provides` if the instance is at root\n var provides = instance.$parent && instance.$parent._provided;\n if (provides && key in provides) {\n // TS doesn't allow symbol as index type\n return provides[key];\n }\n else if (arguments.length > 1) {\n return treatDefaultAsFactory && isFunction(defaultValue)\n ? defaultValue.call(instance)\n : defaultValue;\n }\n else if (process.env.NODE_ENV !== 'production') {\n warn(\"injection \\\"\".concat(String(key), \"\\\" not found.\"));\n }\n }\n else if (process.env.NODE_ENV !== 'production') {\n warn(\"inject() can only be used inside setup() or functional components.\");\n }\n}\n\nvar normalizeEvent = cached(function (name) {\n var passive = name.charAt(0) === '&';\n name = passive ? name.slice(1) : name;\n var once = name.charAt(0) === '~'; // Prefixed last, checked first\n name = once ? name.slice(1) : name;\n var capture = name.charAt(0) === '!';\n name = capture ? name.slice(1) : name;\n return {\n name: name,\n once: once,\n capture: capture,\n passive: passive\n };\n});\nfunction createFnInvoker(fns, vm) {\n function invoker() {\n var fns = invoker.fns;\n if (isArray(fns)) {\n var cloned = fns.slice();\n for (var i = 0; i < cloned.length; i++) {\n invokeWithErrorHandling(cloned[i], null, arguments, vm, \"v-on handler\");\n }\n }\n else {\n // return handler return value for single handlers\n return invokeWithErrorHandling(fns, null, arguments, vm, \"v-on handler\");\n }\n }\n invoker.fns = fns;\n return invoker;\n}\nfunction updateListeners(on, oldOn, add, remove, createOnceHandler, vm) {\n var name, cur, old, event;\n for (name in on) {\n cur = on[name];\n old = oldOn[name];\n event = normalizeEvent(name);\n if (isUndef(cur)) {\n process.env.NODE_ENV !== 'production' &&\n warn(\"Invalid handler for event \\\"\".concat(event.name, \"\\\": got \") + String(cur), vm);\n }\n else if (isUndef(old)) {\n if (isUndef(cur.fns)) {\n cur = on[name] = createFnInvoker(cur, vm);\n }\n if (isTrue(event.once)) {\n cur = on[name] = createOnceHandler(event.name, cur, event.capture);\n }\n add(event.name, cur, event.capture, event.passive, event.params);\n }\n else if (cur !== old) {\n old.fns = cur;\n on[name] = old;\n }\n }\n for (name in oldOn) {\n if (isUndef(on[name])) {\n event = normalizeEvent(name);\n remove(event.name, oldOn[name], event.capture);\n }\n }\n}\n\nfunction mergeVNodeHook(def, hookKey, hook) {\n if (def instanceof VNode) {\n def = def.data.hook || (def.data.hook = {});\n }\n var invoker;\n var oldHook = def[hookKey];\n function wrappedHook() {\n hook.apply(this, arguments);\n // important: remove merged hook to ensure it's called only once\n // and prevent memory leak\n remove$2(invoker.fns, wrappedHook);\n }\n if (isUndef(oldHook)) {\n // no existing hook\n invoker = createFnInvoker([wrappedHook]);\n }\n else {\n /* istanbul ignore if */\n if (isDef(oldHook.fns) && isTrue(oldHook.merged)) {\n // already a merged invoker\n invoker = oldHook;\n invoker.fns.push(wrappedHook);\n }\n else {\n // existing plain hook\n invoker = createFnInvoker([oldHook, wrappedHook]);\n }\n }\n invoker.merged = true;\n def[hookKey] = invoker;\n}\n\nfunction extractPropsFromVNodeData(data, Ctor, tag) {\n // we are only extracting raw values here.\n // validation and default values are handled in the child\n // component itself.\n var propOptions = Ctor.options.props;\n if (isUndef(propOptions)) {\n return;\n }\n var res = {};\n var attrs = data.attrs, props = data.props;\n if (isDef(attrs) || isDef(props)) {\n for (var key in propOptions) {\n var altKey = hyphenate(key);\n if (process.env.NODE_ENV !== 'production') {\n var keyInLowerCase = key.toLowerCase();\n if (key !== keyInLowerCase && attrs && hasOwn(attrs, keyInLowerCase)) {\n tip(\"Prop \\\"\".concat(keyInLowerCase, \"\\\" is passed to component \") +\n \"\".concat(formatComponentName(\n // @ts-expect-error tag is string\n tag || Ctor), \", but the declared prop name is\") +\n \" \\\"\".concat(key, \"\\\". \") +\n \"Note that HTML attributes are case-insensitive and camelCased \" +\n \"props need to use their kebab-case equivalents when using in-DOM \" +\n \"templates. You should probably use \\\"\".concat(altKey, \"\\\" instead of \\\"\").concat(key, \"\\\".\"));\n }\n }\n checkProp(res, props, key, altKey, true) ||\n checkProp(res, attrs, key, altKey, false);\n }\n }\n return res;\n}\nfunction checkProp(res, hash, key, altKey, preserve) {\n if (isDef(hash)) {\n if (hasOwn(hash, key)) {\n res[key] = hash[key];\n if (!preserve) {\n delete hash[key];\n }\n return true;\n }\n else if (hasOwn(hash, altKey)) {\n res[key] = hash[altKey];\n if (!preserve) {\n delete hash[altKey];\n }\n return true;\n }\n }\n return false;\n}\n\n// The template compiler attempts to minimize the need for normalization by\n// statically analyzing the template at compile time.\n//\n// For plain HTML markup, normalization can be completely skipped because the\n// generated render function is guaranteed to return Array. There are\n// two cases where extra normalization is needed:\n// 1. When the children contains components - because a functional component\n// may return an Array instead of a single root. In this case, just a simple\n// normalization is needed - if any child is an Array, we flatten the whole\n// thing with Array.prototype.concat. It is guaranteed to be only 1-level deep\n// because functional components already normalize their own children.\nfunction simpleNormalizeChildren(children) {\n for (var i = 0; i < children.length; i++) {\n if (isArray(children[i])) {\n return Array.prototype.concat.apply([], children);\n }\n }\n return children;\n}\n// 2. When the children contains constructs that always generated nested Arrays,\n// e.g.